Skip to content

Create Store Image Task

ec2_create_store_image_task R Documentation

Stores an AMI as a single object in an Amazon S3 bucket

Description

Stores an AMI as a single object in an Amazon S3 bucket.

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

Usage

ec2_create_store_image_task(ImageId, Bucket, S3ObjectTags, DryRun)

Arguments

ImageId

[required] The ID of the AMI.

Bucket

[required] The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.

S3ObjectTags

The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.

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.

Value

A list with the following syntax:

list(
  ObjectKey = "string"
)

Request syntax

svc$create_store_image_task(
  ImageId = "string",
  Bucket = "string",
  S3ObjectTags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  DryRun = TRUE|FALSE
)