Class SubnetGroup
(experimental) Class for creating a RDS DB subnet group.
Inherited Members
Namespace: Amazon.CDK.AWS.Neptune.Alpha
Assembly: Amazon.CDK.AWS.Neptune.Alpha.dll
Syntax (csharp)
public class SubnetGroup : Resource, ISubnetGroup, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class SubnetGroup Inherits Resource Implements ISubnetGroup, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Stability: Experimental
Resource: AWS::Neptune::DBSubnetGroup
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Neptune.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.EC2;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
var subnetGroup = new SubnetGroup(this, "MySubnetGroup", new SubnetGroupProps {
Vpc = vpc,
// the properties below are optional
Description = "description",
RemovalPolicy = RemovalPolicy.DESTROY,
SubnetGroupName = "subnetGroupName",
VpcSubnets = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
Subnets = new [] { subnet },
SubnetType = SubnetType.PRIVATE_ISOLATED
}
});
Synopsis
Constructors
| SubnetGroup(Construct, string, ISubnetGroupProps) | (experimental) Class for creating a RDS DB subnet group. |
Properties
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
| SubnetGroupName | (experimental) The name of the subnet group. |
Methods
| FromSubnetGroupName(Construct, string, string) | (experimental) Imports an existing subnet group by name. |
Constructors
SubnetGroup(Construct, string, ISubnetGroupProps)
(experimental) Class for creating a RDS DB subnet group.
public SubnetGroup(Construct scope, string id, ISubnetGroupProps props)
Parameters
- scope Construct
- id string
- props ISubnetGroupProps
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
SubnetGroupName
(experimental) The name of the subnet group.
public virtual string SubnetGroupName { get; }
Property Value
Remarks
Stability: Experimental
Methods
FromSubnetGroupName(Construct, string, string)
(experimental) Imports an existing subnet group by name.
public static ISubnetGroup FromSubnetGroupName(Construct scope, string id, string subnetGroupName)
Parameters
Returns
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable