Waiters#
Auto-generated documentation for IAM type annotations stubs module types-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 types_boto3_iam.waiter import InstanceProfileExistsWaiter
session = Session()
client = session.client("iam")  # (1)
waiter: InstanceProfileExistsWaiter = client.get_waiter("instance_profile_exists")  # (2)
await waiter.wait(...)- client: IAMClient
- waiter: InstanceProfileExistsWaiter
wait#
Type annotations and code completion for InstanceProfileExistsWaiter.wait method.
# wait method definition
def wait(
    self,
    *,
    InstanceProfileName: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...# wait method usage example with argument unpacking
kwargs: GetInstanceProfileRequestWaitTypeDef = {  # (1)
    "InstanceProfileName": ...,
}
parent.wait(**kwargs)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 types_boto3_iam.waiter import PolicyExistsWaiter
session = Session()
client = session.client("iam")  # (1)
waiter: PolicyExistsWaiter = client.get_waiter("policy_exists")  # (2)
await waiter.wait(...)- client: IAMClient
- waiter: PolicyExistsWaiter
wait#
Type annotations and code completion for PolicyExistsWaiter.wait method.
# wait method definition
def wait(
    self,
    *,
    PolicyArn: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...# wait method usage example with argument unpacking
kwargs: GetPolicyRequestWaitTypeDef = {  # (1)
    "PolicyArn": ...,
}
parent.wait(**kwargs)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 types_boto3_iam.waiter import RoleExistsWaiter
session = Session()
client = session.client("iam")  # (1)
waiter: RoleExistsWaiter = client.get_waiter("role_exists")  # (2)
await waiter.wait(...)- client: IAMClient
- waiter: RoleExistsWaiter
wait#
Type annotations and code completion for RoleExistsWaiter.wait method.
# wait method definition
def wait(
    self,
    *,
    RoleName: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...# wait method usage example with argument unpacking
kwargs: GetRoleRequestWaitTypeDef = {  # (1)
    "RoleName": ...,
}
parent.wait(**kwargs)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 types_boto3_iam.waiter import UserExistsWaiter
session = Session()
client = session.client("iam")  # (1)
waiter: UserExistsWaiter = client.get_waiter("user_exists")  # (2)
await waiter.wait(...)- client: IAMClient
- waiter: UserExistsWaiter
wait#
Type annotations and code completion for UserExistsWaiter.wait method.
# wait method definition
def wait(
    self,
    *,
    UserName: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...# wait method usage example with argument unpacking
kwargs: GetUserRequestWaitTypeDef = {  # (1)
    "UserName": ...,
}
parent.wait(**kwargs)