openapi: 3.0.0
info:
version: '2015-09-21'
x-release: v4
title: Amazon EC2 Container Registry
description: '
Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR supports private repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images.
Amazon ECR has service endpoints in each supported Region. For more information, see Amazon ECR endpoints in the Amazon Web Services General Reference.
' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: ecr x-aws-signingName: ecr x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/ecr-2015-09-21.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/ecr/' servers: - url: 'http://api.ecr.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon ECR multi-region endpoint - url: 'https://api.ecr.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon ECR multi-region endpoint - url: 'http://api.ecr.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon ECR endpoint for China (Beijing) and China (Ningxia) - url: 'https://api.ecr.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon ECR endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability: post: operationId: BatchCheckLayerAvailability description: 'Checks the availability of one or more image layers in a repository.
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.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
Deletes a list of specified images within a repository. 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 image''s digest in your request.
' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BatchDeleteImageResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BatchDeleteImageRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.BatchGetImage: post: operationId: BatchGetImage description: 'Gets detailed information for an image. Images are specified with either an imageTag or imageDigest.
When an image is pulled, the BatchGetImage API is called once to retrieve the image manifest.
' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BatchGetImageResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BatchGetImageRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.BatchGetImage parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration: post: operationId: BatchGetRepositoryScanningConfiguration description: Gets the scanning configuration for one or more repositories. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BatchGetRepositoryScanningConfigurationResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' '483': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BatchGetRepositoryScanningConfigurationRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload: post: operationId: CompleteLayerUpload description: 'Informs Amazon ECR that the image layer upload has completed for a specified 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 per each new image layer to verify that the upload has completed.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
force option to delete the repository.'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRepositoryResponse'
'480':
description: ServerException
content:
application/json:
schema:
$ref: '#/components/schemas/ServerException'
'481':
description: InvalidParameterException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'482':
description: RepositoryNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryNotFoundException'
'483':
description: RepositoryNotEmptyException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryNotEmptyException'
'484':
description: KmsException
content:
application/json:
schema:
$ref: '#/components/schemas/KmsException'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRepositoryRequest'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.DeleteRepository
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy:
post:
operationId: DeleteRepositoryPolicy
description: Deletes the repository policy associated with the specified repository.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRepositoryPolicyResponse'
'480':
description: ServerException
content:
application/json:
schema:
$ref: '#/components/schemas/ServerException'
'481':
description: InvalidParameterException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'482':
description: RepositoryNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryNotFoundException'
'483':
description: RepositoryPolicyNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryPolicyNotFoundException'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteRepositoryPolicyRequest'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus:
post:
operationId: DescribeImageReplicationStatus
description: Returns the replication status for a specified image.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeImageReplicationStatusResponse'
'480':
description: ServerException
content:
application/json:
schema:
$ref: '#/components/schemas/ServerException'
'481':
description: InvalidParameterException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'482':
description: ImageNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ImageNotFoundException'
'483':
description: RepositoryNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryNotFoundException'
'484':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeImageReplicationStatusRequest'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings:
post:
operationId: DescribeImageScanFindings
description: Returns the scan findings for the specified image.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeImageScanFindingsResponse'
'480':
description: ServerException
content:
application/json:
schema:
$ref: '#/components/schemas/ServerException'
'481':
description: InvalidParameterException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'482':
description: RepositoryNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/RepositoryNotFoundException'
'483':
description: ImageNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ImageNotFoundException'
'484':
description: ScanNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ScanNotFoundException'
'485':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeImageScanFindingsRequest'
parameters:
- name: maxResults
in: query
schema:
type: string
description: Pagination limit
required: false
- name: nextToken
in: query
schema:
type: string
description: Pagination token
required: false
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeImages:
post:
operationId: DescribeImages
description: 'Returns metadata about the images in a repository.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.
Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours.
The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The CLI offers an get-login-password command that simplifies the login process. For more information, see Registry authentication in the Amazon Elastic Container Registry User Guide.
Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.
When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
Lists all the image IDs for the specified repository.
You can filter images based on whether or not they are tagged by using the tagStatus filter and specifying either TAGGED, UNTAGGED or ANY. For example, you can filter your results to return only UNTAGGED images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your results to return only TAGGED images to list all of the tags in your repository.
Creates or updates the image manifest and tags 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 associated with the image.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
The PutImageScanningConfiguration API is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see PutRegistryScanningConfiguration.
Updates the image scanning configuration for the specified repository.
' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutImageScanningConfigurationResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' '483': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutImageScanningConfigurationRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability: post: operationId: PutImageTagMutability description: 'Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutability in the Amazon Elastic Container Registry User Guide.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutImageTagMutabilityResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutImageTagMutabilityRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy: post: operationId: PutLifecyclePolicy description: 'Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutLifecyclePolicyResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: RepositoryNotFoundException content: application/json: schema: $ref: '#/components/schemas/RepositoryNotFoundException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutLifecyclePolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy: post: operationId: PutRegistryPolicy description: 'Creates or updates the permissions policy for your registry.
A registry policy is used to specify permissions for another Amazon Web Services account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.
' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutRegistryPolicyResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutRegistryPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration: post: operationId: PutRegistryScanningConfiguration description: Creates or updates the scanning configuration for your private registry. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutRegistryScanningConfigurationResponse' '480': description: ServerException content: application/json: schema: $ref: '#/components/schemas/ServerException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutRegistryScanningConfigurationRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration: post: operationId: PutReplicationConfiguration description: 'Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistry API action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see PutRegistryPolicy.
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 (or about 20MB). The UploadLayerPart API is called once per each new image layer part.
This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.
imageIds reference is imageTag=tag or imageDigest=digest.
description: Deletes specified images within a specified repository. Images are specified with either the imageTag or imageDigest.
BatchGetImageResponse:
type: object
example:
failures: []
images:
- imageId:
imageDigest: 'sha256:example76bdff6d83a09ba2a818f0d00000063724a9ac3ba5019c56f74ebf42a'
imageTag: precise
imageManifest: |-
{
"schemaVersion": 1,
"name": "ubuntu",
"tag": "precise",
...
registryId: '244698725403'
repositoryName: ubuntu
properties:
images:
allOf:
- $ref: '#/components/schemas/ImageList'
- description: A list of image objects corresponding to the image references in the request.
failures:
allOf:
- $ref: '#/components/schemas/ImageFailureList'
- description: Any failures associated with the call.
BatchGetImageRequest:
type: object
required:
- repositoryName
- imageIds
title: BatchGetImageRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the images to describe. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository that contains the images to describe.
imageIds:
allOf:
- $ref: '#/components/schemas/ImageIdentifierList'
- description: A list of image ID references that correspond to images to describe. The format of the imageIds reference is imageTag=tag or imageDigest=digest.
acceptedMediaTypes:
allOf:
- $ref: '#/components/schemas/MediaTypeList'
- description: 'The accepted media types for the request.
Valid values: application/vnd.docker.distribution.manifest.v1+json | application/vnd.docker.distribution.manifest.v2+json | application/vnd.oci.image.manifest.v1+json
sha256 digest of the image layer.
CompleteLayerUploadRequest:
type: object
required:
- repositoryName
- uploadId
- layerDigests
title: CompleteLayerUploadRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository to associate with the image layer.
uploadId:
allOf:
- $ref: '#/components/schemas/UploadId'
- description: The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.
layerDigests:
allOf:
- $ref: '#/components/schemas/LayerDigestList'
- description: The sha256 digest of the image layer.
UploadNotFoundException: {}
InvalidLayerException: {}
LayerPartTooSmallException: {}
LayerAlreadyExistsException: {}
EmptyUploadException: {}
KmsException: {}
CreatePullThroughCacheRuleResponse:
type: object
properties:
ecrRepositoryPrefix:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
- description: The Amazon ECR repository prefix associated with the pull through cache rule.
upstreamRegistryUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: The upstream registry URL associated with the pull through cache rule.
createdAt:
allOf:
- $ref: '#/components/schemas/CreationTimestamp'
- description: 'The date and time, in JavaScript date format, when the pull through cache rule was created.'
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
CreatePullThroughCacheRuleRequest:
type: object
required:
- ecrRepositoryPrefix
- upstreamRegistryUrl
title: CreatePullThroughCacheRuleRequest
properties:
ecrRepositoryPrefix:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
- description: The repository name prefix to use when caching images from the source registry.
upstreamRegistryUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: The registry URL of the upstream public registry to use as the source for the pull through cache rule.
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.'
PullThroughCacheRuleAlreadyExistsException: {}
UnsupportedUpstreamRegistryException: {}
LimitExceededException: {}
CreateRepositoryResponse:
type: object
example:
repository:
registryId: 012345678901
repositoryArn: 'arn:aws:ecr:us-west-2:012345678901:repository/project-a/nginx-web-app'
repositoryName: project-a/nginx-web-app
properties:
repository:
allOf:
- $ref: '#/components/schemas/Repository'
- description: The repository that was created.
CreateRepositoryRequest:
type: object
required:
- repositoryName
title: CreateRepositoryRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app).
tags:
allOf:
- $ref: '#/components/schemas/TagList'
- description: 'The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.'
imageTagMutability:
allOf:
- $ref: '#/components/schemas/ImageTagMutability'
- description: 'The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.'
imageScanningConfiguration:
allOf:
- $ref: '#/components/schemas/ImageScanningConfiguration'
- description: The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
encryptionConfiguration:
allOf:
- $ref: '#/components/schemas/EncryptionConfiguration'
- description: The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
InvalidTagParameterException: {}
TooManyTagsException: {}
RepositoryAlreadyExistsException: {}
DeleteLifecyclePolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
lifecyclePolicyText:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyText'
- description: The JSON lifecycle policy text.
lastEvaluatedAt:
allOf:
- $ref: '#/components/schemas/EvaluationTimestamp'
- description: The time stamp of the last time that the lifecycle policy was run.
DeleteLifecyclePolicyRequest:
type: object
required:
- repositoryName
title: DeleteLifecyclePolicyRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
LifecyclePolicyNotFoundException: {}
DeletePullThroughCacheRuleResponse:
type: object
properties:
ecrRepositoryPrefix:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
- description: The Amazon ECR repository prefix associated with the request.
upstreamRegistryUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: The upstream registry URL associated with the pull through cache rule.
createdAt:
allOf:
- $ref: '#/components/schemas/CreationTimestamp'
- description: The timestamp associated with the pull through cache rule.
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
DeletePullThroughCacheRuleRequest:
type: object
required:
- ecrRepositoryPrefix
title: DeletePullThroughCacheRuleRequest
properties:
ecrRepositoryPrefix:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
- description: The Amazon ECR repository prefix associated with the pull through cache rule to delete.
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the pull through cache rule. If you do not specify a registry, the default registry is assumed.'
PullThroughCacheRuleNotFoundException: {}
DeleteRegistryPolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
policyText:
allOf:
- $ref: '#/components/schemas/RegistryPolicyText'
- description: The contents of the registry permissions policy that was deleted.
DeleteRegistryPolicyRequest:
type: object
title: DeleteRegistryPolicyRequest
properties: {}
RegistryPolicyNotFoundException: {}
DeleteRepositoryResponse:
type: object
example:
repository:
registryId: 012345678901
repositoryArn: 'arn:aws:ecr:us-west-2:012345678901:repository/ubuntu'
repositoryName: ubuntu
properties:
repository:
allOf:
- $ref: '#/components/schemas/Repository'
- description: The repository that was deleted.
DeleteRepositoryRequest:
type: object
required:
- repositoryName
title: DeleteRepositoryRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository to delete.
force:
allOf:
- $ref: '#/components/schemas/ForceFlag'
- description: ' If a repository contains images, forces the deletion.'
RepositoryNotEmptyException: {}
DeleteRepositoryPolicyResponse:
type: object
example:
policyText: '{ ... }'
registryId: 012345678901
repositoryName: ubuntu
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
policyText:
allOf:
- $ref: '#/components/schemas/RepositoryPolicyText'
- description: The JSON repository policy that was deleted from the repository.
DeleteRepositoryPolicyRequest:
type: object
required:
- repositoryName
title: DeleteRepositoryPolicyRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository policy to delete. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository that is associated with the repository policy to delete.
RepositoryPolicyNotFoundException: {}
DescribeImageReplicationStatusResponse:
type: object
properties:
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
imageId:
$ref: '#/components/schemas/ImageIdentifier'
replicationStatuses:
allOf:
- $ref: '#/components/schemas/ImageReplicationStatusList'
- description: The replication status details for the images in the specified repository.
DescribeImageReplicationStatusRequest:
type: object
required:
- repositoryName
- imageId
title: DescribeImageReplicationStatusRequest
properties:
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository that the image is in.
imageId:
$ref: '#/components/schemas/ImageIdentifier'
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry. If you do not specify a registry, the default registry is assumed.'
ImageNotFoundException: {}
DescribeImageScanFindingsResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
imageId:
$ref: '#/components/schemas/ImageIdentifier'
imageScanStatus:
allOf:
- $ref: '#/components/schemas/ImageScanStatus'
- description: The current state of the scan.
imageScanFindings:
allOf:
- $ref: '#/components/schemas/ImageScanFindings'
- description: The information contained in the image scan findings.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: 'The nextToken value to include in a future DescribeImageScanFindings request. When the results of a DescribeImageScanFindings request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.'
DescribeImageScanFindingsRequest:
type: object
required:
- repositoryName
- imageId
title: DescribeImageScanFindingsRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to describe the image scan findings for. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository for the image for which to describe the scan findings.
imageId:
$ref: '#/components/schemas/ImageIdentifier'
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value returned from a previous paginated DescribeImageScanFindings 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. This value is null when there are no more results to return.
maxResults:
allOf:
- $ref: '#/components/schemas/MaxResults'
- description: 'The maximum number of image scan results returned by DescribeImageScanFindings in paginated output. When this parameter is used, DescribeImageScanFindings 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 DescribeImageScanFindings request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeImageScanFindings returns up to 100 results and a nextToken value, if applicable.'
ScanNotFoundException: {}
DescribeImagesResponse:
type: object
properties:
imageDetails:
allOf:
- $ref: '#/components/schemas/ImageDetailList'
- description: A list of ImageDetail objects that contain data about the image.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: 'The nextToken value to include in a future DescribeImages request. When the results of a DescribeImages request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.'
DescribeImagesRequest:
type: object
required:
- repositoryName
title: DescribeImagesRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to describe images. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository that contains the images to describe.
imageIds:
allOf:
- $ref: '#/components/schemas/ImageIdentifierList'
- description: The list of image IDs for the requested repository.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value 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. This value is null when there are no more results to return. This option cannot be used when you specify images with imageIds.
maxResults:
allOf:
- $ref: '#/components/schemas/MaxResults'
- description: 'The maximum number of repository results 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. The remaining results of the initial request can be seen by sending another DescribeImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeImages returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify images with imageIds.'
filter:
allOf:
- $ref: '#/components/schemas/DescribeImagesFilter'
- description: The filter key and value with which to filter your DescribeImages results.
DescribePullThroughCacheRulesResponse:
type: object
properties:
pullThroughCacheRules:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleList'
- description: The details of the pull through cache rules.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: 'The nextToken value to include in a future DescribePullThroughCacheRulesRequest request. When the results of a DescribePullThroughCacheRulesRequest request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.'
DescribePullThroughCacheRulesRequest:
type: object
title: DescribePullThroughCacheRulesRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry to return the pull through cache rules for. If you do not specify a registry, the default registry is assumed.'
ecrRepositoryPrefixes:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefixList'
- description: 'The Amazon ECR repository prefixes associated with the pull through cache rules to return. If no repository prefix value is specified, all pull through cache rules are returned.'
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value returned from a previous paginated DescribePullThroughCacheRulesRequest 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. This value is null when there are no more results to return.
maxResults:
allOf:
- $ref: '#/components/schemas/MaxResults'
- description: 'The maximum number of pull through cache rules returned by DescribePullThroughCacheRulesRequest in paginated output. When this parameter is used, DescribePullThroughCacheRulesRequest 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 DescribePullThroughCacheRulesRequest request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribePullThroughCacheRulesRequest returns up to 100 results and a nextToken value, if applicable.'
DescribeRegistryResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The ID of the registry.
replicationConfiguration:
allOf:
- $ref: '#/components/schemas/ReplicationConfiguration'
- description: The replication configuration for the registry.
DescribeRegistryRequest:
type: object
title: DescribeRegistryRequest
properties: {}
DescribeRepositoriesResponse:
type: object
example:
repositories:
- registryId: 012345678910
repositoryArn: 'arn:aws:ecr:us-west-2:012345678910:repository/ubuntu'
repositoryName: ubuntu
- registryId: 012345678910
repositoryArn: 'arn:aws:ecr:us-west-2:012345678910:repository/test'
repositoryName: test
properties:
repositories:
allOf:
- $ref: '#/components/schemas/RepositoryList'
- description: A list of repository objects corresponding to valid repositories.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: '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. This value is null when there are no more results to return.'
DescribeRepositoriesRequest:
type: object
title: DescribeRepositoriesRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.'
repositoryNames:
allOf:
- $ref: '#/components/schemas/RepositoryNameList'
- description: 'A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.'
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value 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. This value is null when there are no more results to return. This option cannot be used when you specify repositories with repositoryNames.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
DescribeRepositories in paginated output. When this parameter is used, DescribeRepositories 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 DescribeRepositories request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then DescribeRepositories returns up to 100 results and a nextToken value, if applicable. This option cannot be used when you specify repositories with repositoryNames.'
GetAuthorizationTokenResponse:
type: object
example:
authorizationData:
- authorizationToken: QVdTOkN...
expiresAt: '1470951892432'
proxyEndpoint: 'https://012345678901.dkr.ecr.us-west-2.amazonaws.com'
properties:
authorizationData:
allOf:
- $ref: '#/components/schemas/AuthorizationDataList'
- description: A list of authorization token data objects that correspond to the registryIds values in the request.
GetAuthorizationTokenRequest:
type: object
title: GetAuthorizationTokenRequest
properties:
registryIds:
allOf:
- $ref: '#/components/schemas/GetAuthorizationTokenRegistryIdList'
- deprecated: true
description: 'A list of Amazon Web Services account IDs that are associated with the registries for which to get AuthorizationData objects. If you do not specify a registry, the default registry is assumed.This field is deprecated. The returned authorization token can be used to access any Amazon ECR registry that the IAM principal has access to, specifying a registry ID doesn''t change the permissions scope of the authorization token.'
GetDownloadUrlForLayerResponse:
type: object
properties:
downloadUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: The pre-signed Amazon S3 download URL for the requested layer.
layerDigest:
allOf:
- $ref: '#/components/schemas/LayerDigest'
- description: The digest of the image layer to download.
GetDownloadUrlForLayerRequest:
type: object
required:
- repositoryName
- layerDigest
title: GetDownloadUrlForLayerRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the image layer to download. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository that is associated with the image layer to download.
layerDigest:
allOf:
- $ref: '#/components/schemas/LayerDigest'
- description: The digest of the image layer to download.
LayersNotFoundException: {}
LayerInaccessibleException: {}
GetLifecyclePolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
lifecyclePolicyText:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyText'
- description: The JSON lifecycle policy text.
lastEvaluatedAt:
allOf:
- $ref: '#/components/schemas/EvaluationTimestamp'
- description: The time stamp of the last time that the lifecycle policy was run.
GetLifecyclePolicyRequest:
type: object
required:
- repositoryName
title: GetLifecyclePolicyRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
GetLifecyclePolicyPreviewResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
lifecyclePolicyText:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyText'
- description: The JSON lifecycle policy text.
status:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyPreviewStatus'
- description: The status of the lifecycle policy preview request.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: 'The nextToken value to include in a future GetLifecyclePolicyPreview request. When the results of a GetLifecyclePolicyPreview request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.'
previewResults:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyPreviewResultList'
- description: The results of the lifecycle policy preview request.
summary:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyPreviewSummary'
- description: The list of images that is returned as a result of the action.
GetLifecyclePolicyPreviewRequest:
type: object
required:
- repositoryName
title: GetLifecyclePolicyPreviewRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
imageIds:
allOf:
- $ref: '#/components/schemas/ImageIdentifierList'
- description: The list of imageIDs to be included.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value returned from a previous paginated
GetLifecyclePolicyPreviewRequest 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. This value is
null when there are no more results to return. This option cannot be used when you specify images with imageIds.
maxResults:
allOf:
- $ref: '#/components/schemas/LifecyclePreviewMaxResults'
- description: 'The maximum number of repository results returned by GetLifecyclePolicyPreviewRequest in
paginated output. When this parameter is used, GetLifecyclePolicyPreviewRequest 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 GetLifecyclePolicyPreviewRequest request with the returned nextToken
value. This value can be between 1 and 1000. If this
parameter is not used, then GetLifecyclePolicyPreviewRequest returns up to
100 results and a nextToken value, if
applicable. This option cannot be used when you specify images with imageIds.'
filter:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyPreviewFilter'
- description: 'An optional parameter that filters results based on image tag status and all tags, if tagged.'
LifecyclePolicyPreviewNotFoundException: {}
GetRegistryPolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The ID of the registry.
policyText:
allOf:
- $ref: '#/components/schemas/RegistryPolicyText'
- description: The JSON text of the permissions policy for a registry.
GetRegistryPolicyRequest:
type: object
title: GetRegistryPolicyRequest
properties: {}
GetRegistryScanningConfigurationResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The ID of the registry.
scanningConfiguration:
allOf:
- $ref: '#/components/schemas/RegistryScanningConfiguration'
- description: The scanning configuration for the registry.
GetRegistryScanningConfigurationRequest:
type: object
title: GetRegistryScanningConfigurationRequest
properties: {}
GetRepositoryPolicyResponse:
type: object
example:
policyText: |-
{
"Version" : "2008-10-17",
"Statement" : [ {
"Sid" : "new statement",
"Effect" : "Allow",
"Principal" : {
"AWS" : "arn:aws:iam::012345678901:role/CodeDeployDemo"
},
"Action" : [ "ecr:GetDownloadUrlForLayer", "ecr:BatchGetImage", "ecr:BatchCheckLayerAvailability" ]
} ]
}
registryId: 012345678901
repositoryName: ubuntu
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
policyText:
allOf:
- $ref: '#/components/schemas/RepositoryPolicyText'
- description: The JSON repository policy text associated with the repository.
GetRepositoryPolicyRequest:
type: object
required:
- repositoryName
title: GetRepositoryPolicyRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository with the policy to retrieve.
InitiateLayerUploadResponse:
type: object
properties:
uploadId:
allOf:
- $ref: '#/components/schemas/UploadId'
- description: The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.
partSize:
allOf:
- $ref: '#/components/schemas/PartSize'
- description: 'The size, in bytes, that Amazon ECR expects future layer part uploads to be.'
InitiateLayerUploadRequest:
type: object
required:
- repositoryName
title: InitiateLayerUploadRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry to which you intend to upload layers. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository to which you intend to upload layers.
ListImagesResponse:
type: object
example:
imageIds:
- imageDigest: 'sha256:764f63476bdff6d83a09ba2a818f0d35757063724a9ac3ba5019c56f74ebf42a'
imageTag: precise
properties:
imageIds:
allOf:
- $ref: '#/components/schemas/ImageIdentifierList'
- description: The list of image IDs for the requested repository.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: 'The nextToken value to include in a future ListImages request. When the results of a ListImages request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.'
ListImagesRequest:
type: object
required:
- repositoryName
title: ListImagesRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to list images. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository with image IDs to be listed.
nextToken:
allOf:
- $ref: '#/components/schemas/NextToken'
- description: The nextToken value returned from a previous paginated ListImages 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. This value is null when there are no more results to return.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
ListImages in paginated output. When this parameter is used, ListImages 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 ListImages request with the returned nextToken value. This value can be between 1 and 1000. If this parameter is not used, then ListImages returns up to 100 results and a nextToken value, if applicable.'
filter:
allOf:
- $ref: '#/components/schemas/ListImagesFilter'
- description: The filter key and value with which to filter your ListImages results.
ListTagsForResourceResponse:
type: object
properties:
tags:
allOf:
- $ref: '#/components/schemas/TagList'
- description: The tags for the resource.
ListTagsForResourceRequest:
type: object
required:
- resourceArn
title: ListTagsForResourceRequest
properties:
resourceArn:
allOf:
- $ref: '#/components/schemas/Arn'
- description: 'The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the only supported resource is an Amazon ECR repository.'
PutImageResponse:
type: object
properties:
image:
allOf:
- $ref: '#/components/schemas/Image'
- description: Details of the image uploaded.
PutImageRequest:
type: object
required:
- repositoryName
- imageManifest
title: PutImageRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository in which to put the image.
imageManifest:
allOf:
- $ref: '#/components/schemas/ImageManifest'
- description: The image manifest corresponding to the image to be uploaded.
imageManifestMediaType:
allOf:
- $ref: '#/components/schemas/MediaType'
- description: 'The media type of the image manifest. If you push an image manifest that does not contain the mediaType field, you must specify the imageManifestMediaType in the request.'
imageTag:
allOf:
- $ref: '#/components/schemas/ImageTag'
- description: The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.
imageDigest:
allOf:
- $ref: '#/components/schemas/ImageDigest'
- description: The image digest of the image manifest corresponding to the image.
ImageAlreadyExistsException: {}
ReferencedImagesNotFoundException: {}
ImageTagAlreadyExistsException: {}
ImageDigestDoesNotMatchException: {}
PutImageScanningConfigurationResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
imageScanningConfiguration:
allOf:
- $ref: '#/components/schemas/ImageScanningConfiguration'
- description: The image scanning configuration setting for the repository.
PutImageScanningConfigurationRequest:
type: object
required:
- repositoryName
- imageScanningConfiguration
title: PutImageScanningConfigurationRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to update the image scanning configuration setting. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository in which to update the image scanning configuration setting.
imageScanningConfiguration:
allOf:
- $ref: '#/components/schemas/ImageScanningConfiguration'
- description: The image scanning configuration for the repository. This setting determines whether images are scanned for known vulnerabilities after being pushed to the repository.
PutImageTagMutabilityResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
imageTagMutability:
allOf:
- $ref: '#/components/schemas/ImageTagMutability'
- description: The image tag mutability setting for the repository.
PutImageTagMutabilityRequest:
type: object
required:
- repositoryName
- imageTagMutability
title: PutImageTagMutabilityRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository in which to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository in which to update the image tag mutability settings.
imageTagMutability:
allOf:
- $ref: '#/components/schemas/ImageTagMutability'
- description: 'The tag mutability setting for the repository. If MUTABLE is specified, image tags can be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.'
PutLifecyclePolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID associated with the request.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The repository name associated with the request.
lifecyclePolicyText:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyText'
- description: The JSON repository policy text.
PutLifecyclePolicyRequest:
type: object
required:
- repositoryName
- lifecyclePolicyText
title: PutLifecyclePolicyRequest
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID associated with the registry that contains the repository. If you do
not specify a registry, the default registry is assumed.'
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository to receive the policy.
lifecyclePolicyText:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyText'
- description: The JSON repository policy text to apply to the repository.
PutRegistryPolicyResponse:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry ID.
policyText:
allOf:
- $ref: '#/components/schemas/RegistryPolicyText'
- description: The JSON policy text for your registry.
PutRegistryPolicyRequest:
type: object
required:
- policyText
title: PutRegistryPolicyRequest
properties:
policyText:
allOf:
- $ref: '#/components/schemas/RegistryPolicyText'
- description: 'The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.'
PutRegistryScanningConfigurationResponse:
type: object
properties:
registryScanningConfiguration:
allOf:
- $ref: '#/components/schemas/RegistryScanningConfiguration'
- description: The scanning configuration for your registry.
PutRegistryScanningConfigurationRequest:
type: object
title: PutRegistryScanningConfigurationRequest
properties:
scanType:
allOf:
- $ref: '#/components/schemas/ScanType'
- description: 'The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the BASIC scan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.
When the ENHANCED scan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned.
user:password for private registry authentication using docker login.'
expiresAt:
allOf:
- $ref: '#/components/schemas/ExpirationTimestamp'
- description: The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.
proxyEndpoint:
allOf:
- $ref: '#/components/schemas/ProxyEndpoint'
- description: 'The registry URL to use for this authorization token in a docker login command. The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com.. '
description: An object representing authorization data for an Amazon ECR registry.
AuthorizationDataList:
type: array
items:
$ref: '#/components/schemas/AuthorizationData'
ImageDigest:
type: string
ImageTagsList:
type: array
items:
$ref: '#/components/schemas/ImageTag'
Platform:
type: string
Date:
type: string
format: date-time
RegistryId:
type: string
pattern: '[0-9]{12}'
RepositoryName:
type: string
pattern: '(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*'
minLength: 2
maxLength: 256
AwsEcrContainerImageDetails:
type: object
properties:
architecture:
allOf:
- $ref: '#/components/schemas/Arch'
- description: The architecture of the Amazon ECR container image.
author:
allOf:
- $ref: '#/components/schemas/Author'
- description: The image author of the Amazon ECR container image.
imageHash:
allOf:
- $ref: '#/components/schemas/ImageDigest'
- description: The image hash of the Amazon ECR container image.
imageTags:
allOf:
- $ref: '#/components/schemas/ImageTagsList'
- description: The image tags attached to the Amazon ECR container image.
platform:
allOf:
- $ref: '#/components/schemas/Platform'
- description: The platform of the Amazon ECR container image.
pushedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time the Amazon ECR container image was pushed.
registry:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The registry the Amazon ECR container image belongs to.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository the Amazon ECR container image resides in.
description: The image details of the Amazon ECR container image.
BaseScore:
type: number
format: double
BatchedOperationLayerDigestList:
type: array
items:
$ref: '#/components/schemas/BatchedOperationLayerDigest'
minItems: 1
maxItems: 100
LayerList:
type: array
items:
$ref: '#/components/schemas/Layer'
LayerFailureList:
type: array
items:
$ref: '#/components/schemas/LayerFailure'
ImageIdentifierList:
type: array
items:
$ref: '#/components/schemas/ImageIdentifier'
minItems: 1
maxItems: 100
ImageFailureList:
type: array
items:
$ref: '#/components/schemas/ImageFailure'
MediaTypeList:
type: array
items:
$ref: '#/components/schemas/MediaType'
minItems: 1
maxItems: 100
ImageList:
type: array
items:
$ref: '#/components/schemas/Image'
ScanningConfigurationRepositoryNameList:
type: array
items:
$ref: '#/components/schemas/RepositoryName'
minItems: 1
maxItems: 25
RepositoryScanningConfigurationList:
type: array
items:
$ref: '#/components/schemas/RepositoryScanningConfiguration'
RepositoryScanningConfigurationFailureList:
type: array
items:
$ref: '#/components/schemas/RepositoryScanningConfigurationFailure'
BatchedOperationLayerDigest:
type: string
minLength: 0
maxLength: 1000
UploadId:
type: string
pattern: '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
LayerDigestList:
type: array
items:
$ref: '#/components/schemas/LayerDigest'
minItems: 1
maxItems: 100
LayerDigest:
type: string
pattern: '[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+'
PullThroughCacheRuleRepositoryPrefix:
type: string
pattern: '[a-z0-9]+(?:[._-][a-z0-9]+)*'
minLength: 2
maxLength: 20
Url:
type: string
CreationTimestamp:
type: string
format: date-time
TagList:
type: array
items:
$ref: '#/components/schemas/Tag'
ImageTagMutability:
type: string
enum:
- MUTABLE
- IMMUTABLE
ImageScanningConfiguration:
type: object
properties:
scanOnPush:
allOf:
- $ref: '#/components/schemas/ScanOnPushFlag'
- description: 'The setting that determines whether images are scanned after being pushed to a repository. If set to true, images will be scanned after being pushed. If this parameter is not specified, it will default to false and images will not be scanned unless a scan is manually started with the API_StartImageScan API.'
description: The image scanning configuration for a repository.
EncryptionConfiguration:
type: object
required:
- encryptionType
properties:
encryptionType:
allOf:
- $ref: '#/components/schemas/EncryptionType'
- description: 'The encryption type to use.
If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created. For more information, see Protecting data using server-side encryption with an KMS key stored in Key Management Service (SSE-KMS) in the Amazon Simple Storage Service Console Developer Guide.
If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES-256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.
KMS encryption type, specify the KMS key to use for encryption. The alias, key ID, or full ARN of the KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default Amazon Web Services managed KMS key for Amazon ECR will be used.'
description: 'The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
By default, when no encryption configuration is set or the AES256 encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES-256 encryption algorithm. This does not require any action on your part.
For more control over the encryption of the contents of your repository, you can use server-side encryption with Key Management Service key stored in Key Management Service (KMS) to encrypt your images. For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.
' Repository: type: object properties: repositoryArn: allOf: - $ref: '#/components/schemas/Arn' - description: 'The Amazon Resource Name (ARN) that identifies the repository. The ARN contains thearn: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:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The Amazon Web Services account ID associated with the registry that contains the repository.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
repositoryUri:
allOf:
- $ref: '#/components/schemas/Url'
- description: The URI for the repository. You can use this URI for container image push and pull operations.
createdAt:
allOf:
- $ref: '#/components/schemas/CreationTimestamp'
- description: 'The date and time, in JavaScript date format, when the repository was created.'
imageTagMutability:
allOf:
- $ref: '#/components/schemas/ImageTagMutability'
- description: The tag mutability setting for the repository.
imageScanningConfiguration:
$ref: '#/components/schemas/ImageScanningConfiguration'
encryptionConfiguration:
allOf:
- $ref: '#/components/schemas/EncryptionConfiguration'
- description: The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
description: An object representing a repository.
ScoringVector:
type: string
Source:
type: string
Version:
type: string
CvssScore:
type: object
properties:
baseScore:
allOf:
- $ref: '#/components/schemas/BaseScore'
- description: The base CVSS score used for the finding.
scoringVector:
allOf:
- $ref: '#/components/schemas/ScoringVector'
- description: The vector string of the CVSS score.
source:
allOf:
- $ref: '#/components/schemas/Source'
- description: The source of the CVSS score.
version:
allOf:
- $ref: '#/components/schemas/Version'
- description: The version of CVSS used for the score.
description: The CVSS score for a finding.
Metric:
type: string
Reason:
type: string
CvssScoreAdjustment:
type: object
properties:
metric:
allOf:
- $ref: '#/components/schemas/Metric'
- description: The metric used to adjust the CVSS score.
reason:
allOf:
- $ref: '#/components/schemas/Reason'
- description: The reason the CVSS score has been adjustment.
description: Details on adjustments Amazon Inspector made to the CVSS score for a finding.
CvssScoreAdjustmentList:
type: array
items:
$ref: '#/components/schemas/CvssScoreAdjustment'
Score:
type: number
format: double
CvssScoreDetails:
type: object
properties:
adjustments:
allOf:
- $ref: '#/components/schemas/CvssScoreAdjustmentList'
- description: An object that contains details about adjustment Amazon Inspector made to the CVSS score.
score:
allOf:
- $ref: '#/components/schemas/Score'
- description: The CVSS score.
scoreSource:
allOf:
- $ref: '#/components/schemas/Source'
- description: The source for the CVSS score.
scoringVector:
allOf:
- $ref: '#/components/schemas/ScoringVector'
- description: The vector for the CVSS score.
version:
allOf:
- $ref: '#/components/schemas/Version'
- description: The CVSS version used in scoring.
description: Information about the CVSS score.
CvssScoreList:
type: array
items:
$ref: '#/components/schemas/CvssScore'
LifecyclePolicyText:
type: string
minLength: 100
maxLength: 30720
EvaluationTimestamp:
type: string
format: date-time
RegistryPolicyText:
type: string
minLength: 0
maxLength: 10240
RepositoryPolicyText:
type: string
minLength: 0
maxLength: 10240
ForceFlag:
type: boolean
ImageIdentifier:
type: object
properties:
imageDigest:
allOf:
- $ref: '#/components/schemas/ImageDigest'
- description: The sha256 digest of the image manifest.
imageTag:
allOf:
- $ref: '#/components/schemas/ImageTag'
- description: The tag used for the image.
description: An object with identifying information for an image in an Amazon ECR repository.
ImageReplicationStatusList:
type: array
items:
$ref: '#/components/schemas/ImageReplicationStatus'
NextToken:
type: string
MaxResults:
type: integer
minimum: 1
maximum: 1000
ImageScanStatus:
type: object
properties:
status:
allOf:
- $ref: '#/components/schemas/ScanStatus'
- description: The current state of an image scan.
description:
allOf:
- $ref: '#/components/schemas/ScanStatusDescription'
- description: The description of the image scan status.
description: The current status of an image scan.
ImageScanFindings:
type: object
properties:
imageScanCompletedAt:
allOf:
- $ref: '#/components/schemas/ScanTimestamp'
- description: The time of the last completed image scan.
vulnerabilitySourceUpdatedAt:
allOf:
- $ref: '#/components/schemas/VulnerabilitySourceUpdateTimestamp'
- description: The time when the vulnerability data was last scanned.
findingSeverityCounts:
allOf:
- $ref: '#/components/schemas/FindingSeverityCounts'
- description: 'The image vulnerability counts, sorted by severity.'
findings:
allOf:
- $ref: '#/components/schemas/ImageScanFindingList'
- description: The findings from the image scan.
enhancedFindings:
allOf:
- $ref: '#/components/schemas/EnhancedImageScanFindingList'
- description: Details about the enhanced scan findings from Amazon Inspector.
description: The details of an image scan.
TagStatus:
type: string
enum:
- TAGGED
- UNTAGGED
- ANY
DescribeImagesFilter:
type: object
properties:
tagStatus:
allOf:
- $ref: '#/components/schemas/TagStatus'
- description: The tag status with which to filter your DescribeImages results. You can filter results based on whether they are TAGGED or UNTAGGED.
description: An object representing a filter on a DescribeImages operation.
ImageDetailList:
type: array
items:
$ref: '#/components/schemas/ImageDetail'
PullThroughCacheRuleRepositoryPrefixList:
type: array
items:
$ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
minItems: 1
maxItems: 100
PullThroughCacheRuleList:
type: array
items:
$ref: '#/components/schemas/PullThroughCacheRule'
ReplicationConfiguration:
type: object
required:
- rules
properties:
rules:
allOf:
- $ref: '#/components/schemas/ReplicationRuleList'
- description: An array of objects representing the replication destinations and repository filters for a replication configuration.
description: The replication configuration for a registry.
RepositoryNameList:
type: array
items:
$ref: '#/components/schemas/RepositoryName'
minItems: 1
maxItems: 100
RepositoryList:
type: array
items:
$ref: '#/components/schemas/Repository'
EncryptionType:
type: string
enum:
- AES256
- KMS
KmsKey:
type: string
minLength: 1
maxLength: 2048
FindingDescription:
type: string
FindingArn:
type: string
PackageVulnerabilityDetails:
type: object
properties:
cvss:
allOf:
- $ref: '#/components/schemas/CvssScoreList'
- description: An object that contains details about the CVSS score of a finding.
referenceUrls:
allOf:
- $ref: '#/components/schemas/ReferenceUrlsList'
- description: One or more URLs that contain details about this vulnerability type.
relatedVulnerabilities:
allOf:
- $ref: '#/components/schemas/RelatedVulnerabilitiesList'
- description: One or more vulnerabilities related to the one identified in this finding.
source:
allOf:
- $ref: '#/components/schemas/Source'
- description: The source of the vulnerability information.
sourceUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: A URL to the source of the vulnerability information.
vendorCreatedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time that this vulnerability was first added to the vendor's database.
vendorSeverity:
allOf:
- $ref: '#/components/schemas/Severity'
- description: The severity the vendor has given to this vulnerability type.
vendorUpdatedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time the vendor last updated this vulnerability in their database.
vulnerabilityId:
allOf:
- $ref: '#/components/schemas/VulnerabilityId'
- description: The ID given to this vulnerability.
vulnerablePackages:
allOf:
- $ref: '#/components/schemas/VulnerablePackagesList'
- description: The packages impacted by this vulnerability.
description: Information about a package vulnerability finding.
Remediation:
type: object
properties:
recommendation:
allOf:
- $ref: '#/components/schemas/Recommendation'
- description: An object that contains information about the recommended course of action to remediate the finding.
description: Information on how to remediate a finding.
ResourceList:
type: array
items:
$ref: '#/components/schemas/Resource'
ScoreDetails:
type: object
properties:
cvss:
allOf:
- $ref: '#/components/schemas/CvssScoreDetails'
- description: An object that contains details about the CVSS score given to a finding.
description: Information about the Amazon Inspector score given to a finding.
Severity:
type: string
Status:
type: string
Title:
type: string
Type:
type: string
EnhancedImageScanFinding:
type: object
properties:
awsAccountId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The Amazon Web Services account ID associated with the image.
description:
allOf:
- $ref: '#/components/schemas/FindingDescription'
- description: The description of the finding.
findingArn:
allOf:
- $ref: '#/components/schemas/FindingArn'
- description: The Amazon Resource Number (ARN) of the finding.
firstObservedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time that the finding was first observed.
lastObservedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time that the finding was last observed.
packageVulnerabilityDetails:
allOf:
- $ref: '#/components/schemas/PackageVulnerabilityDetails'
- description: An object that contains the details of a package vulnerability finding.
remediation:
allOf:
- $ref: '#/components/schemas/Remediation'
- description: An object that contains the details about how to remediate a finding.
resources:
allOf:
- $ref: '#/components/schemas/ResourceList'
- description: Contains information on the resources involved in a finding.
score:
allOf:
- $ref: '#/components/schemas/Score'
- description: The Amazon Inspector score given to the finding.
scoreDetails:
allOf:
- $ref: '#/components/schemas/ScoreDetails'
- description: An object that contains details of the Amazon Inspector score.
severity:
allOf:
- $ref: '#/components/schemas/Severity'
- description: The severity of the finding.
status:
allOf:
- $ref: '#/components/schemas/Status'
- description: The status of the finding.
title:
allOf:
- $ref: '#/components/schemas/Title'
- description: The title of the finding.
type:
allOf:
- $ref: '#/components/schemas/Type'
- description: The type of the finding.
updatedAt:
allOf:
- $ref: '#/components/schemas/Date'
- description: The date and time the finding was last updated at.
description: The details of an enhanced image scan. This is returned when enhanced scanning is enabled for your private registry.
EnhancedImageScanFindingList:
type: array
items:
$ref: '#/components/schemas/EnhancedImageScanFinding'
Epoch:
type: integer
FilePath:
type: string
FindingName:
type: string
FindingSeverity:
type: string
enum:
- INFORMATIONAL
- LOW
- MEDIUM
- HIGH
- CRITICAL
- UNDEFINED
SeverityCount:
type: integer
minimum: 0
FindingSeverityCounts:
type: object
additionalProperties:
$ref: '#/components/schemas/SeverityCount'
GetAuthorizationTokenRegistryIdList:
type: array
items:
$ref: '#/components/schemas/RegistryId'
minItems: 1
maxItems: 10
LifecyclePreviewMaxResults:
type: integer
minimum: 1
maximum: 100
LifecyclePolicyPreviewFilter:
type: object
properties:
tagStatus:
allOf:
- $ref: '#/components/schemas/TagStatus'
- description: The tag status of the image.
description: The filter for the lifecycle policy preview.
LifecyclePolicyPreviewStatus:
type: string
enum:
- IN_PROGRESS
- COMPLETE
- EXPIRED
- FAILED
LifecyclePolicyPreviewResultList:
type: array
items:
$ref: '#/components/schemas/LifecyclePolicyPreviewResult'
LifecyclePolicyPreviewSummary:
type: object
properties:
expiringImageTotalCount:
allOf:
- $ref: '#/components/schemas/ImageCount'
- description: The number of expiring images.
description: The summary of the lifecycle policy preview request.
RegistryScanningConfiguration:
type: object
properties:
scanType:
allOf:
- $ref: '#/components/schemas/ScanType'
- description: The type of scanning configured for the registry.
rules:
allOf:
- $ref: '#/components/schemas/RegistryScanningRuleList'
- description: The scanning rules associated with the registry.
description: The scanning configuration for a private registry.
ImageManifest:
type: string
minLength: 1
maxLength: 4194304
MediaType:
type: string
Image:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The Amazon Web Services account ID associated with the registry containing the image.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository associated with the image.
imageId:
allOf:
- $ref: '#/components/schemas/ImageIdentifier'
- description: An object containing the image tag and image digest associated with an image.
imageManifest:
allOf:
- $ref: '#/components/schemas/ImageManifest'
- description: The image manifest associated with the image.
imageManifestMediaType:
allOf:
- $ref: '#/components/schemas/MediaType'
- description: The manifest media type of the image.
description: An object representing an Amazon ECR image.
ImageActionType:
type: string
enum:
- EXPIRE
ImageCount:
type: integer
minimum: 0
ImageTagList:
type: array
items:
$ref: '#/components/schemas/ImageTag'
ImageSizeInBytes:
type: integer
PushTimestamp:
type: string
format: date-time
ImageScanFindingsSummary:
type: object
properties:
imageScanCompletedAt:
allOf:
- $ref: '#/components/schemas/ScanTimestamp'
- description: The time of the last completed image scan.
vulnerabilitySourceUpdatedAt:
allOf:
- $ref: '#/components/schemas/VulnerabilitySourceUpdateTimestamp'
- description: The time when the vulnerability data was last scanned.
findingSeverityCounts:
allOf:
- $ref: '#/components/schemas/FindingSeverityCounts'
- description: 'The image vulnerability counts, sorted by severity.'
description: A summary of the last completed image scan.
RecordedPullTimestamp:
type: string
format: date-time
ImageDetail:
type: object
properties:
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The Amazon Web Services account ID associated with the registry to which this image belongs.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository to which this image belongs.
imageDigest:
allOf:
- $ref: '#/components/schemas/ImageDigest'
- description: The sha256 digest of the image manifest.
imageTags:
allOf:
- $ref: '#/components/schemas/ImageTagList'
- description: The list of tags associated with this image.
imageSizeInBytes:
allOf:
- $ref: '#/components/schemas/ImageSizeInBytes'
- description: 'The size, in bytes, of the image in the repository.
If the image is a manifest list, this will be the max size of all manifests in the list.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.
The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded the last image pull.
Amazon ECR refreshes the last image pull timestamp at least once every 24 hours. For example, if you pull an image once a day then the lastRecordedPullTime timestamp will indicate the exact time that the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the lastRecordedPullTime timestamp at least once every 24 hours, the result may not be the exact time that the image was last pulled.
sha256 digest of the image layer.
layerAvailability:
allOf:
- $ref: '#/components/schemas/LayerAvailability'
- description: The availability status of the image layer.
layerSize:
allOf:
- $ref: '#/components/schemas/LayerSizeInBytes'
- description: 'The size, in bytes, of the image layer.'
mediaType:
allOf:
- $ref: '#/components/schemas/MediaType'
- description: '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.'
description: An object representing an Amazon ECR image layer.
LayerFailureCode:
type: string
enum:
- InvalidLayerDigest
- MissingLayerDigest
LayerFailureReason:
type: string
LayerFailure:
type: object
properties:
layerDigest:
allOf:
- $ref: '#/components/schemas/BatchedOperationLayerDigest'
- description: The layer digest associated with the failure.
failureCode:
allOf:
- $ref: '#/components/schemas/LayerFailureCode'
- description: The failure code associated with the failure.
failureReason:
allOf:
- $ref: '#/components/schemas/LayerFailureReason'
- description: The reason for the failure.
description: An object representing an Amazon ECR image layer failure.
LayerPartBlob:
type: string
minLength: 0
maxLength: 20971520
LifecyclePolicyRuleAction:
type: object
properties:
type:
allOf:
- $ref: '#/components/schemas/ImageActionType'
- description: The type of action to be taken.
description: The type of action to be taken.
LifecyclePolicyRulePriority:
type: integer
minimum: 1
LifecyclePolicyPreviewResult:
type: object
properties:
imageTags:
allOf:
- $ref: '#/components/schemas/ImageTagList'
- description: The list of tags associated with this image.
imageDigest:
allOf:
- $ref: '#/components/schemas/ImageDigest'
- description: The sha256 digest of the image manifest.
imagePushedAt:
allOf:
- $ref: '#/components/schemas/PushTimestamp'
- description: 'The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.'
action:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyRuleAction'
- description: The type of action to be taken.
appliedRulePriority:
allOf:
- $ref: '#/components/schemas/LifecyclePolicyRulePriority'
- description: The priority of the applied rule.
description: The result of the lifecycle policy preview.
ListImagesFilter:
type: object
properties:
tagStatus:
allOf:
- $ref: '#/components/schemas/TagStatus'
- description: The tag status with which to filter your ListImages results. You can filter results based on whether they are TAGGED or UNTAGGED.
description: An object representing a filter on a ListImages operation.
PackageManager:
type: string
ReferenceUrlsList:
type: array
items:
$ref: '#/components/schemas/Url'
RelatedVulnerabilitiesList:
type: array
items:
$ref: '#/components/schemas/RelatedVulnerability'
VulnerabilityId:
type: string
VulnerablePackagesList:
type: array
items:
$ref: '#/components/schemas/VulnerablePackage'
PullThroughCacheRule:
type: object
properties:
ecrRepositoryPrefix:
allOf:
- $ref: '#/components/schemas/PullThroughCacheRuleRepositoryPrefix'
- description: The Amazon ECR repository prefix associated with the pull through cache rule.
upstreamRegistryUrl:
allOf:
- $ref: '#/components/schemas/Url'
- description: The upstream registry URL associated with the pull through cache rule.
createdAt:
allOf:
- $ref: '#/components/schemas/CreationTimestamp'
- description: The date and time the pull through cache was created.
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: The Amazon Web Services account ID associated with the registry the pull through cache rule is associated with.
description: The details of a pull through cache rule.
ScanType:
type: string
enum:
- BASIC
- ENHANCED
RegistryScanningRuleList:
type: array
items:
$ref: '#/components/schemas/RegistryScanningRule'
minItems: 0
maxItems: 2
RecommendationText:
type: string
Recommendation:
type: object
properties:
url:
allOf:
- $ref: '#/components/schemas/Url'
- description: The URL address to the CVE remediation recommendations.
text:
allOf:
- $ref: '#/components/schemas/RecommendationText'
- description: The recommended course of action to remediate the finding.
description: Details about the recommended course of action to remediate the finding.
ScanFrequency:
type: string
enum:
- SCAN_ON_PUSH
- CONTINUOUS_SCAN
- MANUAL
ScanningRepositoryFilterList:
type: array
items:
$ref: '#/components/schemas/ScanningRepositoryFilter'
minItems: 0
maxItems: 100
RegistryScanningRule:
type: object
required:
- scanFrequency
- repositoryFilters
properties:
scanFrequency:
allOf:
- $ref: '#/components/schemas/ScanFrequency'
- description: 'The frequency that scans are performed at for a private registry. When the ENHANCED scan type is specified, the supported scan frequencies are CONTINUOUS_SCAN and SCAN_ON_PUSH. When the BASIC scan type is specified, the SCAN_ON_PUSH and MANUAL scan frequencies are supported.'
repositoryFilters:
allOf:
- $ref: '#/components/schemas/ScanningRepositoryFilterList'
- description: The repository filters associated with the scanning configuration for a private registry.
description: The details of a scanning rule for a private registry.
RelatedVulnerability:
type: string
Release:
type: string
ReplicationRuleList:
type: array
items:
$ref: '#/components/schemas/ReplicationRule'
minItems: 0
maxItems: 10
ReplicationDestination:
type: object
required:
- region
- registryId
properties:
region:
allOf:
- $ref: '#/components/schemas/Region'
- description: The Region to replicate to.
registryId:
allOf:
- $ref: '#/components/schemas/RegistryId'
- description: 'The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.'
description: An array of objects representing the destination for a replication rule.
ReplicationDestinationList:
type: array
items:
$ref: '#/components/schemas/ReplicationDestination'
minItems: 0
maxItems: 25
RepositoryFilterList:
type: array
items:
$ref: '#/components/schemas/RepositoryFilter'
minItems: 1
maxItems: 100
ReplicationRule:
type: object
required:
- destinations
properties:
destinations:
allOf:
- $ref: '#/components/schemas/ReplicationDestinationList'
- description: An array of objects representing the destination for a replication rule.
repositoryFilters:
allOf:
- $ref: '#/components/schemas/RepositoryFilterList'
- description: An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
description: An array of objects representing the replication destinations and repository filters for a replication configuration.
RepositoryFilterValue:
type: string
pattern: '^(?:[a-z0-9]+(?:[._-][a-z0-9]*)*/)*[a-z0-9]*(?:[._-][a-z0-9]*)*$'
minLength: 2
maxLength: 256
RepositoryFilterType:
type: string
enum:
- PREFIX_MATCH
RepositoryFilter:
type: object
required:
- filter
- filterType
properties:
filter:
allOf:
- $ref: '#/components/schemas/RepositoryFilterValue'
- description: 'The repository filter details. When the PREFIX_MATCH filter type is specified, this value is required and should be the repository name prefix to configure replication for.'
filterType:
allOf:
- $ref: '#/components/schemas/RepositoryFilterType'
- description: 'The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with the filter parameter.'
description: 'The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no repository filter is specified, all images in the repository are replicated.'
RepositoryScanningConfiguration:
type: object
properties:
repositoryArn:
allOf:
- $ref: '#/components/schemas/Arn'
- description: The ARN of the repository.
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
scanOnPush:
allOf:
- $ref: '#/components/schemas/ScanOnPushFlag'
- description: Whether or not scan on push is configured for the repository.
scanFrequency:
allOf:
- $ref: '#/components/schemas/ScanFrequency'
- description: The scan frequency for the repository.
appliedScanFilters:
allOf:
- $ref: '#/components/schemas/ScanningRepositoryFilterList'
- description: The scan filters applied to the repository.
description: The details of the scanning configuration for a repository.
ScanningConfigurationFailureCode:
type: string
enum:
- REPOSITORY_NOT_FOUND
ScanningConfigurationFailureReason:
type: string
RepositoryScanningConfigurationFailure:
type: object
properties:
repositoryName:
allOf:
- $ref: '#/components/schemas/RepositoryName'
- description: The name of the repository.
failureCode:
allOf:
- $ref: '#/components/schemas/ScanningConfigurationFailureCode'
- description: The failure code.
failureReason:
allOf:
- $ref: '#/components/schemas/ScanningConfigurationFailureReason'
- description: The reason for the failure.
description: The details about any failures associated with the scanning configuration of a repository.
ResourceDetails:
type: object
properties:
awsEcrContainerImage:
allOf:
- $ref: '#/components/schemas/AwsEcrContainerImageDetails'
- description: An object that contains details about the Amazon ECR container image involved in the finding.
description: Contains details about the resource involved in the finding.
ResourceId:
type: string
Tags:
type: object
additionalProperties:
$ref: '#/components/schemas/TagValue'
Resource:
type: object
properties:
details:
allOf:
- $ref: '#/components/schemas/ResourceDetails'
- description: An object that contains details about the resource involved in a finding.
id:
allOf:
- $ref: '#/components/schemas/ResourceId'
- description: The ID of the resource.
tags:
allOf:
- $ref: '#/components/schemas/Tags'
- description: The tags attached to the resource.
type:
allOf:
- $ref: '#/components/schemas/Type'
- description: The type of resource.
description: Details about the resource involved in a finding.
ScanningRepositoryFilterValue:
type: string
pattern: '^[a-z0-9*](?:[._\-/a-z0-9*]?[a-z0-9*]+)*$'
minLength: 1
maxLength: 255
ScanningRepositoryFilterType:
type: string
enum:
- WILDCARD
ScanningRepositoryFilter:
type: object
required:
- filter
- filterType
properties:
filter:
allOf:
- $ref: '#/components/schemas/ScanningRepositoryFilterValue'
- description: The filter to use when scanning.
filterType:
allOf:
- $ref: '#/components/schemas/ScanningRepositoryFilterType'
- description: The type associated with the filter.
description: 'The details of a scanning repository filter. For more information on how to use filters, see Using filters in the Amazon Elastic Container Registry User Guide.'
SourceLayerHash:
type: string
TagKey:
type: string
TagValue:
type: string
Tag:
type: object
properties:
Key:
allOf:
- $ref: '#/components/schemas/TagKey'
- description: 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:
allOf:
- $ref: '#/components/schemas/TagValue'
- description: A value acts as a descriptor within a tag category (key).
description: 'The metadata to apply to a resource to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.'
TagKeyList:
type: array
items:
$ref: '#/components/schemas/TagKey'
VulnerablePackageName:
type: string
VulnerablePackage:
type: object
properties:
arch:
allOf:
- $ref: '#/components/schemas/Arch'
- description: The architecture of the vulnerable package.
epoch:
allOf:
- $ref: '#/components/schemas/Epoch'
- description: The epoch of the vulnerable package.
filePath:
allOf:
- $ref: '#/components/schemas/FilePath'
- description: The file path of the vulnerable package.
name:
allOf:
- $ref: '#/components/schemas/VulnerablePackageName'
- description: The name of the vulnerable package.
packageManager:
allOf:
- $ref: '#/components/schemas/PackageManager'
- description: The package manager of the vulnerable package.
release:
allOf:
- $ref: '#/components/schemas/Release'
- description: The release of the vulnerable package.
sourceLayerHash:
allOf:
- $ref: '#/components/schemas/SourceLayerHash'
- description: The source layer hash of the vulnerable package.
version:
allOf:
- $ref: '#/components/schemas/Version'
- description: The version of the vulnerable package.
description: Information on the vulnerable package identified by a finding.
security:
- hmac: []