Skip to content

Macie2 module#

Index > Macie2

Auto-generated documentation for Macie2 type annotations stubs module types-aiobotocore-macie2.

How to install#

From PyPI with pip#

Install types-aiobotocore for Macie2 service.

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


# 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[macie2]'


# standalone installation
python -m pip install types-aiobotocore-macie2

How to uninstall#

python -m pip uninstall -y types-aiobotocore-macie2

Usage#

Code samples can be found in Examples.

Macie2Client#

Type annotations and code completion for session.create_client("macie2") as Macie2Client boto3 documentation

# Macie2Client usage example

from aiobotocore.session import get_session

from types_aiobotocore_macie2.client import Macie2Client


session = get_session()
async with session.create_client("macie2") as client:
    client: Macie2Client

Paginators#

Type annotations and code completion for paginators from session.create_client("macie2").get_paginator("...").

# DescribeBucketsPaginator usage example

from types_aiobotocore_macie2.paginator import DescribeBucketsPaginator

def get_describe_buckets_paginator() -> DescribeBucketsPaginator:
    return client.get_paginator("describe_buckets"))

Waiters#

Type annotations and code completion for waiters from session.create_client("macie2").get_waiter("...").

# FindingRevealedWaiter usage example

from types_aiobotocore_macie2.waiter import FindingRevealedWaiter

def get_finding_revealed_waiter() -> FindingRevealedWaiter:
    return Session().client("macie2").get_waiter("finding_revealed")

Literals#

Type annotations for literals used in methods and schema.

# AdminStatusType usage example

from types_aiobotocore_macie2.literals import AdminStatusType

def get_value() -> AdminStatusType:
    return "DISABLING_IN_PROGRESS"

Type definitions#

Type annotations for type definitions used in methods and schema.