resetSnapshotAttribute

Resets permission settings for the specified snapshot.

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

Samples


fun main() { 
   //sampleStart 
   // This example resets the create volume permissions for snapshot snap 1234567890abcdef0 If the command
// succeeds, no output is returned.
val resp = ec2Client.resetSnapshotAttribute {
    snapshotId = "snap-1234567890abcdef0"
    attribute = SnapshotAttributeName.fromValue("createVolumePermission")
} 
   //sampleEnd
}