com.pulumi.awsnative.ssm.kotlin.outputs.GetParameterResult.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.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),
)
}
}