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

com.pulumi.awsnative.cloudformation.kotlin.outputs.GetModuleVersionResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudformation.kotlin.outputs

import com.pulumi.awsnative.cloudformation.kotlin.enums.ModuleVersionVisibility
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the module.
 * @property description The description of the registered module.
 * @property documentationUrl The URL of a page providing detailed documentation for this module.
 * @property isDefaultVersion Indicator of whether this module version is the current default version
 * @property schema The schema defining input parameters to and resources generated by the module.
 * @property timeCreated The time that the specified module version was registered.
 * @property versionId The version ID of the module represented by this module instance.
 * @property visibility The scope at which the type is visible and usable in CloudFormation operations.
 * The only allowed value at present is:
 * 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 data class GetModuleVersionResult(
    public val arn: String? = null,
    public val description: String? = null,
    public val documentationUrl: String? = null,
    public val isDefaultVersion: Boolean? = null,
    public val schema: String? = null,
    public val timeCreated: String? = null,
    public val versionId: String? = null,
    public val visibility: ModuleVersionVisibility? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.cloudformation.outputs.GetModuleVersionResult): GetModuleVersionResult = GetModuleVersionResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            documentationUrl = javaType.documentationUrl().map({ args0 -> args0 }).orElse(null),
            isDefaultVersion = javaType.isDefaultVersion().map({ args0 -> args0 }).orElse(null),
            schema = javaType.schema().map({ args0 -> args0 }).orElse(null),
            timeCreated = javaType.timeCreated().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.ModuleVersionVisibility.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy