update_package
¶
update_package(
package_id: PackageID,
package_source: PackageSource,
*,
config_overrides: Optional[OpenSearchClientConfig] = 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/open_search.py
6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 | |