# NOT RUN {
# This example modifies snapshot ``snap-1234567890abcdef0`` to remove the
# create volume permission for a user with the account ID
# ``123456789012``. If the command succeeds, no output is returned.
# }
# NOT RUN {
svc$modify_snapshot_attribute(
Attribute = "createVolumePermission",
OperationType = "remove",
SnapshotId = "snap-1234567890abcdef0",
UserIds = list(
"123456789012"
)
)
# }
# NOT RUN {
# This example makes the snapshot ``snap-1234567890abcdef0`` public.
# }
# NOT RUN {
svc$modify_snapshot_attribute(
Attribute = "createVolumePermission",
GroupNames = list(
"all"
),
OperationType = "add",
SnapshotId = "snap-1234567890abcdef0"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab