describeSnapshotAttribute

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.

Samples

import aws.sdk.kotlin.services.ec2.model.SnapshotAttributeName

fun main() { 
   //sampleStart 
   // This example describes the createVolumePermission attribute on a snapshot with the snapshot ID of
// snap 066877671789bd71b
val resp = ec2Client.describeSnapshotAttribute {
    snapshotId = "snap-066877671789bd71b"
    attribute = SnapshotAttributeName.fromValue("createVolumePermission")
} 
   //sampleEnd
}