Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListAccountsCommand

Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the AWS SSO User Guide. This operation returns a paginated response.

example

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

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

ListAccountsCommandInput for command's input shape.

see

ListAccountsCommandOutput for command's response shape.

see

config for SSOClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListAccountsCommandInput, ListAccountsCommandOutput>