interface SubnetGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Neptune.Alpha.SubnetGroupProps |
Go | github.com/aws/aws-cdk-go/awscdkneptunealpha/v2#SubnetGroupProps |
Java | software.amazon.awscdk.services.neptune.alpha.SubnetGroupProps |
Python | aws_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
Name | Type | Description |
---|---|---|
vpc | IVpc | The VPC to place the subnet group in. |
description? | string | Description of the subnet group. |
removal | Removal | The removal policy to apply when the subnet group are removed from the stack or replaced during an update. |
subnet | string | The name of the subnet group. |
vpc | Subnet | Which 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:
Removal
(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:
Subnet
(optional, default: private subnets)
Which subnets within the VPC to associate with this group.