Skip to content

ECR module

Index > ECR

Auto-generated documentation for ECR type annotations stubs module types-aiobotocore-ecr.

How to install

From PyPI with pip

Install types-aioboto3 for ECR service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[ecr]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[ecr]'


# standalone installation
python -m pip install types-aiobotocore-ecr

How to uninstall

python -m pip uninstall -y types-aiobotocore-ecr

Usage

Code samples can be found in Examples.

ECRClient

Type annotations and code completion for session.client("ecr") as ECRClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_ecr.client import ECRClient


session = Session()
async with session.client("ecr") as client:
    client: ECRClient

Paginators

Type annotations and code completion for paginators from session.client("ecr").get_paginator("...").

Usage example
from types_aiobotocore_ecr.paginator import DescribeImageScanFindingsPaginator

def get_describe_image_scan_findings_paginator() -> DescribeImageScanFindingsPaginator:
    return client.get_paginator("describe_image_scan_findings"))

Waiters

Type annotations and code completion for waiters from session.client("ecr").get_waiter("...").

Usage example
from types_aiobotocore_ecr.waiter import ImageScanCompleteWaiter

def get_image_scan_complete_waiter() -> ImageScanCompleteWaiter:
    return Session().client("ecr").get_waiter("image_scan_complete")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_ecr.literals import DescribeImageScanFindingsPaginatorName

def get_value() -> DescribeImageScanFindingsPaginatorName:
    return "describe_image_scan_findings"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_ecr.type_defs import AttributeTypeDef

def get_value() -> AttributeTypeDef:
    return {
        "key": ...,
    }