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

com.pulumi.awsnative.route53recoveryreadiness.kotlin.inputs.ResourceSetDnsTargetResourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.route53recoveryreadiness.kotlin.inputs

import com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetDnsTargetResourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A component for DNS/routing control readiness checks.
 * @property domainName The domain name that acts as an ingress point to a portion of the customer application.
 * @property hostedZoneArn The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.
 * @property recordSetId The Route 53 record set ID that will uniquely identify a DNS record, given a name and a type.
 * @property recordType The type of DNS record of the target resource.
 * @property targetResource The target resource that the Route 53 record points to.
 */
public data class ResourceSetDnsTargetResourceArgs(
    public val domainName: Output? = null,
    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.awsnative.route53recoveryreadiness.inputs.ResourceSetDnsTargetResourceArgs =
        com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetDnsTargetResourceArgs.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 [ResourceSetDnsTargetResourceArgs].
 */
@PulumiTagMarker
public class ResourceSetDnsTargetResourceArgsBuilder 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 The domain name that acts as an ingress point to a portion of the customer application.
     */
    @JvmName("hqorxldilpvxphfk")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.
     */
    @JvmName("ycmxlietebnjmeqg")
    public suspend fun hostedZoneArn(`value`: Output) {
        this.hostedZoneArn = value
    }

    /**
     * @param value The Route 53 record set ID that will uniquely identify a DNS record, given a name and a type.
     */
    @JvmName("mopwlkmckubebpxr")
    public suspend fun recordSetId(`value`: Output) {
        this.recordSetId = value
    }

    /**
     * @param value The type of DNS record of the target resource.
     */
    @JvmName("fxybfhrodftavlle")
    public suspend fun recordType(`value`: Output) {
        this.recordType = value
    }

    /**
     * @param value The target resource that the Route 53 record points to.
     */
    @JvmName("rigkpqnfyhbivudx")
    public suspend fun targetResource(`value`: Output) {
        this.targetResource = value
    }

    /**
     * @param value The domain name that acts as an ingress point to a portion of the customer application.
     */
    @JvmName("gfxadwkcjepmnsot")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

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

    /**
     * @param value The Route 53 record set ID that will uniquely identify a DNS record, given a name and a type.
     */
    @JvmName("osqsvtlvmfpwqeab")
    public suspend fun recordSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordSetId = mapped
    }

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

    /**
     * @param value The target resource that the Route 53 record points to.
     */
    @JvmName("orbbwyopgupcsauf")
    public suspend fun targetResource(`value`: ResourceSetTargetResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResource = mapped
    }

    /**
     * @param argument The target resource that the Route 53 record points to.
     */
    @JvmName("isbpaenmiegaqgnh")
    public suspend fun targetResource(argument: suspend ResourceSetTargetResourceArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetTargetResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.targetResource = mapped
    }

    internal fun build(): ResourceSetDnsTargetResourceArgs = ResourceSetDnsTargetResourceArgs(
        domainName = domainName,
        hostedZoneArn = hostedZoneArn,
        recordSetId = recordSetId,
        recordType = recordType,
        targetResource = targetResource,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy