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

com.pulumi.awsnative.resiliencehub.kotlin.outputs.AppResourceMapping.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.resiliencehub.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * 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 AppResourceMapping(
    public val eksSourceName: String? = null,
    public val logicalStackName: String? = null,
    public val mappingType: String,
    public val physicalResourceId: AppPhysicalResourceId,
    public val resourceName: String? = null,
    public val terraformSourceName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.resiliencehub.outputs.AppResourceMapping): AppResourceMapping = AppResourceMapping(
            eksSourceName = javaType.eksSourceName().map({ args0 -> args0 }).orElse(null),
            logicalStackName = javaType.logicalStackName().map({ args0 -> args0 }).orElse(null),
            mappingType = javaType.mappingType(),
            physicalResourceId = javaType.physicalResourceId().let({ args0 ->
                com.pulumi.awsnative.resiliencehub.kotlin.outputs.AppPhysicalResourceId.Companion.toKotlin(args0)
            }),
            resourceName = javaType.resourceName().map({ args0 -> args0 }).orElse(null),
            terraformSourceName = javaType.terraformSourceName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy