aws_sdk_ec2/client/
describe_fpga_image_attribute.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 [`DescribeFpgaImageAttribute`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::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    ///   - [`fpga_image_id(impl Into<String>)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::fpga_image_id) / [`set_fpga_image_id(Option<String>)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::set_fpga_image_id):<br>required: **true**<br><p>The ID of the AFI.</p><br>
8    ///   - [`attribute(FpgaImageAttributeName)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::attribute) / [`set_attribute(Option<FpgaImageAttributeName>)`](crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::set_attribute):<br>required: **true**<br><p>The AFI attribute.</p><br>
9    /// - On success, responds with [`DescribeFpgaImageAttributeOutput`](crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeOutput) with field(s):
10    ///   - [`fpga_image_attribute(Option<FpgaImageAttribute>)`](crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeOutput::fpga_image_attribute): <p>Information about the attribute.</p>
11    /// - On failure, responds with [`SdkError<DescribeFpgaImageAttributeError>`](crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError)
12    pub fn describe_fpga_image_attribute(
13        &self,
14    ) -> crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder {
15        crate::operation::describe_fpga_image_attribute::builders::DescribeFpgaImageAttributeFluentBuilder::new(self.handle.clone())
16    }
17}