update_package
async
¶
update_package(
package_id: PackageID,
package_source: PackageSource,
*,
config_overrides: Optional[AsyncElasticsearchServiceClientConfig] = None,
package_description: Optional[PackageDescription] = None,
commit_message: Optional[CommitMessage] = None,
) -> UpdatePackageResponse
Updates a package for use with Amazon ES domains.
Parameters:
-
package_id(PackageID) –Unique identifier for the package.
-
package_description(Optional[PackageDescription], default:None) –New description of the package.
-
commit_message(Optional[CommitMessage], default:None) –An info message for the new version which will be shown as part of
GetPackageVersionHistoryResponse.
Raises:
-
AccessDeniedException–An error occurred because user does not have permissions to access the resource. Returns HTTP status code 403.
-
BaseException–An error occurred while processing the request.
-
InternalException–The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.
-
LimitExceededException–An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.
-
ValidationException–An exception for missing / invalid input fields. Gives http status code of 400.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticsearch_service/_services/async_elasticsearch_service.py
3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 | |