ec2_create_restore_image_task: Starts a task that restores an AMI from an Amazon S3 object...

View source: R/ec2_operations.R

ec2_create_restore_image_taskR Documentation

Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask

Description

Starts a task that restores an AMI from an Amazon S3 object that was previously created by using create_store_image_task.

See https://www.paws-r-sdk.com/docs/ec2_create_restore_image_task/ for full documentation.

Usage

ec2_create_restore_image_task(
  Bucket,
  ObjectKey,
  Name = NULL,
  TagSpecifications = NULL,
  DryRun = NULL
)

Arguments

Bucket

[required] The name of the Amazon S3 bucket that contains the stored AMI object.

ObjectKey

[required] The name of the stored AMI object in the bucket.

Name

The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.

TagSpecifications

The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.

  • To tag the AMI, the value for ResourceType must be image.

  • To tag the snapshots, the value for ResourceType must be snapshot. The same tag is applied to all of the snapshots that are created.

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.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.