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

com.pulumi.awsnative.resiliencehub.kotlin.inputs.AppResourceMappingArgs.kt Maven / Gradle / Ivy

@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("lklwuyithhquorjc")
    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("qcustkxpgdovkngs")
    public suspend fun logicalStackName(`value`: Output) {
        this.logicalStackName = value
    }

    /**
     * @param value Specifies the type of resource mapping.
     */
    @JvmName("doxqfxqmvsmmtlbh")
    public suspend fun mappingType(`value`: Output) {
        this.mappingType = value
    }

    /**
     * @param value Identifier of the physical resource.
     */
    @JvmName("lujurseeawclbuii")
    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("nklgfwdboopmorpo")
    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("dnjytylngtgadnxu")
    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("fwijisjwcwcmqbak")
    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("qdxlgpmbedyecjlm")
    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("wbyirshqsoyfgcdg")
    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("bjfbkcaidfvjamvb")
    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("rnkjelxcpgtdxutu")
    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("jhutyxfkjenooowu")
    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("xgyfrialrilppgef")
    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,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy