CfnReplicationSubnetGroupProps Struct
Properties for defining a CfnReplicationSubnetGroup.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const cfnReplicationSubnetGroupProps: dms.CfnReplicationSubnetGroupProps = {
replicationSubnetGroupDescription: 'replicationSubnetGroupDescription',
subnetIds: ['subnetIds'],
// the properties below are optional
replicationSubnetGroupIdentifier: 'replicationSubnetGroupIdentifier',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dms as dms
cfn_replication_subnet_group_props = dms.CfnReplicationSubnetGroupProps(
replication_subnet_group_description="replicationSubnetGroupDescription",
subnet_ids=["subnetIds"],
# the properties below are optional
replication_subnet_group_identifier="replicationSubnetGroupIdentifier",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.dms.*;
CfnReplicationSubnetGroupProps cfnReplicationSubnetGroupProps = CfnReplicationSubnetGroupProps.builder()
.replicationSubnetGroupDescription("replicationSubnetGroupDescription")
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.replicationSubnetGroupIdentifier("replicationSubnetGroupIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.DMS;
var cfnReplicationSubnetGroupProps = new CfnReplicationSubnetGroupProps {
ReplicationSubnetGroupDescription = "replicationSubnetGroupDescription",
SubnetIds = new [] { "subnetIds" },
// the properties below are optional
ReplicationSubnetGroupIdentifier = "replicationSubnetGroupIdentifier",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnReplicationSubnetGroupProps := &CfnReplicationSubnetGroupProps{
ReplicationSubnetGroupDescription: jsii.String("replicationSubnetGroupDescription"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
// the properties below are optional
ReplicationSubnetGroupIdentifier: jsii.String("replicationSubnetGroupIdentifier"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
replicationSubnetGroupDescriptionstringreplication_subnet_group_descriptionstrreplicationSubnetGroupDescriptionStringReplicationSubnetGroupDescriptionstringReplicationSubnetGroupDescription*string required #The description for the subnet group.
replicationSubnetGroupIdentifieroptionalstringreplication_subnet_group_identifieroptionalstrreplicationSubnetGroupIdentifieroptionalStringReplicationSubnetGroupIdentifieroptionalstringReplicationSubnetGroupIdentifieroptional*string #The identifier for the replication subnet group.
If you don't specify a name, CloudFormation generates a unique ID and uses that ID for the identifier.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*string required #One or more subnet IDs to be assigned to the subnet group.