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.

WorkGroup

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

type WorkGroup struct { Configuration *WorkGroupConfiguration `type:"structure"` CreationTime *time.Time `type:"timestamp"` Description *string `type:"string"` Name *string `type:"string" required:"true"` State *string `type:"string" enum:"WorkGroupState"` }

A workgroup, which contains a name, description, creation time, state, and other configuration, listed under WorkGroup$Configuration. Each workgroup enables you to isolate queries for you or your group of users from other queries in the same account, to configure the query results location and the encryption configuration (known as workgroup settings), to enable sending query metrics to Amazon CloudWatch, and to establish per-query data usage control limits for all queries in a workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

Configuration

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.

CreationTime

Type: *time.Time

The date and time the workgroup was created.

Description

Type: *string

The workgroup description.

Name

Type: *string

The workgroup name.

Name is a required field

State

Type: *string

The state of the workgroup: ENABLED or DISABLED.

Method

GoString

func (s WorkGroup) GoString() string

GoString returns the string representation

SetConfiguration

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

SetConfiguration sets the Configuration field's value.

SetCreationTime

func (s *WorkGroup) SetCreationTime(v time.Time) *WorkGroup

SetCreationTime sets the CreationTime field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetName

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

SetName sets the Name field's value.

SetState

func (s *WorkGroup) SetState(v string) *WorkGroup

SetState sets the State field's value.

String

func (s WorkGroup) String() string

String returns the string representation

On this page: