com.pulumi.awsnative.resiliencehub.kotlin.inputs.AppResourceMappingArgs.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.resiliencehub.kotlin.inputs
import com.pulumi.awsnative.resiliencehub.inputs.AppResourceMappingArgs.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
/**
* Resource mapping is used to map logical resources from template to physical resource
* @property eksSourceName Name of the Amazon Elastic Kubernetes Service cluster and namespace that this resource is mapped to when the `mappingType` is `EKS` .
* > This parameter accepts values in "eks-cluster/namespace" format.
* @property logicalStackName Name of the AWS CloudFormation stack this resource is mapped to when the `mappingType` is `CfnStack` .
* @property mappingType Specifies the type of resource mapping.
* @property physicalResourceId Identifier of the physical resource.
* @property resourceName Name of the resource that this resource is mapped to when the `mappingType` is `Resource` .
* @property terraformSourceName Name of the Terraform source that this resource is mapped to when the `mappingType` is `Terraform` .
*/
public data class AppResourceMappingArgs(
public val eksSourceName: Output? = null,
public val logicalStackName: Output? = null,
public val mappingType: Output,
public val physicalResourceId: Output,
public val resourceName: Output? = null,
public val terraformSourceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.resiliencehub.inputs.AppResourceMappingArgs =
com.pulumi.awsnative.resiliencehub.inputs.AppResourceMappingArgs.builder()
.eksSourceName(eksSourceName?.applyValue({ args0 -> args0 }))
.logicalStackName(logicalStackName?.applyValue({ args0 -> args0 }))
.mappingType(mappingType.applyValue({ args0 -> args0 }))
.physicalResourceId(
physicalResourceId.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.terraformSourceName(terraformSourceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppResourceMappingArgs].
*/
@PulumiTagMarker
public class AppResourceMappingArgsBuilder internal constructor() {
private var eksSourceName: Output? = null
private var logicalStackName: Output? = null
private var mappingType: Output? = null
private var physicalResourceId: Output? = null
private var resourceName: Output? = null
private var terraformSourceName: Output? = null
/**
* @param value Name of the Amazon Elastic Kubernetes Service cluster and namespace that this resource is mapped to when the `mappingType` is `EKS` .
* > This parameter accepts values in "eks-cluster/namespace" format.
*/
@JvmName("bncimbhowyvbhshp")
public suspend fun eksSourceName(`value`: Output) {
this.eksSourceName = value
}
/**
* @param value Name of the AWS CloudFormation stack this resource is mapped to when the `mappingType` is `CfnStack` .
*/
@JvmName("nipjhpedxyacdepy")
public suspend fun logicalStackName(`value`: Output) {
this.logicalStackName = value
}
/**
* @param value Specifies the type of resource mapping.
*/
@JvmName("acfybhoeqkwvaayt")
public suspend fun mappingType(`value`: Output) {
this.mappingType = value
}
/**
* @param value Identifier of the physical resource.
*/
@JvmName("owiaokfqvbyhtwhj")
public suspend fun physicalResourceId(`value`: Output) {
this.physicalResourceId = value
}
/**
* @param value Name of the resource that this resource is mapped to when the `mappingType` is `Resource` .
*/
@JvmName("epanahswbvcxrbrm")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value Name of the Terraform source that this resource is mapped to when the `mappingType` is `Terraform` .
*/
@JvmName("wlihjlmeaefxabfx")
public suspend fun terraformSourceName(`value`: Output) {
this.terraformSourceName = value
}
/**
* @param value Name of the Amazon Elastic Kubernetes Service cluster and namespace that this resource is mapped to when the `mappingType` is `EKS` .
* > This parameter accepts values in "eks-cluster/namespace" format.
*/
@JvmName("dfqypprqaudmtdyu")
public suspend fun eksSourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eksSourceName = mapped
}
/**
* @param value Name of the AWS CloudFormation stack this resource is mapped to when the `mappingType` is `CfnStack` .
*/
@JvmName("tvooiqrhtfjocolm")
public suspend fun logicalStackName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logicalStackName = mapped
}
/**
* @param value Specifies the type of resource mapping.
*/
@JvmName("wuwcrforvirkcmfv")
public suspend fun mappingType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mappingType = mapped
}
/**
* @param value Identifier of the physical resource.
*/
@JvmName("kmoskjuxfbqghfkj")
public suspend fun physicalResourceId(`value`: AppPhysicalResourceIdArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.physicalResourceId = mapped
}
/**
* @param argument Identifier of the physical resource.
*/
@JvmName("wcuffppmhvcitgap")
public suspend fun physicalResourceId(argument: suspend AppPhysicalResourceIdArgsBuilder.() -> Unit) {
val toBeMapped = AppPhysicalResourceIdArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.physicalResourceId = mapped
}
/**
* @param value Name of the resource that this resource is mapped to when the `mappingType` is `Resource` .
*/
@JvmName("aucfxixenywrmjuy")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value Name of the Terraform source that this resource is mapped to when the `mappingType` is `Terraform` .
*/
@JvmName("lrgkqssqinlgrwfm")
public suspend fun terraformSourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.terraformSourceName = mapped
}
internal fun build(): AppResourceMappingArgs = AppResourceMappingArgs(
eksSourceName = eksSourceName,
logicalStackName = logicalStackName,
mappingType = mappingType ?: throw PulumiNullFieldException("mappingType"),
physicalResourceId = physicalResourceId ?: throw PulumiNullFieldException("physicalResourceId"),
resourceName = resourceName,
terraformSourceName = terraformSourceName,
)
}