AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateClusterSubnetGroupInput

import "github.com/aws/aws-sdk-go/service/redshift"

type CreateClusterSubnetGroupInput struct { ClusterSubnetGroupName *string `type:"string" required:"true"` Description *string `type:"string" required:"true"` SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` Tags []*Tag `locationNameList:"Tag" type:"list"` }

ClusterSubnetGroupName

Type: *string

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 AWS account.

Example: examplesubnetgroup

ClusterSubnetGroupName is a required field

Description

Type: *string

A description for the subnet group.

Description is a required field

SubnetIds

Type: []*string

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

SubnetIds is a required field

Tags

A tag consisting of a name/value pair for a resource.

Method

GoString

func (s CreateClusterSubnetGroupInput) GoString() string

GoString returns the string representation

SetClusterSubnetGroupName

func (s *CreateClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *CreateClusterSubnetGroupInput

SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.

SetDescription

func (s *CreateClusterSubnetGroupInput) SetDescription(v string) *CreateClusterSubnetGroupInput

SetDescription sets the Description field's value.

SetSubnetIds

func (s *CreateClusterSubnetGroupInput) SetSubnetIds(v []*string) *CreateClusterSubnetGroupInput

SetSubnetIds sets the SubnetIds field's value.

SetTags

func (s *CreateClusterSubnetGroupInput) SetTags(v []*Tag) *CreateClusterSubnetGroupInput

SetTags sets the Tags field's value.

String

func (s CreateClusterSubnetGroupInput) String() string

String returns the string representation

Validate

func (s *CreateClusterSubnetGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: