interface SubnetGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Neptune.SubnetGroupProps |
Java | software.amazon.awscdk.services.neptune.SubnetGroupProps |
Python | aws_cdk.aws_neptune.SubnetGroupProps |
TypeScript (source) | @aws-cdk/aws-neptune » 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 ec2 from '@aws-cdk/aws-ec2';
import * as neptune from '@aws-cdk/aws-neptune';
import * as cdk from '@aws-cdk/core';
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const subnetGroupProps: neptune.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',
subnetName: 'subnetName',
subnets: [subnet],
subnetType: ec2.SubnetType.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.