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.

CreateGroupInput

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

type CreateGroupInput struct { Description *string `type:"string"` Name *string `min:"1" type:"string" required:"true"` ResourceQuery *ResourceQuery `type:"structure" required:"true"` Tags map[string]*string `type:"map"` }

Description

Type: *string

The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.

Name

Type: *string

The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 128 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws; these are reserved. A resource group name must be unique within your account.

Name is a required field

ResourceQuery

The query that is used to define a resource group or a search for resources.

Tags

Type: map[string]*string

The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

Method

GoString

func (s CreateGroupInput) GoString() string

GoString returns the string representation

SetDescription

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

SetDescription sets the Description field's value.

SetName

func (s *CreateGroupInput) SetName(v string) *CreateGroupInput

SetName sets the Name field's value.

SetResourceQuery

func (s *CreateGroupInput) SetResourceQuery(v *ResourceQuery) *CreateGroupInput

SetResourceQuery sets the ResourceQuery field's value.

SetTags

func (s *CreateGroupInput) SetTags(v map[string]*string) *CreateGroupInput

SetTags sets the Tags field's value.

String

func (s CreateGroupInput) String() string

String returns the string representation

Validate

func (s *CreateGroupInput) Validate() error

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

On this page: