update_service_instance
¶
update_service_instance(
name: ResourceName,
service_name: ResourceName,
deployment_type: DeploymentUpdateType,
*,
config_overrides: Optional[ProtonClientConfig] = 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/proton.py
4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 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 | |