Skip to content

Waiters#

Index > IAM > Waiters

Auto-generated documentation for IAM type annotations stubs module mypy-boto3-iam.

InstanceProfileExistsWaiter#

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

# InstanceProfileExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_iam.waiter import InstanceProfileExistsWaiter


session = Session()

client = session.client("iam")  # (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

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 boto3.client("iam").get_waiter("policy_exists"). boto3 documentation

# PolicyExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_iam.waiter import PolicyExistsWaiter


session = Session()

client = session.client("iam")  # (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

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 boto3.client("iam").get_waiter("role_exists"). boto3 documentation

# RoleExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_iam.waiter import RoleExistsWaiter


session = Session()

client = session.client("iam")  # (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

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 boto3.client("iam").get_waiter("user_exists"). boto3 documentation

# UserExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_iam.waiter import UserExistsWaiter


session = Session()

client = session.client("iam")  # (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

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