# CfnSubnetGroupProps

Properties for defining a `CfnSubnetGroup`.

Extends: CfnSubnetGroupProps
Used as props by: CfnSubnetGroup

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

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

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

## Properties

- `description`: string — A description of the subnet group.

- `subnetGroupName`: string (required) — The name of the subnet group to be used for the cluster .

- `subnetIds`: string | [ISubnetRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.ISubnetRef.html)[] (required) — A list of Amazon VPC subnet IDs for the subnet group.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
