paws.management (version 0.1.0)

resourcegroups_list_groups: Returns a list of existing resource groups in your account

Description

Returns a list of existing resource groups in your account.

Usage

resourcegroups_list_groups(Filters, MaxResults, NextToken)

Arguments

Filters

Filters, formatted as GroupFilter objects, that you want to apply to a ListGroups operation.

  • resource-type - Filter groups by resource type. Specify up to five resource types in the format AWS::ServiceCode::ResourceType. For example, AWS::EC2::Instance, or AWS::S3::Bucket.

MaxResults

The maximum number of resource group results that are returned by ListGroups in paginated output. By default, this number is 50.

NextToken

The NextToken value that is returned in a paginated ListGroups request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.

Request syntax

svc$list_groups(
  Filters = list(
    list(
      Name = "resource-type",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string"
)