amazonka-athena-2.0: Amazon Athena SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Athena.CreateWorkGroup

Description

Creates a workgroup with the specified name. Only one of Configurations or Configuration can be specified; Configurations for a workgroup with multi engine support (for example, an Apache Spark enabled workgroup) or Configuration for an Athena SQL workgroup.

Synopsis

Creating a Request

data CreateWorkGroup Source #

See: newCreateWorkGroup smart constructor.

Constructors

CreateWorkGroup' 

Fields

  • configuration :: Maybe WorkGroupConfiguration

    Contains configuration information for creating an Athena SQL workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

  • description :: Maybe Text

    The workgroup description.

  • tags :: Maybe [Tag]

    A list of comma separated tags to add to the workgroup that is created.

  • name :: Text

    The workgroup name.

Instances

Instances details
ToJSON CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

ToHeaders CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

ToPath CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

ToQuery CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

AWSRequest CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Associated Types

type AWSResponse CreateWorkGroup #

Generic CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Associated Types

type Rep CreateWorkGroup :: Type -> Type #

Read CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Show CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

NFData CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Methods

rnf :: CreateWorkGroup -> () #

Eq CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Hashable CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

type AWSResponse CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

type Rep CreateWorkGroup Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

type Rep CreateWorkGroup = D1 ('MetaData "CreateWorkGroup" "Amazonka.Athena.CreateWorkGroup" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "CreateWorkGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WorkGroupConfiguration)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateWorkGroup Source #

Create a value of CreateWorkGroup with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateWorkGroup, createWorkGroup_configuration - Contains configuration information for creating an Athena SQL workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

CreateWorkGroup, createWorkGroup_description - The workgroup description.

$sel:tags:CreateWorkGroup', createWorkGroup_tags - A list of comma separated tags to add to the workgroup that is created.

CreateWorkGroup, createWorkGroup_name - The workgroup name.

Request Lenses

createWorkGroup_configuration :: Lens' CreateWorkGroup (Maybe WorkGroupConfiguration) Source #

Contains configuration information for creating an Athena SQL workgroup, which includes the location in Amazon S3 where query results are stored, the encryption configuration, if any, used for encrypting query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, the limit for the amount of bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.

createWorkGroup_tags :: Lens' CreateWorkGroup (Maybe [Tag]) Source #

A list of comma separated tags to add to the workgroup that is created.

Destructuring the Response

data CreateWorkGroupResponse Source #

See: newCreateWorkGroupResponse smart constructor.

Constructors

CreateWorkGroupResponse' 

Fields

Instances

Instances details
Generic CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Associated Types

type Rep CreateWorkGroupResponse :: Type -> Type #

Read CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Show CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

NFData CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

Methods

rnf :: CreateWorkGroupResponse -> () #

Eq CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

type Rep CreateWorkGroupResponse Source # 
Instance details

Defined in Amazonka.Athena.CreateWorkGroup

type Rep CreateWorkGroupResponse = D1 ('MetaData "CreateWorkGroupResponse" "Amazonka.Athena.CreateWorkGroup" "amazonka-athena-2.0-1BJA3HTvHJNEzwQRaEw59w" 'False) (C1 ('MetaCons "CreateWorkGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateWorkGroupResponse Source #

Create a value of CreateWorkGroupResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateWorkGroupResponse', createWorkGroupResponse_httpStatus - The response's http status code.

Response Lenses