Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.
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.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, CreateRestoreImageTaskCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, CreateRestoreImageTaskCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new CreateRestoreImageTaskCommand(input); const response = await client.send(command);
CreateRestoreImageTaskCommandInput for command's input shape.
input
CreateRestoreImageTaskCommandOutput for command's response shape.
response
config for EC2Client's config shape.
config
Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.
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.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, CreateRestoreImageTaskCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, CreateRestoreImageTaskCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new CreateRestoreImageTaskCommand(input); const response = await client.send(command);
CreateRestoreImageTaskCommandInput for command's
input
shape.CreateRestoreImageTaskCommandOutput for command's
response
shape.config for EC2Client's
config
shape.