Skip to content

Examples

Index > IdentityStore > Examples

Auto-generated documentation for IdentityStore type annotations stubs module types-aiobotocore-identitystore.

Client

Implicit type annotations

Can be used with types-aioboto3[identitystore] package installed.

Write your IdentityStore code as usual, type checking and code completion should work out of the box.

Client usage example
from aioboto3.session import Session


session = Session()

async with session.client("identitystore") as client:  # (1)
    result = await client.describe_group()  # (2)
  1. client: IdentityStoreClient
  2. result: DescribeGroupResponseTypeDef

Explicit type annotations

With types-aioboto3-lite[identitystore] or a standalone types_aiobotocore_identitystore package, you have to explicitly specify client: IdentityStoreClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.

Client usage example
from aioboto3.session import Session

from types_aiobotocore_identitystore.client import IdentityStoreClient
from types_aiobotocore_identitystore.type_defs import DescribeGroupResponseTypeDef
from types_aiobotocore_identitystore.type_defs import DescribeGroupRequestRequestTypeDef


session = Session()

client: IdentityStoreClient
async with session.client("identitystore") as client:  # (1)
    kwargs: DescribeGroupRequestRequestTypeDef = {...}  # (2)
    result: DescribeGroupResponseTypeDef = await client.describe_group(**kwargs)  # (3)
  1. client: IdentityStoreClient
  2. kwargs: DescribeGroupRequestRequestTypeDef
  3. result: DescribeGroupResponseTypeDef