Skip to content

Waiters#

Index > IAM > Waiters

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

InstanceProfileExistsWaiter#

Type annotations and code completion for session.create_client("iam").get_waiter("instance_profile_exists"). boto3 documentation

# InstanceProfileExistsWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_iam.waiter import InstanceProfileExistsWaiter

session = get_session()
async with session.create_client("iam") as client:  # (1)
    waiter: InstanceProfileExistsWaiter = client.get_waiter("instance_profile_exists")  # (2)
    await waiter.wait()
  1. client: IAMClient
  2. waiter: InstanceProfileExistsWaiter

wait#

Type annotations and code completion for InstanceProfileExistsWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    InstanceProfileName: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: GetInstanceProfileRequestInstanceProfileExistsWaitTypeDef = {  # (1)
    "InstanceProfileName": ...,
}

parent.wait(**kwargs)
  1. See GetInstanceProfileRequestInstanceProfileExistsWaitTypeDef

PolicyExistsWaiter#

Type annotations and code completion for session.create_client("iam").get_waiter("policy_exists"). boto3 documentation

# PolicyExistsWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_iam.waiter import PolicyExistsWaiter

session = get_session()
async with session.create_client("iam") as client:  # (1)
    waiter: PolicyExistsWaiter = client.get_waiter("policy_exists")  # (2)
    await waiter.wait()
  1. client: IAMClient
  2. waiter: PolicyExistsWaiter

wait#

Type annotations and code completion for PolicyExistsWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    PolicyArn: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: GetPolicyRequestPolicyExistsWaitTypeDef = {  # (1)
    "PolicyArn": ...,
}

parent.wait(**kwargs)
  1. See GetPolicyRequestPolicyExistsWaitTypeDef

RoleExistsWaiter#

Type annotations and code completion for session.create_client("iam").get_waiter("role_exists"). boto3 documentation

# RoleExistsWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_iam.waiter import RoleExistsWaiter

session = get_session()
async with session.create_client("iam") as client:  # (1)
    waiter: RoleExistsWaiter = client.get_waiter("role_exists")  # (2)
    await waiter.wait()
  1. client: IAMClient
  2. waiter: RoleExistsWaiter

wait#

Type annotations and code completion for RoleExistsWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    RoleName: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: GetRoleRequestRoleExistsWaitTypeDef = {  # (1)
    "RoleName": ...,
}

parent.wait(**kwargs)
  1. See GetRoleRequestRoleExistsWaitTypeDef

UserExistsWaiter#

Type annotations and code completion for session.create_client("iam").get_waiter("user_exists"). boto3 documentation

# UserExistsWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_iam.waiter import UserExistsWaiter

session = get_session()
async with session.create_client("iam") as client:  # (1)
    waiter: UserExistsWaiter = client.get_waiter("user_exists")  # (2)
    await waiter.wait()
  1. client: IAMClient
  2. waiter: UserExistsWaiter

wait#

Type annotations and code completion for UserExistsWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    UserName: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: GetUserRequestUserExistsWaitTypeDef = {  # (1)
    "UserName": ...,
}

parent.wait(**kwargs)
  1. See GetUserRequestUserExistsWaitTypeDef