@aws-cdk_aws-neptune-alpha.SubnetGroupProps

interface SubnetGroupProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Neptune.Alpha.SubnetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdkneptunealpha/v2#SubnetGroupProps
Javasoftware.amazon.awscdk.services.neptune.alpha.SubnetGroupProps
Pythonaws_cdk.aws_neptune_alpha.SubnetGroupProps
TypeScript (source)@aws-cdk/aws-neptune-alpha ยป SubnetGroupProps

Properties for creating a SubnetGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as neptune_alpha from '@aws-cdk/aws-neptune-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 subnetGroupProps: neptune_alpha.SubnetGroupProps = {
  vpc: vpc,

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

Properties

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

vpc๐Ÿ”น

Type: IVpc

The VPC to place the subnet group in.


description?๐Ÿ”น

Type: string (optional, default: a name is generated)

Description of the subnet group.


removalPolicy?๐Ÿ”น

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

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


subnetGroupName?๐Ÿ”น

Type: string (optional, default: a name is generated)

The name of the subnet group.


vpcSubnets?๐Ÿ”น

Type: SubnetSelection (optional, default: private subnets)

Which subnets within the VPC to associate with this group.