@aws-cdk/aws-redshift-alpha
Version:
The CDK Construct Library for AWS::Redshift
55 lines (54 loc) • 1.67 kB
TypeScript
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import { IResource, RemovalPolicy, Resource } from 'aws-cdk-lib/core';
import { Construct } from 'constructs';
/**
* Interface for a cluster subnet group.
*/
export interface IClusterSubnetGroup extends IResource {
/**
* The name of the cluster subnet group.
* @attribute
*/
readonly clusterSubnetGroupName: string;
}
/**
* Properties for creating a ClusterSubnetGroup.
*/
export interface ClusterSubnetGroupProps {
/**
* Description of the subnet group.
*/
readonly description: string;
/**
* The VPC to place the subnet group in.
*/
readonly vpc: ec2.IVpc;
/**
* Which subnets within the VPC to associate with this group.
*
* @default - private subnets
*/
readonly vpcSubnets?: ec2.SubnetSelection;
/**
* The removal policy to apply when the subnet group are removed
* from the stack or replaced during an update.
*
* @default RemovalPolicy.RETAIN
*/
readonly removalPolicy?: RemovalPolicy;
}
/**
* Class for creating a Redshift cluster subnet group
*
* @resource AWS::Redshift::ClusterSubnetGroup
*/
export declare class ClusterSubnetGroup extends Resource implements IClusterSubnetGroup {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/**
* Imports an existing subnet group by name.
*/
static fromClusterSubnetGroupName(scope: Construct, id: string, clusterSubnetGroupName: string): IClusterSubnetGroup;
readonly clusterSubnetGroupName: string;
constructor(scope: Construct, id: string, props: ClusterSubnetGroupProps);
}