
com.pulumi.awsnative.quicksight.kotlin.outputs.TemplateError.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.quicksight.kotlin.outputs
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateErrorType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* List of errors that occurred when the template version creation failed.
* @property message Description of the error type.
* @property type Type of error.
* @property violatedEntities An error path that shows which entities caused the template error.
*/
public data class TemplateError(
public val message: String? = null,
public val type: TemplateErrorType? = null,
public val violatedEntities: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.quicksight.outputs.TemplateError): TemplateError = TemplateError(
message = javaType.message().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.enums.TemplateErrorType.Companion.toKotlin(args0)
})
}).orElse(null),
violatedEntities = javaType.violatedEntities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.quicksight.kotlin.outputs.TemplateEntity.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy