upgrade_domain
¶
upgrade_domain(
domain_name: DomainName,
target_version: VersionString,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
perform_check_only: Optional[Boolean] = None,
advanced_options: Optional[AdvancedOptions] = None,
) -> UpgradeDomainResponse
Allows you to either upgrade your Amazon OpenSearch Service domain or perform an upgrade eligibility check to a compatible version of OpenSearch or Elasticsearch.
Parameters:
-
domain_name(DomainName) –Name of the OpenSearch Service domain that you want to upgrade.
-
target_version(VersionString) –OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or Elasticsearch_X.Y.
-
perform_check_only(Optional[Boolean], default:None) –When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the upgrade.
-
advanced_options(Optional[AdvancedOptions], default:None) –Only supports the
override_main_response_versionparameter and not other advanced options. You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.
Raises:
-
BaseException–An error occurred while processing the request.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists.
-
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
6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 | |