aws_sdk_ec2/client/
bundle_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 [`BundleInstance`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_id(impl Into<String>)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance to bundle.</p> <p>Default: None</p><br>
7    ///   - [`storage(Storage)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::storage) / [`set_storage(Option<Storage>)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::set_storage):<br>required: **true**<br><p>The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.</p><br>
8    ///   - [`dry_run(bool)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::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>
9    /// - On success, responds with [`BundleInstanceOutput`](crate::operation::bundle_instance::BundleInstanceOutput) with field(s):
10    ///   - [`bundle_task(Option<BundleTask>)`](crate::operation::bundle_instance::BundleInstanceOutput::bundle_task): <p>Information about the bundle task.</p>
11    /// - On failure, responds with [`SdkError<BundleInstanceError>`](crate::operation::bundle_instance::BundleInstanceError)
12    pub fn bundle_instance(&self) -> crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder {
13        crate::operation::bundle_instance::builders::BundleInstanceFluentBuilder::new(self.handle.clone())
14    }
15}