
com.pulumi.awsnative.cloudformation.kotlin.outputs.GetResourceVersionResult.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.cloudformation.kotlin.outputs
import com.pulumi.awsnative.cloudformation.kotlin.enums.ResourceVersionProvisioningType
import com.pulumi.awsnative.cloudformation.kotlin.enums.ResourceVersionVisibility
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property arn The Amazon Resource Name (ARN) of the type, here the ResourceVersion. This is used to uniquely identify a ResourceVersion resource
* @property isDefaultVersion Indicates if this type version is the current default version
* @property provisioningType The provisioning behavior of the type. AWS CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.
* @property typeArn The Amazon Resource Name (ARN) of the type without the versionID.
* @property versionId The ID of the version of the type represented by this resource instance.
* @property visibility The scope at which the type is visible and usable in CloudFormation operations.
* Valid values include:
* PRIVATE: The type is only visible and usable within the account in which it is registered. Currently, AWS CloudFormation marks any types you register as PRIVATE.
* PUBLIC: The type is publically visible and usable within any Amazon account.
*/
public data class GetResourceVersionResult(
public val arn: String? = null,
public val isDefaultVersion: Boolean? = null,
public val provisioningType: ResourceVersionProvisioningType? = null,
public val typeArn: String? = null,
public val versionId: String? = null,
public val visibility: ResourceVersionVisibility? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudformation.outputs.GetResourceVersionResult): GetResourceVersionResult = GetResourceVersionResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
isDefaultVersion = javaType.isDefaultVersion().map({ args0 -> args0 }).orElse(null),
provisioningType = javaType.provisioningType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudformation.kotlin.enums.ResourceVersionProvisioningType.Companion.toKotlin(args0)
})
}).orElse(null),
typeArn = javaType.typeArn().map({ args0 -> args0 }).orElse(null),
versionId = javaType.versionId().map({ args0 -> args0 }).orElse(null),
visibility = javaType.visibility().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudformation.kotlin.enums.ResourceVersionVisibility.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy