com.pulumi.awsnative.iot.kotlin.outputs.GetSoftwarePackageVersionResult.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.iot.kotlin.outputs
import com.pulumi.awsnative.iot.kotlin.enums.SoftwarePackageVersionPackageVersionStatus
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property attributes
* @property description
* @property errorReason Error reason for a package version failure during creation or update.
* @property packageVersionArn The Amazon Resource Name (ARN) for the package.
* @property status The status of the package version. For more information, see [Package version lifecycle](https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle) .
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class GetSoftwarePackageVersionResult(
public val attributes: Map? = null,
public val description: String? = null,
public val errorReason: String? = null,
public val packageVersionArn: String? = null,
public val status: SoftwarePackageVersionPackageVersionStatus? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.GetSoftwarePackageVersionResult): GetSoftwarePackageVersionResult = GetSoftwarePackageVersionResult(
attributes = javaType.attributes().map({ args0 -> args0.key.to(args0.value) }).toMap(),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
errorReason = javaType.errorReason().map({ args0 -> args0 }).orElse(null),
packageVersionArn = javaType.packageVersionArn().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.enums.SoftwarePackageVersionPackageVersionStatus.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}