AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateReplicationSubnetGroup operation. Creates a replication subnet group given a list of the subnet IDs in a VPC.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DatabaseMigrationService.AmazonDatabaseMigrationServiceRequest
      Amazon.DatabaseMigrationService.Model.CreateReplicationSubnetGroupRequest

Namespace: Amazon.DatabaseMigrationService.Model
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z

Syntax

C#
public class CreateReplicationSubnetGroupRequest : AmazonDatabaseMigrationServiceRequest
         IAmazonWebServiceRequest

The CreateReplicationSubnetGroupRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ReplicationSubnetGroupDescription System.String

Gets and sets the property ReplicationSubnetGroupDescription.

The description for the subnet group.

Public Property ReplicationSubnetGroupIdentifier System.String

Gets and sets the property ReplicationSubnetGroupIdentifier.

The name for the replication subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".

Example: mySubnetgroup

Public Property SubnetIds System.Collections.Generic.List<System.String>

Gets and sets the property SubnetIds.

The EC2 subnet IDs for the subnet group.

Public Property Tags System.Collections.Generic.List<Amazon.DatabaseMigrationService.Model.Tag>

Gets and sets the property Tags.

The tag to be assigned to the subnet group.

Examples

Creates a replication subnet group given a list of the subnet IDs in a VPC.

Create replication subnet group


var response = client.CreateReplicationSubnetGroup(new CreateReplicationSubnetGroupRequest 
{
    ReplicationSubnetGroupDescription = "US West subnet group",
    ReplicationSubnetGroupIdentifier = "us-west-2ab-vpc-215ds366",
    SubnetIds = new List {
        "subnet-e145356n",
        "subnet-58f79200"
    },
    Tags = new List {
        new Tag {
            Key = "Acount",
            Value = "145235"
        }
    }
});

ReplicationSubnetGroup replicationSubnetGroup = response.ReplicationSubnetGroup;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms