

# SSESpecification
<a name="API_SSESpecification"></a>

Represents the settings used to enable server-side encryption.

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

**Note**  
In the following list, the required parameters are described first.

 ** Enabled **   <a name="DDB-Type-SSESpecification-Enabled"></a>
Indicates whether server-side encryption is done using an Amazon managed key or an Amazon owned key. If enabled (true), server-side encryption type is set to `KMS` and an Amazon managed key is used (Amazon KMS charges apply). If disabled (false) or not specified, server-side encryption is set to Amazon owned key.  
Type: Boolean  
Required: No

 ** KMSMasterKeyId **   <a name="DDB-Type-SSESpecification-KMSMasterKeyId"></a>
The Amazon KMS key that should be used for the Amazon KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key `alias/aws/dynamodb`.  
Type: String  
Required: No

 ** SSEType **   <a name="DDB-Type-SSESpecification-SSEType"></a>
Server-side encryption type. The only supported value is:  
+  `KMS` - Server-side encryption that uses Amazon Key Management Service. The key is stored in your account and is managed by Amazon KMS (Amazon KMS charges apply).
Type: String  
Valid Values: `AES256 | KMS`   
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/dynamodb-2012-08-10/SSESpecification) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/dynamodb-2012-08-10/SSESpecification) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/dynamodb-2012-08-10/SSESpecification) 