aws_sdk_ec2/client/
copy_fpga_image.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 [`CopyFpgaImage`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::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>
7    ///   - [`source_fpga_image_id(impl Into<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::source_fpga_image_id) / [`set_source_fpga_image_id(Option<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::set_source_fpga_image_id):<br>required: **true**<br><p>The ID of the source AFI.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::set_description):<br>required: **false**<br><p>The description for the new AFI.</p><br>
9    ///   - [`name(impl Into<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::set_name):<br>required: **false**<br><p>The name for the new AFI. The default is the name of the source AFI.</p><br>
10    ///   - [`source_region(impl Into<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::source_region) / [`set_source_region(Option<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::set_source_region):<br>required: **true**<br><p>The Region that contains the source AFI.</p><br>
11    ///   - [`client_token(impl Into<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p><br>
12    /// - On success, responds with [`CopyFpgaImageOutput`](crate::operation::copy_fpga_image::CopyFpgaImageOutput) with field(s):
13    ///   - [`fpga_image_id(Option<String>)`](crate::operation::copy_fpga_image::CopyFpgaImageOutput::fpga_image_id): <p>The ID of the new AFI.</p>
14    /// - On failure, responds with [`SdkError<CopyFpgaImageError>`](crate::operation::copy_fpga_image::CopyFpgaImageError)
15    pub fn copy_fpga_image(&self) -> crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder {
16        crate::operation::copy_fpga_image::builders::CopyFpgaImageFluentBuilder::new(self.handle.clone())
17    }
18}