Skip to content

/AWS1/CL_EC2=>CREATESTOREIMAGETASK()

About CreateStoreImageTask

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.

Method Signature

IMPORTING

Required arguments:

IV_IMAGEID TYPE /AWS1/EC2IMAGEID /AWS1/EC2IMAGEID

The ID of the AMI.

IV_BUCKET TYPE /AWS1/EC2STRING /AWS1/EC2STRING

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.

Optional arguments:

IT_S3OBJECTTAGS TYPE /AWS1/CL_EC2S3OBJECTTAG=>TT_S3OBJECTTAGLIST TT_S3OBJECTTAGLIST

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

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CRESTOREIMAGETSKRS /AWS1/CL_EC2CRESTOREIMAGETSKRS