

# CustomerManagedEncryption

Encryption with a KMS key that you own and manage, rather than one owned by the service.

## Contents
<a name="API_CustomerManagedEncryption_Contents"></a>

 ** kmsKeyIdentifier **   <a name="credentialbrokercontrol-Type-CustomerManagedEncryption-kmsKeyIdentifier"></a>
Identifier of the customer-managed KMS key used to encrypt cached tokens. Accepts a key ARN (`...:key/<id>`), an alias ARN (`...:alias/<name>`), or a bare alias name (`alias/<name>`). Any alias is dereferenced to its underlying key ARN via `kms:DescribeKey` at create/update time, and only the resolved key ARN is persisted and returned, a KMS alias is a mutable pointer, so pinning the key ARN keeps the configuration stable. A bare alias name resolves in the caller's own account and Region; to reference a key in a different account (cross-account), supply a full key ARN or alias ARN so the account is explicit.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `(arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):kms:[a-zA-Z0-9-]+:[0-9]{12}:(key/[a-zA-Z0-9-]{36}|alias/[a-zA-Z0-9/_-]{1,250})|alias/[a-zA-Z0-9/_-]{1,250})`   
Required: Yes

## See Also
<a name="API_CustomerManagedEncryption_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/credentialbroker-control-2026-09-30/CustomerManagedEncryption) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/CustomerManagedEncryption) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/CustomerManagedEncryption) 