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,
deployment_strategy_options: Optional[DeploymentStrategyOverrideOptions] = 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. -
deployment_strategy_options(Optional[DeploymentStrategyOverrideOptions], default:None) –Overrides the deployment strategy for this upgrade. To run a cloned blue/green upgrade, set
DeploymentStrategytoClonedBlueGreen.
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
6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 | |