Skip to content

ResourceGroups module#

Index > ResourceGroups

Auto-generated documentation for ResourceGroups type annotations stubs module types-aiobotocore-resource-groups.

How to install#

You can generate type annotations for aiobotocore package locally with mypy-boto3-builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'aiobotocore==2.24.1' mypy-boto3-builder
  2. Select aiobotocore AWS SDK.
  3. Add ResourceGroups service.
  4. Use provided commands to install generated packages.

From PyPI with pip#

Install types-aiobotocore for ResourceGroups service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[resource-groups]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[resource-groups]'

# standalone installation
python -m pip install types-aiobotocore-resource-groups

How to uninstall#

python -m pip uninstall -y types-aiobotocore-resource-groups

Usage#

Code samples can be found in Examples.

ResourceGroupsClient#

Type annotations and code completion for session.create_client("resource-groups") as ResourceGroupsClient boto3 documentation

# ResourceGroupsClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_resource_groups.client import ResourceGroupsClient


session = get_session()
async with session.create_client("resource-groups") as client:
    client: ResourceGroupsClient

Paginators#

Type annotations and code completion for paginators from session.create_client("resource-groups").get_paginator("...").

# ListGroupResourcesPaginator usage example

from types_aiobotocore_resource_groups.paginator import ListGroupResourcesPaginator

def get_list_group_resources_paginator() -> ListGroupResourcesPaginator:
    return client.get_paginator("list_group_resources"))

Literals#

Type annotations for literals used in methods and schema.

# GroupConfigurationStatusType usage example

from types_aiobotocore_resource_groups.literals import GroupConfigurationStatusType

def get_value() -> GroupConfigurationStatusType:
    return "UPDATE_COMPLETE"

Type definitions#

Type annotations for type definitions used in methods and schema.