ReplicaRegionProperty Struct
Specifies a Region and the KmsKeyId for a replica secret.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*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 .
A string that represents a `Region` , for example "us-east-1".