aws-cdk-lib.aws_rds.CfnDBSubnetGroupProps

interface CfnDBSubnetGroupProps

LanguageType name
.NETAmazon.CDK.AWS.RDS.CfnDBSubnetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#CfnDBSubnetGroupProps
Javasoftware.amazon.awscdk.services.rds.CfnDBSubnetGroupProps
Pythonaws_cdk.aws_rds.CfnDBSubnetGroupProps
TypeScript aws-cdk-lib » aws_rds » CfnDBSubnetGroupProps

Properties for defining a CfnDBSubnetGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const cfnDBSubnetGroupProps: rds.CfnDBSubnetGroupProps = {
  dbSubnetGroupDescription: 'dbSubnetGroupDescription',
  subnetIds: ['subnetIds'],

  // the properties below are optional
  dbSubnetGroupName: 'dbSubnetGroupName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
dbSubnetGroupDescriptionstringThe description for the DB subnet group.
subnetIdsstring[]The EC2 Subnet IDs for the DB subnet group.
dbSubnetGroupName?stringThe name for the DB subnet group. This value is stored as a lowercase string.
tags?CfnTag[]An optional array of key-value pairs to apply to this DB subnet group.

dbSubnetGroupDescription

Type: string

The description for the DB subnet group.


subnetIds

Type: string[]

The EC2 Subnet IDs for the DB subnet group.


dbSubnetGroupName?

Type: string (optional)

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must not be "Default".

Example: mysubnetgroup


tags?

Type: CfnTag[] (optional)

An optional array of key-value pairs to apply to this DB subnet group.