com.pulumi.awsnative.route53recoveryreadiness.kotlin.inputs.ResourceSetResourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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