Skip to content

Create Cache Subnet Group

elasticache_create_cache_subnet_group R Documentation

Creates a new cache subnet group

Description

Creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).

Usage

elasticache_create_cache_subnet_group(CacheSubnetGroupName,
  CacheSubnetGroupDescription, SubnetIds, Tags)

Arguments

CacheSubnetGroupName

[required] A 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

CacheSubnetGroupDescription

[required] A description for the cache subnet group.

SubnetIds

[required] A list of VPC subnet IDs for the cache subnet group.

Tags

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

Value

A list with the following syntax:

list(
  CacheSubnetGroup = list(
    CacheSubnetGroupName = "string",
    CacheSubnetGroupDescription = "string",
    VpcId = "string",
    Subnets = list(
      list(
        SubnetIdentifier = "string",
        SubnetAvailabilityZone = list(
          Name = "string"
        ),
        SubnetOutpost = list(
          SubnetOutpostArn = "string"
        ),
        SupportedNetworkTypes = list(
          "ipv4"|"ipv6"|"dual_stack"
        )
      )
    ),
    ARN = "string",
    SupportedNetworkTypes = list(
      "ipv4"|"ipv6"|"dual_stack"
    )
  )
)

Request syntax

svc$create_cache_subnet_group(
  CacheSubnetGroupName = "string",
  CacheSubnetGroupDescription = "string",
  SubnetIds = list(
    "string"
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)