Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRestoreImageTaskCommand

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.

example

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);
see

CreateRestoreImageTaskCommandInput for command's input shape.

see

CreateRestoreImageTaskCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateRestoreImageTaskCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions