@aws-cdk_aws-redshift-alpha.ClusterSubnetGroupProps

interface ClusterSubnetGroupProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.ClusterSubnetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#ClusterSubnetGroupProps
Javasoftware.amazon.awscdk.services.redshift.alpha.ClusterSubnetGroupProps
Pythonaws_cdk.aws_redshift_alpha.ClusterSubnetGroupProps
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป ClusterSubnetGroupProps

Properties for creating a ClusterSubnetGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as redshift_alpha from '@aws-cdk/aws-redshift-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const clusterSubnetGroupProps: redshift_alpha.ClusterSubnetGroupProps = {
  description: 'description',
  vpc: vpc,

  // the properties below are optional
  removalPolicy: cdk.RemovalPolicy.DESTROY,
  vpcSubnets: {
    availabilityZones: ['availabilityZones'],
    onePerAz: false,
    subnetFilters: [subnetFilter],
    subnetGroupName: 'subnetGroupName',
    subnets: [subnet],
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
  },
};

Properties

NameTypeDescription
description๐Ÿ”นstringDescription of the subnet group.
vpc๐Ÿ”นIVpcThe VPC to place the subnet group in.
removalPolicy?๐Ÿ”นRemovalPolicyThe removal policy to apply when the subnet group are removed from the stack or replaced during an update.
vpcSubnets?๐Ÿ”นSubnetSelectionWhich subnets within the VPC to associate with this group.

description๐Ÿ”น

Type: string

Description of the subnet group.


vpc๐Ÿ”น

Type: IVpc

The VPC to place the subnet group in.


removalPolicy?๐Ÿ”น

Type: RemovalPolicy (optional, default: RemovalPolicy.RETAIN)

The removal policy to apply when the subnet group are removed from the stack or replaced during an update.


vpcSubnets?๐Ÿ”น

Type: SubnetSelection (optional, default: private subnets)

Which subnets within the VPC to associate with this group.