paws.compute (version 0.1.0)

ec2_reset_snapshot_attribute: Resets permission settings for the specified snapshot

Description

Resets permission settings for the specified snapshot.

Usage

ec2_reset_snapshot_attribute(Attribute, SnapshotId, DryRun)

Arguments

Attribute

[required] The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

SnapshotId

[required] The ID of the snapshot.

DryRun

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.

Request syntax

svc$reset_snapshot_attribute(
  Attribute = "productCodes"|"createVolumePermission",
  SnapshotId = "string",
  DryRun = TRUE|FALSE
)

Details

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

Examples

Run this code
# NOT RUN {
# This example resets the create volume permissions for snapshot
# ``snap-1234567890abcdef0``. If the command succeeds, no output is
# returned.
# }
# NOT RUN {
svc$reset_snapshot_attribute(
  Attribute = "createVolumePermission",
  SnapshotId = "snap-1234567890abcdef0"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab