Skip to content
v2.276.0

CfnSubnetGroupProps Struct ​

Properties for defining a CfnSubnetGroup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dax as dax } from 'aws-cdk-lib';
const cfnSubnetGroupProps: dax.CfnSubnetGroupProps = {
  subnetIds: ['subnetIds'],

  // the properties below are optional
  description: 'description',
  subnetGroupName: 'subnetGroupName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dax as dax

cfn_subnet_group_props = dax.CfnSubnetGroupProps(
    subnet_ids=["subnetIds"],

    # the properties below are optional
    description="description",
    subnet_group_name="subnetGroupName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dax.*;

CfnSubnetGroupProps cfnSubnetGroupProps = CfnSubnetGroupProps.builder()
        .subnetIds(List.of("subnetIds"))

        // the properties below are optional
        .description("description")
        .subnetGroupName("subnetGroupName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DAX;

var cfnSubnetGroupProps = new CfnSubnetGroupProps {
    SubnetIds = new [] { "subnetIds" },

    // the properties below are optional
    Description = "description",
    SubnetGroupName = "subnetGroupName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSubnetGroupProps := &CfnSubnetGroupProps{
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},

	// the properties below are optional
	Description: jsii.String("description"),
	SubnetGroupName: jsii.String("subnetGroupName"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the subnet group.
subnetGroupNameoptionalstringsubnet_group_nameoptionalstrsubnetGroupNameoptionalStringSubnetGroupNameoptionalstringSubnetGroupNameoptional*string#
The name of the subnet group.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*stringrequired#
A list of VPC subnet IDs for the subnet group.