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
impl<C, M, R> ModifySnapshotAttribute<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ModifySnapshotAttribute<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ModifySnapshotAttributeOutput, SdkError<ModifySnapshotAttributeError>> where
R::Policy: SmithyRetryPolicy<ModifySnapshotAttributeInputOperationOutputAlias, ModifySnapshotAttributeOutput, ModifySnapshotAttributeError, ModifySnapshotAttributeInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ModifySnapshotAttributeOutput, SdkError<ModifySnapshotAttributeError>> where
R::Policy: SmithyRetryPolicy<ModifySnapshotAttributeInputOperationOutputAlias, ModifySnapshotAttributeOutput, ModifySnapshotAttributeError, ModifySnapshotAttributeInputOperationRetryAlias>,
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.
pub fn set_create_volume_permission(
self,
input: Option<CreateVolumePermissionModifications>
) -> Self
pub fn set_create_volume_permission(
self,
input: Option<CreateVolumePermissionModifications>
) -> Self
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ModifySnapshotAttribute<C, M, R>
impl<C, M, R> Send for ModifySnapshotAttribute<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ModifySnapshotAttribute<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ModifySnapshotAttribute<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ModifySnapshotAttribute<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
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