Skip to content

Macie module#

Index > Macie

Auto-generated documentation for Macie type annotations stubs module mypy-boto3-macie.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Macie.

From PyPI with pip#

Install boto3-stubs for Macie service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[macie]'


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


# standalone installation
python -m pip install mypy-boto3-macie

How to uninstall#

python -m pip uninstall -y mypy-boto3-macie

Usage#

Code samples can be found in Examples.

MacieClient#

Type annotations and code completion for boto3.client("macie") as MacieClient boto3 documentation

# MacieClient usage example

from boto3.session import Session

from mypy_boto3_macie.client import MacieClient

def get_client() -> MacieClient:
    return Session().client("macie")

Paginators#

Type annotations and code completion for paginators from boto3.client("macie").get_paginator("...").

# ListMemberAccountsPaginator usage example

from boto3.session import Session

from mypy_boto3_macie.paginator import ListMemberAccountsPaginator

def get_list_member_accounts_paginator() -> ListMemberAccountsPaginator:
    return Session().client("macie").get_paginator("list_member_accounts"))

Literals#

Type annotations for literals used in methods and schemas.

# ListMemberAccountsPaginatorName usage example

from mypy_boto3_macie.literals import ListMemberAccountsPaginatorName

def get_value() -> ListMemberAccountsPaginatorName:
    return "list_member_accounts"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AssociateMemberAccountRequestRequestTypeDef usage example

from mypy_boto3_macie.type_defs import AssociateMemberAccountRequestRequestTypeDef

def get_value() -> AssociateMemberAccountRequestRequestTypeDef:
    return {
        "memberAccountId": ...,
    }