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
6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 | |