Reset Image Attribute
ec2_reset_image_attribute | R Documentation |
Resets an attribute of an AMI to its default value¶
Description¶
Resets an attribute of an AMI to its default value.
Usage¶
ec2_reset_image_attribute(Attribute, ImageId, DryRun)
Arguments¶
Attribute |
[required] The attribute to reset (currently you can only reset the launch permission attribute). |
ImageId |
[required] The ID of the AMI. |
DryRun |
Checks whether you have the required permissions for the action,
without actually making the request, and provides an error response. If
you have the required permissions, the error response is
|
Value¶
An empty list.
Request syntax¶
svc$reset_image_attribute(
Attribute = "launchPermission",
ImageId = "string",
DryRun = TRUE|FALSE
)
Examples¶
## Not run:
# This example resets the launchPermission attribute for the specified
# AMI. By default, AMIs are private.
svc$reset_image_attribute(
Attribute = "launchPermission",
ImageId = "ami-5731123e"
)
## End(Not run)