

# EncryptionConfiguration

How cached tokens are encrypted at rest. Set exactly one member: a customer-managed configuration must name a KMS key, and a service-managed configuration takes no parameters.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** customerManaged **   <a name="credentialbrokercontrol-Type-EncryptionConfiguration-customerManaged"></a>
Encrypt with a customer managed KMS key that you own.  
Type: [CustomerManagedEncryption](API_CustomerManagedEncryption.md) object  
Required: No

 ** serviceManaged **   <a name="credentialbrokercontrol-Type-EncryptionConfiguration-serviceManaged"></a>
Encrypt with a service-owned, AWS-managed key. Carries no parameters.  
Type: Structure  
Required: No

## See Also
<a name="API_EncryptionConfiguration_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/EncryptionConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/EncryptionConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/EncryptionConfiguration) 