This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::MemoryDB::SubnetGroup
Specifies a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::MemoryDB::SubnetGroup", "Properties" : { "Description" :String, "SubnetGroupName" :String, "SubnetIds" :[ String, ... ], "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::MemoryDB::SubnetGroup Properties: Description:StringSubnetGroupName:StringSubnetIds:- StringTags:- Tag
Properties
- Description
- 
                    A description of the subnet group. Required: No Type: String Update requires: No interruption 
- SubnetGroupName
- 
                    The name of the subnet group to be used for the cluster. Required: Yes Type: String Pattern: [a-z][a-z0-9\-]*Update requires: Replacement 
- SubnetIds
- 
                    A list of Amazon VPC subnet IDs for the subnet group. Required: Yes Type: Array of String Update requires: No interruption 
- 
                    
                    An array of key-value pairs to apply to this resource. For more information, see Tag. Required: No Type: Array of Tag Maximum: 50Update requires: No interruption 
Return values
Fn::GetAtt
- ARN
- 
                            When you pass the logical ID of this resource to the intrinsic Reffunction, Ref returns the ARN of the subnet group, such asarn:aws:memorydb:us-east-1:123456789012:subnetgroup/my-subnet-group
- SupportedNetworkTypes
- 
                            The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.