Learn R Programming

paws.compute (version 0.1.12)

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.

The productCodes attribute can't be reset.

Usage

ec2_reset_image_attribute(Attribute, ImageId, DryRun)

Value

An empty list.

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
)

Examples

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

Run the code above in your browser using DataLab