Skip to content

Create Subnet Group

memorydb_create_subnet_group R Documentation

Creates a subnet group

Description

Creates 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.

Usage

memorydb_create_subnet_group(SubnetGroupName, Description, SubnetIds,
  Tags)

Arguments

SubnetGroupName

[required] The name of the subnet group.

Description

A description for the subnet group.

SubnetIds

[required] A list of VPC subnet IDs for the 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(
  SubnetGroup = list(
    Name = "string",
    Description = "string",
    VpcId = "string",
    Subnets = list(
      list(
        Identifier = "string",
        AvailabilityZone = list(
          Name = "string"
        )
      )
    ),
    ARN = "string"
  )
)

Request syntax

svc$create_subnet_group(
  SubnetGroupName = "string",
  Description = "string",
  SubnetIds = list(
    "string"
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)