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
Syntax (vb)
Public Class SubnetGroup
Inherits Resource
Implements ISubnetGroup, IResource
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SubnetGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
SubnetGroup(Construct, String, ISubnetGroupProps) |
Properties
SubnetGroupName | (experimental) The name of the subnet group. |
Methods
FromSubnetGroupName(Construct, String, String) | (experimental) Imports an existing subnet group by name. |
Constructors
SubnetGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SubnetGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SubnetGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SubnetGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
SubnetGroup(Construct, String, ISubnetGroupProps)
public SubnetGroup(Construct scope, string id, ISubnetGroupProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ISubnetGroupProps
Remarks
Stability: Experimental
Properties
SubnetGroupName
(experimental) The name of the subnet group.
public virtual string SubnetGroupName { get; }
Property Value
System.String
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
- scope Constructs.Construct
- id System.String
- subnetGroupName System.String
Returns
Remarks
Stability: Experimental