Skip to content

Waiters#

Index > ECR > Waiters

Auto-generated documentation for ECR type annotations stubs module mypy-boto3-ecr.

ImageScanCompleteWaiter#

Type annotations and code completion for boto3.client("ecr").get_waiter("image_scan_complete"). boto3 documentation

# ImageScanCompleteWaiter usage example

from boto3.session import Session

from mypy_boto3_ecr.waiter import ImageScanCompleteWaiter


session = Session()

client = session.client("ecr")  # (1)
waiter: ImageScanCompleteWaiter = client.get_waiter("image_scan_complete")  # (2)
await waiter.wait()
  1. client: ECRClient
  2. waiter: ImageScanCompleteWaiter

wait#

Type annotations and code completion for ImageScanCompleteWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: str = ...,
    nextToken: str = ...,
    maxResults: int = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See ImageIdentifierTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef = {  # (1)
    "repositoryName": ...,
    "imageId": ...,
}

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

LifecyclePolicyPreviewCompleteWaiter#

Type annotations and code completion for boto3.client("ecr").get_waiter("lifecycle_policy_preview_complete"). boto3 documentation

# LifecyclePolicyPreviewCompleteWaiter usage example

from boto3.session import Session

from mypy_boto3_ecr.waiter import LifecyclePolicyPreviewCompleteWaiter


session = Session()

client = session.client("ecr")  # (1)
waiter: LifecyclePolicyPreviewCompleteWaiter = client.get_waiter("lifecycle_policy_preview_complete")  # (2)
await waiter.wait()
  1. client: ECRClient
  2. waiter: LifecyclePolicyPreviewCompleteWaiter

wait#

Type annotations and code completion for LifecyclePolicyPreviewCompleteWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    repositoryName: str,
    registryId: str = ...,
    imageIds: Sequence[ImageIdentifierTypeDef] = ...,  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
    filter: LifecyclePolicyPreviewFilterTypeDef = ...,  # (2)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (3)
) -> None:
    ...
  1. See ImageIdentifierTypeDef
  2. See LifecyclePolicyPreviewFilterTypeDef
  3. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef = {  # (1)
    "repositoryName": ...,
}

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