Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListInstancesCommand

Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.

example

Use a bare-bones client and the command you need to make an API call.

import { EMRClient, ListInstancesCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, ListInstancesCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const command = new ListInstancesCommand(input);
const response = await client.send(command);
see

ListInstancesCommandInput for command's input shape.

see

ListInstancesCommandOutput for command's response shape.

see

config for EMRClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ListInstancesCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListInstancesCommandInput, ListInstancesCommandOutput>