Skip to content

IAM module

Index > IAM

Auto-generated documentation for IAM type annotations stubs module types-aiobotocore-iam.

How to install

From PyPI with pip

Install types-aioboto3 for IAM service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[iam]'


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

IAMClient

Type annotations and code completion for session.client("iam") as IAMClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_iam.client import IAMClient


session = Session()
async with session.client("iam") as client:
    client: IAMClient

Paginators

Type annotations and code completion for paginators from session.client("iam").get_paginator("...").

Usage example
from types_aiobotocore_iam.paginator import GetAccountAuthorizationDetailsPaginator

def get_get_account_authorization_details_paginator() -> GetAccountAuthorizationDetailsPaginator:
    return client.get_paginator("get_account_authorization_details"))

Waiters

Type annotations and code completion for waiters from session.client("iam").get_waiter("...").

Usage example
from types_aiobotocore_iam.waiter import InstanceProfileExistsWaiter

def get_instance_profile_exists_waiter() -> InstanceProfileExistsWaiter:
    return Session().client("iam").get_waiter("instance_profile_exists")

IAMServiceResource

Type annotations and code completion for session.resource("iam") as IAMServiceResource boto3 documentation

Usage example
from types_aiobotocore_iam.service_resource import IAMServiceResource

Collections

Type annotations and code completion for collections from session.resource("iam").*.

Usage example
from types_aiobotocore_iam.service_resource import ServiceResourceGroupsCollection

def get_collection() -> ServiceResourceGroupsCollection:
    return resource.groups

Resources

Type annotations and code completion for additional resources from session.resource("iam").*.

Usage example
from types_aiobotocore_iam.service_resource import AccessKey

def get_resource() -> AccessKey:
    return resource.AccessKey(...)

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_iam.literals import AccessAdvisorUsageGranularityTypeType

def get_value() -> AccessAdvisorUsageGranularityTypeType:
    return "ACTION_LEVEL"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_iam.type_defs import AccessDetailTypeDef

def get_value() -> AccessDetailTypeDef:
    return {
        "ServiceName": ...,
        "ServiceNamespace": ...,
    }