# SSESpecificationProperty

Represents the settings used to enable server-side encryption.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const sSESpecificationProperty: dynamodb.CfnGlobalTable.SSESpecificationProperty = {
  sseEnabled: false,

  // the properties below are optional
  sseType: 'sseType',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb

s_se_specification_property = dynamodb.CfnGlobalTable.SSESpecificationProperty(
    sse_enabled=False,

    # the properties below are optional
    sse_type="sseType"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;

SSESpecificationProperty sSESpecificationProperty = SSESpecificationProperty.builder()
        .sseEnabled(false)

        // the properties below are optional
        .sseType("sseType")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;

var sSESpecificationProperty = new SSESpecificationProperty {
    SseEnabled = false,

    // the properties below are optional
    SseType = "sseType"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sSESpecificationProperty := &SSESpecificationProperty{
	SseEnabled: jsii.Boolean(false),

	// the properties below are optional
	SseType: jsii.String("sseType"),
}
```

## Properties

- `sseEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether server-side encryption is performed using an AWS managed key or an AWS owned key.

  If enabled (true), server-side encryption type is set to KMS and an AWS managed key is used ( AWS  charges apply). If disabled (false) or not specified,server-side encryption is set to an AWS owned key. If you choose to use KMS encryption, you can also use customer managed KMS keys by specifying them in the `ReplicaSpecification.SSESpecification` object. You cannot mix AWS managed and customer managed KMS keys.

- `sseType`: string — Server-side encryption type. The only supported value is:.

  - `KMS` - Server-side encryption that uses AWS Key Management Service . The key is stored in your account and is managed by AWS  ( AWS  charges apply).
