

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 ProviderEncryptionConfiguration

How a single credential provider's cached tokens are encrypted at rest. Set exactly one member. A provider either uses its own customer-managed KMS key or inherits whatever the parent pool uses; it cannot independently choose service-managed encryption.

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

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

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

```json
{
  "[CustomerManaged](#cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-customermanaged)" : {{CustomerManagedEncryption}},
  "[InheritFromPool](#cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-inheritfrompool)" : {{Json}}
}
```

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

```yaml
  [CustomerManaged](#cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-customermanaged): {{
    CustomerManagedEncryption}}
  [InheritFromPool](#cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-inheritfrompool): {{Json}}
```

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

`CustomerManaged`  <a name="cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-customermanaged"></a>
Encrypt this provider's cached tokens with a customer managed key of its own, instead of the key the parent pool uses. Supply it again with a different key to rotate.  
*Required*: No  
*Type*: [CustomerManagedEncryption](aws-properties-credentialbroker-credentialprovider-customermanagedencryption.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`InheritFromPool`  <a name="cfn-credentialbroker-credentialprovider-providerencryptionconfiguration-inheritfrompool"></a>
Inherit the parent pool's encryption configuration.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)