create_partition_index
async
¶
create_partition_index(
database_name: NameString,
table_name: NameString,
partition_index: PartitionIndex,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> CreatePartitionIndexResponse
Creates a specified partition index in an existing table.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The catalog ID where the table resides.
-
database_name(NameString) –Specifies the name of a database in which you want to create a partition index.
-
table_name(NameString) –Specifies the name of a table in which you want to create a partition index.
-
partition_index(PartitionIndex) –Specifies a
PartitionIndexstructure to create a partition index in an existing table.
Raises:
-
AlreadyExistsException–A resource to be created or added already exists.
-
EntityNotFoundException–A specified entity does not exist
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 | |