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.
ec2_create_restore_image_task(
Bucket,
ObjectKey,
Name = NULL,
TagSpecifications = NULL,
DryRun = NULL
)
[required] The name of the Amazon S3 bucket that contains the stored AMI object.
[required] The name of the stored AMI object in the bucket.
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.
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.
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
.