update_service_instance
async
¶
update_service_instance(
name: ResourceName,
service_name: ResourceName,
deployment_type: DeploymentUpdateType,
*,
config_overrides: Optional[AsyncProtonClientConfig] = None,
spec: Optional[SpecContents] = None,
template_major_version: Optional[TemplateVersionPart] = None,
template_minor_version: Optional[TemplateVersionPart] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateServiceInstanceOutput
Update a service instance.
There are a few modes for updating a service instance. The deploymentType field defines the mode.
You can't update a service instance while its deployment status, or the deployment status of a component attached to it, is IN_PROGRESS.
For more information about components, see Proton components in the Proton User Guide.
Parameters:
-
name(ResourceName) –The name of the service instance to update.
-
service_name(ResourceName) –The name of the service that the service instance belongs to.
-
deployment_type(DeploymentUpdateType) –The deployment type. It defines the mode for updating a service instance, as follows:
-
NONEIn this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSIONIn this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
-
MINOR_VERSIONIn this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSIONIn this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
-
-
spec(Optional[SpecContents], default:None) –The formatted specification that defines the service instance update.
-
template_major_version(Optional[TemplateVersionPart], default:None) –The major version of the service template to update.
-
template_minor_version(Optional[TemplateVersionPart], default:None) –The minor version of the service template to update.
-
client_token(Optional[ClientToken], default:None) –The client token of the service instance to update.
Raises:
-
AccessDeniedException–There isn't sufficient access for performing this action.
-
ConflictException–The request couldn't be made due to a conflicting operation or resource.
-
InternalServerException–The request failed to register with the service.
-
ResourceNotFoundException–The requested resource wasn't found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input is invalid or an out-of-range value was supplied for the input parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_proton/_services/async_proton.py
4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 | |