ECR module#
Index > ECR
Auto-generated documentation for ECR type annotations stubs module mypy-boto3-ecr.
How to install#
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and ECR
.
From PyPI with pip#
Install boto3-stubs
for ECR
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[ecr]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[ecr]'
# standalone installation
python -m pip install mypy-boto3-ecr
How to uninstall#
python -m pip uninstall -y mypy-boto3-ecr
Usage#
Code samples can be found in Examples.
ECRClient#
Type annotations and code completion for boto3.client("ecr")
as ECRClient
boto3 documentation
# ECRClient usage example
from boto3.session import Session
from mypy_boto3_ecr.client import ECRClient
def get_client() -> ECRClient:
return Session().client("ecr")
Paginators#
Type annotations and code completion for paginators
from boto3.client("ecr").get_paginator("...")
.
# DescribeImageScanFindingsPaginator usage example
from boto3.session import Session
from mypy_boto3_ecr.paginator import DescribeImageScanFindingsPaginator
def get_describe_image_scan_findings_paginator() -> DescribeImageScanFindingsPaginator:
return Session().client("ecr").get_paginator("describe_image_scan_findings"))
- DescribeImageScanFindingsPaginator
- DescribeImagesPaginator
- DescribePullThroughCacheRulesPaginator
- DescribeRepositoriesPaginator
- DescribeRepositoryCreationTemplatesPaginator
- GetLifecyclePolicyPreviewPaginator
- ListImagesPaginator
Waiters#
Type annotations and code completion for waiters
from boto3.client("ecr").get_waiter("...")
.
# ImageScanCompleteWaiter usage example
from boto3.session import Session
from mypy_boto3_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.
# DescribeImageScanFindingsPaginatorName usage example
from mypy_boto3_ecr.literals import DescribeImageScanFindingsPaginatorName
def get_value() -> DescribeImageScanFindingsPaginatorName:
return "describe_image_scan_findings"
- DescribeImageScanFindingsPaginatorName
- DescribeImagesPaginatorName
- DescribePullThroughCacheRulesPaginatorName
- DescribeRepositoriesPaginatorName
- DescribeRepositoryCreationTemplatesPaginatorName
- EncryptionTypeType
- FindingSeverityType
- GetLifecyclePolicyPreviewPaginatorName
- ImageActionTypeType
- ImageFailureCodeType
- ImageScanCompleteWaiterName
- ImageTagMutabilityType
- LayerAvailabilityType
- LayerFailureCodeType
- LifecyclePolicyPreviewCompleteWaiterName
- LifecyclePolicyPreviewStatusType
- ListImagesPaginatorName
- RCTAppliedForType
- ReplicationStatusType
- RepositoryFilterTypeType
- ScanFrequencyType
- ScanStatusType
- ScanTypeType
- ScanningConfigurationFailureCodeType
- ScanningRepositoryFilterTypeType
- TagStatusType
- UpstreamRegistryType
- ECRServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- WaiterName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AttributeTypeDef
- AuthorizationDataTypeDef
- AwsEcrContainerImageDetailsTypeDef
- BatchCheckLayerAvailabilityRequestRequestTypeDef
- LayerFailureTypeDef
- LayerTypeDef
- ResponseMetadataTypeDef
- ImageIdentifierTypeDef
- BatchGetRepositoryScanningConfigurationRequestRequestTypeDef
- RepositoryScanningConfigurationFailureTypeDef
- BlobTypeDef
- CompleteLayerUploadRequestRequestTypeDef
- CreatePullThroughCacheRuleRequestRequestTypeDef
- EncryptionConfigurationForRepositoryCreationTemplateTypeDef
- TagTypeDef
- EncryptionConfigurationTypeDef
- ImageScanningConfigurationTypeDef
- CvssScoreAdjustmentTypeDef
- CvssScoreTypeDef
- DeleteLifecyclePolicyRequestRequestTypeDef
- DeletePullThroughCacheRuleRequestRequestTypeDef
- DeleteRepositoryCreationTemplateRequestRequestTypeDef
- DeleteRepositoryPolicyRequestRequestTypeDef
- DeleteRepositoryRequestRequestTypeDef
- ImageReplicationStatusTypeDef
- PaginatorConfigTypeDef
- WaiterConfigTypeDef
- ImageScanStatusTypeDef
- DescribeImagesFilterTypeDef
- DescribePullThroughCacheRulesRequestRequestTypeDef
- PullThroughCacheRuleTypeDef
- DescribeRepositoriesRequestRequestTypeDef
- DescribeRepositoryCreationTemplatesRequestRequestTypeDef
- GetAccountSettingRequestRequestTypeDef
- GetAuthorizationTokenRequestRequestTypeDef
- GetDownloadUrlForLayerRequestRequestTypeDef
- LifecyclePolicyPreviewFilterTypeDef
- LifecyclePolicyPreviewSummaryTypeDef
- GetLifecyclePolicyRequestRequestTypeDef
- GetRepositoryPolicyRequestRequestTypeDef
- ImageScanFindingsSummaryTypeDef
- InitiateLayerUploadRequestRequestTypeDef
- LifecyclePolicyRuleActionTypeDef
- ListImagesFilterTypeDef
- ListTagsForResourceRequestRequestTypeDef
- VulnerablePackageTypeDef
- PutAccountSettingRequestRequestTypeDef
- PutImageRequestRequestTypeDef
- PutImageTagMutabilityRequestRequestTypeDef
- PutLifecyclePolicyRequestRequestTypeDef
- PutRegistryPolicyRequestRequestTypeDef
- RecommendationTypeDef
- ScanningRepositoryFilterTypeDef
- ReplicationDestinationTypeDef
- RepositoryFilterTypeDef
- SetRepositoryPolicyRequestRequestTypeDef
- StartLifecyclePolicyPreviewRequestRequestTypeDef
- UntagResourceRequestRequestTypeDef
- UpdatePullThroughCacheRuleRequestRequestTypeDef
- ValidatePullThroughCacheRuleRequestRequestTypeDef
- ImageScanFindingTypeDef
- ResourceDetailsTypeDef
- BatchCheckLayerAvailabilityResponseTypeDef
- CompleteLayerUploadResponseTypeDef
- CreatePullThroughCacheRuleResponseTypeDef
- DeleteLifecyclePolicyResponseTypeDef
- DeletePullThroughCacheRuleResponseTypeDef
- DeleteRegistryPolicyResponseTypeDef
- DeleteRepositoryPolicyResponseTypeDef
- GetAccountSettingResponseTypeDef
- GetAuthorizationTokenResponseTypeDef
- GetDownloadUrlForLayerResponseTypeDef
- GetLifecyclePolicyResponseTypeDef
- GetRegistryPolicyResponseTypeDef
- GetRepositoryPolicyResponseTypeDef
- InitiateLayerUploadResponseTypeDef
- PutAccountSettingResponseTypeDef
- PutImageTagMutabilityResponseTypeDef
- PutLifecyclePolicyResponseTypeDef
- PutRegistryPolicyResponseTypeDef
- SetRepositoryPolicyResponseTypeDef
- StartLifecyclePolicyPreviewResponseTypeDef
- UpdatePullThroughCacheRuleResponseTypeDef
- UploadLayerPartResponseTypeDef
- ValidatePullThroughCacheRuleResponseTypeDef
- BatchDeleteImageRequestRequestTypeDef
- BatchGetImageRequestRequestTypeDef
- DescribeImageReplicationStatusRequestRequestTypeDef
- DescribeImageScanFindingsRequestRequestTypeDef
- ImageFailureTypeDef
- ImageTypeDef
- ListImagesResponseTypeDef
- StartImageScanRequestRequestTypeDef
- UploadLayerPartRequestRequestTypeDef
- CreateRepositoryCreationTemplateRequestRequestTypeDef
- ListTagsForResourceResponseTypeDef
- RepositoryCreationTemplateTypeDef
- TagResourceRequestRequestTypeDef
- UpdateRepositoryCreationTemplateRequestRequestTypeDef
- CreateRepositoryRequestRequestTypeDef
- PutImageScanningConfigurationRequestRequestTypeDef
- PutImageScanningConfigurationResponseTypeDef
- RepositoryTypeDef
- CvssScoreDetailsTypeDef
- DescribeImageReplicationStatusResponseTypeDef
- DescribeImageScanFindingsRequestDescribeImageScanFindingsPaginateTypeDef
- DescribePullThroughCacheRulesRequestDescribePullThroughCacheRulesPaginateTypeDef
- DescribeRepositoriesRequestDescribeRepositoriesPaginateTypeDef
- DescribeRepositoryCreationTemplatesRequestDescribeRepositoryCreationTemplatesPaginateTypeDef
- DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef
- StartImageScanResponseTypeDef
- DescribeImagesRequestDescribeImagesPaginateTypeDef
- DescribeImagesRequestRequestTypeDef
- DescribePullThroughCacheRulesResponseTypeDef
- GetLifecyclePolicyPreviewRequestGetLifecyclePolicyPreviewPaginateTypeDef
- GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef
- GetLifecyclePolicyPreviewRequestRequestTypeDef
- ImageDetailTypeDef
- LifecyclePolicyPreviewResultTypeDef
- ListImagesRequestListImagesPaginateTypeDef
- ListImagesRequestRequestTypeDef
- PackageVulnerabilityDetailsTypeDef
- RemediationTypeDef
- RegistryScanningRuleOutputTypeDef
- RegistryScanningRuleTypeDef
- RepositoryScanningConfigurationTypeDef
- ReplicationRuleOutputTypeDef
- ReplicationRuleTypeDef
- ResourceTypeDef
- BatchDeleteImageResponseTypeDef
- BatchGetImageResponseTypeDef
- PutImageResponseTypeDef
- CreateRepositoryCreationTemplateResponseTypeDef
- DeleteRepositoryCreationTemplateResponseTypeDef
- DescribeRepositoryCreationTemplatesResponseTypeDef
- UpdateRepositoryCreationTemplateResponseTypeDef
- CreateRepositoryResponseTypeDef
- DeleteRepositoryResponseTypeDef
- DescribeRepositoriesResponseTypeDef
- ScoreDetailsTypeDef
- DescribeImagesResponseTypeDef
- GetLifecyclePolicyPreviewResponseTypeDef
- RegistryScanningConfigurationTypeDef
- RegistryScanningRuleUnionTypeDef
- BatchGetRepositoryScanningConfigurationResponseTypeDef
- ReplicationConfigurationOutputTypeDef
- ReplicationRuleUnionTypeDef
- EnhancedImageScanFindingTypeDef
- GetRegistryScanningConfigurationResponseTypeDef
- PutRegistryScanningConfigurationResponseTypeDef
- PutRegistryScanningConfigurationRequestRequestTypeDef
- DescribeRegistryResponseTypeDef
- PutReplicationConfigurationResponseTypeDef
- ReplicationConfigurationTypeDef
- ImageScanFindingsTypeDef
- PutReplicationConfigurationRequestRequestTypeDef
- DescribeImageScanFindingsResponseTypeDef