Show / Hide Table of Contents

Class SubnetGroup

(experimental) Class for creating a RDS DB subnet group.

Inheritance
object
Resource
SubnetGroup
Implements
ISubnetGroup
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

Stability: Experimental

SubnetGroupName

(experimental) The name of the subnet group.

public virtual string SubnetGroupName { get; }
Property Value

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 Construct
id string
subnetGroupName string
Returns

ISubnetGroup

Remarks

Stability: Experimental

Implements

ISubnetGroup
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX