aws_sdk_imagebuilder/client/cancel_lifecycle_execution.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 [`CancelLifecycleExecution`](crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`lifecycle_execution_id(impl Into<String>)`](crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder::lifecycle_execution_id) / [`set_lifecycle_execution_id(Option<String>)`](crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder::set_lifecycle_execution_id):<br>required: **true**<br><p>Identifies the specific runtime instance of the image lifecycle to cancel.</p><br>
7 /// - [`client_token(impl Into<String>)`](crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder::set_client_token):<br>required: **true**<br><p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p><br>
8 /// - On success, responds with [`CancelLifecycleExecutionOutput`](crate::operation::cancel_lifecycle_execution::CancelLifecycleExecutionOutput) with field(s):
9 /// - [`lifecycle_execution_id(Option<String>)`](crate::operation::cancel_lifecycle_execution::CancelLifecycleExecutionOutput::lifecycle_execution_id): <p>The unique identifier for the image lifecycle runtime instance that was canceled.</p>
10 /// - On failure, responds with [`SdkError<CancelLifecycleExecutionError>`](crate::operation::cancel_lifecycle_execution::CancelLifecycleExecutionError)
11 pub fn cancel_lifecycle_execution(&self) -> crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder {
12 crate::operation::cancel_lifecycle_execution::builders::CancelLifecycleExecutionFluentBuilder::new(self.handle.clone())
13 }
14}