

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CredentialBroker::CredentialProvider CustomerManagedEncryption

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

## Syntax
<a name="aws-properties-credentialbroker-credentialprovider-customermanagedencryption-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-credentialbroker-credentialprovider-customermanagedencryption-syntax.json"></a>

```json
{
  "[KmsKeyIdentifier](#cfn-credentialbroker-credentialprovider-customermanagedencryption-kmskeyidentifier)" : {{String}}
}
```

### YAML
<a name="aws-properties-credentialbroker-credentialprovider-customermanagedencryption-syntax.yaml"></a>

```yaml
  [KmsKeyIdentifier](#cfn-credentialbroker-credentialprovider-customermanagedencryption-kmskeyidentifier): {{String}}
```

## Properties
<a name="aws-properties-credentialbroker-credentialprovider-customermanagedencryption-properties"></a>

`KmsKeyIdentifier`  <a name="cfn-credentialbroker-credentialprovider-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.  
*Required*: Yes  
*Type*: String  
*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})$`  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)