Skip to content

Type definitions#

Index > ECR > Type definitions

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

BlobTypeDef#

# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

RegistryScanningRuleUnionTypeDef#

# RegistryScanningRuleUnionTypeDef definition

RegistryScanningRuleUnionTypeDef = Union[
    RegistryScanningRuleTypeDef,  # (1)
    RegistryScanningRuleOutputTypeDef,  # (2)
]
  1. See RegistryScanningRuleTypeDef
  2. See RegistryScanningRuleOutputTypeDef

ReplicationConfigurationUnionTypeDef#

# ReplicationConfigurationUnionTypeDef definition

ReplicationConfigurationUnionTypeDef = Union[
    ReplicationConfigurationTypeDef,  # (1)
    ReplicationConfigurationOutputTypeDef,  # (2)
]
  1. See ReplicationConfigurationTypeDef
  2. See ReplicationConfigurationOutputTypeDef

AttributeTypeDef#

# AttributeTypeDef definition

class AttributeTypeDef(TypedDict):
    key: str,
    value: NotRequired[str],

AuthorizationDataTypeDef#

# AuthorizationDataTypeDef definition

class AuthorizationDataTypeDef(TypedDict):
    authorizationToken: NotRequired[str],
    expiresAt: NotRequired[datetime],
    proxyEndpoint: NotRequired[str],

AwsEcrContainerImageDetailsTypeDef#

# AwsEcrContainerImageDetailsTypeDef 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#

# BatchCheckLayerAvailabilityRequestRequestTypeDef definition

class BatchCheckLayerAvailabilityRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    layerDigests: Sequence[str],
    registryId: NotRequired[str],

LayerFailureTypeDef#

# LayerFailureTypeDef definition

class LayerFailureTypeDef(TypedDict):
    layerDigest: NotRequired[str],
    failureCode: NotRequired[LayerFailureCodeType],  # (1)
    failureReason: NotRequired[str],
  1. See LayerFailureCodeType

LayerTypeDef#

# LayerTypeDef definition

class LayerTypeDef(TypedDict):
    layerDigest: NotRequired[str],
    layerAvailability: NotRequired[LayerAvailabilityType],  # (1)
    layerSize: NotRequired[int],
    mediaType: NotRequired[str],
  1. See LayerAvailabilityType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

ImageIdentifierTypeDef#

# ImageIdentifierTypeDef definition

class ImageIdentifierTypeDef(TypedDict):
    imageDigest: NotRequired[str],
    imageTag: NotRequired[str],

BatchGetRepositoryScanningConfigurationRequestRequestTypeDef#

# BatchGetRepositoryScanningConfigurationRequestRequestTypeDef definition

class BatchGetRepositoryScanningConfigurationRequestRequestTypeDef(TypedDict):
    repositoryNames: Sequence[str],

RepositoryScanningConfigurationFailureTypeDef#

# RepositoryScanningConfigurationFailureTypeDef definition

class RepositoryScanningConfigurationFailureTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    failureCode: NotRequired[ScanningConfigurationFailureCodeType],  # (1)
    failureReason: NotRequired[str],
  1. See ScanningConfigurationFailureCodeType

CompleteLayerUploadRequestRequestTypeDef#

# CompleteLayerUploadRequestRequestTypeDef definition

class CompleteLayerUploadRequestRequestTypeDef(TypedDict):
    repositoryName: str,
    uploadId: str,
    layerDigests: Sequence[str],
    registryId: NotRequired[str],

CreatePullThroughCacheRuleRequestRequestTypeDef#

# CreatePullThroughCacheRuleRequestRequestTypeDef definition

class CreatePullThroughCacheRuleRequestRequestTypeDef(TypedDict):
    ecrRepositoryPrefix: str,
    upstreamRegistryUrl: str,
    registryId: NotRequired[str],
    upstreamRegistry: NotRequired[UpstreamRegistryType],  # (1)
    credentialArn: NotRequired[str],
  1. See UpstreamRegistryType

EncryptionConfigurationTypeDef#

# EncryptionConfigurationTypeDef definition

class EncryptionConfigurationTypeDef(TypedDict):
    encryptionType: EncryptionTypeType,  # (1)
    kmsKey: NotRequired[str],
  1. See EncryptionTypeType

ImageScanningConfigurationTypeDef#

# ImageScanningConfigurationTypeDef definition

class ImageScanningConfigurationTypeDef(TypedDict):
    scanOnPush: NotRequired[bool],

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    Key: str,
    Value: str,

CvssScoreAdjustmentTypeDef#

# CvssScoreAdjustmentTypeDef definition

class CvssScoreAdjustmentTypeDef(TypedDict):
    metric: NotRequired[str],
    reason: NotRequired[str],

CvssScoreTypeDef#

# CvssScoreTypeDef definition

class CvssScoreTypeDef(TypedDict):
    baseScore: NotRequired[float],
    scoringVector: NotRequired[str],
    source: NotRequired[str],
    version: NotRequired[str],

DeleteLifecyclePolicyRequestRequestTypeDef#