ReplicaRegion Struct
Secret replica region.
| Source | aws-secretsmanager/lib/secret.ts |
|---|
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,
}