com.pulumi.awsnative.kms.kotlin.enums.KeyOrigin.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.kms.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The default is ``AWS_KMS``, which means that KMS creates the key material.
* To [create a KMS key with no key material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html) (for imported key material), set this value to ``EXTERNAL``. For more information about importing key material into KMS, see [Importing Key Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) in the *Developer Guide*.
* You can ignore ``ENABLED`` when Origin is ``EXTERNAL``. When a KMS key with Origin ``EXTERNAL`` is created, the key state is ``PENDING_IMPORT`` and ``ENABLED`` is ``false``. After you import the key material, ``ENABLED`` updated to ``true``. The KMS key can then be used for Cryptographic Operations.
* CFN doesn't support creating an ``Origin`` parameter of the ``AWS_CLOUDHSM`` or ``EXTERNAL_KEY_STORE`` values.
*/
public enum class KeyOrigin(
public val javaValue: com.pulumi.awsnative.kms.enums.KeyOrigin,
) : ConvertibleToJava {
AwsKms(com.pulumi.awsnative.kms.enums.KeyOrigin.AwsKms),
External(com.pulumi.awsnative.kms.enums.KeyOrigin.External),
;
override fun toJava(): com.pulumi.awsnative.kms.enums.KeyOrigin = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.kms.enums.KeyOrigin): KeyOrigin =
KeyOrigin.values().first { it.javaValue == javaType }
}
}