upgrade_domain
async
¶
upgrade_domain(
domain_name: DomainName,
target_version: VersionString,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = 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/async_open_search.py
6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 | |