Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeKeyPairsCommand

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

example

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

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

DescribeKeyPairsCommandInput for command's input shape.

see

DescribeKeyPairsCommandOutput for command's response shape.

see

config for command's input shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DescribeKeyPairsCommandInput

Readonly middlewareStack