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 CreateDBSubnetGroup operation. Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.
Namespace: Amazon.Neptune.Model
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z
public class CreateDBSubnetGroupRequest : AmazonNeptuneRequest IAmazonWebServiceRequest
The CreateDBSubnetGroupRequest type exposes the following members
Name | Description | |
---|---|---|
CreateDBSubnetGroupRequest() |
Name | Type | Description | |
---|---|---|---|
DBSubnetGroupDescription | System.String |
Gets and sets the property DBSubnetGroupDescription. The description for the DB subnet group. |
|
DBSubnetGroupName | System.String |
Gets and sets the property DBSubnetGroupName. The name for the DB subnet group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.
Example: |
|
SubnetIds | System.Collections.Generic.List<System.String> |
Gets and sets the property SubnetIds. The EC2 Subnet IDs for the DB subnet group. |
|
Tags | System.Collections.Generic.List<Amazon.Neptune.Model.Tag> |
Gets and sets the property Tags. The tags to be assigned to the new DB subnet group. |
This example creates a DB subnet group.
var response = client.CreateDBSubnetGroup(new CreateDBSubnetGroupRequest { DBSubnetGroupDescription = "My DB subnet group", DBSubnetGroupName = "mydbsubnetgroup", SubnetIds = new List<string> { "subnet-1fab8a69", "subnet-d43a468c" } }); DBSubnetGroup dbSubnetGroup = response.DBSubnetGroup;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5