com.pulumi.awsnative.forecast.kotlin.outputs.EncryptionConfigProperties.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.forecast.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
* @property kmsKeyArn The Amazon Resource Name (ARN) of the KMS key.
* @property roleArn The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.
* Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an `InvalidInputException` error.
*/
public data class EncryptionConfigProperties(
public val kmsKeyArn: String? = null,
public val roleArn: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.forecast.outputs.EncryptionConfigProperties): EncryptionConfigProperties = EncryptionConfigProperties(
kmsKeyArn = javaType.kmsKeyArn().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
)
}
}