Struct aws_sdk_proton::operation::cancel_service_instance_deployment::builders::CancelServiceInstanceDeploymentFluentBuilder
source · pub struct CancelServiceInstanceDeploymentFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CancelServiceInstanceDeployment.
Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS. For more information, see Update a service instance in the Proton User guide.
The following list includes potential cancellation scenarios.
-
If the cancellation attempt succeeds, the resulting deployment state is
CANCELLED. -
If the cancellation attempt fails, the resulting deployment state is
FAILED. -
If the current
UpdateServiceInstanceaction succeeds before the cancellation attempt starts, the resulting deployment state isSUCCEEDEDand the cancellation attempt has no effect.
Implementations§
source§impl CancelServiceInstanceDeploymentFluentBuilder
impl CancelServiceInstanceDeploymentFluentBuilder
sourcepub fn as_input(&self) -> &CancelServiceInstanceDeploymentInputBuilder
pub fn as_input(&self) -> &CancelServiceInstanceDeploymentInputBuilder
Access the CancelServiceInstanceDeployment as a reference.
sourcepub async fn send(
self
) -> Result<CancelServiceInstanceDeploymentOutput, SdkError<CancelServiceInstanceDeploymentError, HttpResponse>>
pub async fn send( self ) -> Result<CancelServiceInstanceDeploymentOutput, SdkError<CancelServiceInstanceDeploymentError, 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<CancelServiceInstanceDeploymentOutput, CancelServiceInstanceDeploymentError, Self>
pub fn customize( self ) -> CustomizableOperation<CancelServiceInstanceDeploymentOutput, CancelServiceInstanceDeploymentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn service_instance_name(self, input: impl Into<String>) -> Self
pub fn service_instance_name(self, input: impl Into<String>) -> Self
The name of the service instance with the deployment to cancel.
sourcepub fn set_service_instance_name(self, input: Option<String>) -> Self
pub fn set_service_instance_name(self, input: Option<String>) -> Self
The name of the service instance with the deployment to cancel.
sourcepub fn get_service_instance_name(&self) -> &Option<String>
pub fn get_service_instance_name(&self) -> &Option<String>
The name of the service instance with the deployment to cancel.
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 with the service instance deployment to cancel.
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 with the service instance deployment to cancel.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service with the service instance deployment to cancel.
Trait Implementations§
source§impl Clone for CancelServiceInstanceDeploymentFluentBuilder
impl Clone for CancelServiceInstanceDeploymentFluentBuilder
source§fn clone(&self) -> CancelServiceInstanceDeploymentFluentBuilder
fn clone(&self) -> CancelServiceInstanceDeploymentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more