swagger: '2.0' info: version: '2015-09-21' x-release: v4 title: Amazon EC2 Container Registry description: 'Amazon Elastic Container Registry (Amazon ECR) is a managed Docker registry service. Customers can use the familiar Docker CLI to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR supports private Docker repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images. Developers can use the Docker CLI to author and manage images.' 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-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-direct: true 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://aws.amazon.com/ecr/' host: api.ecr.amazonaws.com basePath: / x-hasEquivalentPaths: true schemes: - https - http consumes: - application/json produces: - application/json parameters: Action: name: Action in: query type: string required: true Version: name: Version in: query type: string required: true X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header type: string required: false X-Amz-Date: name: X-Amz-Date in: header type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header type: string required: false securityDefinitions: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 security: - hmac: [] paths: /: post: operationId: BatchCheckLayerAvailability description: '

Check the availability of multiple image layers in a specified registry and repository.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/BatchCheckLayerAvailabilityResponse' '480': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: ServerException schema: $ref: '#/definitions/ServerException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/BatchCheckLayerAvailabilityRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#BatchDeleteImage': post: operationId: BatchDeleteImage description: '

Deletes a list of specified images within a specified repository. Images are specified with either 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 schema: $ref: '#/definitions/BatchDeleteImageResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/BatchDeleteImageRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#BatchGetImage': post: operationId: BatchGetImage description: Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest. responses: '200': description: Success schema: $ref: '#/definitions/BatchGetImageResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/BatchGetImageRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#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.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/CompleteLayerUploadResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: UploadNotFoundException schema: $ref: '#/definitions/UploadNotFoundException' '484': description: InvalidLayerException schema: $ref: '#/definitions/InvalidLayerException' '485': description: LayerPartTooSmallException schema: $ref: '#/definitions/LayerPartTooSmallException' '486': description: LayerAlreadyExistsException schema: $ref: '#/definitions/LayerAlreadyExistsException' '487': description: EmptyUploadException schema: $ref: '#/definitions/EmptyUploadException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/CompleteLayerUploadRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#CreateRepository': post: operationId: CreateRepository description: Creates an image repository. responses: '200': description: Success schema: $ref: '#/definitions/CreateRepositoryResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: InvalidTagParameterException schema: $ref: '#/definitions/InvalidTagParameterException' '483': description: TooManyTagsException schema: $ref: '#/definitions/TooManyTagsException' '484': description: RepositoryAlreadyExistsException schema: $ref: '#/definitions/RepositoryAlreadyExistsException' '485': description: LimitExceededException schema: $ref: '#/definitions/LimitExceededException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/CreateRepositoryRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#DeleteLifecyclePolicy': post: operationId: DeleteLifecyclePolicy description: Deletes the specified lifecycle policy. responses: '200': description: Success schema: $ref: '#/definitions/DeleteLifecyclePolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: LifecyclePolicyNotFoundException schema: $ref: '#/definitions/LifecyclePolicyNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DeleteLifecyclePolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#DeleteRepository': post: operationId: DeleteRepository description: 'Deletes an existing image repository. If a repository contains images, you must use the force option to delete it.' responses: '200': description: Success schema: $ref: '#/definitions/DeleteRepositoryResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: RepositoryNotEmptyException schema: $ref: '#/definitions/RepositoryNotEmptyException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DeleteRepositoryRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#DeleteRepositoryPolicy': post: operationId: DeleteRepositoryPolicy description: Deletes the repository policy from a specified repository. responses: '200': description: Success schema: $ref: '#/definitions/DeleteRepositoryPolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: RepositoryPolicyNotFoundException schema: $ref: '#/definitions/RepositoryPolicyNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DeleteRepositoryPolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#DescribeImages': post: operationId: DescribeImages description: '

Returns metadata about the images in a repository, including image size, image tags, and creation date.

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.

' responses: '200': description: Success schema: $ref: '#/definitions/DescribeImagesResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: ImageNotFoundException schema: $ref: '#/definitions/ImageNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DescribeImagesRequest' - name: maxResults type: string in: query description: Pagination limit required: false - name: nextToken type: string in: query description: Pagination token required: false parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#DescribeRepositories': post: operationId: DescribeRepositories description: Describes image repositories in a registry. responses: '200': description: Success schema: $ref: '#/definitions/DescribeRepositoriesResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/DescribeRepositoriesRequest' - name: maxResults type: string in: query description: Pagination limit required: false - name: nextToken type: string in: query description: Pagination token required: false parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#GetAuthorizationToken': post: operationId: GetAuthorizationToken description: '

Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the docker CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.

The authorizationToken returned for each registry specified is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The AWS CLI offers an aws ecr get-login command that simplifies the login process.

' responses: '200': description: Success schema: $ref: '#/definitions/GetAuthorizationTokenResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetAuthorizationTokenRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#GetDownloadUrlForLayer': post: operationId: GetDownloadUrlForLayer description: '

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.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/GetDownloadUrlForLayerResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: LayersNotFoundException schema: $ref: '#/definitions/LayersNotFoundException' '483': description: LayerInaccessibleException schema: $ref: '#/definitions/LayerInaccessibleException' '484': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetDownloadUrlForLayerRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#GetLifecyclePolicy': post: operationId: GetLifecyclePolicy description: Retrieves the specified lifecycle policy. responses: '200': description: Success schema: $ref: '#/definitions/GetLifecyclePolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: LifecyclePolicyNotFoundException schema: $ref: '#/definitions/LifecyclePolicyNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetLifecyclePolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#GetLifecyclePolicyPreview': post: operationId: GetLifecyclePolicyPreview description: Retrieves the results of the specified lifecycle policy preview request. responses: '200': description: Success schema: $ref: '#/definitions/GetLifecyclePolicyPreviewResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: LifecyclePolicyPreviewNotFoundException schema: $ref: '#/definitions/LifecyclePolicyPreviewNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetLifecyclePolicyPreviewRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#GetRepositoryPolicy': post: operationId: GetRepositoryPolicy description: Retrieves the repository policy for a specified repository. responses: '200': description: Success schema: $ref: '#/definitions/GetRepositoryPolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: RepositoryPolicyNotFoundException schema: $ref: '#/definitions/RepositoryPolicyNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/GetRepositoryPolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#InitiateLayerUpload': post: operationId: InitiateLayerUpload description: '

Notify Amazon ECR that you intend to upload an image layer.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/InitiateLayerUploadResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/InitiateLayerUploadRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#ListImages': post: operationId: ListImages description: '

Lists all the image IDs for a given repository.

You can filter images based on whether or not they are tagged by setting the tagStatus parameter to TAGGED or UNTAGGED. 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.

' responses: '200': description: Success schema: $ref: '#/definitions/ListImagesResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/ListImagesRequest' - name: maxResults type: string in: query description: Pagination limit required: false - name: nextToken type: string in: query description: Pagination token required: false parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#ListTagsForResource': post: operationId: ListTagsForResource description: List the tags for an Amazon ECR resource. responses: '200': description: Success schema: $ref: '#/definitions/ListTagsForResourceResponse' '480': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '481': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '482': description: ServerException schema: $ref: '#/definitions/ServerException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/ListTagsForResourceRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#PutImage': post: operationId: PutImage description: '

Creates or updates the image manifest and tags associated with an image.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/PutImageResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: ImageAlreadyExistsException schema: $ref: '#/definitions/ImageAlreadyExistsException' '484': description: LayersNotFoundException schema: $ref: '#/definitions/LayersNotFoundException' '485': description: LimitExceededException schema: $ref: '#/definitions/LimitExceededException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/PutImageRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#PutLifecyclePolicy': post: operationId: PutLifecyclePolicy description: 'Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle Policy Template.' responses: '200': description: Success schema: $ref: '#/definitions/PutLifecyclePolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/PutLifecyclePolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#SetRepositoryPolicy': post: operationId: SetRepositoryPolicy description: Applies a repository policy on a specified repository to control access permissions. responses: '200': description: Success schema: $ref: '#/definitions/SetRepositoryPolicyResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/SetRepositoryPolicyRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#StartLifecyclePolicyPreview': post: operationId: StartLifecyclePolicyPreview description: Starts a preview of the specified lifecycle policy. This allows you to see the results before creating the lifecycle policy. responses: '200': description: Success schema: $ref: '#/definitions/StartLifecyclePolicyPreviewResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '483': description: LifecyclePolicyNotFoundException schema: $ref: '#/definitions/LifecyclePolicyNotFoundException' '484': description: LifecyclePolicyPreviewInProgressException schema: $ref: '#/definitions/LifecyclePolicyPreviewInProgressException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/StartLifecyclePolicyPreviewRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#TagResource': post: operationId: TagResource description: Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters. responses: '200': description: Success schema: $ref: '#/definitions/TagResourceResponse' '480': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '481': description: InvalidTagParameterException schema: $ref: '#/definitions/InvalidTagParameterException' '482': description: TooManyTagsException schema: $ref: '#/definitions/TooManyTagsException' '483': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '484': description: ServerException schema: $ref: '#/definitions/ServerException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/TagResourceRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#UntagResource': post: operationId: UntagResource description: Deletes specified tags from a resource. responses: '200': description: Success schema: $ref: '#/definitions/UntagResourceResponse' '480': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '481': description: InvalidTagParameterException schema: $ref: '#/definitions/InvalidTagParameterException' '482': description: TooManyTagsException schema: $ref: '#/definitions/TooManyTagsException' '483': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '484': description: ServerException schema: $ref: '#/definitions/ServerException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/UntagResourceRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' '/#UploadLayerPart': post: operationId: UploadLayerPart description: '

Uploads an image layer part to Amazon ECR.

This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

' responses: '200': description: Success schema: $ref: '#/definitions/UploadLayerPartResponse' '480': description: ServerException schema: $ref: '#/definitions/ServerException' '481': description: InvalidParameterException schema: $ref: '#/definitions/InvalidParameterException' '482': description: InvalidLayerPartException schema: $ref: '#/definitions/InvalidLayerPartException' '483': description: RepositoryNotFoundException schema: $ref: '#/definitions/RepositoryNotFoundException' '484': description: UploadNotFoundException schema: $ref: '#/definitions/UploadNotFoundException' '485': description: LimitExceededException schema: $ref: '#/definitions/LimitExceededException' parameters: - name: body in: body required: true schema: $ref: '#/definitions/UploadLayerPartRequest' parameters: - $ref: '#/parameters/Action' - $ref: '#/parameters/Version' - $ref: '#/parameters/X-Amz-Content-Sha256' - $ref: '#/parameters/X-Amz-Date' - $ref: '#/parameters/X-Amz-Algorithm' - $ref: '#/parameters/X-Amz-Credential' - $ref: '#/parameters/X-Amz-Security-Token' - $ref: '#/parameters/X-Amz-Signature' - $ref: '#/parameters/X-Amz-SignedHeaders' definitions: BatchCheckLayerAvailabilityResponse: type: object properties: layers: $ref: '#/definitions/LayerList' description: A list of image layer objects corresponding to the image layer references in the request. failures: $ref: '#/definitions/LayerFailureList' description: Any failures associated with the call. BatchCheckLayerAvailabilityRequest: type: object required: - repositoryName - layerDigests properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the image layers to check. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository that is associated with the image layers to check. layerDigests: $ref: '#/definitions/BatchedOperationLayerDigestList' description: The digests of the image layers to check. RepositoryNotFoundException: {} InvalidParameterException: {} ServerException: {} BatchDeleteImageResponse: type: object example: failures: [] imageIds: - imageDigest: 'sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f' imageTag: precise properties: imageIds: $ref: '#/definitions/ImageIdentifierList' description: The image IDs of the deleted images. failures: $ref: '#/definitions/ImageFailureList' description: Any failures associated with the call. BatchDeleteImageRequest: type: object required: - repositoryName - imageIds example: imageIds: - imageTag: precise repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The repository that contains the image to delete. imageIds: $ref: '#/definitions/ImageIdentifierList' description: A list of image ID references that correspond to images to delete. The format of the 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: $ref: '#/definitions/ImageList' description: A list of image objects corresponding to the image references in the request. failures: $ref: '#/definitions/ImageFailureList' description: Any failures associated with the call. BatchGetImageRequest: type: object required: - repositoryName - imageIds example: imageIds: - imageTag: precise repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The repository that contains the images to describe. imageIds: $ref: '#/definitions/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: $ref: '#/definitions/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

' CompleteLayerUploadResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. uploadId: $ref: '#/definitions/UploadId' description: The upload ID associated with the layer. layerDigest: $ref: '#/definitions/LayerDigest' description: The sha256 digest of the image layer. CompleteLayerUploadRequest: type: object required: - repositoryName - uploadId - layerDigests properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to associate with the image layer. uploadId: $ref: '#/definitions/UploadId' description: The upload ID from a previous InitiateLayerUpload operation to associate with the image layer. layerDigests: $ref: '#/definitions/LayerDigestList' description: The sha256 digest of the image layer. UploadNotFoundException: {} InvalidLayerException: {} LayerPartTooSmallException: {} LayerAlreadyExistsException: {} EmptyUploadException: {} 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: $ref: '#/definitions/Repository' description: The repository that was created. CreateRepositoryRequest: type: object required: - repositoryName example: repositoryName: project-a/nginx-web-app properties: repositoryName: $ref: '#/definitions/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: $ref: '#/definitions/TagList' description:

InvalidTagParameterException: {} TooManyTagsException: {} RepositoryAlreadyExistsException: {} LimitExceededException: {} DeleteLifecyclePolicyResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON lifecycle policy text. lastEvaluatedAt: $ref: '#/definitions/EvaluationTimestamp' description: The time stamp of the last time that the lifecycle policy was run. DeleteLifecyclePolicyRequest: type: object required: - repositoryName properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository. LifecyclePolicyNotFoundException: {} DeleteRepositoryResponse: type: object example: repository: registryId: 012345678901 repositoryArn: 'arn:aws:ecr:us-west-2:012345678901:repository/ubuntu' repositoryName: ubuntu properties: repository: $ref: '#/definitions/Repository' description: The repository that was deleted. DeleteRepositoryRequest: type: object required: - repositoryName example: force: true repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The name of the repository to delete. force: $ref: '#/definitions/ForceFlag' description: ' If a repository contains images, forces the deletion.' RepositoryNotEmptyException: {} DeleteRepositoryPolicyResponse: type: object example: policyText: '{ ... }' registryId: 012345678901 repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. policyText: $ref: '#/definitions/RepositoryPolicyText' description: The JSON repository policy that was deleted from the repository. DeleteRepositoryPolicyRequest: type: object required: - repositoryName example: repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The name of the repository that is associated with the repository policy to delete. RepositoryPolicyNotFoundException: {} DescribeImagesResponse: type: object properties: imageDetails: $ref: '#/definitions/ImageDetailList' description: A list of ImageDetail objects that contain data about the image. nextToken: $ref: '#/definitions/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 properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: A list of repositories to describe. imageIds: $ref: '#/definitions/ImageIdentifierList' description: The list of image IDs for the requested repository. nextToken: $ref: '#/definitions/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: $ref: '#/definitions/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: $ref: '#/definitions/DescribeImagesFilter' description: The filter key and value with which to filter your DescribeImages results. ImageNotFoundException: {} 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: $ref: '#/definitions/RepositoryList' description: A list of repository objects corresponding to valid repositories. nextToken: $ref: '#/definitions/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 example: {} properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryNameList' description: 'A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.' nextToken: $ref: '#/definitions/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.

maxResults: $ref: '#/definitions/MaxResults' description: 'The maximum number of repository results returned by DescribeRepositories in paginated output. When this parameter is used, DescribeRepositories only returns maxResults results in a single page along with a nextToken response element. 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: $ref: '#/definitions/AuthorizationDataList' description: A list of authorization token data objects that correspond to the registryIds values in the request. GetAuthorizationTokenRequest: type: object example: {} properties: registryIds: $ref: '#/definitions/GetAuthorizationTokenRegistryIdList' description: 'A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you do not specify a registry, the default registry is assumed.' GetDownloadUrlForLayerResponse: type: object properties: downloadUrl: $ref: '#/definitions/Url' description: The pre-signed Amazon S3 download URL for the requested layer. layerDigest: $ref: '#/definitions/LayerDigest' description: The digest of the image layer to download. GetDownloadUrlForLayerRequest: type: object required: - repositoryName - layerDigest properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The name of the repository that is associated with the image layer to download. layerDigest: $ref: '#/definitions/LayerDigest' description: The digest of the image layer to download. LayersNotFoundException: {} LayerInaccessibleException: {} GetLifecyclePolicyResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON lifecycle policy text. lastEvaluatedAt: $ref: '#/definitions/EvaluationTimestamp' description: The time stamp of the last time that the lifecycle policy was run. GetLifecyclePolicyRequest: type: object required: - repositoryName properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository. GetLifecyclePolicyPreviewResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON lifecycle policy text. status: $ref: '#/definitions/LifecyclePolicyPreviewStatus' description: The status of the lifecycle policy preview request. nextToken: $ref: '#/definitions/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: $ref: '#/definitions/LifecyclePolicyPreviewResultList' description: The results of the lifecycle policy preview request. summary: $ref: '#/definitions/LifecyclePolicyPreviewSummary' description: The list of images that is returned as a result of the action. GetLifecyclePolicyPreviewRequest: type: object required: - repositoryName properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository. imageIds: $ref: '#/definitions/ImageIdentifierList' description: The list of imageIDs to be included. nextToken: $ref: '#/definitions/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: $ref: '#/definitions/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: $ref: '#/definitions/LifecyclePolicyPreviewFilter' description: 'An optional parameter that filters results based on image tag status and all tags, if tagged.' LifecyclePolicyPreviewNotFoundException: {} 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: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. policyText: $ref: '#/definitions/RepositoryPolicyText' description: The JSON repository policy text associated with the repository. GetRepositoryPolicyRequest: type: object required: - repositoryName example: repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository with the policy to retrieve. InitiateLayerUploadResponse: type: object properties: uploadId: $ref: '#/definitions/UploadId' description: The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations. partSize: $ref: '#/definitions/PartSize' description: 'The size, in bytes, that Amazon ECR expects future layer part uploads to be.' InitiateLayerUploadRequest: type: object required: - repositoryName properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/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: $ref: '#/definitions/ImageIdentifierList' description: The list of image IDs for the requested repository. nextToken: $ref: '#/definitions/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 example: repositoryName: ubuntu properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The repository with image IDs to be listed. nextToken: $ref: '#/definitions/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.

maxResults: $ref: '#/definitions/MaxResults' description: 'The maximum number of image results returned by 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: $ref: '#/definitions/ListImagesFilter' description: The filter key and value with which to filter your ListImages results. ListTagsForResourceResponse: type: object properties: tags: $ref: '#/definitions/TagList' description: The tags for the resource. ListTagsForResourceRequest: type: object required: - resourceArn properties: resourceArn: $ref: '#/definitions/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: $ref: '#/definitions/Image' description: Details of the image uploaded. PutImageRequest: type: object required: - repositoryName - imageManifest properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS 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: $ref: '#/definitions/RepositoryName' description: The name of the repository in which to put the image. imageManifest: $ref: '#/definitions/ImageManifest' description: The image manifest corresponding to the image to be uploaded. imageTag: $ref: '#/definitions/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 OCI formats. ImageAlreadyExistsException: {} PutLifecyclePolicyResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON repository policy text. PutLifecyclePolicyRequest: type: object required: - repositoryName - lifecyclePolicyText properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do
 not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to receive the policy. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON repository policy text to apply to the repository. SetRepositoryPolicyResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. policyText: $ref: '#/definitions/RepositoryPolicyText' description: The JSON repository policy text applied to the repository. SetRepositoryPolicyRequest: type: object required: - repositoryName - policyText properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to receive the policy. policyText: $ref: '#/definitions/RepositoryPolicyText' description: The JSON repository policy text to apply to the repository. force: $ref: '#/definitions/ForceFlag' description: 'If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.' StartLifecyclePolicyPreviewResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: The JSON repository policy text. status: $ref: '#/definitions/LifecyclePolicyPreviewStatus' description: The status of the lifecycle policy preview request. StartLifecyclePolicyPreviewRequest: type: object required: - repositoryName properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to be evaluated. lifecyclePolicyText: $ref: '#/definitions/LifecyclePolicyText' description: 'The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used.' LifecyclePolicyPreviewInProgressException: {} TagResourceResponse: type: object properties: {} TagResourceRequest: type: object required: - resourceArn - tags properties: resourceArn: $ref: '#/definitions/Arn' description: 'The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported resource is an Amazon ECR repository.' tags: $ref: '#/definitions/TagList' description: 'The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.' UntagResourceResponse: type: object properties: {} UntagResourceRequest: type: object required: - resourceArn - tagKeys properties: resourceArn: $ref: '#/definitions/Arn' description: 'The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported resource is an Amazon ECR repository.' tagKeys: $ref: '#/definitions/TagKeyList' description: The keys of the tags to be removed. UploadLayerPartResponse: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The registry ID associated with the request. repositoryName: $ref: '#/definitions/RepositoryName' description: The repository name associated with the request. uploadId: $ref: '#/definitions/UploadId' description: The upload ID associated with the request. lastByteReceived: $ref: '#/definitions/PartSize' description: The integer value of the last byte received in the request. UploadLayerPartRequest: type: object required: - repositoryName - uploadId - partFirstByte - partLastByte - layerPartBlob properties: registryId: $ref: '#/definitions/RegistryId' description: 'The AWS account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default registry is assumed.' repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to which you are uploading layer parts. uploadId: $ref: '#/definitions/UploadId' description: The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload. partFirstByte: $ref: '#/definitions/PartSize' description: The integer value of the first byte of the layer part. partLastByte: $ref: '#/definitions/PartSize' description: The integer value of the last byte of the layer part. layerPartBlob: $ref: '#/definitions/LayerPartBlob' description: The base64-encoded layer part payload. InvalidLayerPartException: {} Arn: type: string Base64: type: string pattern: ^\S+$ ExpirationTimestamp: type: string format: date-time ProxyEndpoint: type: string AuthorizationData: type: object properties: authorizationToken: $ref: '#/definitions/Base64' description: 'A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format user:password for private registry authentication using docker login.' expiresAt: $ref: '#/definitions/ExpirationTimestamp' description: The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours. proxyEndpoint: $ref: '#/definitions/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: '#/definitions/AuthorizationData' 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 BatchedOperationLayerDigestList: type: array items: $ref: '#/definitions/BatchedOperationLayerDigest' minItems: 1 maxItems: 100 LayerList: type: array items: $ref: '#/definitions/Layer' LayerFailureList: type: array items: $ref: '#/definitions/LayerFailure' ImageIdentifierList: type: array items: $ref: '#/definitions/ImageIdentifier' minItems: 1 maxItems: 100 ImageFailureList: type: array items: $ref: '#/definitions/ImageFailure' MediaTypeList: type: array items: $ref: '#/definitions/MediaType' minItems: 1 maxItems: 100 ImageList: type: array items: $ref: '#/definitions/Image' 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: '#/definitions/LayerDigest' minItems: 1 maxItems: 100 LayerDigest: type: string pattern: '[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+' TagList: type: array items: $ref: '#/definitions/Tag' Repository: type: object properties: repositoryArn: $ref: '#/definitions/Arn' description: 'The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, AWS account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.' registryId: $ref: '#/definitions/RegistryId' description: The AWS account ID associated with the registry that contains the repository. repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository. repositoryUri: $ref: '#/definitions/Url' description: The URI for the repository. You can use this URI for Docker push or pull operations. createdAt: $ref: '#/definitions/CreationTimestamp' description: 'The date and time, in JavaScript date format, when the repository was created.' description: An object representing a repository. CreationTimestamp: type: string format: date-time LifecyclePolicyText: type: string minLength: 100 maxLength: 30720 EvaluationTimestamp: type: string format: date-time RepositoryPolicyText: type: string minLength: 0 maxLength: 10240 ForceFlag: type: boolean TagStatus: type: string enum: - TAGGED - UNTAGGED - ANY DescribeImagesFilter: type: object properties: tagStatus: $ref: '#/definitions/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. NextToken: type: string MaxResults: type: integer minimum: 1 maximum: 1000 ImageDetailList: type: array items: $ref: '#/definitions/ImageDetail' RepositoryNameList: type: array items: $ref: '#/definitions/RepositoryName' minItems: 1 maxItems: 100 RepositoryList: type: array items: $ref: '#/definitions/Repository' GetAuthorizationTokenRegistryIdList: type: array items: $ref: '#/definitions/RegistryId' minItems: 1 maxItems: 10 Url: type: string LifecyclePreviewMaxResults: type: integer minimum: 1 maximum: 100 LifecyclePolicyPreviewFilter: type: object properties: tagStatus: $ref: '#/definitions/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: '#/definitions/LifecyclePolicyPreviewResult' LifecyclePolicyPreviewSummary: type: object properties: expiringImageTotalCount: $ref: '#/definitions/ImageCount' description: The number of expiring images. description: The summary of the lifecycle policy preview request. ImageIdentifier: type: object properties: imageDigest: $ref: '#/definitions/ImageDigest' description: The sha256 digest of the image manifest. imageTag: $ref: '#/definitions/ImageTag' description: The tag used for the image. description: An object with identifying information for an Amazon ECR image. ImageManifest: type: string Image: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The AWS account ID associated with the registry containing the image. repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository associated with the image. imageId: $ref: '#/definitions/ImageIdentifier' description: An object containing the image tag and image digest associated with an image. imageManifest: $ref: '#/definitions/ImageManifest' description: The image manifest associated with the image. description: An object representing an Amazon ECR image. ImageActionType: type: string enum: - EXPIRE ImageCount: type: integer minimum: 0 ImageDigest: type: string ImageTagList: type: array items: $ref: '#/definitions/ImageTag' ImageSizeInBytes: type: integer PushTimestamp: type: string format: date-time ImageDetail: type: object properties: registryId: $ref: '#/definitions/RegistryId' description: The AWS account ID associated with the registry to which this image belongs. repositoryName: $ref: '#/definitions/RepositoryName' description: The name of the repository to which this image belongs. imageDigest: $ref: '#/definitions/ImageDigest' description: The sha256 digest of the image manifest. imageTags: $ref: '#/definitions/ImageTagList' description: The list of tags associated with this image. imageSizeInBytes: $ref: '#/definitions/ImageSizeInBytes' description: '

The size, in bytes, of the image in the 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.

' imagePushedAt: $ref: '#/definitions/PushTimestamp' description: 'The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository. ' description: An object that describes an image returned by a DescribeImages operation. ImageFailureCode: type: string enum: - InvalidImageDigest - InvalidImageTag - ImageTagDoesNotMatchDigest - ImageNotFound - MissingDigestAndTag ImageFailureReason: type: string ImageFailure: type: object properties: imageId: $ref: '#/definitions/ImageIdentifier' description: The image ID associated with the failure. failureCode: $ref: '#/definitions/ImageFailureCode' description: The code associated with the failure. failureReason: $ref: '#/definitions/ImageFailureReason' description: The reason for the failure. description: An object representing an Amazon ECR image failure. ImageTag: type: string PartSize: type: integer minimum: 0 LayerAvailability: type: string enum: - AVAILABLE - UNAVAILABLE LayerSizeInBytes: type: integer MediaType: type: string Layer: type: object properties: layerDigest: $ref: '#/definitions/LayerDigest' description: The sha256 digest of the image layer. layerAvailability: $ref: '#/definitions/LayerAvailability' description: The availability status of the image layer. layerSize: $ref: '#/definitions/LayerSizeInBytes' description: 'The size, in bytes, of the image layer.' mediaType: $ref: '#/definitions/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: $ref: '#/definitions/BatchedOperationLayerDigest' description: The layer digest associated with the failure. failureCode: $ref: '#/definitions/LayerFailureCode' description: The failure code associated with the failure. failureReason: $ref: '#/definitions/LayerFailureReason' description: The reason for the failure. description: An object representing an Amazon ECR image layer failure. LayerPartBlob: type: string LifecyclePolicyRuleAction: type: object properties: type: $ref: '#/definitions/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: $ref: '#/definitions/ImageTagList' description: The list of tags associated with this image. imageDigest: $ref: '#/definitions/ImageDigest' description: The sha256 digest of the image manifest. imagePushedAt: $ref: '#/definitions/PushTimestamp' description: 'The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.' action: $ref: '#/definitions/LifecyclePolicyRuleAction' description: The type of action to be taken. appliedRulePriority: $ref: '#/definitions/LifecyclePolicyRulePriority' description: The priority of the applied rule. description: The result of the lifecycle policy preview. ListImagesFilter: type: object properties: tagStatus: $ref: '#/definitions/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. TagKey: type: string TagValue: type: string Tag: type: object properties: Key: $ref: '#/definitions/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: $ref: '#/definitions/TagValue' description: The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). description: 'The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, 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: '#/definitions/TagKey'