@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.916Z") public class CfnReplicationSubnetGroup extends CfnResource implements IInspectable
The AWS::DMS::ReplicationSubnetGroup
resource creates an AWS DMS replication subnet group. Subnet groups must contain at least two subnets in two different Availability Zones in the same AWS Region .
Resource creation fails if the
dms-vpc-role
AWS Identity and Access Management ( IAM ) role doesn't already exist. For more information, see Creating the IAM Roles to Use With the AWS CLI and AWS DMS API in the AWS Database Migration Service User Guide .
Example:
// 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.*; CfnReplicationSubnetGroup cfnReplicationSubnetGroup = CfnReplicationSubnetGroup.Builder.create(this, "MyCfnReplicationSubnetGroup") .replicationSubnetGroupDescription("replicationSubnetGroupDescription") .subnetIds(List.of("subnetIds")) // the properties below are optional .replicationSubnetGroupIdentifier("replicationSubnetGroupIdentifier") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnReplicationSubnetGroup.Builder
A fluent builder for
CfnReplicationSubnetGroup . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnReplicationSubnetGroup(Construct scope,
java.lang.String id,
CfnReplicationSubnetGroupProps props)
Create a new `AWS::DMS::ReplicationSubnetGroup`.
|
protected |
CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getReplicationSubnetGroupDescription()
The description for the subnet group.
|
java.lang.String |
getReplicationSubnetGroupIdentifier()
The identifier for the replication subnet group.
|
java.util.List<java.lang.String> |
getSubnetIds()
One or more subnet IDs to be assigned to the subnet group.
|
TagManager |
getTags()
One or more tags to be assigned to the subnet group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setReplicationSubnetGroupDescription(java.lang.String value)
The description for the subnet group.
|
void |
setReplicationSubnetGroupIdentifier(java.lang.String value)
The identifier for the replication subnet group.
|
void |
setSubnetIds(java.util.List<java.lang.String> value)
One or more subnet IDs to be assigned to the subnet group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnReplicationSubnetGroup(Construct scope, java.lang.String id, CfnReplicationSubnetGroupProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getReplicationSubnetGroupDescription()
public void setReplicationSubnetGroupDescription(java.lang.String value)
public java.util.List<java.lang.String> getSubnetIds()
public void setSubnetIds(java.util.List<java.lang.String> value)
public java.lang.String getReplicationSubnetGroupIdentifier()
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the identifier.
public void setReplicationSubnetGroupIdentifier(java.lang.String value)
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the identifier.