Class ClusterSubnetGroup
(experimental) Class for creating a Redshift cluster subnet group.
Inherited Members
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public class ClusterSubnetGroup : Resource, IClusterSubnetGroup, IResource
Syntax (vb)
Public Class ClusterSubnetGroup
Inherits Resource
Implements IClusterSubnetGroup, IResource
Remarks
Stability: Experimental
Resource: AWS::Redshift::ClusterSubnetGroup
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.Redshift.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.EC2;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
var clusterSubnetGroup = new ClusterSubnetGroup(this, "MyClusterSubnetGroup", new ClusterSubnetGroupProps {
Description = "description",
Vpc = vpc,
// the properties below are optional
RemovalPolicy = RemovalPolicy.DESTROY,
VpcSubnets = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
Subnets = new [] { subnet },
SubnetType = SubnetType.PRIVATE_ISOLATED
}
});
Synopsis
Constructors
ClusterSubnetGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ClusterSubnetGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ClusterSubnetGroup(Construct, String, IClusterSubnetGroupProps) |
Properties
ClusterSubnetGroupName | (experimental) The name of the cluster subnet group. |
Methods
FromClusterSubnetGroupName(Construct, String, String) | (experimental) Imports an existing subnet group by name. |
Constructors
ClusterSubnetGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ClusterSubnetGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ClusterSubnetGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ClusterSubnetGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ClusterSubnetGroup(Construct, String, IClusterSubnetGroupProps)
public ClusterSubnetGroup(Construct scope, string id, IClusterSubnetGroupProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IClusterSubnetGroupProps
Remarks
Stability: Experimental
Properties
ClusterSubnetGroupName
(experimental) The name of the cluster subnet group.
public virtual string ClusterSubnetGroupName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
FromClusterSubnetGroupName(Construct, String, String)
(experimental) Imports an existing subnet group by name.
public static IClusterSubnetGroup FromClusterSubnetGroupName(Construct scope, string id, string clusterSubnetGroupName)
Parameters
- scope Constructs.Construct
- id System.String
- clusterSubnetGroupName System.String
Returns
Remarks
Stability: Experimental