Class ClusterSubnetGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.redshift.alpha.ClusterSubnetGroup
All Implemented Interfaces:
IResource, IClusterSubnetGroup, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:13:08.166Z") @Stability(Experimental) public class ClusterSubnetGroup extends Resource implements IClusterSubnetGroup
(experimental) Class for creating a Redshift cluster subnet group.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.redshift.alpha.*;
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.ec2.*;
 Subnet subnet;
 SubnetFilter subnetFilter;
 Vpc vpc;
 ClusterSubnetGroup clusterSubnetGroup = ClusterSubnetGroup.Builder.create(this, "MyClusterSubnetGroup")
         .description("description")
         .vpc(vpc)
         // the properties below are optional
         .removalPolicy(RemovalPolicy.DESTROY)
         .vpcSubnets(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.PRIVATE_ISOLATED)
                 .build())
         .build();
 
  • Constructor Details

    • ClusterSubnetGroup

      protected ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • ClusterSubnetGroup

      protected ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ClusterSubnetGroup

      @Stability(Experimental) public ClusterSubnetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterSubnetGroupProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromClusterSubnetGroupName

      @Stability(Experimental) @NotNull public static IClusterSubnetGroup fromClusterSubnetGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clusterSubnetGroupName)
      (experimental) Imports an existing subnet group by name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      clusterSubnetGroupName - This parameter is required.
    • getClusterSubnetGroupName

      @Stability(Experimental) @NotNull public String getClusterSubnetGroupName()
      (experimental) The name of the cluster subnet group.
      Specified by:
      getClusterSubnetGroupName in interface IClusterSubnetGroup