aws-cdk-lib.aws_elasticache.CfnSubnetGroupProps

interface CfnSubnetGroupProps

LanguageType name
.NETAmazon.CDK.AWS.ElastiCache.CfnSubnetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticache#CfnSubnetGroupProps
Javasoftware.amazon.awscdk.services.elasticache.CfnSubnetGroupProps
Pythonaws_cdk.aws_elasticache.CfnSubnetGroupProps
TypeScript aws-cdk-lib » aws_elasticache » CfnSubnetGroupProps

Properties for defining a CfnSubnetGroup.

Example

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

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

Properties

NameTypeDescription
descriptionstringThe description for the cache subnet group.
subnetIdsstring[]The EC2 subnet IDs for the cache subnet group.
cacheSubnetGroupName?stringThe name for the cache subnet group. This value is stored as a lowercase string.
tags?CfnTag[]A tag that can be added to an ElastiCache subnet group.

description

Type: string

The description for the cache subnet group.


subnetIds

Type: string[]

The EC2 subnet IDs for the cache subnet group.


cacheSubnetGroupName?

Type: string (optional)

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

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup


tags?

Type: CfnTag[] (optional)

A tag that can be added to an ElastiCache subnet group.

Tags are composed of a Key/Value pair. You can use tags to categorize and track all your subnet groups. A tag with a null Value is permitted.