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