aws_sdk_ec2/client/
describe_snapshot_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 [`DescribeSnapshotAttribute`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`attribute(SnapshotAttributeName)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::attribute) / [`set_attribute(Option<SnapshotAttributeName>)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::set_attribute):<br>required: **true**<br><p>The snapshot attribute you would like to view.</p><br>
7    ///   - [`snapshot_id(impl Into<String>)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::snapshot_id) / [`set_snapshot_id(Option<String>)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::set_snapshot_id):<br>required: **true**<br><p>The ID of the EBS snapshot.</p><br>
8    ///   - [`dry_run(bool)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::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 [`DescribeSnapshotAttributeOutput`](crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput) with field(s):
10    ///   - [`product_codes(Option<Vec::<ProductCode>>)`](crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput::product_codes): <p>The product codes.</p>
11    ///   - [`snapshot_id(Option<String>)`](crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput::snapshot_id): <p>The ID of the EBS snapshot.</p>
12    ///   - [`create_volume_permissions(Option<Vec::<CreateVolumePermission>>)`](crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput::create_volume_permissions): <p>The users and groups that have the permissions for creating volumes from the snapshot.</p>
13    /// - On failure, responds with [`SdkError<DescribeSnapshotAttributeError>`](crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError)
14    pub fn describe_snapshot_attribute(&self) -> crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder {
15        crate::operation::describe_snapshot_attribute::builders::DescribeSnapshotAttributeFluentBuilder::new(self.handle.clone())
16    }
17}