create_partition
¶
create_partition(
database_name: NameString,
table_name: NameString,
partition_input: PartitionInput,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> CreatePartitionResponse
Creates a new partition.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The Amazon Web Services account ID of the catalog in which the partition is to be created.
-
database_name(NameString) –The name of the metadata database in which the partition is to be created.
-
table_name(NameString) –The name of the metadata table in which the partition is to be created.
-
partition_input(PartitionInput) –A
PartitionInputstructure defining the partition to be created.
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/glue.py
4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 | |