aws_sdk_ec2/client/reset_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 [`ResetSnapshotAttribute`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`attribute(SnapshotAttributeName)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::attribute) / [`set_attribute(Option<SnapshotAttributeName>)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::set_attribute):<br>required: **true**<br><p>The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.</p><br>
7 /// - [`snapshot_id(impl Into<String>)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::snapshot_id) / [`set_snapshot_id(Option<String>)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::set_snapshot_id):<br>required: **true**<br><p>The ID of the snapshot.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::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 [`ResetSnapshotAttributeOutput`](crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeOutput)
10 /// - On failure, responds with [`SdkError<ResetSnapshotAttributeError>`](crate::operation::reset_snapshot_attribute::ResetSnapshotAttributeError)
11 pub fn reset_snapshot_attribute(&self) -> crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder {
12 crate::operation::reset_snapshot_attribute::builders::ResetSnapshotAttributeFluentBuilder::new(self.handle.clone())
13 }
14}