All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.route53recoveryreadiness.kotlin.inputs.ResourceSetResourceDnsTargetResourceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.route53recoveryreadiness.kotlin.inputs

import com.pulumi.aws.route53recoveryreadiness.inputs.ResourceSetResourceDnsTargetResourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property domainName DNS Name that acts as the ingress point to a portion of application.
 * @property hostedZoneArn Hosted Zone ARN that contains the DNS record with the provided name of target resource.
 * @property recordSetId Route53 record set id to uniquely identify a record given a `domain_name` and a `record_type`.
 * @property recordType Type of DNS Record of target resource.
 * @property targetResource Target resource the R53 record specified with the above params points to.
 */
public data class ResourceSetResourceDnsTargetResourceArgs(
    public val domainName: Output,
    public val hostedZoneArn: Output? = null,
    public val recordSetId: Output? = null,
    public val recordType: Output? = null,
    public val targetResource: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.route53recoveryreadiness.inputs.ResourceSetResourceDnsTargetResourceArgs =
        com.pulumi.aws.route53recoveryreadiness.inputs.ResourceSetResourceDnsTargetResourceArgs.builder()
            .domainName(domainName.applyValue({ args0 -> args0 }))
            .hostedZoneArn(hostedZoneArn?.applyValue({ args0 -> args0 }))
            .recordSetId(recordSetId?.applyValue({ args0 -> args0 }))
            .recordType(recordType?.applyValue({ args0 -> args0 }))
            .targetResource(
                targetResource?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ResourceSetResourceDnsTargetResourceArgs].
 */
@PulumiTagMarker
public class ResourceSetResourceDnsTargetResourceArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var hostedZoneArn: Output? = null

    private var recordSetId: Output? = null

    private var recordType: Output? = null

    private var targetResource: Output? = null

    /**
     * @param value DNS Name that acts as the ingress point to a portion of application.
     */
    @JvmName("idebqgmcrhdhmfrb")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value Hosted Zone ARN that contains the DNS record with the provided name of target resource.
     */
    @JvmName("fheikcfctaglocsy")
    public suspend fun hostedZoneArn(`value`: Output) {
        this.hostedZoneArn = value
    }

    /**
     * @param value Route53 record set id to uniquely identify a record given a `domain_name` and a `record_type`.
     */
    @JvmName("alxuiubwboropnnb")
    public suspend fun recordSetId(`value`: Output) {
        this.recordSetId = value
    }

    /**
     * @param value Type of DNS Record of target resource.
     */
    @JvmName("awfjlxtxtthhwtfa")
    public suspend fun recordType(`value`: Output) {
        this.recordType = value
    }

    /**
     * @param value Target resource the R53 record specified with the above params points to.
     */
    @JvmName("efejjlipowwmlrqn")
    public suspend fun targetResource(`value`: Output) {
        this.targetResource = value
    }

    /**
     * @param value DNS Name that acts as the ingress point to a portion of application.
     */
    @JvmName("ahbyrawitdguocou")
    public suspend fun domainName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value Hosted Zone ARN that contains the DNS record with the provided name of target resource.
     */
    @JvmName("vrgnqcenbhebldrc")
    public suspend fun hostedZoneArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostedZoneArn = mapped
    }

    /**
     * @param value Route53 record set id to uniquely identify a record given a `domain_name` and a `record_type`.
     */
    @JvmName("nvudmibqbdrpaliv")
    public suspend fun recordSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordSetId = mapped
    }

    /**
     * @param value Type of DNS Record of target resource.
     */
    @JvmName("bgysxatuigwiymqm")
    public suspend fun recordType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordType = mapped
    }

    /**
     * @param value Target resource the R53 record specified with the above params points to.
     */
    @JvmName("slpigbnkvgbjcask")
    public suspend fun targetResource(`value`: ResourceSetResourceDnsTargetResourceTargetResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResource = mapped
    }

    /**
     * @param argument Target resource the R53 record specified with the above params points to.
     */
    @JvmName("cgthpngcwtajwygx")
    public suspend fun targetResource(argument: suspend ResourceSetResourceDnsTargetResourceTargetResourceArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetResourceDnsTargetResourceTargetResourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.targetResource = mapped
    }

    internal fun build(): ResourceSetResourceDnsTargetResourceArgs =
        ResourceSetResourceDnsTargetResourceArgs(
            domainName = domainName ?: throw PulumiNullFieldException("domainName"),
            hostedZoneArn = hostedZoneArn,
            recordSetId = recordSetId,
            recordType = recordType,
            targetResource = targetResource,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy