# ReplicaRegionProperty

Specifies a `Region` and the `KmsKeyId` for a replica secret.

- 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_secretsmanager as secretsmanager } from 'aws-cdk-lib';
const replicaRegionProperty: secretsmanager.CfnSecret.ReplicaRegionProperty = {
  region: 'region',

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

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_secretsmanager as secretsmanager

replica_region_property = secretsmanager.CfnSecret.ReplicaRegionProperty(
    region="region",

    # the properties below are optional
    kms_key_id="kmsKeyId"
)
```

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

ReplicaRegionProperty replicaRegionProperty = ReplicaRegionProperty.builder()
        .region("region")

        // the properties below are optional
        .kmsKeyId("kmsKeyId")
        .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.SecretsManager;

var replicaRegionProperty = new ReplicaRegionProperty {
    Region = "region",

    // the properties below are optional
    KmsKeyId = "kmsKeyId"
};
```

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"

replicaRegionProperty := &ReplicaRegionProperty{
	Region: jsii.String("region"),

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

## Properties

- `kmsKeyId`: string — The ARN, key ID, or alias of the KMS key to encrypt the secret.

  If you don't include this field, Secrets Manager uses `aws/secretsmanager` .

- `region`: string (required) — A string that represents a `Region` , for example "us-east-1".
