create_work_group
async
¶
create_work_group(
name: WorkGroupName,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = 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.
Source code in docs_src/capo_athena/_services/async_athena.py
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 | |