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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type CreateWorkGroupInput struct { Configuration *WorkGroupConfiguration `type:"structure"` Description *string `type:"string"` Name *string `type:"string" required:"true"` Tags []*Tag `type:"list"` }


The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup and whether workgroup settings override query settings, and the data usage limit for the amount of data scanned per query, if it is specified. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.


Type: *string

The workgroup description.


Type: *string

The workgroup name.

Name is a required field


A tag that you can add to a resource. A tag is a label that you assign to an AWS Athena resource (a workgroup). Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize workgroups in Athena, for example, by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups in your account. The maximum tag key length is 128 Unicode characters in UTF-8. The maximum tag value length is 256 Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource.



func (s CreateWorkGroupInput) GoString() string

GoString returns the string representation


func (s *CreateWorkGroupInput) SetConfiguration(v *WorkGroupConfiguration) *CreateWorkGroupInput

SetConfiguration sets the Configuration field's value.


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

SetDescription sets the Description field's value.


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

SetName sets the Name field's value.


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

SetTags sets the Tags field's value.


func (s CreateWorkGroupInput) String() string

String returns the string representation


func (s *CreateWorkGroupInput) Validate() error

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

On this page: