

# EncryptionConfig

The encryption settings for the data that an agent context stores.

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

 ** encryptionMode **   <a name="context-Type-EncryptionConfig-encryptionMode"></a>
How the agent context's stored data is encrypted. Always present on the resource.  
Valid values:  
+  `AWS_OWNED` - Encrypted with an AWS owned key.
+  `CUSTOMER_MANAGED` - Encrypted with the AWS KMS customer managed key that `keyArn` specifies.
Type: String  
Valid Values: `AWS_OWNED | CUSTOMER_MANAGED`   
Required: Yes

 ** keyArn **   <a name="context-Type-EncryptionConfig-keyArn"></a>
The ARN of the AWS KMS customer managed key that encrypts the agent context when `encryptionMode` is `CUSTOMER_MANAGED`. Absent for `AWS_OWNED`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):.*`   
Required: No

## See Also
<a name="API_EncryptionConfig_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/context-2022-07-26/EncryptionConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/EncryptionConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/EncryptionConfig) 