update_package
async
¶
update_package(
package_id: PackageID,
package_source: PackageSource,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
package_description: Optional[PackageDescription] = None,
commit_message: Optional[CommitMessage] = None,
package_configuration: Optional[PackageConfiguration] = None,
package_encryption_options: Optional[PackageEncryptionOptions] = None,
) -> UpdatePackageResponse
Updates a package for use with Amazon OpenSearch Service domains. For more information, see Custom packages for Amazon OpenSearch Service.
Parameters:
-
package_id(PackageID) –The unique identifier for the package.
-
package_source(PackageSource) –Amazon S3 bucket and key for the package.
-
package_description(Optional[PackageDescription], default:None) –A new description of the package.
-
commit_message(Optional[CommitMessage], default:None) –Commit message for the updated file, which is shown as part of
GetPackageVersionHistoryResponse. -
package_configuration(Optional[PackageConfiguration], default:None) –The updated configuration details for a package.
-
package_encryption_options(Optional[PackageEncryptionOptions], default:None) –Encryption options for a package.
Raises:
-
AccessDeniedException–An error occurred because you don't have permissions to access the resource.
-
BaseException–An error occurred while processing the request.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/async_open_search.py
6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 | |