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

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

package com.pulumi.awsnative.ssm.kotlin.outputs

import com.pulumi.awsnative.ssm.kotlin.enums.ParameterDataType
import com.pulumi.awsnative.ssm.kotlin.enums.ParameterType
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property dataType The data type of the parameter, such as ``text`` or ``aws:ec2:image``. The default is ``text``.
 * @property type The type of parameter.
 * @property value The parameter value.
 *   If type is ``StringList``, the system returns a comma-separated string with no spaces between commas in the ``Value`` field.
 */
public data class GetParameterResult(
    public val dataType: ParameterDataType? = null,
    public val type: ParameterType? = null,
    public val `value`: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ssm.outputs.GetParameterResult): GetParameterResult = GetParameterResult(
            dataType = javaType.dataType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.enums.ParameterDataType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            type = javaType.type().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ssm.kotlin.enums.ParameterType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy