create_work_group
¶
create_work_group(
name: WorkGroupName,
*,
config_overrides: Optional[AthenaClientConfig] = None,
configuration: Optional[WorkGroupConfiguration] = None,
description: Optional[WorkGroupDescriptionString] = None,
tags: Optional[TagList] = None,
) -> CreateWorkGroupOutput
Creates a workgroup with the specified name. A workgroup can be an Apache Spark enabled workgroup or an Athena SQL workgroup.
Parameters:
-
name(WorkGroupName) –The workgroup name.
-
configuration(Optional[WorkGroupConfiguration], default:None) –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 bytes scanned (cutoff) per query, if it is specified, and whether workgroup's settings (specified with
EnforceWorkGroupConfiguration) in theWorkGroupConfigurationoverride client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. -
description(Optional[WorkGroupDescriptionString], default:None) –The workgroup description.
-
tags(Optional[TagList], default:None) –A list of comma separated tags to add to the workgroup that is created.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
UnknownServiceError–The service returned an error code this client does not model.