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
6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 | |