aws_sdk_ec2/client/
cancel_bundle_task.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 [`CancelBundleTask`](crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`bundle_id(impl Into<String>)`](crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder::bundle_id) / [`set_bundle_id(Option<String>)`](crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder::set_bundle_id):<br>required: **true**<br><p>The ID of the bundle task.</p><br>
7    ///   - [`dry_run(bool)`](crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
8    /// - On success, responds with [`CancelBundleTaskOutput`](crate::operation::cancel_bundle_task::CancelBundleTaskOutput) with field(s):
9    ///   - [`bundle_task(Option<BundleTask>)`](crate::operation::cancel_bundle_task::CancelBundleTaskOutput::bundle_task): <p>Information about the bundle task.</p>
10    /// - On failure, responds with [`SdkError<CancelBundleTaskError>`](crate::operation::cancel_bundle_task::CancelBundleTaskError)
11    pub fn cancel_bundle_task(&self) -> crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder {
12        crate::operation::cancel_bundle_task::builders::CancelBundleTaskFluentBuilder::new(self.handle.clone())
13    }
14}