Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateWorkGroup = CreateWorkGroup' {
- configuration :: Maybe WorkGroupConfiguration
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- newCreateWorkGroup :: Text -> CreateWorkGroup
- createWorkGroup_configuration :: Lens' CreateWorkGroup (Maybe WorkGroupConfiguration)
- createWorkGroup_description :: Lens' CreateWorkGroup (Maybe Text)
- createWorkGroup_tags :: Lens' CreateWorkGroup (Maybe [Tag])
- createWorkGroup_name :: Lens' CreateWorkGroup Text
- data CreateWorkGroupResponse = CreateWorkGroupResponse' {
- httpStatus :: Int
- newCreateWorkGroupResponse :: Int -> CreateWorkGroupResponse
- createWorkGroupResponse_httpStatus :: Lens' CreateWorkGroupResponse Int
Creating a Request
data CreateWorkGroup Source #
See: newCreateWorkGroup
smart constructor.
CreateWorkGroup' | |
|
Instances
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_description :: Lens' CreateWorkGroup (Maybe Text) Source #
The workgroup description.
createWorkGroup_tags :: Lens' CreateWorkGroup (Maybe [Tag]) Source #
A list of comma separated tags to add to the workgroup that is created.
createWorkGroup_name :: Lens' CreateWorkGroup Text Source #
The workgroup name.
Destructuring the Response
data CreateWorkGroupResponse Source #
See: newCreateWorkGroupResponse
smart constructor.
CreateWorkGroupResponse' | |
|
Instances
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
createWorkGroupResponse_httpStatus :: Lens' CreateWorkGroupResponse Int Source #
The response's http status code.