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,
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/async_open_search.py
6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 | |