paws.compute (version 0.1.0)

ec2_reset_image_attribute: 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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

Request syntax

svc$reset_image_attribute(
  Attribute = "launchPermission",
  ImageId = "string",
  DryRun = TRUE|FALSE
)

Details

The productCodes attribute can't be reset.

Examples

Run this code
# NOT RUN {
# This example resets the launchPermission attribute for the specified
# AMI. By default, AMIs are private.
# }
# NOT RUN {
svc$reset_image_attribute(
  Attribute = "launchPermission",
  ImageId = "ami-5731123e"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace