aws_sdk_ec2/client/
get_image_ancestry.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 [`GetImageAncestry`](crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`image_id(impl Into<String>)`](crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder::image_id) / [`set_image_id(Option<String>)`](crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder::set_image_id):<br>required: **true**<br><p>The ID of the AMI whose ancestry you want to trace.</p><br>
7    ///   - [`dry_run(bool)`](crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder::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 [`GetImageAncestryOutput`](crate::operation::get_image_ancestry::GetImageAncestryOutput) with field(s):
9    ///   - [`image_ancestry_entries(Option<Vec::<ImageAncestryEntry>>)`](crate::operation::get_image_ancestry::GetImageAncestryOutput::image_ancestry_entries): <p>A list of entries in the AMI ancestry chain, from the specified AMI to the root AMI.</p>
10    /// - On failure, responds with [`SdkError<GetImageAncestryError>`](crate::operation::get_image_ancestry::GetImageAncestryError)
11    pub fn get_image_ancestry(&self) -> crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder {
12        crate::operation::get_image_ancestry::builders::GetImageAncestryFluentBuilder::new(self.handle.clone())
13    }
14}