Struct aws_sdk_ec2::client::fluent_builders::ModifySnapshotAttribute[][src]

pub struct ModifySnapshotAttribute<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description

Fluent builder constructing a request to ModifySnapshotAttribute.

Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.

Implementations

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

The snapshot attribute to modify. Only volume creation permissions can be modified.

The snapshot attribute to modify. Only volume creation permissions can be modified.

A JSON representation of the snapshot attribute modification.

A JSON representation of the snapshot attribute modification.

Appends an item to GroupNames.

To override the contents of this collection use set_group_names.

The group to modify for the snapshot.

The group to modify for the snapshot.

The type of operation to perform to the attribute.

The type of operation to perform to the attribute.

The ID of the snapshot.

The ID of the snapshot.

Appends an item to UserIds.

To override the contents of this collection use set_user_ids.

The account ID to modify for the snapshot.

The account ID to modify for the snapshot.

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more