@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.644Z") @Stability(value=Stable) 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 region.
Resource creation will fail if the
dms-vpc-roleIAM 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnReplicationSubnetGroup(Construct scope,
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 Map<String,Object> |
getCfnProperties() |
String |
getReplicationSubnetGroupDescription()
The description for the subnet group.
|
String |
getReplicationSubnetGroupIdentifier()
The identifier for the replication subnet group.
|
List<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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setReplicationSubnetGroupDescription(String value)
The description for the subnet group.
|
void |
setReplicationSubnetGroupIdentifier(String value)
The identifier for the replication subnet group.
|
void |
setSubnetIds(List<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, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnReplicationSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnReplicationSubnetGroup(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getReplicationSubnetGroupDescription()
@Stability(value=Stable)
public void setReplicationSubnetGroupDescription(@NotNull
String value)
@Stability(value=Stable) @NotNull public List<String> getSubnetIds()
@Stability(value=Stable)
public void setSubnetIds(@NotNull
List<String> value)
@Stability(value=Stable) @Nullable public String getReplicationSubnetGroupIdentifier()
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the identifier.
@Stability(value=Stable)
public void setReplicationSubnetGroupIdentifier(@Nullable
String value)
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the identifier.
Copyright © 2022. All rights reserved.