AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::DMS::ReplicationSubnetGroup

CfnReplicationSubnetGroup

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](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.APIRole.html) in the *AWS Database Migration Service User Guide* .

Import

import { CfnReplicationSubnetGroup } from 'aws-cdk-lib/aws-dms';

Or use the module namespace:

import * as dms from 'aws-cdk-lib/aws-dms';
// dms.CfnReplicationSubnetGroup

Properties

Configuration passed to the constructor as CfnReplicationSubnetGroupProps.

replicationSubnetGroupDescriptionRequired
string

The description for the subnet group.

subnetIdsRequired
string[]

One or more subnet IDs to be assigned to the subnet group.

replicationSubnetGroupIdentifierOptional
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.

tagsOptional
CfnTag[]

One or more tags to be assigned to the subnet group.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter