keyUsage

@JvmName(name = "qdjepgxrdcpukklf")
suspend fun keyUsage(value: Output<Either<String, KeyUsage>>)
@JvmName(name = "jiugjfxmwuaavvjt")
suspend fun keyUsage(value: Either<String, KeyUsage>?)
@JvmName(name = "olroobwvvbrgowsi")
fun keyUsage(value: String)
@JvmName(name = "tbuiwlvexygosaff")
fun keyUsage(value: KeyUsage)

Parameters

value

Determines the cryptographic operations for which you can use the KMS key. The default value is `ENCRYPT_DECRYPT`. This property is required for asymmetric KMS keys and HMAC KMS keys. You can't change the `KeyUsage` value after the KMS key is created. If you change the value of the `KeyUsage` property on an existing KMS key, the update request fails, regardless of the value of the UpdateReplacePolicy attribute. This prevents you from accidentally deleting a KMS key by changing an immutable property value. Select only one valid value. + For symmetric encryption KMS keys, omit the property or specify `ENCRYPT_DECRYPT`. + For asymmetric KMS keys with RSA key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. + For asymmetric KMS keys with ECC key material, specify `SIGN_VERIFY`. + For asymmetric KMS keys with SM2 (China Regions only) key material, specify `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. + For HMAC KMS keys, specify `GENERATE_VERIFY_MAC`.