KmsFunctions

Functions

Link copied to clipboard
suspend fun getAlias(argument: GetAliasPlainArgs): GetAliasResult

Use this data source to get the ARN of a KMS key alias. By using this data source, you can reference key alias without having to hard code the ARN as input.

suspend fun getAlias(name: String): GetAliasResult
suspend fun getAlias(argument: suspend GetAliasPlainArgsBuilder.() -> Unit): GetAliasResult
Link copied to clipboard

The KMS ciphertext data source allows you to encrypt plaintext into ciphertext by using an AWS KMS customer master key. The value returned by this data source changes every apply. For a stable ciphertext value, see the aws.kms.Ciphertext resource.

suspend fun getCipherText(context: Map<String, String>? = null, keyId: String, plaintext: String): GetCipherTextResult
Link copied to clipboard

Use this data source to get the metadata KMS custom key store. By using this data source, you can reference KMS custom key store without having to hard code the ID as input.

suspend fun getCustomKeyStore(customKeyStoreId: String? = null, customKeyStoreName: String? = null): GetCustomKeyStoreResult
Link copied to clipboard
suspend fun getKey(argument: GetKeyPlainArgs): GetKeyResult

Use this data source to get detailed information about the specified KMS Key with flexible key id input. This can be useful to reference key alias without having to hard code the ARN as input.

suspend fun getKey(argument: suspend GetKeyPlainArgsBuilder.() -> Unit): GetKeyResult
suspend fun getKey(grantTokens: List<String>? = null, keyId: String): GetKeyResult
Link copied to clipboard

Use this data source to get the public key about the specified KMS Key with flexible key id input. This can be useful to reference key alias without having to hard code the ARN as input.

suspend fun getPublicKey(grantTokens: List<String>? = null, keyId: String): GetPublicKeyResult
Link copied to clipboard
suspend fun getSecret(argument: suspend GetSecretPlainArgsBuilder.() -> Unit): GetSecretResult
Link copied to clipboard

Decrypt multiple secrets from data encrypted with the AWS KMS service.

suspend fun getSecrets(argument: suspend GetSecretsPlainArgsBuilder.() -> Unit): GetSecretsResult