resetSnapshotAttribute
inline suspend fun Ec2Client.resetSnapshotAttribute(crossinline block: ResetSnapshotAttributeRequest.Builder.() -> Unit): ResetSnapshotAttributeResponse
Resets permission settings for the specified snapshot.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.
Samples
import aws.sdk.kotlin.services.ec2.model.SnapshotAttributeName
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
}