Skip to content

Typed dictionaries

Index > ECR > Typed dictionaries

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

AttributeTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import AttributeTypeDef

def get_value() -> AttributeTypeDef:
    return {
        "key": ...,
    }
Definition
class AttributeTypeDef(TypedDict):
    key: str,
    value: NotRequired[str],

AuthorizationDataTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import AuthorizationDataTypeDef

def get_value() -> AuthorizationDataTypeDef:
    return {
        "authorizationToken": ...,
    }
Definition
class AuthorizationDataTypeDef(TypedDict):
    authorizationToken: NotRequired[str],
    expiresAt: NotRequired[datetime],
    proxyEndpoint: NotRequired[str],

AwsEcrContainerImageDetailsTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import AwsEcrContainerImageDetailsTypeDef

def get_value() -> AwsEcrContainerImageDetailsTypeDef:
    return {
        "architecture": ...,
    }
Definition
class AwsEcrContainerImageDetailsTypeDef(TypedDict):
    architecture: NotRequired[str],
    author: NotRequired[str],
    imageHash: NotRequired[str],
    imageTags: NotRequired[List[str]],
    platform: NotRequired[str],
    pushedAt: NotRequired[datetime],
    registry: NotRequired[str],
    repositoryName: NotRequired[str],

BatchCheckLayerAvailabilityRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchCheckLayerAvailabilityRequestRequestTypeDef

def get_value() -> BatchCheckLayerAvailabilityRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "layerDigests": ...,
    }
Definition
class BatchCheckLayerAvailabilityRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    layerDigests: Sequence[str],
    registryId: NotRequired[str],

LayerFailureTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LayerFailureTypeDef

def get_value() -> LayerFailureTypeDef:
    return {
        "layerDigest": ...,
    }
Definition
class LayerFailureTypeDef(TypedDict):
    layerDigest: NotRequired[str],
    failureCode: NotRequired[LayerFailureCodeType],  # (1)
    failureReason: NotRequired[str],
  1. See LayerFailureCodeType

LayerTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LayerTypeDef

def get_value() -> LayerTypeDef:
    return {
        "layerDigest": ...,
    }
Definition
class LayerTypeDef(TypedDict):
    layerDigest: NotRequired[str],
    layerAvailability: NotRequired[LayerAvailabilityType],  # (1)
    layerSize: NotRequired[int],
    mediaType: NotRequired[str],
  1. See LayerAvailabilityType

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

ImageIdentifierTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageIdentifierTypeDef

def get_value() -> ImageIdentifierTypeDef:
    return {
        "imageDigest": ...,
    }
Definition
class ImageIdentifierTypeDef(TypedDict):
    imageDigest: NotRequired[str],
    imageTag: NotRequired[str],

BatchGetRepositoryScanningConfigurationRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchGetRepositoryScanningConfigurationRequestRequestTypeDef

def get_value() -> BatchGetRepositoryScanningConfigurationRequestRequestTypeDef:
    return {
        "repositoryNames": ...,
    }
Definition
class BatchGetRepositoryScanningConfigurationRequestRequestTypeDef(TypedDict):
    repositoryNames: Sequence[str],

RepositoryScanningConfigurationFailureTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RepositoryScanningConfigurationFailureTypeDef

def get_value() -> RepositoryScanningConfigurationFailureTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class RepositoryScanningConfigurationFailureTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    failureCode: NotRequired[ScanningConfigurationFailureCodeType],  # (1)
    failureReason: NotRequired[str],
  1. See ScanningConfigurationFailureCodeType

CompleteLayerUploadRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CompleteLayerUploadRequestRequestTypeDef

def get_value() -> CompleteLayerUploadRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "uploadId": ...,
        "layerDigests": ...,
    }
Definition
class CompleteLayerUploadRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    uploadId: str,
    layerDigests: Sequence[str],
    registryId: NotRequired[str],

CreatePullThroughCacheRuleRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CreatePullThroughCacheRuleRequestRequestTypeDef

def get_value() -> CreatePullThroughCacheRuleRequestRequestTypeDef:
    return {
        "ecrRepositoryPrefix": ...,
        "upstreamRegistryUrl": ...,
    }
Definition
class CreatePullThroughCacheRuleRequestRequestTypeDef(TypedDict):
    ecrRepositoryPrefix: str,
    upstreamRegistryUrl: str,
    registryId: NotRequired[str],

EncryptionConfigurationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import EncryptionConfigurationTypeDef

def get_value() -> EncryptionConfigurationTypeDef:
    return {
        "encryptionType": ...,
    }
Definition
class EncryptionConfigurationTypeDef(TypedDict):
    encryptionType: EncryptionTypeType,  # (1)
    kmsKey: NotRequired[str],
  1. See EncryptionTypeType

ImageScanningConfigurationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageScanningConfigurationTypeDef

def get_value() -> ImageScanningConfigurationTypeDef:
    return {
        "scanOnPush": ...,
    }
Definition
class ImageScanningConfigurationTypeDef(TypedDict):
    scanOnPush: NotRequired[bool],

TagTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import TagTypeDef

def get_value() -> TagTypeDef:
    return {
        "Key": ...,
    }
Definition
class TagTypeDef(TypedDict):
    Key: NotRequired[str],
    Value: NotRequired[str],

CvssScoreAdjustmentTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CvssScoreAdjustmentTypeDef

def get_value() -> CvssScoreAdjustmentTypeDef:
    return {
        "metric": ...,
    }
Definition
class CvssScoreAdjustmentTypeDef(TypedDict):
    metric: NotRequired[str],
    reason: NotRequired[str],

CvssScoreTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CvssScoreTypeDef

def get_value() -> CvssScoreTypeDef:
    return {
        "baseScore": ...,
    }
Definition
class CvssScoreTypeDef(TypedDict):
    baseScore: NotRequired[float],
    scoringVector: NotRequired[str],
    source: NotRequired[str],
    version: NotRequired[str],

DeleteLifecyclePolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteLifecyclePolicyRequestRequestTypeDef

def get_value() -> DeleteLifecyclePolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DeleteLifecyclePolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],

DeletePullThroughCacheRuleRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeletePullThroughCacheRuleRequestRequestTypeDef

def get_value() -> DeletePullThroughCacheRuleRequestRequestTypeDef:
    return {
        "ecrRepositoryPrefix": ...,
    }
Definition
class DeletePullThroughCacheRuleRequestRequestTypeDef(TypedDict):
    ecrRepositoryPrefix: str,
    registryId: NotRequired[str],

DeleteRepositoryPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteRepositoryPolicyRequestRequestTypeDef

def get_value() -> DeleteRepositoryPolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DeleteRepositoryPolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],

DeleteRepositoryRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteRepositoryRequestRequestTypeDef

def get_value() -> DeleteRepositoryRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DeleteRepositoryRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    force: NotRequired[bool],

ImageReplicationStatusTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageReplicationStatusTypeDef

def get_value() -> ImageReplicationStatusTypeDef:
    return {
        "region": ...,
    }
Definition
class ImageReplicationStatusTypeDef(TypedDict):
    region: NotRequired[str],
    registryId: NotRequired[str],
    status: NotRequired[ReplicationStatusType],  # (1)
    failureCode: NotRequired[str],
  1. See ReplicationStatusType

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

WaiterConfigTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import WaiterConfigTypeDef

def get_value() -> WaiterConfigTypeDef:
    return {
        "Delay": ...,
    }
Definition
class WaiterConfigTypeDef(TypedDict):
    Delay: NotRequired[int],
    MaxAttempts: NotRequired[int],

ImageScanStatusTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageScanStatusTypeDef

def get_value() -> ImageScanStatusTypeDef:
    return {
        "status": ...,
    }
Definition
class ImageScanStatusTypeDef(TypedDict):
    status: NotRequired[ScanStatusType],  # (1)
    description: NotRequired[str],
  1. See ScanStatusType

DescribeImagesFilterTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImagesFilterTypeDef

def get_value() -> DescribeImagesFilterTypeDef:
    return {
        "tagStatus": ...,
    }
Definition
class DescribeImagesFilterTypeDef(TypedDict):
    tagStatus: NotRequired[TagStatusType],  # (1)
  1. See TagStatusType

DescribePullThroughCacheRulesRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribePullThroughCacheRulesRequestRequestTypeDef

def get_value() -> DescribePullThroughCacheRulesRequestRequestTypeDef:
    return {
        "registryId": ...,
    }
Definition
class DescribePullThroughCacheRulesRequestRequestTypeDef(TypedDict):
    registryId: NotRequired[str],
    ecrRepositoryPrefixes: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

PullThroughCacheRuleTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PullThroughCacheRuleTypeDef

def get_value() -> PullThroughCacheRuleTypeDef:
    return {
        "ecrRepositoryPrefix": ...,
    }
Definition
class PullThroughCacheRuleTypeDef(TypedDict):
    ecrRepositoryPrefix: NotRequired[str],
    upstreamRegistryUrl: NotRequired[str],
    createdAt: NotRequired[datetime],
    registryId: NotRequired[str],

DescribeRepositoriesRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeRepositoriesRequestRequestTypeDef

def get_value() -> DescribeRepositoriesRequestRequestTypeDef:
    return {
        "registryId": ...,
    }
Definition
class DescribeRepositoriesRequestRequestTypeDef(TypedDict):
    registryId: NotRequired[str],
    repositoryNames: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetAuthorizationTokenRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetAuthorizationTokenRequestRequestTypeDef

def get_value() -> GetAuthorizationTokenRequestRequestTypeDef:
    return {
        "registryIds": ...,
    }
Definition
class GetAuthorizationTokenRequestRequestTypeDef(TypedDict):
    registryIds: NotRequired[Sequence[str]],

GetDownloadUrlForLayerRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetDownloadUrlForLayerRequestRequestTypeDef

def get_value() -> GetDownloadUrlForLayerRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "layerDigest": ...,
    }
Definition
class GetDownloadUrlForLayerRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    layerDigest: str,
    registryId: NotRequired[str],

LifecyclePolicyPreviewFilterTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LifecyclePolicyPreviewFilterTypeDef

def get_value() -> LifecyclePolicyPreviewFilterTypeDef:
    return {
        "tagStatus": ...,
    }
Definition
class LifecyclePolicyPreviewFilterTypeDef(TypedDict):
    tagStatus: NotRequired[TagStatusType],  # (1)
  1. See TagStatusType

LifecyclePolicyPreviewSummaryTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LifecyclePolicyPreviewSummaryTypeDef

def get_value() -> LifecyclePolicyPreviewSummaryTypeDef:
    return {
        "expiringImageTotalCount": ...,
    }
Definition
class LifecyclePolicyPreviewSummaryTypeDef(TypedDict):
    expiringImageTotalCount: NotRequired[int],

GetLifecyclePolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetLifecyclePolicyRequestRequestTypeDef

def get_value() -> GetLifecyclePolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetLifecyclePolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],

GetRepositoryPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetRepositoryPolicyRequestRequestTypeDef

def get_value() -> GetRepositoryPolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetRepositoryPolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],

ImageScanFindingsSummaryTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageScanFindingsSummaryTypeDef

def get_value() -> ImageScanFindingsSummaryTypeDef:
    return {
        "imageScanCompletedAt": ...,
    }
Definition
class ImageScanFindingsSummaryTypeDef(TypedDict):
    imageScanCompletedAt: NotRequired[datetime],
    vulnerabilitySourceUpdatedAt: NotRequired[datetime],
    findingSeverityCounts: NotRequired[Dict[FindingSeverityType, int]],  # (1)
  1. See FindingSeverityType

InitiateLayerUploadRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import InitiateLayerUploadRequestRequestTypeDef

def get_value() -> InitiateLayerUploadRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class InitiateLayerUploadRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],

LifecyclePolicyRuleActionTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LifecyclePolicyRuleActionTypeDef

def get_value() -> LifecyclePolicyRuleActionTypeDef:
    return {
        "type": ...,
    }
Definition
class LifecyclePolicyRuleActionTypeDef(TypedDict):
    type: NotRequired[ImageActionTypeType],  # (1)
  1. See ImageActionTypeType

ListImagesFilterTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListImagesFilterTypeDef

def get_value() -> ListImagesFilterTypeDef:
    return {
        "tagStatus": ...,
    }
Definition
class ListImagesFilterTypeDef(TypedDict):
    tagStatus: NotRequired[TagStatusType],  # (1)
  1. See TagStatusType

ListTagsForResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListTagsForResourceRequestRequestTypeDef

def get_value() -> ListTagsForResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
    }
Definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,

VulnerablePackageTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import VulnerablePackageTypeDef

def get_value() -> VulnerablePackageTypeDef:
    return {
        "arch": ...,
    }
Definition
class VulnerablePackageTypeDef(TypedDict):
    arch: NotRequired[str],
    epoch: NotRequired[int],
    filePath: NotRequired[str],
    name: NotRequired[str],
    packageManager: NotRequired[str],
    release: NotRequired[str],
    sourceLayerHash: NotRequired[str],
    version: NotRequired[str],

PutImageRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageRequestRequestTypeDef

def get_value() -> PutImageRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageManifest": ...,
    }
Definition
class PutImageRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageManifest: str,
    registryId: NotRequired[str],
    imageManifestMediaType: NotRequired[str],
    imageTag: NotRequired[str],
    imageDigest: NotRequired[str],

PutImageTagMutabilityRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageTagMutabilityRequestRequestTypeDef

def get_value() -> PutImageTagMutabilityRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageTagMutability": ...,
    }
Definition
class PutImageTagMutabilityRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageTagMutability: ImageTagMutabilityType,  # (1)
    registryId: NotRequired[str],
  1. See ImageTagMutabilityType

PutLifecyclePolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutLifecyclePolicyRequestRequestTypeDef

def get_value() -> PutLifecyclePolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "lifecyclePolicyText": ...,
    }
Definition
class PutLifecyclePolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    lifecyclePolicyText: str,
    registryId: NotRequired[str],

PutRegistryPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutRegistryPolicyRequestRequestTypeDef

def get_value() -> PutRegistryPolicyRequestRequestTypeDef:
    return {
        "policyText": ...,
    }
Definition
class PutRegistryPolicyRequestRequestTypeDef(TypedDict):
    policyText: str,

RecommendationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RecommendationTypeDef

def get_value() -> RecommendationTypeDef:
    return {
        "url": ...,
    }
Definition
class RecommendationTypeDef(TypedDict):
    url: NotRequired[str],
    text: NotRequired[str],

ScanningRepositoryFilterTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ScanningRepositoryFilterTypeDef

def get_value() -> ScanningRepositoryFilterTypeDef:
    return {
        "filter": ...,
        "filterType": ...,
    }
Definition
class ScanningRepositoryFilterTypeDef(TypedDict):
    filter: str,
    filterType: ScanningRepositoryFilterTypeType,  # (1)
  1. See ScanningRepositoryFilterTypeType

ReplicationDestinationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ReplicationDestinationTypeDef

def get_value() -> ReplicationDestinationTypeDef:
    return {
        "region": ...,
        "registryId": ...,
    }
Definition
class ReplicationDestinationTypeDef(TypedDict):
    region: str,
    registryId: str,

RepositoryFilterTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RepositoryFilterTypeDef

def get_value() -> RepositoryFilterTypeDef:
    return {
        "filter": ...,
        "filterType": ...,
    }
Definition
class RepositoryFilterTypeDef(TypedDict):
    filter: str,
    filterType: RepositoryFilterTypeType,  # (1)
  1. See RepositoryFilterTypeType

SetRepositoryPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import SetRepositoryPolicyRequestRequestTypeDef

def get_value() -> SetRepositoryPolicyRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "policyText": ...,
    }
Definition
class SetRepositoryPolicyRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    policyText: str,
    registryId: NotRequired[str],
    force: NotRequired[bool],

StartLifecyclePolicyPreviewRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import StartLifecyclePolicyPreviewRequestRequestTypeDef

def get_value() -> StartLifecyclePolicyPreviewRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class StartLifecyclePolicyPreviewRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    lifecyclePolicyText: NotRequired[str],

UntagResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import UntagResourceRequestRequestTypeDef

def get_value() -> UntagResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
        "tagKeys": ...,
    }
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tagKeys: Sequence[str],

UploadLayerPartRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import UploadLayerPartRequestRequestTypeDef

def get_value() -> UploadLayerPartRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "uploadId": ...,
        "partFirstByte": ...,
        "partLastByte": ...,
        "layerPartBlob": ...,
    }
Definition
class UploadLayerPartRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    uploadId: str,
    partFirstByte: int,
    partLastByte: int,
    layerPartBlob: Union[str, bytes, IO[Any], StreamingBody],
    registryId: NotRequired[str],

ImageScanFindingTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageScanFindingTypeDef

def get_value() -> ImageScanFindingTypeDef:
    return {
        "name": ...,
    }
Definition
class ImageScanFindingTypeDef(TypedDict):
    name: NotRequired[str],
    description: NotRequired[str],
    uri: NotRequired[str],
    severity: NotRequired[FindingSeverityType],  # (1)
    attributes: NotRequired[List[AttributeTypeDef]],  # (2)
  1. See FindingSeverityType
  2. See AttributeTypeDef

ResourceDetailsTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ResourceDetailsTypeDef

def get_value() -> ResourceDetailsTypeDef:
    return {
        "awsEcrContainerImage": ...,
    }
Definition
class ResourceDetailsTypeDef(TypedDict):
    awsEcrContainerImage: NotRequired[AwsEcrContainerImageDetailsTypeDef],  # (1)
  1. See AwsEcrContainerImageDetailsTypeDef

BatchCheckLayerAvailabilityResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchCheckLayerAvailabilityResponseTypeDef

def get_value() -> BatchCheckLayerAvailabilityResponseTypeDef:
    return {
        "layers": ...,
        "failures": ...,
        "ResponseMetadata": ...,
    }
Definition
class BatchCheckLayerAvailabilityResponseTypeDef(TypedDict):
    layers: List[LayerTypeDef],  # (1)
    failures: List[LayerFailureTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See LayerTypeDef
  2. See LayerFailureTypeDef
  3. See ResponseMetadataTypeDef

CompleteLayerUploadResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CompleteLayerUploadResponseTypeDef

def get_value() -> CompleteLayerUploadResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "uploadId": ...,
        "layerDigest": ...,
        "ResponseMetadata": ...,
    }
Definition
class CompleteLayerUploadResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    uploadId: str,
    layerDigest: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CreatePullThroughCacheRuleResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CreatePullThroughCacheRuleResponseTypeDef

def get_value() -> CreatePullThroughCacheRuleResponseTypeDef:
    return {
        "ecrRepositoryPrefix": ...,
        "upstreamRegistryUrl": ...,
        "createdAt": ...,
        "registryId": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreatePullThroughCacheRuleResponseTypeDef(TypedDict):
    ecrRepositoryPrefix: str,
    upstreamRegistryUrl: str,
    createdAt: datetime,
    registryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteLifecyclePolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteLifecyclePolicyResponseTypeDef

def get_value() -> DeleteLifecyclePolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "lifecyclePolicyText": ...,
        "lastEvaluatedAt": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteLifecyclePolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    lifecyclePolicyText: str,
    lastEvaluatedAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeletePullThroughCacheRuleResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeletePullThroughCacheRuleResponseTypeDef

def get_value() -> DeletePullThroughCacheRuleResponseTypeDef:
    return {
        "ecrRepositoryPrefix": ...,
        "upstreamRegistryUrl": ...,
        "createdAt": ...,
        "registryId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeletePullThroughCacheRuleResponseTypeDef(TypedDict):
    ecrRepositoryPrefix: str,
    upstreamRegistryUrl: str,
    createdAt: datetime,
    registryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteRegistryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteRegistryPolicyResponseTypeDef

def get_value() -> DeleteRegistryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteRegistryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteRepositoryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DeleteRepositoryPolicyResponseTypeDef

def get_value() -> DeleteRepositoryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteRepositoryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetAuthorizationTokenResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetAuthorizationTokenResponseTypeDef

def get_value() -> GetAuthorizationTokenResponseTypeDef:
    return {
        "authorizationData": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetAuthorizationTokenResponseTypeDef(TypedDict):
    authorizationData: List[AuthorizationDataTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AuthorizationDataTypeDef
  2. See ResponseMetadataTypeDef

GetDownloadUrlForLayerResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetDownloadUrlForLayerResponseTypeDef

def get_value() -> GetDownloadUrlForLayerResponseTypeDef:
    return {
        "downloadUrl": ...,
        "layerDigest": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDownloadUrlForLayerResponseTypeDef(TypedDict):
    downloadUrl: str,
    layerDigest: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetLifecyclePolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetLifecyclePolicyResponseTypeDef

def get_value() -> GetLifecyclePolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "lifecyclePolicyText": ...,
        "lastEvaluatedAt": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLifecyclePolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    lifecyclePolicyText: str,
    lastEvaluatedAt: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetRegistryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetRegistryPolicyResponseTypeDef

def get_value() -> GetRegistryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetRegistryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetRepositoryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetRepositoryPolicyResponseTypeDef

def get_value() -> GetRepositoryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetRepositoryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

InitiateLayerUploadResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import InitiateLayerUploadResponseTypeDef

def get_value() -> InitiateLayerUploadResponseTypeDef:
    return {
        "uploadId": ...,
        "partSize": ...,
        "ResponseMetadata": ...,
    }
Definition
class InitiateLayerUploadResponseTypeDef(TypedDict):
    uploadId: str,
    partSize: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutImageTagMutabilityResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageTagMutabilityResponseTypeDef

def get_value() -> PutImageTagMutabilityResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "imageTagMutability": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutImageTagMutabilityResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    imageTagMutability: ImageTagMutabilityType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImageTagMutabilityType
  2. See ResponseMetadataTypeDef

PutLifecyclePolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutLifecyclePolicyResponseTypeDef

def get_value() -> PutLifecyclePolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "lifecyclePolicyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutLifecyclePolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    lifecyclePolicyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutRegistryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutRegistryPolicyResponseTypeDef

def get_value() -> PutRegistryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutRegistryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

SetRepositoryPolicyResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import SetRepositoryPolicyResponseTypeDef

def get_value() -> SetRepositoryPolicyResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "policyText": ...,
        "ResponseMetadata": ...,
    }
Definition
class SetRepositoryPolicyResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    policyText: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartLifecyclePolicyPreviewResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import StartLifecyclePolicyPreviewResponseTypeDef

def get_value() -> StartLifecyclePolicyPreviewResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "lifecyclePolicyText": ...,
        "status": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartLifecyclePolicyPreviewResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    lifecyclePolicyText: str,
    status: LifecyclePolicyPreviewStatusType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LifecyclePolicyPreviewStatusType
  2. See ResponseMetadataTypeDef

UploadLayerPartResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import UploadLayerPartResponseTypeDef

def get_value() -> UploadLayerPartResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "uploadId": ...,
        "lastByteReceived": ...,
        "ResponseMetadata": ...,
    }
Definition
class UploadLayerPartResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    uploadId: str,
    lastByteReceived: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

BatchDeleteImageRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchDeleteImageRequestRequestTypeDef

def get_value() -> BatchDeleteImageRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageIds": ...,
    }
Definition
class BatchDeleteImageRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageIds: Sequence[ImageIdentifierTypeDef],  # (1)
    registryId: NotRequired[str],
  1. See ImageIdentifierTypeDef

BatchGetImageRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchGetImageRequestRequestTypeDef

def get_value() -> BatchGetImageRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageIds": ...,
    }
Definition
class BatchGetImageRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageIds: Sequence[ImageIdentifierTypeDef],  # (1)
    registryId: NotRequired[str],
    acceptedMediaTypes: NotRequired[Sequence[str]],
  1. See ImageIdentifierTypeDef

DescribeImageReplicationStatusRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImageReplicationStatusRequestRequestTypeDef

def get_value() -> DescribeImageReplicationStatusRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
    }
Definition
class DescribeImageReplicationStatusRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: NotRequired[str],
  1. See ImageIdentifierTypeDef

DescribeImageScanFindingsRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImageScanFindingsRequestRequestTypeDef

def get_value() -> DescribeImageScanFindingsRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
    }
Definition
class DescribeImageScanFindingsRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See ImageIdentifierTypeDef

ImageFailureTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageFailureTypeDef

def get_value() -> ImageFailureTypeDef:
    return {
        "imageId": ...,
    }
Definition
class ImageFailureTypeDef(TypedDict):
    imageId: NotRequired[ImageIdentifierTypeDef],  # (1)
    failureCode: NotRequired[ImageFailureCodeType],  # (2)
    failureReason: NotRequired[str],
  1. See ImageIdentifierTypeDef
  2. See ImageFailureCodeType

ImageTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageTypeDef

def get_value() -> ImageTypeDef:
    return {
        "registryId": ...,
    }
Definition
class ImageTypeDef(TypedDict):
    registryId: NotRequired[str],
    repositoryName: NotRequired[str],
    imageId: NotRequired[ImageIdentifierTypeDef],  # (1)
    imageManifest: NotRequired[str],
    imageManifestMediaType: NotRequired[str],
  1. See ImageIdentifierTypeDef

ListImagesResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListImagesResponseTypeDef

def get_value() -> ListImagesResponseTypeDef:
    return {
        "imageIds": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListImagesResponseTypeDef(TypedDict):
    imageIds: List[ImageIdentifierTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImageIdentifierTypeDef
  2. See ResponseMetadataTypeDef

StartImageScanRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import StartImageScanRequestRequestTypeDef

def get_value() -> StartImageScanRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
    }
Definition
class StartImageScanRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: NotRequired[str],
  1. See ImageIdentifierTypeDef

PutImageScanningConfigurationRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageScanningConfigurationRequestRequestTypeDef

def get_value() -> PutImageScanningConfigurationRequestRequestTypeDef:
    return {
        "repositoryName": ...,
        "imageScanningConfiguration": ...,
    }
Definition
class PutImageScanningConfigurationRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    imageScanningConfiguration: ImageScanningConfigurationTypeDef,  # (1)
    registryId: NotRequired[str],
  1. See ImageScanningConfigurationTypeDef

PutImageScanningConfigurationResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageScanningConfigurationResponseTypeDef

def get_value() -> PutImageScanningConfigurationResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "imageScanningConfiguration": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutImageScanningConfigurationResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    imageScanningConfiguration: ImageScanningConfigurationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImageScanningConfigurationTypeDef
  2. See ResponseMetadataTypeDef

RepositoryTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RepositoryTypeDef

def get_value() -> RepositoryTypeDef:
    return {
        "repositoryArn": ...,
    }
Definition
class RepositoryTypeDef(TypedDict):
    repositoryArn: NotRequired[str],
    registryId: NotRequired[str],
    repositoryName: NotRequired[str],
    repositoryUri: NotRequired[str],
    createdAt: NotRequired[datetime],
    imageTagMutability: NotRequired[ImageTagMutabilityType],  # (1)
    imageScanningConfiguration: NotRequired[ImageScanningConfigurationTypeDef],  # (2)
    encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef],  # (3)
  1. See ImageTagMutabilityType
  2. See ImageScanningConfigurationTypeDef
  3. See EncryptionConfigurationTypeDef

CreateRepositoryRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CreateRepositoryRequestRequestTypeDef

def get_value() -> CreateRepositoryRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class CreateRepositoryRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    tags: NotRequired[Sequence[TagTypeDef]],  # (1)
    imageTagMutability: NotRequired[ImageTagMutabilityType],  # (2)
    imageScanningConfiguration: NotRequired[ImageScanningConfigurationTypeDef],  # (3)
    encryptionConfiguration: NotRequired[EncryptionConfigurationTypeDef],  # (4)
  1. See TagTypeDef
  2. See ImageTagMutabilityType
  3. See ImageScanningConfigurationTypeDef
  4. See EncryptionConfigurationTypeDef

ListTagsForResourceResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListTagsForResourceResponseTypeDef

def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "tags": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
    tags: List[TagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TagTypeDef
  2. See ResponseMetadataTypeDef

TagResourceRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import TagResourceRequestRequestTypeDef

def get_value() -> TagResourceRequestRequestTypeDef:
    return {
        "resourceArn": ...,
        "tags": ...,
    }
Definition
class TagResourceRequestRequestTypeDef(TypedDict):
    resourceArn: str,
    tags: Sequence[TagTypeDef],  # (1)
  1. See TagTypeDef

CvssScoreDetailsTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CvssScoreDetailsTypeDef

def get_value() -> CvssScoreDetailsTypeDef:
    return {
        "adjustments": ...,
    }
Definition
class CvssScoreDetailsTypeDef(TypedDict):
    adjustments: NotRequired[List[CvssScoreAdjustmentTypeDef]],  # (1)
    score: NotRequired[float],
    scoreSource: NotRequired[str],
    scoringVector: NotRequired[str],
    version: NotRequired[str],
  1. See CvssScoreAdjustmentTypeDef

DescribeImageReplicationStatusResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImageReplicationStatusResponseTypeDef

def get_value() -> DescribeImageReplicationStatusResponseTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
        "replicationStatuses": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeImageReplicationStatusResponseTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    replicationStatuses: List[ImageReplicationStatusTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ImageIdentifierTypeDef
  2. See ImageReplicationStatusTypeDef
  3. See ResponseMetadataTypeDef

DescribeImageScanFindingsRequestDescribeImageScanFindingsPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImageScanFindingsRequestDescribeImageScanFindingsPaginateTypeDef

def get_value() -> DescribeImageScanFindingsRequestDescribeImageScanFindingsPaginateTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
    }
Definition
class DescribeImageScanFindingsRequestDescribeImageScanFindingsPaginateTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ImageIdentifierTypeDef
  2. See PaginatorConfigTypeDef

DescribePullThroughCacheRulesRequestDescribePullThroughCacheRulesPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribePullThroughCacheRulesRequestDescribePullThroughCacheRulesPaginateTypeDef

def get_value() -> DescribePullThroughCacheRulesRequestDescribePullThroughCacheRulesPaginateTypeDef:
    return {
        "registryId": ...,
    }
Definition
class DescribePullThroughCacheRulesRequestDescribePullThroughCacheRulesPaginateTypeDef(TypedDict):
    registryId: NotRequired[str],
    ecrRepositoryPrefixes: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeRepositoriesRequestDescribeRepositoriesPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeRepositoriesRequestDescribeRepositoriesPaginateTypeDef

def get_value() -> DescribeRepositoriesRequestDescribeRepositoriesPaginateTypeDef:
    return {
        "registryId": ...,
    }
Definition
class DescribeRepositoriesRequestDescribeRepositoriesPaginateTypeDef(TypedDict):
    registryId: NotRequired[str],
    repositoryNames: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef

def get_value() -> DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef:
    return {
        "repositoryName": ...,
        "imageId": ...,
    }
Definition
class DescribeImageScanFindingsRequestImageScanCompleteWaitTypeDef(TypedDict):
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    registryId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    WaiterConfig: NotRequired[WaiterConfigTypeDef],  # (2)
  1. See ImageIdentifierTypeDef
  2. See WaiterConfigTypeDef

StartImageScanResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import StartImageScanResponseTypeDef

def get_value() -> StartImageScanResponseTypeDef:
    return {
        "registryId": ...,
        "repositoryName": ...,
        "imageId": ...,
        "imageScanStatus": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartImageScanResponseTypeDef(TypedDict):
    registryId: str,
    repositoryName: str,
    imageId: ImageIdentifierTypeDef,  # (1)
    imageScanStatus: ImageScanStatusTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ImageIdentifierTypeDef
  2. See ImageScanStatusTypeDef
  3. See ResponseMetadataTypeDef

DescribeImagesRequestDescribeImagesPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImagesRequestDescribeImagesPaginateTypeDef

def get_value() -> DescribeImagesRequestDescribeImagesPaginateTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DescribeImagesRequestDescribeImagesPaginateTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    imageIds: NotRequired[Sequence[ImageIdentifierTypeDef]],  # (1)
    filter: NotRequired[DescribeImagesFilterTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ImageIdentifierTypeDef
  2. See DescribeImagesFilterTypeDef
  3. See PaginatorConfigTypeDef

DescribeImagesRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribeImagesRequestRequestTypeDef

def get_value() -> DescribeImagesRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DescribeImagesRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    imageIds: NotRequired[Sequence[ImageIdentifierTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filter: NotRequired[DescribeImagesFilterTypeDef],  # (2)
  1. See ImageIdentifierTypeDef
  2. See DescribeImagesFilterTypeDef

DescribePullThroughCacheRulesResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import DescribePullThroughCacheRulesResponseTypeDef

def get_value() -> DescribePullThroughCacheRulesResponseTypeDef:
    return {
        "pullThroughCacheRules": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribePullThroughCacheRulesResponseTypeDef(TypedDict):
    pullThroughCacheRules: List[PullThroughCacheRuleTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullThroughCacheRuleTypeDef
  2. See ResponseMetadataTypeDef

GetLifecyclePolicyPreviewRequestGetLifecyclePolicyPreviewPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetLifecyclePolicyPreviewRequestGetLifecyclePolicyPreviewPaginateTypeDef

def get_value() -> GetLifecyclePolicyPreviewRequestGetLifecyclePolicyPreviewPaginateTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetLifecyclePolicyPreviewRequestGetLifecyclePolicyPreviewPaginateTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    imageIds: NotRequired[Sequence[ImageIdentifierTypeDef]],  # (1)
    filter: NotRequired[LifecyclePolicyPreviewFilterTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ImageIdentifierTypeDef
  2. See LifecyclePolicyPreviewFilterTypeDef
  3. See PaginatorConfigTypeDef

GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef

def get_value() -> GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetLifecyclePolicyPreviewRequestLifecyclePolicyPreviewCompleteWaitTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    imageIds: NotRequired[Sequence[ImageIdentifierTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filter: NotRequired[LifecyclePolicyPreviewFilterTypeDef],  # (2)
    WaiterConfig: NotRequired[WaiterConfigTypeDef],  # (3)
  1. See ImageIdentifierTypeDef
  2. See LifecyclePolicyPreviewFilterTypeDef
  3. See WaiterConfigTypeDef

GetLifecyclePolicyPreviewRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import GetLifecyclePolicyPreviewRequestRequestTypeDef

def get_value() -> GetLifecyclePolicyPreviewRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetLifecyclePolicyPreviewRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    imageIds: NotRequired[Sequence[ImageIdentifierTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filter: NotRequired[LifecyclePolicyPreviewFilterTypeDef],  # (2)
  1. See ImageIdentifierTypeDef
  2. See LifecyclePolicyPreviewFilterTypeDef

ImageDetailTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ImageDetailTypeDef

def get_value() -> ImageDetailTypeDef:
    return {
        "registryId": ...,
    }
Definition
class ImageDetailTypeDef(TypedDict):
    registryId: NotRequired[str],
    repositoryName: NotRequired[str],
    imageDigest: NotRequired[str],
    imageTags: NotRequired[List[str]],
    imageSizeInBytes: NotRequired[int],
    imagePushedAt: NotRequired[datetime],
    imageScanStatus: NotRequired[ImageScanStatusTypeDef],  # (1)
    imageScanFindingsSummary: NotRequired[ImageScanFindingsSummaryTypeDef],  # (2)
    imageManifestMediaType: NotRequired[str],
    artifactMediaType: NotRequired[str],
    lastRecordedPullTime: NotRequired[datetime],
  1. See ImageScanStatusTypeDef
  2. See ImageScanFindingsSummaryTypeDef

LifecyclePolicyPreviewResultTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import LifecyclePolicyPreviewResultTypeDef

def get_value() -> LifecyclePolicyPreviewResultTypeDef:
    return {
        "imageTags": ...,
    }
Definition
class LifecyclePolicyPreviewResultTypeDef(TypedDict):
    imageTags: NotRequired[List[str]],
    imageDigest: NotRequired[str],
    imagePushedAt: NotRequired[datetime],
    action: NotRequired[LifecyclePolicyRuleActionTypeDef],  # (1)
    appliedRulePriority: NotRequired[int],
  1. See LifecyclePolicyRuleActionTypeDef

ListImagesRequestListImagesPaginateTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListImagesRequestListImagesPaginateTypeDef

def get_value() -> ListImagesRequestListImagesPaginateTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class ListImagesRequestListImagesPaginateTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    filter: NotRequired[ListImagesFilterTypeDef],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ListImagesFilterTypeDef
  2. See PaginatorConfigTypeDef

ListImagesRequestRequestTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ListImagesRequestRequestTypeDef

def get_value() -> ListImagesRequestRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class ListImagesRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    registryId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filter: NotRequired[ListImagesFilterTypeDef],  # (1)
  1. See ListImagesFilterTypeDef

PackageVulnerabilityDetailsTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PackageVulnerabilityDetailsTypeDef

def get_value() -> PackageVulnerabilityDetailsTypeDef:
    return {
        "cvss": ...,
    }
Definition
class PackageVulnerabilityDetailsTypeDef(TypedDict):
    cvss: NotRequired[List[CvssScoreTypeDef]],  # (1)
    referenceUrls: NotRequired[List[str]],
    relatedVulnerabilities: NotRequired[List[str]],
    source: NotRequired[str],
    sourceUrl: NotRequired[str],
    vendorCreatedAt: NotRequired[datetime],
    vendorSeverity: NotRequired[str],
    vendorUpdatedAt: NotRequired[datetime],
    vulnerabilityId: NotRequired[str],
    vulnerablePackages: NotRequired[List[VulnerablePackageTypeDef]],  # (2)
  1. See CvssScoreTypeDef
  2. See VulnerablePackageTypeDef

RemediationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RemediationTypeDef

def get_value() -> RemediationTypeDef:
    return {
        "recommendation": ...,
    }
Definition
class RemediationTypeDef(TypedDict):
    recommendation: NotRequired[RecommendationTypeDef],  # (1)
  1. See RecommendationTypeDef

RegistryScanningRuleTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RegistryScanningRuleTypeDef

def get_value() -> RegistryScanningRuleTypeDef:
    return {
        "scanFrequency": ...,
        "repositoryFilters": ...,
    }
Definition
class RegistryScanningRuleTypeDef(TypedDict):
    scanFrequency: ScanFrequencyType,  # (1)
    repositoryFilters: List[ScanningRepositoryFilterTypeDef],  # (2)
  1. See ScanFrequencyType
  2. See ScanningRepositoryFilterTypeDef

RepositoryScanningConfigurationTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import RepositoryScanningConfigurationTypeDef

def get_value() -> RepositoryScanningConfigurationTypeDef:
    return {
        "repositoryArn": ...,
    }
Definition
class RepositoryScanningConfigurationTypeDef(TypedDict):
    repositoryArn: NotRequired[str],
    repositoryName: NotRequired[str],
    scanOnPush: NotRequired[bool],
    scanFrequency: NotRequired[ScanFrequencyType],  # (1)
    appliedScanFilters: NotRequired[List[ScanningRepositoryFilterTypeDef]],  # (2)
  1. See ScanFrequencyType
  2. See ScanningRepositoryFilterTypeDef

ReplicationRuleTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ReplicationRuleTypeDef

def get_value() -> ReplicationRuleTypeDef:
    return {
        "destinations": ...,
    }
Definition
class ReplicationRuleTypeDef(TypedDict):
    destinations: List[ReplicationDestinationTypeDef],  # (1)
    repositoryFilters: NotRequired[List[RepositoryFilterTypeDef]],  # (2)
  1. See ReplicationDestinationTypeDef
  2. See RepositoryFilterTypeDef

ResourceTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import ResourceTypeDef

def get_value() -> ResourceTypeDef:
    return {
        "details": ...,
    }
Definition
class ResourceTypeDef(TypedDict):
    details: NotRequired[ResourceDetailsTypeDef],  # (1)
    id: NotRequired[str],
    tags: NotRequired[Dict[str, str]],
    type: NotRequired[str],
  1. See ResourceDetailsTypeDef

BatchDeleteImageResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchDeleteImageResponseTypeDef

def get_value() -> BatchDeleteImageResponseTypeDef:
    return {
        "imageIds": ...,
        "failures": ...,
        "ResponseMetadata": ...,
    }
Definition
class BatchDeleteImageResponseTypeDef(TypedDict):
    imageIds: List[ImageIdentifierTypeDef],  # (1)
    failures: List[ImageFailureTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ImageIdentifierTypeDef
  2. See ImageFailureTypeDef
  3. See ResponseMetadataTypeDef

BatchGetImageResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import BatchGetImageResponseTypeDef

def get_value() -> BatchGetImageResponseTypeDef:
    return {
        "images": ...,
        "failures": ...,
        "ResponseMetadata": ...,
    }
Definition
class BatchGetImageResponseTypeDef(TypedDict):
    images: List[ImageTypeDef],  # (1)
    failures: List[ImageFailureTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See ImageTypeDef
  2. See ImageFailureTypeDef
  3. See ResponseMetadataTypeDef

PutImageResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import PutImageResponseTypeDef

def get_value() -> PutImageResponseTypeDef:
    return {
        "image": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutImageResponseTypeDef(TypedDict):
    image: ImageTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ImageTypeDef
  2. See ResponseMetadataTypeDef

CreateRepositoryResponseTypeDef

Usage Example
from mypy_boto3_ecr.type_defs import CreateRepositoryResponseTypeDef

def get_value() -> Create