2026/11/30 - Amazon Elastic Container Registry Public - 19 new 16 updated api methods
Changes ECR Public now supports premium content.
Returns a URL that you can use to download a publisher report as a compressed CSV file. You can download only reports for your own account. Use ListPublisherReports to get the report IDs.
See also: AWS API Documentation
Request Syntax
client.get_download_url_for_publisher_report(
reportId='string'
)
string
[REQUIRED]
The ID of the publisher report to download.
dict
Response Syntax
{
'reportId': 'string',
'downloadUrl': 'string'
}
Response Structure
(dict) --
reportId (string) --
The ID of the publisher report.
downloadUrl (string) --
The URL that you can use to download the publisher report. The URL is valid for up to one hour and can expire sooner. If the download fails, call GetDownloadUrlForPublisherReport again.
Applies a repository policy to the specified premium repository to control access permissions. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry Public User Guide.
See also: AWS API Documentation
Request Syntax
client.set_premium_repository_policy(
registryId='string',
repositoryName='string',
policyText='string',
force=True|False
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository to receive the policy.
string
[REQUIRED]
The JSON repository policy text to apply to the premium repository. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry Public User Guide.
boolean
If the policy that you want to set on a premium repository policy would prevent you from setting another policy in the future, you must force the SetPremiumRepositoryPolicy operation. This prevents accidental premium repository lockouts.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'policyText': 'string'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
policyText (string) --
The JSON repository policy text that's applied to the premium repository.
Creates a premium repository in a public registry for paid content that's sold through Amazon Web Services Marketplace. Your registry must be verified and have an approved custom registry alias; otherwise, the request fails with ValidationException. The repository starts in the DRAFT state, and you make it available with SetRepositoryState.
See also: AWS API Documentation
Request Syntax
client.create_premium_repository(
repositoryName='string',
catalogData={
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoImageBlob': b'bytes',
'aboutText': 'string',
'usageText': 'string',
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
]
},
marketplaceProducts=[
'string',
],
tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
The name to use for the premium repository. You can specify the name on its own (for example nginx-web-app) or prepend a namespace to group the repository into a category (for example project-a/nginx-web-app). You can give a premium repository the same name as a free repository in the same registry.
dict
The details about the premium repository that are publicly visible in the Amazon ECR Public Gallery. A premium repository is listed in the Amazon ECR Public Gallery when it's AVAILABLE and at least one of its Amazon Web Services Marketplace products is public.
description (string) --
A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
architectures (list) --
The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.
ARM
ARM 64
x86
x86-64
(string) --
operatingSystems (list) --
The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.
Linux
Windows
(string) --
logoImageBlob (bytes) --
The base64-encoded repository logo payload.
aboutText (string) --
A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
usageText (string) --
Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery. You can specify up to three categories, and each category can only be specified once.
(string) --
list
[REQUIRED]
The list of Amazon Web Services Marketplace product IDs for the premium repository. You can specify from one to five product IDs. Your account must own each product, and each product must have an Amazon ECR Public Premium delivery option. You can't specify the same product ID more than once.
(string) --
list
The metadata that you apply to the premium repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
(dict) --
The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Key (string) --
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
Value (string) --
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
dict
Response Syntax
{
'premiumRepository': {
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'marketplaceProducts': [
'string',
],
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
],
'state': 'DRAFT'|'AVAILABLE'|'HIDDEN'
},
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
premiumRepository (dict) --
The premium repository that was created.
repositoryArn (string) --
The ARN for the premium repository. The ARN has the format arn:aws:ecr-public::012345678910:premium-repository/repository-name.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository.
repositoryName (string) --
The name of the premium repository.
repositoryUri (string) --
The URI of the premium repository. You can use this URI for image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the premium repository was created.
marketplaceProducts (list) --
The Amazon Web Services Marketplace product IDs for the premium repository.
(string) --
associatedRepositories (list) --
The repositories that are associated with the premium repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
state (string) --
The state of the premium repository. A premium repository in the DRAFT state is only accessible to you. A premium repository in the AVAILABLE state is listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public. A premium repository in the HIDDEN state isn't listed in the Amazon ECR Public Gallery, but buyers with an active entitlement can still pull from it.
catalogData (dict) --
The catalog data for the premium repository that was created.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
Deletes a premium repository in a public registry. The repository must be empty before you can delete it. While the repository is in the DRAFT state, you can remove images with BatchDeleteImage; after it leaves the DRAFT state, deprecate images with SetImageStatus.
See also: AWS API Documentation
Request Syntax
client.delete_premium_repository(
registryId='string',
repositoryName='string'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository to delete. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository to delete.
dict
Response Syntax
{
'premiumRepository': {
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'marketplaceProducts': [
'string',
],
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
],
'state': 'DRAFT'|'AVAILABLE'|'HIDDEN'
}
}
Response Structure
(dict) --
premiumRepository (dict) --
The premium repository that was deleted. Only the registryId, repositoryName, repositoryArn, repositoryUri, and createdAt fields are returned.
repositoryArn (string) --
The ARN for the premium repository. The ARN has the format arn:aws:ecr-public::012345678910:premium-repository/repository-name.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository.
repositoryName (string) --
The name of the premium repository.
repositoryUri (string) --
The URI of the premium repository. You can use this URI for image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the premium repository was created.
marketplaceProducts (list) --
The Amazon Web Services Marketplace product IDs for the premium repository.
(string) --
associatedRepositories (list) --
The repositories that are associated with the premium repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
state (string) --
The state of the premium repository. A premium repository in the DRAFT state is only accessible to you. A premium repository in the AVAILABLE state is listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public. A premium repository in the HIDDEN state isn't listed in the Amazon ECR Public Gallery, but buyers with an active entitlement can still pull from it.
Lists the publisher reports for your public registry that were created in the last 365 days. Each report is a compressed CSV file. Reports include images in your premium repositories and in free repositories that are associated with a premium repository.
See also: AWS API Documentation
Request Syntax
client.list_publisher_reports(
reportType='SUMMARY'|'TRENDS',
granularity='WEEKLY'|'MONTHLY',
maxResults=123,
nextToken='string'
)
string
The type of report to list. If you don't specify a type, reports of all types are listed. Valid values:
SUMMARY: The number of pulls and version checks for each image.
TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.
string
The time period that each report covers. If you don't specify a granularity, reports of all granularities are listed. Valid values:
WEEKLY: Each report covers one week, from Monday to Sunday.
MONTHLY: Each report covers one calendar month.
integer
The maximum number of results that ListPublisherReports returns in paginated output. When you use this parameter, ListPublisherReports returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another ListPublisherReports request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, ListPublisherReports returns up to 100 results and a nextToken value, if applicable. A page can contain fewer than maxResults reports, so use nextToken to check for more.
string
The nextToken value that's returned from a previous paginated ListPublisherReports request. Pagination continues from the end of the previous results. You must specify the same reportType and granularity values as the request that returned the token; otherwise, the request fails with InvalidParameterException.
dict
Response Syntax
{
'reports': [
{
'reportId': 'string',
'reportType': 'SUMMARY'|'TRENDS',
'granularity': 'WEEKLY'|'MONTHLY',
'period': {
'startDate': 'string',
'endDate': 'string'
},
'sizeInBytes': 123,
'createdAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
reports (list) --
A list of publisher reports.
(dict) --
An object that describes a publisher report for a public registry.
reportId (string) --
The ID of the report. Use this ID with GetDownloadUrlForPublisherReport to download the report.
reportType (string) --
The type of the report. Valid values:
SUMMARY: The number of pulls and version checks for each image.
TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.
granularity (string) --
The time period that the report covers. Valid values:
WEEKLY: Each report covers one week, from Monday to Sunday.
MONTHLY: Each report covers one calendar month.
period (dict) --
The first and last dates of the time period that the report covers.
startDate (string) --
The first date of the period, in UTC, in the format YYYY-MM-DD. For example, 2026-10-01.
endDate (string) --
The last date of the period, in UTC, in the format YYYY-MM-DD. For example, 2026-10-31.
sizeInBytes (integer) --
The size of the compressed report file, in bytes.
createdAt (datetime) --
The date and time that the report was created.
nextToken (string) --
The nextToken value to include in a future ListPublisherReports request. When the results of a ListPublisherReports request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
Sets the state of a premium repository. Use the state to control whether the repository is shown in the Amazon ECR Public Gallery. A premium repository is listed in the Amazon ECR Public Gallery when it's AVAILABLE and at least one of its Amazon Web Services Marketplace products is public.
See also: AWS API Documentation
Request Syntax
client.set_repository_state(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
state='DRAFT'|'AVAILABLE'|'HIDDEN'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the repository to set the state for.
string
[REQUIRED]
The type of the repository. Currently, you can set the state only for a PREMIUM repository. FREE isn't supported, and the request fails with InvalidParameterException.
string
[REQUIRED]
The state to set on the repository. Valid values:
AVAILABLE: Entitled buyers can pull from the repository, and it's listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public.
HIDDEN: The repository isn't listed in the Amazon ECR Public Gallery. Buyers with an active entitlement can still pull from it.
A repository can move from DRAFT to AVAILABLE, and between AVAILABLE and HIDDEN. It can't return to DRAFT. Other changes fail with InvalidParameterException. If you specify the current state, the request succeeds and nothing changes.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'state': 'DRAFT'|'AVAILABLE'|'HIDDEN'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The repository name that's associated with the request.
repositoryType (string) --
The type of the repository.
state (string) --
The state of the repository after the update. Valid values:
AVAILABLE: Entitled buyers can pull from the repository, and it's listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public.
HIDDEN: The repository isn't listed in the Amazon ECR Public Gallery. Buyers with an active entitlement can still pull from it.
Sets the status of an image in a premium repository to ACTIVE or DEPRECATED. When you deprecate an image, Amazon ECR deletes it after the deprecation period ends. You can't use this operation while the repository is in the DRAFT state.
See also: AWS API Documentation
Request Syntax
client.set_image_status(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
imageId={
'imageDigest': 'string',
'imageTag': 'string'
},
status='ACTIVE'|'DEPRECATED',
deprecationPeriodDays=123
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the image. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the repository that contains the image.
string
[REQUIRED]
The type of the repository. You can set the image status only in a PREMIUM repository.
dict
[REQUIRED]
The image ID of the image to set the status for. If you specify a tag, the tag is resolved to the digest of the image that it currently points to, and the status is set on that image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
string
[REQUIRED]
The status to set on the image. Valid values:
ACTIVE: Cancels a pending deletion. You can do this only before the scheduled deletion time.
DEPRECATED: Schedules the image for deletion after the deprecation period.
After the scheduled deletion time, you can't change the status of the image.
If the image is part of a manifest list, Amazon ECR requires that a manifest list is deleted before the images that it references. To deprecate an image that a manifest list references, deprecate the manifest list first, with a scheduled deletion time before the image's. You can't set a manifest list to ACTIVE while it references deprecated images. Requests that break these rules fail with ValidationException.
integer
The number of days that Amazon ECR waits before it deletes the deprecated image. You can specify a value between 90 and 365. This parameter is required when you set status to DEPRECATED. Don't specify it when you set status to ACTIVE.
dict
Response Syntax
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'imageId': {
'imageDigest': 'string',
'imageTag': 'string'
},
'status': 'ACTIVE'|'DEPRECATED',
'scheduledDeletionAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
repositoryName (string) --
The repository name that's associated with the request.
repositoryType (string) --
The type of the repository.
imageId (dict) --
The image ID of the image that the status was set on.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
status (string) --
The status of the image. Valid values:
ACTIVE: The image isn't scheduled for deletion.
DEPRECATED: The image is scheduled for deletion. Entitled buyers can still pull it until it's deleted.
scheduledDeletionAt (datetime) --
The date and time that the deprecated image is scheduled for deletion. This is the time of the SetImageStatus request plus the deprecation period. Amazon ECR deletes the image within 24 hours after this time. Amazon ECR returns this value only when the image status is DEPRECATED.
Returns the scan status and vulnerability findings for an image in a premium repository. Images in premium repositories are scanned automatically when they're pushed, and are rescanned as new vulnerabilities are published. Image scanning isn't currently supported for free repositories.
See also: AWS API Documentation
Request Syntax
client.describe_image_scan_findings(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
imageId={
'imageDigest': 'string',
'imageTag': 'string'
},
nextToken='string',
maxResults=123
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repository where the image is. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The repository that contains the image to describe scan findings for.
string
The type of the repository. Currently, image scanning is supported only for premium repositories, so you must specify PREMIUM. If you don't specify a type, Amazon ECR uses FREE, and the request fails with ValidationException.
dict
[REQUIRED]
The image ID of the image to describe scan findings for.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
string
The nextToken value that's returned from a previous paginated DescribeImageScanFindings request where you used maxResults and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.
integer
The maximum number of results that DescribeImageScanFindings returns in paginated output. When you use this parameter, DescribeImageScanFindings returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another DescribeImageScanFindings request with the returned nextToken value. You can specify a value between 1 and 100. If you don't use this parameter, DescribeImageScanFindings returns up to 100 results and a nextToken value, if applicable.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'imageId': {
'imageDigest': 'string',
'imageTag': 'string'
},
'imageScanStatus': {
'status': 'FAILED'|'UNSUPPORTED_IMAGE'|'ACTIVE'|'COMPLETE'|'PENDING'|'SCAN_ELIGIBILITY_EXPIRED'|'FINDINGS_UNAVAILABLE',
'description': 'string'
},
'imageScanFindings': {
'imageScanCompletedAt': datetime(2015, 1, 1),
'vulnerabilitySourceUpdatedAt': datetime(2015, 1, 1),
'findingSeverityCounts': {
'string': 123
},
'findings': [
{
'awsAccountId': 'string',
'findingId': 'string',
'description': 'string',
'firstObservedAt': datetime(2015, 1, 1),
'lastObservedAt': datetime(2015, 1, 1),
'packageVulnerabilityDetails': {
'cvss': [
{
'baseScore': 123.0,
'scoringVector': 'string',
'source': 'string',
'version': 'string'
},
],
'referenceUrls': [
'string',
],
'relatedVulnerabilities': [
'string',
],
'source': 'string',
'sourceUrl': 'string',
'vendorCreatedAt': datetime(2015, 1, 1),
'vendorSeverity': 'string',
'vendorUpdatedAt': datetime(2015, 1, 1),
'vulnerabilityId': 'string',
'vulnerablePackages': [
{
'arch': 'string',
'epoch': 123,
'filePath': 'string',
'name': 'string',
'packageManager': 'string',
'release': 'string',
'sourceLayerHash': 'string',
'version': 'string',
'fixedInVersion': 'string'
},
]
},
'remediation': {
'recommendation': {
'url': 'string',
'text': 'string'
}
},
'resources': [
{
'details': {
'containerImage': {
'architecture': 'string',
'author': 'string',
'imageHash': 'string',
'imageTags': [
'string',
],
'platform': 'string',
'pushedAt': datetime(2015, 1, 1),
'registry': 'string',
'repositoryName': 'string'
}
},
'type': 'string'
},
],
'score': 123.0,
'scoreDetails': {
'cvss': {
'adjustments': [
{
'metric': 'string',
'reason': 'string'
},
],
'score': 123.0,
'scoreSource': 'string',
'scoringVector': 'string',
'version': 'string'
}
},
'severity': 'string',
'status': 'string',
'title': 'string',
'type': 'string',
'updatedAt': datetime(2015, 1, 1),
'fixAvailable': 'string',
'exploitAvailable': 'string'
},
]
},
'nextToken': 'string'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The repository name that's associated with the request.
imageId (dict) --
The image ID that's associated with the request.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
imageScanStatus (dict) --
The current state of the scan.
status (string) --
The current state of the image scan. Valid values:
ACTIVE: The scan is complete and the findings are available. Amazon ECR keeps the findings up to date as new vulnerabilities are published.
PENDING: The scan is in progress, and the findings aren't available yet.
COMPLETE: The scan completed successfully.
FAILED: The scan failed.
UNSUPPORTED_IMAGE: The image can't be scanned because its media type, operating system, or package manager isn't supported.
FINDINGS_UNAVAILABLE: The findings aren't available for the image.
SCAN_ELIGIBILITY_EXPIRED: The image is no longer eligible for scanning, so its findings aren't updated.
description (string) --
The description of the image scan status.
imageScanFindings (dict) --
The information about the last completed image scan.
imageScanCompletedAt (datetime) --
The time when the last image scan was completed.
vulnerabilitySourceUpdatedAt (datetime) --
The time when the vulnerability data was last scanned.
findingSeverityCounts (dict) --
The image vulnerability counts, sorted by severity.
(string) --
(integer) --
findings (list) --
The findings from the image scan.
(dict) --
Contains the details of one vulnerability found in an image, including its severity, score, affected packages, and remediation.
awsAccountId (string) --
The Amazon Web Services account ID that's associated with the image.
findingId (string) --
The ID of the finding.
description (string) --
The description of the finding.
firstObservedAt (datetime) --
The date and time that the finding was first observed.
lastObservedAt (datetime) --
The date and time that the finding was last observed.
packageVulnerabilityDetails (dict) --
An object that contains the details of a package vulnerability finding.
cvss (list) --
An object that contains details about the CVSS score of a finding.
(dict) --
Contains a CVSS score for a finding, including the base score, scoring vector, CVSS version, and the source of the score.
baseScore (float) --
The base CVSS score that's used for the finding.
scoringVector (string) --
The vector string of the CVSS score.
source (string) --
The source of the CVSS score.
version (string) --
The version of CVSS that's used for the score.
referenceUrls (list) --
One or more URLs that contain details about this vulnerability type.
(string) --
relatedVulnerabilities (list) --
One or more vulnerabilities related to the one identified in this finding.
(string) --
source (string) --
The source of the vulnerability information.
sourceUrl (string) --
A URL to the source of the vulnerability information.
vendorCreatedAt (datetime) --
The date and time that this vulnerability was first added to the vendor's database.
vendorSeverity (string) --
The severity the vendor has given to this vulnerability type.
vendorUpdatedAt (datetime) --
The date and time the vendor last updated this vulnerability in their database.
vulnerabilityId (string) --
The ID given to this vulnerability.
vulnerablePackages (list) --
The packages impacted by this vulnerability.
(dict) --
Contains information about a vulnerable package in the image, including its name, version, architecture, and source layer, and the version that fixes the vulnerability.
arch (string) --
The architecture of the vulnerable package.
epoch (integer) --
The epoch of the vulnerable package.
filePath (string) --
The file path of the vulnerable package.
name (string) --
The name of the vulnerable package.
packageManager (string) --
The package manager of the vulnerable package.
release (string) --
The release of the vulnerable package.
sourceLayerHash (string) --
The source layer hash of the vulnerable package.
version (string) --
The version of the vulnerable package.
fixedInVersion (string) --
The version of the package that contains the vulnerability fix.
remediation (dict) --
An object that contains the details about how to remediate a finding.
recommendation (dict) --
An object that contains information about the recommended course of action to remediate the finding.
url (string) --
The URL address to the CVE remediation recommendations.
text (string) --
The recommended course of action to remediate the finding.
resources (list) --
Contains information about the resources involved in a finding.
(dict) --
Contains the type of the resource involved in a finding and details about it, such as the container image.
details (dict) --
An object that contains details about the resource involved in a finding.
containerImage (dict) --
An object that contains details about the container image involved in the finding.
architecture (string) --
The architecture of the image.
author (string) --
The image author.
imageHash (string) --
The digest of the image.
imageTags (list) --
The image tags that are associated with the image.
(string) --
platform (string) --
The platform of the image.
pushedAt (datetime) --
The date and time the image was pushed.
registry (string) --
The registry that the image is in.
repositoryName (string) --
The name of the repository that the image is in.
type (string) --
The type of resource.
score (float) --
The Amazon Inspector score that's assigned to the finding.
scoreDetails (dict) --
An object that contains the details of the Amazon Inspector score.
cvss (dict) --
An object that contains details about the CVSS score given to a finding.
adjustments (list) --
An object that contains details about the adjustments to the CVSS score.
(dict) --
Details about an adjustment that Amazon Inspector made to the CVSS score of a finding.
metric (string) --
The metric that was used to adjust the CVSS score.
reason (string) --
The reason that the CVSS score was adjusted.
score (float) --
The CVSS score.
scoreSource (string) --
The source of the CVSS data.
scoringVector (string) --
The vector for the CVSS score.
version (string) --
The CVSS version that's used in scoring.
severity (string) --
The severity of the finding.
status (string) --
The status of the finding.
title (string) --
The title of the finding.
type (string) --
The type of the finding.
updatedAt (datetime) --
The date and time the finding was last updated.
fixAvailable (string) --
Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.
exploitAvailable (string) --
If a finding discovered in your environment has an exploit available. This value can be YES or NO.
nextToken (string) --
The nextToken value to include in a future DescribeImageScanFindings request. When the results of a DescribeImageScanFindings request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
Returns the premium repositories that you're entitled to through your active Amazon Web Services Marketplace purchases. Amazon ECR looks up your purchases by calling the Amazon Web Services Marketplace SearchAgreements operation on your behalf, so you need permission for the aws-marketplace:SearchAgreements action in addition to ecr-public:DescribeEntitledRepositories.
See also: AWS API Documentation
Request Syntax
client.describe_entitled_repositories(
nextToken='string',
maxResults=123
)
string
The nextToken value that's returned from a previous paginated DescribeEntitledRepositories request. Pagination continues from the end of the previous results. A nextToken is valid only for the account that received it. If the request fails with InvalidParameterException because the token no longer matches, start again without a nextToken.
integer
The maximum number of results that DescribeEntitledRepositories returns in paginated output. You can specify a value between 1 and 1000. If you don't use this parameter, DescribeEntitledRepositories returns up to 100 results. A page can contain fewer than maxResults results, or none, and still return a nextToken. Keep sending requests until nextToken is null.
dict
Response Syntax
{
'repositories': [
{
'registryAlias': 'string',
'repositoryName': 'string',
'repositoryArn': 'string',
'repositoryUri': 'string',
'state': 'DRAFT'|'AVAILABLE'|'HIDDEN',
'entitledViaProductId': 'string',
'registryDisplayName': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
repositories (list) --
A list of premium repositories that you're entitled to. Each entry is a repository and product pair. A repository that you can access through more than one product appears once for each product, and the same pair can appear on more than one page. Group entries by repositoryArn.
(dict) --
An object that describes a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
registryAlias (string) --
The registry alias of the publisher that owns the premium repository.
repositoryName (string) --
The name of the premium repository.
repositoryArn (string) --
The ARN of the premium repository. This ARN doesn't contain an account ID. It has the format arn:aws:ecr-public:::entitled-repository/registry-alias/repository-name.
repositoryUri (string) --
The URI of the premium repository. Use this URI to pull images from the repository.
state (string) --
The state of the premium repository. Valid values:
AVAILABLE: The repository is shown in the Amazon ECR Public Gallery, and you can pull from it.
HIDDEN: The repository isn't shown in the Amazon ECR Public Gallery, but because you have an active entitlement, you can still pull from it.
entitledViaProductId (string) --
The ID of the Amazon Web Services Marketplace product that gives you access to the premium repository.
registryDisplayName (string) --
The display name of the publisher's registry. This value can be empty.
nextToken (string) --
The nextToken value to include in a future DescribeEntitledRepositories request. When the results of a DescribeEntitledRepositories request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
Describes the premium repositories in a public registry, including their Amazon Web Services Marketplace products, associated repositories, and state. Repositories in the DRAFT, AVAILABLE, and HIDDEN states are returned.
See also: AWS API Documentation
Request Syntax
client.describe_premium_repositories(
registryId='string',
repositoryNames=[
'string',
],
maxResults=123,
nextToken='string'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repositories to describe. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
list
The names of the premium repositories to describe. If this parameter isn't specified, all premium repositories in the registry are described. If you specify repository names, you can't use maxResults or nextToken.
(string) --
integer
The maximum number of results that DescribePremiumRepositories returns in paginated output. When you use this parameter, DescribePremiumRepositories returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another DescribePremiumRepositories request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, DescribePremiumRepositories returns up to 100 results and a nextToken value, if applicable.
string
The nextToken value that's returned from a previous paginated DescribePremiumRepositories request where you used maxResults and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.
dict
Response Syntax
{
'repositories': [
{
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'marketplaceProducts': [
'string',
],
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
],
'state': 'DRAFT'|'AVAILABLE'|'HIDDEN'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
repositories (list) --
A list of premium repository objects that describe the premium repositories.
(dict) --
An object that represents a premium repository.
repositoryArn (string) --
The ARN for the premium repository. The ARN has the format arn:aws:ecr-public::012345678910:premium-repository/repository-name.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository.
repositoryName (string) --
The name of the premium repository.
repositoryUri (string) --
The URI of the premium repository. You can use this URI for image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the premium repository was created.
marketplaceProducts (list) --
The Amazon Web Services Marketplace product IDs for the premium repository.
(string) --
associatedRepositories (list) --
The repositories that are associated with the premium repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
state (string) --
The state of the premium repository. A premium repository in the DRAFT state is only accessible to you. A premium repository in the AVAILABLE state is listed in the Amazon ECR Public Gallery when at least one of its Amazon Web Services Marketplace products is public. A premium repository in the HIDDEN state isn't listed in the Amazon ECR Public Gallery, but buyers with an active entitlement can still pull from it.
nextToken (string) --
The nextToken value to include in a future DescribePremiumRepositories request. When the results of a DescribePremiumRepositories request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
Returns metadata about the images in a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
See also: AWS API Documentation
Request Syntax
client.describe_entitled_images(
repositoryName='string',
registryAlias='string',
imageIds=[
{
'imageDigest': 'string',
'imageTag': 'string'
},
],
nextToken='string',
maxResults=123
)
string
[REQUIRED]
The name of the premium repository that contains the images to describe.
string
[REQUIRED]
The registry alias of the publisher that owns the premium repository. The alias is the first part of the premium repository URI.
list
The list of image IDs for the requested premium repository. If you specify images with imageIds, you can't use maxResults or nextToken.
(dict) --
An object with identifying information for an Amazon ECR image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
string
The nextToken value that's returned from a previous paginated DescribeEntitledImages request where you used maxResults and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.
integer
The maximum number of results that DescribeEntitledImages returns in paginated output. When you use this parameter, DescribeEntitledImages returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another DescribeEntitledImages request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, DescribeEntitledImages returns up to 100 results and a nextToken value, if applicable.
dict
Response Syntax
{
'repositoryName': 'string',
'registryAlias': 'string',
'imageDetails': [
{
'repositoryName': 'string',
'imageDigest': 'string',
'imageTags': [
'string',
],
'imageSizeInBytes': 123,
'imagePushedAt': datetime(2015, 1, 1),
'imageManifestMediaType': 'string',
'artifactMediaType': 'string',
'imageStatus': 'ACTIVE'|'DEPRECATED',
'scheduledDeletionAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
repositoryName (string) --
The name of the premium repository that's associated with the request.
registryAlias (string) --
The registry alias that's associated with the request.
imageDetails (list) --
A list of EntitledImageDetail objects that contain data about the images.
(dict) --
An object that describes an image in a premium repository that you're entitled to. It's returned by a DescribeEntitledImages operation.
repositoryName (string) --
The name of the premium repository where this image belongs.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTags (list) --
The list of tags that's associated with this image.
(string) --
imageSizeInBytes (integer) --
The size, in bytes, of the image in the repository. If the image is a manifest list, this is the max size of all manifests in the list.
imagePushedAt (datetime) --
The date and time that the image was pushed to the repository.
imageManifestMediaType (string) --
The media type of the image manifest.
artifactMediaType (string) --
The artifact media type of the image.
imageStatus (string) --
The status of the image. Valid values:
ACTIVE: The image isn't scheduled for deletion.
DEPRECATED: The image is scheduled for deletion. Entitled buyers can still pull it until it's deleted.
scheduledDeletionAt (datetime) --
The date and time that the deprecated image is scheduled for deletion. This is the time of the SetImageStatus request plus the deprecation period. Amazon ECR deletes the image within 24 hours after this time. Amazon ECR returns this value only when the image status is DEPRECATED.
nextToken (string) --
The nextToken value to include in a future DescribeEntitledImages request. When the results of a DescribeEntitledImages request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
Retrieves the catalog data that's associated with a premium repository.
See also: AWS API Documentation
Request Syntax
client.get_premium_repository_catalog_data(
registryId='string',
repositoryName='string'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository to retrieve the catalog data for.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
catalogData (dict) --
The catalog data that's associated with the premium repository.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
Retrieves the repository policy for the specified premium repository.
See also: AWS API Documentation
Request Syntax
client.get_premium_repository_policy(
registryId='string',
repositoryName='string'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository with the policy to retrieve.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'policyText': 'string'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
policyText (string) --
The repository policy text that's associated with the premium repository. The policy text is in JSON format.
Deletes the repository policy that's associated with the specified premium repository.
See also: AWS API Documentation
Request Syntax
client.delete_premium_repository_policy(
registryId='string',
repositoryName='string'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository policy to delete. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository that's associated with the repository policy to delete.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'policyText': 'string'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
policyText (string) --
The JSON repository policy that was deleted from the premium repository.
Removes the association between two repositories in a public registry. One repository must be FREE and the other must be PREMIUM.
See also: AWS API Documentation
Request Syntax
client.disassociate_repositories(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
associatedRepositoryName='string',
associatedRepositoryType='FREE'|'PREMIUM'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repositories to disassociate. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the source repository.
string
[REQUIRED]
The type of the source repository. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
[REQUIRED]
The name of the repository to disassociate from the source repository.
string
[REQUIRED]
The type of the repository to disassociate from the source repository. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'associatedRepositoryName': 'string',
'associatedRepositoryType': 'FREE'|'PREMIUM'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The name of the source repository.
repositoryType (string) --
The type of the source repository.
associatedRepositoryName (string) --
The name of the repository that was disassociated from the source repository.
associatedRepositoryType (string) --
The type of the repository that was disassociated from the source repository.
Replaces the list of Amazon Web Services Marketplace products for a premium repository. You must specify the full list of products, from one to five. To add a product, include it with the existing products.
You can remove a product only while the repository is in the DRAFT state. After the repository leaves the DRAFT state, you can only add products. A request that leaves out an existing product fails with InvalidParameterException.
See also: AWS API Documentation
Request Syntax
client.put_premium_repository_products(
registryId='string',
repositoryName='string',
marketplaceProducts=[
'string',
]
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository to set the products for.
list
[REQUIRED]
The full list of Amazon Web Services Marketplace product IDs for the premium repository. This list replaces the existing list. You can specify from one to five product IDs. Your account must own each product, and each product must have an Amazon ECR Public Premium delivery option. You can't specify the same product ID more than once.
(string) --
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'marketplaceProducts': [
'string',
]
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
marketplaceProducts (list) --
The list of Amazon Web Services Marketplace product IDs that's now set on the premium repository.
(string) --
Associates a repository with another repository of a different type in the same public registry, so that the Amazon ECR Public Gallery shows them side by side. One repository must be FREE and the other must be PREMIUM. Both repositories must already exist, and each repository can have at most one associated repository.
See also: AWS API Documentation
Request Syntax
client.associate_repositories(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
associatedRepositoryName='string',
associatedRepositoryType='FREE'|'PREMIUM'
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repositories to associate. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the source repository.
string
[REQUIRED]
The type of the source repository. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
[REQUIRED]
The name of the repository to associate with the source repository.
string
[REQUIRED]
The type of the repository to associate with the source repository. This must be different from the type of the source repository. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'associatedRepositoryName': 'string',
'associatedRepositoryType': 'FREE'|'PREMIUM'
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The name of the source repository.
repositoryType (string) --
The type of the source repository.
associatedRepositoryName (string) --
The name of the repository that's associated with the source repository.
associatedRepositoryType (string) --
The type of the repository that's associated with the source repository.
Updates the catalog data for a premium repository. Fields that you include replace the stored values, and fields that you leave out aren't changed. A premium repository is listed in the Amazon ECR Public Gallery when it's AVAILABLE and at least one of its Amazon Web Services Marketplace products is public.
See also: AWS API Documentation
Request Syntax
client.put_premium_repository_catalog_data(
registryId='string',
repositoryName='string',
catalogData={
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoImageBlob': b'bytes',
'aboutText': 'string',
'usageText': 'string',
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
]
}
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the premium repository. If you do not specify a registry, the default public registry is assumed. You can specify only your own account ID. Cross-account access through a repository policy isn't supported for this operation.
string
[REQUIRED]
The name of the premium repository to create or update the catalog data for.
dict
[REQUIRED]
An object that contains the catalog data to update for the premium repository. Fields that you leave out aren't changed. To remove the logo, specify an empty logoImageBlob.
description (string) --
A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
architectures (list) --
The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.
ARM
ARM 64
x86
x86-64
(string) --
operatingSystems (list) --
The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.
Linux
Windows
(string) --
logoImageBlob (bytes) --
The base64-encoded repository logo payload.
aboutText (string) --
A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
usageText (string) --
Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery. You can specify up to three categories, and each category can only be specified once.
(string) --
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The premium repository name that's associated with the request.
catalogData (dict) --
The full catalog data of the premium repository after the update.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
Returns the image tag details for a premium repository that you're entitled to through an Amazon Web Services Marketplace purchase.
See also: AWS API Documentation
Request Syntax
client.describe_entitled_image_tags(
repositoryName='string',
registryAlias='string',
nextToken='string',
maxResults=123
)
string
[REQUIRED]
The name of the premium repository that contains the image tags to describe.
string
[REQUIRED]
The registry alias of the publisher that owns the premium repository. The alias is the first part of the premium repository URI.
string
The nextToken value that's returned from a previous paginated DescribeEntitledImageTags request where you used maxResults and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.
integer
The maximum number of results that DescribeEntitledImageTags returns in paginated output. When you use this parameter, DescribeEntitledImageTags returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another DescribeEntitledImageTags request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, DescribeEntitledImageTags returns up to 100 results and a nextToken value, if applicable.
dict
Response Syntax
{
'repositoryName': 'string',
'registryAlias': 'string',
'imageTagDetails': [
{
'imageTag': 'string',
'createdAt': datetime(2015, 1, 1),
'imageDetail': {
'imageDigest': 'string',
'imageSizeInBytes': 123,
'imagePushedAt': datetime(2015, 1, 1),
'imageManifestMediaType': 'string',
'artifactMediaType': 'string',
'imageStatus': 'ACTIVE'|'DEPRECATED',
'scheduledDeletionAt': datetime(2015, 1, 1)
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
repositoryName (string) --
The name of the premium repository that's associated with the request.
registryAlias (string) --
The registry alias that's associated with the request.
imageTagDetails (list) --
The image tag details for the images in the premium repository.
(dict) --
An object that represents the image tag details for an image in a premium repository that you're entitled to.
imageTag (string) --
The tag that's associated with the image.
createdAt (datetime) --
The time stamp that indicates when the image tag was created.
imageDetail (dict) --
An object that describes the details of the image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageSizeInBytes (integer) --
The size, in bytes, of the image in the repository.
If the image is a manifest list, this is the max size of all manifests in the list.
imagePushedAt (datetime) --
The date and time, expressed in standard JavaScript date format, which the current image tag was pushed to the repository at.
imageManifestMediaType (string) --
The media type of the image manifest.
artifactMediaType (string) --
The artifact media type of the image.
imageStatus (string) --
The status of the image. Valid values:
ACTIVE: The image isn't scheduled for deletion.
DEPRECATED: The image is scheduled for deletion. Entitled buyers can still pull it until it's deleted.
scheduledDeletionAt (datetime) --
The date and time that the deprecated image is scheduled for deletion. This is the time of the SetImageStatus request plus the deprecation period. Amazon ECR deletes the image within 24 hours after this time. Amazon ECR returns this value only when the image status is DEPRECATED.
nextToken (string) --
The nextToken value to include in a future DescribeEntitledImageTags request. When the results of a DescribeEntitledImageTags request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
{'repositoryType': 'FREE | PREMIUM'}
Checks the availability of one or more image layers that are within a repository in a public registry. When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.
See also: AWS API Documentation
Request Syntax
client.batch_check_layer_availability(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
layerDigests=[
'string',
]
)
string
The Amazon Web Services account ID, or registry alias, associated with the public registry that contains the image layers to check. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository that's associated with the image layers to check.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
list
[REQUIRED]
The digests of the image layers to check.
(string) --
dict
Response Syntax
{
'layers': [
{
'layerDigest': 'string',
'layerAvailability': 'AVAILABLE'|'UNAVAILABLE',
'layerSize': 123,
'mediaType': 'string'
},
],
'failures': [
{
'layerDigest': 'string',
'failureCode': 'InvalidLayerDigest'|'MissingLayerDigest',
'failureReason': 'string'
},
]
}
Response Structure
(dict) --
layers (list) --
A list of image layer objects that correspond to the image layer references in the request.
(dict) --
An object that represents an Amazon ECR image layer.
layerDigest (string) --
The sha256 digest of the image layer.
layerAvailability (string) --
The availability status of the image layer.
layerSize (integer) --
The size, in bytes, of the image layer.
mediaType (string) --
The media type of the layer, such as application/vnd.docker.image.rootfs.diff.tar.gzip or application/vnd.oci.image.layer.v1.tar+gzip.
failures (list) --
Any failures associated with the call.
(dict) --
An object that represents an Amazon ECR image layer failure.
layerDigest (string) --
The layer digest that's associated with the failure.
failureCode (string) --
The failure code that's associated with the failure.
failureReason (string) --
The reason for the failure.
{'repositoryType': 'FREE | PREMIUM'}
Response {'failures': {'failureCode': {'ImageNotEligibleForDeletion'}}}
Deletes a list of specified images that are within a repository in a public registry. Images are specified with either an imageTag or imageDigest.
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the digest of the image in your request.
See also: AWS API Documentation
Request Syntax
client.batch_delete_image(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
imageIds=[
{
'imageDigest': 'string',
'imageTag': 'string'
},
]
)
string
The Amazon Web Services account ID, or registry alias, that's associated with the registry that contains the image to delete. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The repository in a public registry that contains the image to delete.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
list
[REQUIRED]
A list of image ID references that correspond to images to delete. The format of the imageIds reference is imageTag=tag or imageDigest=digest.
(dict) --
An object with identifying information for an Amazon ECR image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
dict
Response Syntax
{
'imageIds': [
{
'imageDigest': 'string',
'imageTag': 'string'
},
],
'failures': [
{
'imageId': {
'imageDigest': 'string',
'imageTag': 'string'
},
'failureCode': 'InvalidImageDigest'|'InvalidImageTag'|'ImageTagDoesNotMatchDigest'|'ImageNotFound'|'MissingDigestAndTag'|'ImageReferencedByManifestList'|'KmsError'|'ImageNotEligibleForDeletion',
'failureReason': 'string'
},
]
}
Response Structure
(dict) --
imageIds (list) --
The image IDs of the deleted images.
(dict) --
An object with identifying information for an Amazon ECR image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
failures (list) --
Any failures associated with the call.
(dict) --
An object that represents an Amazon ECR image failure.
imageId (dict) --
The image ID that's associated with the failure.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
failureCode (string) --
The code that's associated with the failure.
failureReason (string) --
The reason for the failure.
{'repositoryType': 'FREE | PREMIUM'}
Informs Amazon ECR that the image layer upload is complete for a specified public registry, repository name, and upload ID. You can optionally provide a sha256 digest of the image layer for data validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once for each new image layer to verify that the upload is complete.
See also: AWS API Documentation
Request Syntax
client.complete_layer_upload(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
uploadId='string',
layerDigests=[
'string',
]
)
string
The Amazon Web Services account ID, or registry alias, associated with the registry where layers are uploaded. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository in a public registry to associate with the image layer.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
[REQUIRED]
The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.
list
[REQUIRED]
The sha256 digest of the image layer.
(string) --
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'uploadId': 'string',
'layerDigest': 'string'
}
Response Structure
(dict) --
registryId (string) --
The public registry ID that's associated with the request.
repositoryName (string) --
The repository name that's associated with the request.
repositoryType (string) --
The type of the repository.
uploadId (string) --
The upload ID that's associated with the layer.
layerDigest (string) --
The sha256 digest of the image layer.
{'catalogData': {'categories': ['BASE_IMAGES | APPLICATION_RUNTIMES | '
'DATABASES | AI_ML | NETWORKING | SECURITY | '
'MONITORING | CI_CD_TOOLS | '
'KUBERNETES_EXTENSIONS | WEB_SERVERS | '
'STREAMING']}}
Response {'catalogData': {'artifactTypes': ['IMAGE | HELM'],
'badges': ['FIPS | STIG | SIGNED | SBOM | CIS'],
'categories': ['BASE_IMAGES | APPLICATION_RUNTIMES | '
'DATABASES | AI_ML | NETWORKING | SECURITY | '
'MONITORING | CI_CD_TOOLS | '
'KUBERNETES_EXTENSIONS | WEB_SERVERS | '
'STREAMING']},
'repository': {'associatedRepositories': [{'repositoryName': 'string',
'repositoryType': 'FREE | '
'PREMIUM'}]}}
Creates a repository in a public registry. For more information, see Public repositories in the Amazon Elastic Container Registry Public User Guide.
See also: AWS API Documentation
Request Syntax
client.create_repository(
repositoryName='string',
catalogData={
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoImageBlob': b'bytes',
'aboutText': 'string',
'usageText': 'string',
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
]
},
tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name can be specified on its own (for example nginx-web-app) or prepended with a namespace to group the repository into a category (for example project-a/nginx-web-app).
dict
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
description (string) --
A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
architectures (list) --
The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.
ARM
ARM 64
x86
x86-64
(string) --
operatingSystems (list) --
The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.
Linux
Windows
(string) --
logoImageBlob (bytes) --
The base64-encoded repository logo payload.
aboutText (string) --
A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
usageText (string) --
Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery. You can specify up to three categories, and each category can only be specified once.
(string) --
list
The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
(dict) --
The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Key (string) --
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
Value (string) --
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
dict
Response Syntax
{
'repository': {
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
]
},
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
repository (dict) --
The repository that was created.
repositoryArn (string) --
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the repository.
repositoryName (string) --
The name of the repository.
repositoryUri (string) --
The URI for the repository. You can use this URI for container image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the repository was created.
associatedRepositories (list) --
The repositories that are associated with this repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
catalogData (dict) --
The catalog data for the repository that was created.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
{'repository': {'associatedRepositories': [{'repositoryName': 'string',
'repositoryType': 'FREE | '
'PREMIUM'}]}}
Deletes a repository in a public registry. If the repository contains images, you must either manually delete all images in the repository or use the force option. This option deletes all images on your behalf before deleting the repository.
See also: AWS API Documentation
Request Syntax
client.delete_repository(
registryId='string',
repositoryName='string',
force=True|False
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repository to delete. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository to delete.
boolean
The force option can be used to delete a repository that contains images. If the force option is not used, the repository must be empty prior to deletion.
dict
Response Syntax
{
'repository': {
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
]
}
}
Response Structure
(dict) --
repository (dict) --
The repository that was deleted.
repositoryArn (string) --
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the repository.
repositoryName (string) --
The name of the repository.
repositoryUri (string) --
The URI for the repository. You can use this URI for container image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the repository was created.
associatedRepositories (list) --
The repositories that are associated with this repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
{'repositoryType': 'FREE | PREMIUM'}
Response {'imageTagDetails': {'imageDetail': {'imageStatus': 'ACTIVE | DEPRECATED',
'scheduledDeletionAt': 'timestamp'}}}
Returns the image tag details for a repository in a public registry.
See also: AWS API Documentation
Request Syntax
client.describe_image_tags(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
nextToken='string',
maxResults=123
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repository where images are described. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository that contains the image tag details to describe.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
The nextToken value that's returned from a previous paginated DescribeImageTags request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null. If you specify images with imageIds, you can't use this option.
integer
The maximum number of repository results that's returned by DescribeImageTags in paginated output. When this parameter is used, DescribeImageTags only returns maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another DescribeImageTags request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn't used, then DescribeImageTags returns up to 100 results and a nextToken value, if applicable. If you specify images with imageIds, you can't use this option.
dict
Response Syntax
{
'imageTagDetails': [
{
'imageTag': 'string',
'createdAt': datetime(2015, 1, 1),
'imageDetail': {
'imageDigest': 'string',
'imageSizeInBytes': 123,
'imagePushedAt': datetime(2015, 1, 1),
'imageManifestMediaType': 'string',
'artifactMediaType': 'string',
'imageStatus': 'ACTIVE'|'DEPRECATED',
'scheduledDeletionAt': datetime(2015, 1, 1)
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
imageTagDetails (list) --
The image tag details for the images in the requested repository.
(dict) --
An object that represents the image tag details for an image.
imageTag (string) --
The tag that's associated with the image.
createdAt (datetime) --
The time stamp that indicates when the image tag was created.
imageDetail (dict) --
An object that describes the details of an image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageSizeInBytes (integer) --
The size, in bytes, of the image in the repository.
If the image is a manifest list, this is the max size of all manifests in the list.
imagePushedAt (datetime) --
The date and time, expressed in standard JavaScript date format, which the current image tag was pushed to the repository at.
imageManifestMediaType (string) --
The media type of the image manifest.
artifactMediaType (string) --
The artifact media type of the image.
imageStatus (string) --
The status of the image. Valid values:
ACTIVE: The image isn't scheduled for deletion.
DEPRECATED: The image is scheduled for deletion. Entitled buyers can still pull it until it's deleted.
scheduledDeletionAt (datetime) --
The date and time that the deprecated image is scheduled for deletion. This is the time of the SetImageStatus request plus the deprecation period. Amazon ECR deletes the image within 24 hours after this time. Amazon ECR returns this value only when the image status is DEPRECATED.
nextToken (string) --
The nextToken value to include in a future DescribeImageTags request. When the results of a DescribeImageTags request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
{'repositoryType': 'FREE | PREMIUM'}
Response {'imageDetails': {'imageStatus': 'ACTIVE | DEPRECATED',
'repositoryType': 'FREE | PREMIUM',
'scheduledDeletionAt': 'timestamp',
'subjectManifestDigest': 'string'}}
Returns metadata that's related to the images in a repository in a public registry.
See also: AWS API Documentation
Request Syntax
client.describe_images(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
imageIds=[
{
'imageDigest': 'string',
'imageTag': 'string'
},
],
nextToken='string',
maxResults=123
)
string
The Amazon Web Services account ID that's associated with the public registry that contains the repository where images are described. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The repository that contains the images to describe.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
list
The list of image IDs for the requested repository.
(dict) --
An object with identifying information for an Amazon ECR image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
string
The nextToken value that's returned from a previous paginated DescribeImages request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null. If you specify images with imageIds, you can't use this option.
integer
The maximum number of repository results that's returned by DescribeImages in paginated output. When this parameter is used, DescribeImages only returns maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another DescribeImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn't used, then DescribeImages returns up to 100 results and a nextToken value, if applicable. If you specify images with imageIds, you can't use this option.
dict
Response Syntax
{
'imageDetails': [
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'imageDigest': 'string',
'imageTags': [
'string',
],
'imageSizeInBytes': 123,
'imagePushedAt': datetime(2015, 1, 1),
'imageManifestMediaType': 'string',
'artifactMediaType': 'string',
'subjectManifestDigest': 'string',
'imageStatus': 'ACTIVE'|'DEPRECATED',
'scheduledDeletionAt': datetime(2015, 1, 1)
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
imageDetails (list) --
A list of ImageDetail objects that contain data about the image.
(dict) --
An object that describes an image that's returned by a DescribeImages operation.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry where this image belongs.
repositoryName (string) --
The name of the repository where this image belongs.
repositoryType (string) --
The type of the repository.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTags (list) --
The list of tags that's associated with this image.
(string) --
imageSizeInBytes (integer) --
The size, in bytes, of the image in the repository.
If the image is a manifest list, this is the max size of all manifests in the list.
imagePushedAt (datetime) --
The date and time, expressed in standard JavaScript date format, that the current image was pushed to the repository at.
imageManifestMediaType (string) --
The media type of the image manifest.
artifactMediaType (string) --
The artifact media type of the image.
subjectManifestDigest (string) --
The digest of the manifest that this image refers to as its subject.
imageStatus (string) --
The status of the image. Valid values:
ACTIVE: The image isn't scheduled for deletion.
DEPRECATED: The image is scheduled for deletion. Entitled buyers can still pull it until it's deleted.
scheduledDeletionAt (datetime) --
The date and time that the deprecated image is scheduled for deletion. This is the time of the SetImageStatus request plus the deprecation period. Amazon ECR deletes the image within 24 hours after this time. Amazon ECR returns this value only when the image status is DEPRECATED.
nextToken (string) --
The nextToken value to include in a future DescribeImages request. When the results of a DescribeImages request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.
{'registries': {'premiumRegistryUri': 'string',
'premiumStatus': 'ENABLED | DISABLED'}}
Returns details for a public registry.
See also: AWS API Documentation
Request Syntax
client.describe_registries(
nextToken='string',
maxResults=123
)
string
The nextToken value that's returned from a previous paginated DescribeRegistries request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null.
integer
The maximum number of repository results that's returned by DescribeRegistries in paginated output. When this parameter is used, DescribeRegistries only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeRegistries request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn't used, then DescribeRegistries returns up to 100 results and a nextToken value, if applicable.
dict
Response Syntax
{
'registries': [
{
'registryId': 'string',
'registryArn': 'string',
'registryUri': 'string',
'verified': True|False,
'aliases': [
{
'name': 'string',
'status': 'ACTIVE'|'PENDING'|'REJECTED',
'primaryRegistryAlias': True|False,
'defaultRegistryAlias': True|False
},
],
'premiumStatus': 'ENABLED'|'DISABLED',
'premiumRegistryUri': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
registries (list) --
An object that contains the details for a public registry.
(dict) --
The details of a public registry.
registryId (string) --
The Amazon Web Services account ID that's associated with the registry. If you do not specify a registry, the default public registry is assumed.
registryArn (string) --
The Amazon Resource Name (ARN) of the public registry.
registryUri (string) --
The URI of a public registry. The URI contains a universal prefix and the registry alias.
verified (boolean) --
Indicates whether the account is a verified Amazon Web Services Marketplace vendor. If an account is verified, each public repository receives a verified account badge on the Amazon ECR Public Gallery.
aliases (list) --
An array of objects that represents the aliases for a public registry.
(dict) --
An object representing the aliases for a public registry. A public registry is given an alias when it's created. However, a custom alias can be set using the Amazon ECR console. For more information, see Public registries in the Amazon Elastic Container Registry Public User Guide.
name (string) --
The name of the registry alias.
status (string) --
The status of the registry alias.
primaryRegistryAlias (boolean) --
Indicates whether the registry alias is the primary alias for the registry. If true, the alias is the primary registry alias and is displayed in both the repository URL and the image URI used in the docker pull commands on the Amazon ECR Public Gallery.
defaultRegistryAlias (boolean) --
Indicates whether the registry alias is the default alias for the registry. When the first public repository is created, your public registry is assigned a default registry alias.
premiumStatus (string) --
Indicates whether the registry is enabled for premium repositories.
premiumRegistryUri (string) --
The URI of the endpoint for the premium repositories in the registry.
nextToken (string) --
The nextToken value to include in a future DescribeRepositories request. If the results of a DescribeRepositories request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results, this value is null.
{'repositories': {'associatedRepositories': [{'repositoryName': 'string',
'repositoryType': 'FREE | '
'PREMIUM'}]}}
Describes repositories that are in a public registry.
See also: AWS API Documentation
Request Syntax
client.describe_repositories(
registryId='string',
repositoryNames=[
'string',
],
nextToken='string',
maxResults=123
)
string
The Amazon Web Services account ID that's associated with the registry that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed.
list
A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.
(string) --
string
The nextToken value that's returned from a previous paginated DescribeRepositories request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. If there are no more results to return, this value is null. If you specify repositories with repositoryNames, you can't use this option.
integer
The maximum number of repository results that's returned by DescribeRepositories in paginated output. When this parameter is used, DescribeRepositories only returns maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another DescribeRepositories request with the returned nextToken value. This value can be between 1 and 1000. If this parameter isn't used, then DescribeRepositories returns up to 100 results and a nextToken value, if applicable. If you specify repositories with repositoryNames, you can't use this option.
dict
Response Syntax
{
'repositories': [
{
'repositoryArn': 'string',
'registryId': 'string',
'repositoryName': 'string',
'repositoryUri': 'string',
'createdAt': datetime(2015, 1, 1),
'associatedRepositories': [
{
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM'
},
]
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
repositories (list) --
A list of repository objects corresponding to valid repositories.
(dict) --
An object representing a repository.
repositoryArn (string) --
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.
registryId (string) --
The Amazon Web Services account ID that's associated with the public registry that contains the repository.
repositoryName (string) --
The name of the repository.
repositoryUri (string) --
The URI for the repository. You can use this URI for container image push and pull operations.
createdAt (datetime) --
The date and time, in JavaScript date format, when the repository was created.
associatedRepositories (list) --
The repositories that are associated with this repository.
(dict) --
An object that identifies a repository that's associated with another repository.
repositoryName (string) --
The name of the associated repository.
repositoryType (string) --
The type of the associated repository.
nextToken (string) --
The nextToken value to include in a future DescribeRepositories request. When the results of a DescribeRepositories request exceed maxResults, this value can be used to retrieve the next page of results. If there are no more results to return, this value is null.
{'registryCatalogData': {'description': 'string', 'logoUrl': 'string'}}
Retrieves catalog metadata for a public registry.
See also: AWS API Documentation
Request Syntax
client.get_registry_catalog_data()
dict
Response Syntax
{
'registryCatalogData': {
'displayName': 'string',
'description': 'string',
'logoUrl': 'string'
}
}
Response Structure
(dict) --
registryCatalogData (dict) --
The catalog metadata for the public registry.
displayName (string) --
The display name for a public registry. This appears on the Amazon ECR Public Gallery.
description (string) --
The description of the public registry.
logoUrl (string) --
The URL of the logo for the public registry.
{'catalogData': {'artifactTypes': ['IMAGE | HELM'],
'badges': ['FIPS | STIG | SIGNED | SBOM | CIS'],
'categories': ['BASE_IMAGES | APPLICATION_RUNTIMES | '
'DATABASES | AI_ML | NETWORKING | SECURITY | '
'MONITORING | CI_CD_TOOLS | '
'KUBERNETES_EXTENSIONS | WEB_SERVERS | '
'STREAMING']}}
Retrieve catalog metadata for a repository in a public registry. This metadata is displayed publicly in the Amazon ECR Public Gallery.
See also: AWS API Documentation
Request Syntax
client.get_repository_catalog_data(
registryId='string',
repositoryName='string'
)
string
The Amazon Web Services account ID that's associated with the registry that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository to retrieve the catalog metadata for.
dict
Response Syntax
{
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
catalogData (dict) --
The catalog metadata for the repository.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
{'repositoryType': 'FREE | PREMIUM'}
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once for each image layer that hasn't already been uploaded. Whether an image layer uploads is determined by the BatchCheckLayerAvailability API action.
See also: AWS API Documentation
Request Syntax
client.initiate_layer_upload(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM'
)
string
The Amazon Web Services account ID, or registry alias, that's associated with the registry to which you intend to upload layers. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository that you want to upload layers to.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
dict
Response Syntax
{
'uploadId': 'string',
'partSize': 123
}
Response Structure
(dict) --
uploadId (string) --
The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.
partSize (integer) --
The size, in bytes, that Amazon ECR expects future layer part uploads to be.
{'repositoryType': 'FREE | PREMIUM'}
Response {'image': {'repositoryType': 'FREE | PREMIUM',
'subjectManifestDigest': 'string'}}
Creates or updates the image manifest and tags that are associated with an image.
When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags that are associated with the image.
See also: AWS API Documentation
Request Syntax
client.put_image(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
imageManifest='string',
imageManifestMediaType='string',
imageTag='string',
imageDigest='string'
)
string
The Amazon Web Services account ID, or registry alias, that's associated with the public registry that contains the repository where the image is put. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository where the image is put.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
[REQUIRED]
The image manifest that corresponds to the image to be uploaded.
string
The media type of the image manifest. If you push an image manifest that doesn't contain the mediaType field, you must specify the imageManifestMediaType in the request.
string
The tag to associate with the image. This parameter is optional.
string
The image digest of the image manifest that corresponds to the image.
dict
Response Syntax
{
'image': {
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'imageId': {
'imageDigest': 'string',
'imageTag': 'string'
},
'imageManifest': 'string',
'imageManifestMediaType': 'string',
'subjectManifestDigest': 'string'
}
}
Response Structure
(dict) --
image (dict) --
Details of the image uploaded.
registryId (string) --
The Amazon Web Services account ID that's associated with the registry containing the image.
repositoryName (string) --
The name of the repository that's associated with the image.
repositoryType (string) --
The type of the repository.
imageId (dict) --
An object that contains the image tag and image digest associated with an image.
imageDigest (string) --
The sha256 digest of the image manifest.
imageTag (string) --
The tag that's used for the image.
imageManifest (string) --
The image manifest that's associated with the image.
imageManifestMediaType (string) --
The manifest media type of the image.
subjectManifestDigest (string) --
The digest of the manifest that this image refers to as its subject.
{'description': 'string', 'logoImageBlob': 'blob'}
Response {'registryCatalogData': {'description': 'string', 'logoUrl': 'string'}}
Create or update the catalog data for a public registry.
See also: AWS API Documentation
Request Syntax
client.put_registry_catalog_data(
displayName='string',
description='string',
logoImageBlob=b'bytes'
)
string
The display name for a public registry. The display name is shown as the repository author in the Amazon ECR Public Gallery.
string
A description of the public registry. This description is shown in the Amazon ECR Public Gallery.
bytes
The base64-encoded logo image for the public registry. This logo is shown in the Amazon ECR Public Gallery.
dict
Response Syntax
{
'registryCatalogData': {
'displayName': 'string',
'description': 'string',
'logoUrl': 'string'
}
}
Response Structure
(dict) --
registryCatalogData (dict) --
The catalog data for the public registry.
displayName (string) --
The display name for a public registry. This appears on the Amazon ECR Public Gallery.
description (string) --
The description of the public registry.
logoUrl (string) --
The URL of the logo for the public registry.
{'catalogData': {'categories': ['BASE_IMAGES | APPLICATION_RUNTIMES | '
'DATABASES | AI_ML | NETWORKING | SECURITY | '
'MONITORING | CI_CD_TOOLS | '
'KUBERNETES_EXTENSIONS | WEB_SERVERS | '
'STREAMING']}}
Response {'catalogData': {'artifactTypes': ['IMAGE | HELM'],
'badges': ['FIPS | STIG | SIGNED | SBOM | CIS'],
'categories': ['BASE_IMAGES | APPLICATION_RUNTIMES | '
'DATABASES | AI_ML | NETWORKING | SECURITY | '
'MONITORING | CI_CD_TOOLS | '
'KUBERNETES_EXTENSIONS | WEB_SERVERS | '
'STREAMING']}}
Creates or updates the catalog data for a repository in a public registry.
See also: AWS API Documentation
Request Syntax
client.put_repository_catalog_data(
registryId='string',
repositoryName='string',
catalogData={
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoImageBlob': b'bytes',
'aboutText': 'string',
'usageText': 'string',
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
]
}
)
string
The Amazon Web Services account ID that's associated with the public registry the repository is in. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository to create or update the catalog data for.
dict
[REQUIRED]
An object containing the catalog data for a repository. This data is publicly visible in the Amazon ECR Public Gallery.
description (string) --
A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
architectures (list) --
The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.
ARM
ARM 64
x86
x86-64
(string) --
operatingSystems (list) --
The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.
Linux
Windows
(string) --
logoImageBlob (bytes) --
The base64-encoded repository logo payload.
aboutText (string) --
A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
usageText (string) --
Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery. You can specify up to three categories, and each category can only be specified once.
(string) --
dict
Response Syntax
{
'catalogData': {
'description': 'string',
'architectures': [
'string',
],
'operatingSystems': [
'string',
],
'logoUrl': 'string',
'aboutText': 'string',
'usageText': 'string',
'marketplaceCertified': True|False,
'categories': [
'BASE_IMAGES'|'APPLICATION_RUNTIMES'|'DATABASES'|'AI_ML'|'NETWORKING'|'SECURITY'|'MONITORING'|'CI_CD_TOOLS'|'KUBERNETES_EXTENSIONS'|'WEB_SERVERS'|'STREAMING',
],
'badges': [
'FIPS'|'STIG'|'SIGNED'|'SBOM'|'CIS',
],
'artifactTypes': [
'IMAGE'|'HELM',
]
}
}
Response Structure
(dict) --
catalogData (dict) --
The catalog data for the repository.
description (string) --
The short description of the repository.
architectures (list) --
The architecture tags that are associated with the repository.
(string) --
operatingSystems (list) --
The operating system tags that are associated with the repository.
(string) --
logoUrl (string) --
The URL that contains the logo that's associated with the repository.
aboutText (string) --
The longform description of the contents of the repository. This text appears in the repository details on the Amazon ECR Public Gallery.
usageText (string) --
The longform usage details of the contents of the repository. The usage text provides context for users of the repository.
marketplaceCertified (boolean) --
Indicates whether the repository is certified by Amazon Web Services Marketplace.
categories (list) --
The categories that the repository belongs to in the Amazon ECR Public Gallery.
(string) --
badges (list) --
The badges that apply to the repository, such as FIPS or SBOM.
(string) --
artifactTypes (list) --
The types of artifacts that the repository contains, such as IMAGE or HELM.
(string) --
{'repositoryType': 'FREE | PREMIUM'}
Uploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (about 20MB). The UploadLayerPart API is called once for each new image layer part.
See also: AWS API Documentation
Request Syntax
client.upload_layer_part(
registryId='string',
repositoryName='string',
repositoryType='FREE'|'PREMIUM',
uploadId='string',
partFirstByte=123,
partLastByte=123,
layerPartBlob=b'bytes'
)
string
The Amazon Web Services account ID, or registry alias, that's associated with the registry that you're uploading layer parts to. If you do not specify a registry, the default public registry is assumed.
string
[REQUIRED]
The name of the repository that you're uploading layer parts to.
string
The type of the repository. If you don't specify a type, Amazon ECR uses FREE. Valid values:
FREE: A free repository.
PREMIUM: A premium repository that holds paid content.
string
[REQUIRED]
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
integer
[REQUIRED]
The position of the first byte of the layer part witin the overall image layer.
integer
[REQUIRED]
The position of the last byte of the layer part within the overall image layer.
bytes
[REQUIRED]
The base64-encoded layer part payload.
dict
Response Syntax
{
'registryId': 'string',
'repositoryName': 'string',
'repositoryType': 'FREE'|'PREMIUM',
'uploadId': 'string',
'lastByteReceived': 123
}
Response Structure
(dict) --
registryId (string) --
The registry ID that's associated with the request.
repositoryName (string) --
The repository name that's associated with the request.
repositoryType (string) --
The type of the repository.
uploadId (string) --
The upload ID that's associated with the request.
lastByteReceived (integer) --
The integer value of the last byte that's received in the request.