AthenaClient.create_work_group
rboto-athena==0.4.0 · Service index · Types
Model summary (excerpt): Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup.
Install and imports
from rboto import AthenaClient
from collections.abc import Sequence
from rboto_athena.types import (
CreateWorkGroupOutput,
Tag,
WorkGroupConfiguration,
)
Signature
async def create_work_group(
*,
name: str,
configuration: WorkGroupConfiguration | None = None,
description: str | None = None,
tags: Sequence[Tag] | None = None,
) -> CreateWorkGroupOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The workgroup name. |
configuration |
No | Contains configuration information for creating an Athena SQL workgroup or Spark enabled Athena workgroup. Athena SQL workgroup configuration includes the location in Amazon S3 where query and calculation 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... |
description |
No | The workgroup description. |
tags |
No | A list of comma separated tags to add to the workgroup that is created. |
Output
CreateWorkGroupOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateWorkGroupOutput, Tag, WorkGroupConfiguration
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_athena.exceptions:
InternalServerError, InvalidRequestError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.