Struct aws_sdk_proton::operation::update_service_instance::builders::UpdateServiceInstanceFluentBuilder
source · pub struct UpdateServiceInstanceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateServiceInstance
.
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.
Implementations§
source§impl UpdateServiceInstanceFluentBuilder
impl UpdateServiceInstanceFluentBuilder
sourcepub fn as_input(&self) -> &UpdateServiceInstanceInputBuilder
pub fn as_input(&self) -> &UpdateServiceInstanceInputBuilder
Access the UpdateServiceInstance as a reference.
sourcepub async fn send(
self
) -> Result<UpdateServiceInstanceOutput, SdkError<UpdateServiceInstanceError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateServiceInstanceOutput, SdkError<UpdateServiceInstanceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateServiceInstanceOutput, UpdateServiceInstanceError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateServiceInstanceOutput, UpdateServiceInstanceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the service instance to update.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the service instance to update.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service that the service instance belongs to.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service that the service instance belongs to.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service that the service instance belongs to.
sourcepub fn deployment_type(self, input: DeploymentUpdateType) -> Self
pub fn deployment_type(self, input: DeploymentUpdateType) -> Self
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In 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_VERSION
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.
-
MAJOR_VERSION
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.
sourcepub fn set_deployment_type(self, input: Option<DeploymentUpdateType>) -> Self
pub fn set_deployment_type(self, input: Option<DeploymentUpdateType>) -> Self
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In 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_VERSION
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.
-
MAJOR_VERSION
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.
sourcepub fn get_deployment_type(&self) -> &Option<DeploymentUpdateType>
pub fn get_deployment_type(&self) -> &Option<DeploymentUpdateType>
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In 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_VERSION
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.
-
MAJOR_VERSION
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.
sourcepub fn spec(self, input: impl Into<String>) -> Self
pub fn spec(self, input: impl Into<String>) -> Self
The formatted specification that defines the service instance update.
sourcepub fn set_spec(self, input: Option<String>) -> Self
pub fn set_spec(self, input: Option<String>) -> Self
The formatted specification that defines the service instance update.
sourcepub fn get_spec(&self) -> &Option<String>
pub fn get_spec(&self) -> &Option<String>
The formatted specification that defines the service instance update.
sourcepub fn template_major_version(self, input: impl Into<String>) -> Self
pub fn template_major_version(self, input: impl Into<String>) -> Self
The major version of the service template to update.
sourcepub fn set_template_major_version(self, input: Option<String>) -> Self
pub fn set_template_major_version(self, input: Option<String>) -> Self
The major version of the service template to update.
sourcepub fn get_template_major_version(&self) -> &Option<String>
pub fn get_template_major_version(&self) -> &Option<String>
The major version of the service template to update.
sourcepub fn template_minor_version(self, input: impl Into<String>) -> Self
pub fn template_minor_version(self, input: impl Into<String>) -> Self
The minor version of the service template to update.
sourcepub fn set_template_minor_version(self, input: Option<String>) -> Self
pub fn set_template_minor_version(self, input: Option<String>) -> Self
The minor version of the service template to update.
sourcepub fn get_template_minor_version(&self) -> &Option<String>
pub fn get_template_minor_version(&self) -> &Option<String>
The minor version of the service template to update.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The client token of the service instance to update.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The client token of the service instance to update.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The client token of the service instance to update.
Trait Implementations§
source§impl Clone for UpdateServiceInstanceFluentBuilder
impl Clone for UpdateServiceInstanceFluentBuilder
source§fn clone(&self) -> UpdateServiceInstanceFluentBuilder
fn clone(&self) -> UpdateServiceInstanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more