Skip to content

Create Cluster Subnet Group

redshift_create_cluster_subnet_group R Documentation

Creates a new Amazon Redshift subnet group

Description

Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide.

Usage

redshift_create_cluster_subnet_group(ClusterSubnetGroupName,
  Description, SubnetIds, Tags)

Arguments

ClusterSubnetGroupName

[required] The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

  • Must contain no more than 255 alphanumeric characters or hyphens.

  • Must not be "Default".

  • Must be unique for all subnet groups that are created by your Amazon Web Services account.

Example: examplesubnetgroup

Description

[required] A description for the subnet group.

SubnetIds

[required] An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.

Tags

A list of tag instances.

Value

A list with the following syntax:

list(
  ClusterSubnetGroup = list(
    ClusterSubnetGroupName = "string",
    Description = "string",
    VpcId = "string",
    SubnetGroupStatus = "string",
    Subnets = list(
      list(
        SubnetIdentifier = "string",
        SubnetAvailabilityZone = list(
          Name = "string",
          SupportedPlatforms = list(
            list(
              Name = "string"
            )
          )
        ),
        SubnetStatus = "string"
      )
    ),
    Tags = list(
      list(
        Key = "string",
        Value = "string"
      )
    ),
    SupportedClusterIpAddressTypes = list(
      "string"
    )
  )
)

Request syntax

svc$create_cluster_subnet_group(
  ClusterSubnetGroupName = "string",
  Description = "string",
  SubnetIds = list(
    "string"
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)