Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListGroupsCommand

Returns a list of existing resource groups in your account.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:ListGroups

example

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

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

ListGroupsCommandInput for command's input shape.

see

ListGroupsCommandOutput for command's response shape.

see

config for ResourceGroupsClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ListGroupsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListGroupsCommandInput, ListGroupsCommandOutput>