# SnapshotCopyConfigurationProperty

The object that you configure to copy snapshots from one namespace to a namespace in another AWS Region .

- Source: Generated at build time
- Type last changed: v2.139.0 · 24 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshiftserverless as redshiftserverless } from 'aws-cdk-lib';
const snapshotCopyConfigurationProperty: redshiftserverless.CfnNamespace.SnapshotCopyConfigurationProperty = {
  destinationRegion: 'destinationRegion',

  // the properties below are optional
  destinationKmsKeyId: 'destinationKmsKeyId',
  snapshotRetentionPeriod: 123,
};
```

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_redshiftserverless as redshiftserverless

snapshot_copy_configuration_property = redshiftserverless.CfnNamespace.SnapshotCopyConfigurationProperty(
    destination_region="destinationRegion",

    # the properties below are optional
    destination_kms_key_id="destinationKmsKeyId",
    snapshot_retention_period=123
)
```

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.redshiftserverless.*;

SnapshotCopyConfigurationProperty snapshotCopyConfigurationProperty = SnapshotCopyConfigurationProperty.builder()
        .destinationRegion("destinationRegion")

        // the properties below are optional
        .destinationKmsKeyId("destinationKmsKeyId")
        .snapshotRetentionPeriod(123)
        .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.RedshiftServerless;

var snapshotCopyConfigurationProperty = new SnapshotCopyConfigurationProperty {
    DestinationRegion = "destinationRegion",

    // the properties below are optional
    DestinationKmsKeyId = "destinationKmsKeyId",
    SnapshotRetentionPeriod = 123
};
```

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"

snapshotCopyConfigurationProperty := &SnapshotCopyConfigurationProperty{
	DestinationRegion: jsii.String("destinationRegion"),

	// the properties below are optional
	DestinationKmsKeyId: jsii.String("destinationKmsKeyId"),
	SnapshotRetentionPeriod: jsii.Number(123),
}
```

## Properties

- `destinationKmsKeyId`: string — The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .

- `destinationRegion`: string (required) — The destination AWS Region to copy snapshots to.

- `snapshotRetentionPeriod`: number — The retention period of snapshots that are copied to the destination AWS Region .
