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

com.pulumi.awsnative.route53recoveryreadiness.kotlin.inputs.ResourceSetResourceArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetResourceArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * The resource element of a ResourceSet
 * @property componentId The component identifier of the resource, generated when DNS target resource is used.
 * @property dnsTargetResource A component for DNS/routing control readiness checks. This is a required setting when `ResourceSet` `ResourceSetType` is set to `AWS::Route53RecoveryReadiness::DNSTargetResource` . Do not set it for any other `ResourceSetType` setting.
 * @property readinessScopes A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
 * @property resourceArn The Amazon Resource Name (ARN) of the AWS resource.
 */
public data class ResourceSetResourceArgs(
    public val componentId: Output? = null,
    public val dnsTargetResource: Output? = null,
    public val readinessScopes: Output>? = null,
    public val resourceArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetResourceArgs =
        com.pulumi.awsnative.route53recoveryreadiness.inputs.ResourceSetResourceArgs.builder()
            .componentId(componentId?.applyValue({ args0 -> args0 }))
            .dnsTargetResource(dnsTargetResource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .readinessScopes(readinessScopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resourceArn(resourceArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourceSetResourceArgs].
 */
@PulumiTagMarker
public class ResourceSetResourceArgsBuilder internal constructor() {
    private var componentId: Output? = null

    private var dnsTargetResource: Output? = null

    private var readinessScopes: Output>? = null

    private var resourceArn: Output? = null

    /**
     * @param value The component identifier of the resource, generated when DNS target resource is used.
     */
    @JvmName("tkltxspkbhcguhbk")
    public suspend fun componentId(`value`: Output) {
        this.componentId = value
    }

    /**
     * @param value A component for DNS/routing control readiness checks. This is a required setting when `ResourceSet` `ResourceSetType` is set to `AWS::Route53RecoveryReadiness::DNSTargetResource` . Do not set it for any other `ResourceSetType` setting.
     */
    @JvmName("rhfwdteoskkqcyyj")
    public suspend fun dnsTargetResource(`value`: Output) {
        this.dnsTargetResource = value
    }

    /**
     * @param value A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
     */
    @JvmName("sjcuoenhhxiwpvbn")
    public suspend fun readinessScopes(`value`: Output>) {
        this.readinessScopes = value
    }

    @JvmName("thebccjeujuowcpa")
    public suspend fun readinessScopes(vararg values: Output) {
        this.readinessScopes = Output.all(values.asList())
    }

    /**
     * @param values A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
     */
    @JvmName("hwkvqxbputkqlawp")
    public suspend fun readinessScopes(values: List>) {
        this.readinessScopes = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS resource.
     */
    @JvmName("rvflcwthcbqrqvtt")
    public suspend fun resourceArn(`value`: Output) {
        this.resourceArn = value
    }

    /**
     * @param value The component identifier of the resource, generated when DNS target resource is used.
     */
    @JvmName("mrwenanwdeklemrm")
    public suspend fun componentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentId = mapped
    }

    /**
     * @param value A component for DNS/routing control readiness checks. This is a required setting when `ResourceSet` `ResourceSetType` is set to `AWS::Route53RecoveryReadiness::DNSTargetResource` . Do not set it for any other `ResourceSetType` setting.
     */
    @JvmName("dujcykhblktijilg")
    public suspend fun dnsTargetResource(`value`: ResourceSetDnsTargetResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsTargetResource = mapped
    }

    /**
     * @param argument A component for DNS/routing control readiness checks. This is a required setting when `ResourceSet` `ResourceSetType` is set to `AWS::Route53RecoveryReadiness::DNSTargetResource` . Do not set it for any other `ResourceSetType` setting.
     */
    @JvmName("xewfcwjdeymgrvay")
    public suspend fun dnsTargetResource(argument: suspend ResourceSetDnsTargetResourceArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceSetDnsTargetResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dnsTargetResource = mapped
    }

    /**
     * @param value A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
     */
    @JvmName("sajankamrscxgawp")
    public suspend fun readinessScopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readinessScopes = mapped
    }

    /**
     * @param values A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
     */
    @JvmName("bcyxowbgpdkalrxy")
    public suspend fun readinessScopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.readinessScopes = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS resource.
     */
    @JvmName("fxencxvawntosywl")
    public suspend fun resourceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceArn = mapped
    }

    internal fun build(): ResourceSetResourceArgs = ResourceSetResourceArgs(
        componentId = componentId,
        dnsTargetResource = dnsTargetResource,
        readinessScopes = readinessScopes,
        resourceArn = resourceArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy