aws_sdk_proton/client/update_service_instance.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateServiceInstance`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the service instance to update.</p><br>
7 /// - [`service_name(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::service_name) / [`set_service_name(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_service_name):<br>required: **true**<br><p>The name of the service that the service instance belongs to.</p><br>
8 /// - [`deployment_type(DeploymentUpdateType)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::deployment_type) / [`set_deployment_type(Option<DeploymentUpdateType>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_deployment_type):<br>required: **true**<br><p>The deployment type. It defines the mode for updating a service instance, as follows:</p> <dl> <dt></dt> <dd> <p><code>NONE</code></p> <p>In this mode, a deployment <i>doesn't</i> occur. Only the requested metadata parameters are updated.</p> </dd> <dt></dt> <dd> <p><code>CURRENT_VERSION</code></p> <p>In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. <i>Don’t</i> include major or minor version parameters when you use this deployment type.</p> </dd> <dt></dt> <dd> <p><code>MINOR_VERSION</code></p> <p>In 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.</p> </dd> <dt></dt> <dd> <p><code>MAJOR_VERSION</code></p> <p>In 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.</p> </dd> </dl><br>
9 /// - [`spec(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::spec) / [`set_spec(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_spec):<br>required: **false**<br><p>The formatted specification that defines the service instance update.</p><br>
10 /// - [`template_major_version(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::template_major_version) / [`set_template_major_version(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_template_major_version):<br>required: **false**<br><p>The major version of the service template to update.</p><br>
11 /// - [`template_minor_version(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::template_minor_version) / [`set_template_minor_version(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_template_minor_version):<br>required: **false**<br><p>The minor version of the service template to update.</p><br>
12 /// - [`client_token(impl Into<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::set_client_token):<br>required: **false**<br><p>The client token of the service instance to update.</p><br>
13 /// - On success, responds with [`UpdateServiceInstanceOutput`](crate::operation::update_service_instance::UpdateServiceInstanceOutput) with field(s):
14 /// - [`service_instance(Option<ServiceInstance>)`](crate::operation::update_service_instance::UpdateServiceInstanceOutput::service_instance): <p>The service instance summary data that's returned by Proton.</p>
15 /// - On failure, responds with [`SdkError<UpdateServiceInstanceError>`](crate::operation::update_service_instance::UpdateServiceInstanceError)
16 pub fn update_service_instance(&self) -> crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder {
17 crate::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder::new(self.handle.clone())
18 }
19}