if (FALSE) {
# This example makes the specified AMI public.
svc$modify_image_attribute(
ImageId = "ami-5731123e",
LaunchPermission = list(
Add = list(
list(
Group = "all"
)
)
)
)
# This example grants launch permissions for the specified AMI to the
# specified AWS account.
svc$modify_image_attribute(
ImageId = "ami-5731123e",
LaunchPermission = list(
Add = list(
list(
UserId = "123456789012"
)
)
)
)
}
Run the code above in your browser using DataLab