Skip to content
v2.278.0

ReplicaRegion Struct ​

Secret replica region.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kms as kms } from 'aws-cdk-lib';
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';

declare const key: kms.Key;
const replicaRegion: secretsmanager.ReplicaRegion = {
  region: 'region',

  // the properties below are optional
  encryptionKey: key,
};
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_kms as kms
from aws_cdk import aws_secretsmanager as secretsmanager

# key: kms.Key

replica_region = secretsmanager.ReplicaRegion(
    region="region",

    # the properties below are optional
    encryption_key=key
)
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.kms.*;
import software.amazon.awscdk.services.secretsmanager.*;

Key key;

ReplicaRegion replicaRegion = ReplicaRegion.builder()
        .region("region")

        // the properties below are optional
        .encryptionKey(key)
        .build();
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.KMS;
using Amazon.CDK.AWS.SecretsManager;

Key key;

var replicaRegion = new ReplicaRegion {
    Region = "region",

    // the properties below are optional
    EncryptionKey = key
};
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"
import "github.com/aws/aws-cdk-go/awscdk"

var key Key

replicaRegion := &ReplicaRegion{
	Region: jsii.String("region"),

	// the properties below are optional
	EncryptionKey: key,
}

Properties ​

encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey #
The customer-managed encryption key to use for encrypting the secret value.

Default: A default KMS key for the account and region is used.

regionstringregionstrregionStringRegionstringRegion*string required #
The name of the region.