import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class ECR extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: ECR.Types.ClientConfiguration) config: Config & ECR.Types.ClientConfiguration; /** * 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. */ batchCheckLayerAvailability(params: ECR.Types.BatchCheckLayerAvailabilityRequest, callback?: (err: AWSError, data: ECR.Types.BatchCheckLayerAvailabilityResponse) => void): Request; /** * 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. */ batchCheckLayerAvailability(callback?: (err: AWSError, data: ECR.Types.BatchCheckLayerAvailabilityResponse) => void): Request; /** * 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. */ batchDeleteImage(params: ECR.Types.BatchDeleteImageRequest, callback?: (err: AWSError, data: ECR.Types.BatchDeleteImageResponse) => void): Request; /** * 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. */ batchDeleteImage(callback?: (err: AWSError, data: ECR.Types.BatchDeleteImageResponse) => void): Request; /** * Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest. */ batchGetImage(params: ECR.Types.BatchGetImageRequest, callback?: (err: AWSError, data: ECR.Types.BatchGetImageResponse) => void): Request; /** * Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest. */ batchGetImage(callback?: (err: AWSError, data: ECR.Types.BatchGetImageResponse) => void): Request; /** * 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. */ completeLayerUpload(params: ECR.Types.CompleteLayerUploadRequest, callback?: (err: AWSError, data: ECR.Types.CompleteLayerUploadResponse) => void): Request; /** * 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. */ completeLayerUpload(callback?: (err: AWSError, data: ECR.Types.CompleteLayerUploadResponse) => void): Request; /** * Creates an image repository. */ createRepository(params: ECR.Types.CreateRepositoryRequest, callback?: (err: AWSError, data: ECR.Types.CreateRepositoryResponse) => void): Request; /** * Creates an image repository. */ createRepository(callback?: (err: AWSError, data: ECR.Types.CreateRepositoryResponse) => void): Request; /** * Deletes the specified lifecycle policy. */ deleteLifecyclePolicy(params: ECR.Types.DeleteLifecyclePolicyRequest, callback?: (err: AWSError, data: ECR.Types.DeleteLifecyclePolicyResponse) => void): Request; /** * Deletes the specified lifecycle policy. */ deleteLifecyclePolicy(callback?: (err: AWSError, data: ECR.Types.DeleteLifecyclePolicyResponse) => void): Request; /** * Deletes an existing image repository. If a repository contains images, you must use the force option to delete it. */ deleteRepository(params: ECR.Types.DeleteRepositoryRequest, callback?: (err: AWSError, data: ECR.Types.DeleteRepositoryResponse) => void): Request; /** * Deletes an existing image repository. If a repository contains images, you must use the force option to delete it. */ deleteRepository(callback?: (err: AWSError, data: ECR.Types.DeleteRepositoryResponse) => void): Request; /** * Deletes the repository policy from a specified repository. */ deleteRepositoryPolicy(params: ECR.Types.DeleteRepositoryPolicyRequest, callback?: (err: AWSError, data: ECR.Types.DeleteRepositoryPolicyResponse) => void): Request; /** * Deletes the repository policy from a specified repository. */ deleteRepositoryPolicy(callback?: (err: AWSError, data: ECR.Types.DeleteRepositoryPolicyResponse) => void): Request; /** * 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. */ describeImages(params: ECR.Types.DescribeImagesRequest, callback?: (err: AWSError, data: ECR.Types.DescribeImagesResponse) => void): Request; /** * 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. */ describeImages(callback?: (err: AWSError, data: ECR.Types.DescribeImagesResponse) => void): Request; /** * Describes image repositories in a registry. */ describeRepositories(params: ECR.Types.DescribeRepositoriesRequest, callback?: (err: AWSError, data: ECR.Types.DescribeRepositoriesResponse) => void): Request; /** * Describes image repositories in a registry. */ describeRepositories(callback?: (err: AWSError, data: ECR.Types.DescribeRepositoriesResponse) => void): Request; /** * 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. */ getAuthorizationToken(params: ECR.Types.GetAuthorizationTokenRequest, callback?: (err: AWSError, data: ECR.Types.GetAuthorizationTokenResponse) => void): Request; /** * 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. */ getAuthorizationToken(callback?: (err: AWSError, data: ECR.Types.GetAuthorizationTokenResponse) => void): Request; /** * 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. */ getDownloadUrlForLayer(params: ECR.Types.GetDownloadUrlForLayerRequest, callback?: (err: AWSError, data: ECR.Types.GetDownloadUrlForLayerResponse) => void): Request; /** * 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. */ getDownloadUrlForLayer(callback?: (err: AWSError, data: ECR.Types.GetDownloadUrlForLayerResponse) => void): Request; /** * Retrieves the specified lifecycle policy. */ getLifecyclePolicy(params: ECR.Types.GetLifecyclePolicyRequest, callback?: (err: AWSError, data: ECR.Types.GetLifecyclePolicyResponse) => void): Request; /** * Retrieves the specified lifecycle policy. */ getLifecyclePolicy(callback?: (err: AWSError, data: ECR.Types.GetLifecyclePolicyResponse) => void): Request; /** * Retrieves the results of the specified lifecycle policy preview request. */ getLifecyclePolicyPreview(params: ECR.Types.GetLifecyclePolicyPreviewRequest, callback?: (err: AWSError, data: ECR.Types.GetLifecyclePolicyPreviewResponse) => void): Request; /** * Retrieves the results of the specified lifecycle policy preview request. */ getLifecyclePolicyPreview(callback?: (err: AWSError, data: ECR.Types.GetLifecyclePolicyPreviewResponse) => void): Request; /** * Retrieves the repository policy for a specified repository. */ getRepositoryPolicy(params: ECR.Types.GetRepositoryPolicyRequest, callback?: (err: AWSError, data: ECR.Types.GetRepositoryPolicyResponse) => void): Request; /** * Retrieves the repository policy for a specified repository. */ getRepositoryPolicy(callback?: (err: AWSError, data: ECR.Types.GetRepositoryPolicyResponse) => void): Request; /** * 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. */ initiateLayerUpload(params: ECR.Types.InitiateLayerUploadRequest, callback?: (err: AWSError, data: ECR.Types.InitiateLayerUploadResponse) => void): Request; /** * 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. */ initiateLayerUpload(callback?: (err: AWSError, data: ECR.Types.InitiateLayerUploadResponse) => void): Request; /** * 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. */ listImages(params: ECR.Types.ListImagesRequest, callback?: (err: AWSError, data: ECR.Types.ListImagesResponse) => void): Request; /** * 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. */ listImages(callback?: (err: AWSError, data: ECR.Types.ListImagesResponse) => void): Request; /** * List the tags for an Amazon ECR resource. */ listTagsForResource(params: ECR.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: ECR.Types.ListTagsForResourceResponse) => void): Request; /** * List the tags for an Amazon ECR resource. */ listTagsForResource(callback?: (err: AWSError, data: ECR.Types.ListTagsForResourceResponse) => void): Request; /** * 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. */ putImage(params: ECR.Types.PutImageRequest, callback?: (err: AWSError, data: ECR.Types.PutImageResponse) => void): Request; /** * 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. */ putImage(callback?: (err: AWSError, data: ECR.Types.PutImageResponse) => void): Request; /** * Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle Policy Template. */ putLifecyclePolicy(params: ECR.Types.PutLifecyclePolicyRequest, callback?: (err: AWSError, data: ECR.Types.PutLifecyclePolicyResponse) => void): Request; /** * Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle Policy Template. */ putLifecyclePolicy(callback?: (err: AWSError, data: ECR.Types.PutLifecyclePolicyResponse) => void): Request; /** * Applies a repository policy on a specified repository to control access permissions. */ setRepositoryPolicy(params: ECR.Types.SetRepositoryPolicyRequest, callback?: (err: AWSError, data: ECR.Types.SetRepositoryPolicyResponse) => void): Request; /** * Applies a repository policy on a specified repository to control access permissions. */ setRepositoryPolicy(callback?: (err: AWSError, data: ECR.Types.SetRepositoryPolicyResponse) => void): Request; /** * Starts a preview of the specified lifecycle policy. This allows you to see the results before creating the lifecycle policy. */ startLifecyclePolicyPreview(params: ECR.Types.StartLifecyclePolicyPreviewRequest, callback?: (err: AWSError, data: ECR.Types.StartLifecyclePolicyPreviewResponse) => void): Request; /** * Starts a preview of the specified lifecycle policy. This allows you to see the results before creating the lifecycle policy. */ startLifecyclePolicyPreview(callback?: (err: AWSError, data: ECR.Types.StartLifecyclePolicyPreviewResponse) => void): Request; /** * 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. */ tagResource(params: ECR.Types.TagResourceRequest, callback?: (err: AWSError, data: ECR.Types.TagResourceResponse) => void): Request; /** * 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. */ tagResource(callback?: (err: AWSError, data: ECR.Types.TagResourceResponse) => void): Request; /** * Deletes specified tags from a resource. */ untagResource(params: ECR.Types.UntagResourceRequest, callback?: (err: AWSError, data: ECR.Types.UntagResourceResponse) => void): Request; /** * Deletes specified tags from a resource. */ untagResource(callback?: (err: AWSError, data: ECR.Types.UntagResourceResponse) => void): Request; /** * 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. */ uploadLayerPart(params: ECR.Types.UploadLayerPartRequest, callback?: (err: AWSError, data: ECR.Types.UploadLayerPartResponse) => void): Request; /** * 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. */ uploadLayerPart(callback?: (err: AWSError, data: ECR.Types.UploadLayerPartResponse) => void): Request; } declare namespace ECR { export type Arn = string; export interface AuthorizationData { /** * 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. */ authorizationToken?: Base64; /** * The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours. */ expiresAt?: ExpirationTimestamp; /** * 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.. */ proxyEndpoint?: ProxyEndpoint; } export type AuthorizationDataList = AuthorizationData[]; export type Base64 = string; export interface BatchCheckLayerAvailabilityRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository that is associated with the image layers to check. */ repositoryName: RepositoryName; /** * The digests of the image layers to check. */ layerDigests: BatchedOperationLayerDigestList; } export interface BatchCheckLayerAvailabilityResponse { /** * A list of image layer objects corresponding to the image layer references in the request. */ layers?: LayerList; /** * Any failures associated with the call. */ failures?: LayerFailureList; } export interface BatchDeleteImageRequest { /** * 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. */ registryId?: RegistryId; /** * The repository that contains the image to delete. */ repositoryName: RepositoryName; /** * A list of image ID references that correspond to images to delete. The format of the imageIds reference is imageTag=tag or imageDigest=digest. */ imageIds: ImageIdentifierList; } export interface BatchDeleteImageResponse { /** * The image IDs of the deleted images. */ imageIds?: ImageIdentifierList; /** * Any failures associated with the call. */ failures?: ImageFailureList; } export interface BatchGetImageRequest { /** * 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. */ registryId?: RegistryId; /** * The repository that contains the images to describe. */ repositoryName: RepositoryName; /** * A list of image ID references that correspond to images to describe. The format of the imageIds reference is imageTag=tag or imageDigest=digest. */ imageIds: ImageIdentifierList; /** * 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 */ acceptedMediaTypes?: MediaTypeList; } export interface BatchGetImageResponse { /** * A list of image objects corresponding to the image references in the request. */ images?: ImageList; /** * Any failures associated with the call. */ failures?: ImageFailureList; } export type BatchedOperationLayerDigest = string; export type BatchedOperationLayerDigestList = BatchedOperationLayerDigest[]; export interface CompleteLayerUploadRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository to associate with the image layer. */ repositoryName: RepositoryName; /** * The upload ID from a previous InitiateLayerUpload operation to associate with the image layer. */ uploadId: UploadId; /** * The sha256 digest of the image layer. */ layerDigests: LayerDigestList; } export interface CompleteLayerUploadResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The upload ID associated with the layer. */ uploadId?: UploadId; /** * The sha256 digest of the image layer. */ layerDigest?: LayerDigest; } export interface CreateRepositoryRequest { /** * 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). */ repositoryName: RepositoryName; /** * */ tags?: TagList; } export interface CreateRepositoryResponse { /** * The repository that was created. */ repository?: Repository; } export type CreationTimestamp = Date; export interface DeleteLifecyclePolicyRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository. */ repositoryName: RepositoryName; } export interface DeleteLifecyclePolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON lifecycle policy text. */ lifecyclePolicyText?: LifecyclePolicyText; /** * The time stamp of the last time that the lifecycle policy was run. */ lastEvaluatedAt?: EvaluationTimestamp; } export interface DeleteRepositoryPolicyRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository that is associated with the repository policy to delete. */ repositoryName: RepositoryName; } export interface DeleteRepositoryPolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON repository policy that was deleted from the repository. */ policyText?: RepositoryPolicyText; } export interface DeleteRepositoryRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository to delete. */ repositoryName: RepositoryName; /** * If a repository contains images, forces the deletion. */ force?: ForceFlag; } export interface DeleteRepositoryResponse { /** * The repository that was deleted. */ repository?: Repository; } export interface DescribeImagesFilter { /** * The tag status with which to filter your DescribeImages results. You can filter results based on whether they are TAGGED or UNTAGGED. */ tagStatus?: TagStatus; } export interface DescribeImagesRequest { /** * 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. */ registryId?: RegistryId; /** * A list of repositories to describe. */ repositoryName: RepositoryName; /** * The list of image IDs for the requested repository. */ imageIds?: ImageIdentifierList; /** * 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. */ nextToken?: NextToken; /** * 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. */ maxResults?: MaxResults; /** * The filter key and value with which to filter your DescribeImages results. */ filter?: DescribeImagesFilter; } export interface DescribeImagesResponse { /** * A list of ImageDetail objects that contain data about the image. */ imageDetails?: ImageDetailList; /** * 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. */ nextToken?: NextToken; } export interface DescribeRepositoriesRequest { /** * 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. */ registryId?: RegistryId; /** * A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described. */ repositoryNames?: RepositoryNameList; /** * 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. */ nextToken?: NextToken; /** * 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. */ maxResults?: MaxResults; } export interface DescribeRepositoriesResponse { /** * A list of repository objects corresponding to valid repositories. */ repositories?: RepositoryList; /** * 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. */ nextToken?: NextToken; } export type EvaluationTimestamp = Date; export type ExpirationTimestamp = Date; export type ForceFlag = boolean; export type GetAuthorizationTokenRegistryIdList = RegistryId[]; export interface GetAuthorizationTokenRequest { /** * 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. */ registryIds?: GetAuthorizationTokenRegistryIdList; } export interface GetAuthorizationTokenResponse { /** * A list of authorization token data objects that correspond to the registryIds values in the request. */ authorizationData?: AuthorizationDataList; } export interface GetDownloadUrlForLayerRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository that is associated with the image layer to download. */ repositoryName: RepositoryName; /** * The digest of the image layer to download. */ layerDigest: LayerDigest; } export interface GetDownloadUrlForLayerResponse { /** * The pre-signed Amazon S3 download URL for the requested layer. */ downloadUrl?: Url; /** * The digest of the image layer to download. */ layerDigest?: LayerDigest; } export interface GetLifecyclePolicyPreviewRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository. */ repositoryName: RepositoryName; /** * The list of imageIDs to be included. */ imageIds?: ImageIdentifierList; /** * 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. */ nextToken?: NextToken; /** * 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. */ maxResults?: LifecyclePreviewMaxResults; /** * An optional parameter that filters results based on image tag status and all tags, if tagged. */ filter?: LifecyclePolicyPreviewFilter; } export interface GetLifecyclePolicyPreviewResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON lifecycle policy text. */ lifecyclePolicyText?: LifecyclePolicyText; /** * The status of the lifecycle policy preview request. */ status?: LifecyclePolicyPreviewStatus; /** * 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. */ nextToken?: NextToken; /** * The results of the lifecycle policy preview request. */ previewResults?: LifecyclePolicyPreviewResultList; /** * The list of images that is returned as a result of the action. */ summary?: LifecyclePolicyPreviewSummary; } export interface GetLifecyclePolicyRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository. */ repositoryName: RepositoryName; } export interface GetLifecyclePolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON lifecycle policy text. */ lifecyclePolicyText?: LifecyclePolicyText; /** * The time stamp of the last time that the lifecycle policy was run. */ lastEvaluatedAt?: EvaluationTimestamp; } export interface GetRepositoryPolicyRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository with the policy to retrieve. */ repositoryName: RepositoryName; } export interface GetRepositoryPolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON repository policy text associated with the repository. */ policyText?: RepositoryPolicyText; } export interface Image { /** * The AWS account ID associated with the registry containing the image. */ registryId?: RegistryId; /** * The name of the repository associated with the image. */ repositoryName?: RepositoryName; /** * An object containing the image tag and image digest associated with an image. */ imageId?: ImageIdentifier; /** * The image manifest associated with the image. */ imageManifest?: ImageManifest; } export type ImageActionType = "EXPIRE"|string; export type ImageCount = number; export interface ImageDetail { /** * The AWS account ID associated with the registry to which this image belongs. */ registryId?: RegistryId; /** * The name of the repository to which this image belongs. */ repositoryName?: RepositoryName; /** * The sha256 digest of the image manifest. */ imageDigest?: ImageDigest; /** * The list of tags associated with this image. */ imageTags?: ImageTagList; /** * 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. */ imageSizeInBytes?: ImageSizeInBytes; /** * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository. */ imagePushedAt?: PushTimestamp; } export type ImageDetailList = ImageDetail[]; export type ImageDigest = string; export interface ImageFailure { /** * The image ID associated with the failure. */ imageId?: ImageIdentifier; /** * The code associated with the failure. */ failureCode?: ImageFailureCode; /** * The reason for the failure. */ failureReason?: ImageFailureReason; } export type ImageFailureCode = "InvalidImageDigest"|"InvalidImageTag"|"ImageTagDoesNotMatchDigest"|"ImageNotFound"|"MissingDigestAndTag"|string; export type ImageFailureList = ImageFailure[]; export type ImageFailureReason = string; export interface ImageIdentifier { /** * The sha256 digest of the image manifest. */ imageDigest?: ImageDigest; /** * The tag used for the image. */ imageTag?: ImageTag; } export type ImageIdentifierList = ImageIdentifier[]; export type ImageList = Image[]; export type ImageManifest = string; export type ImageSizeInBytes = number; export type ImageTag = string; export type ImageTagList = ImageTag[]; export interface InitiateLayerUploadRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository to which you intend to upload layers. */ repositoryName: RepositoryName; } export interface InitiateLayerUploadResponse { /** * The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations. */ uploadId?: UploadId; /** * The size, in bytes, that Amazon ECR expects future layer part uploads to be. */ partSize?: PartSize; } export interface Layer { /** * The sha256 digest of the image layer. */ layerDigest?: LayerDigest; /** * The availability status of the image layer. */ layerAvailability?: LayerAvailability; /** * The size, in bytes, of the image layer. */ layerSize?: LayerSizeInBytes; /** * 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. */ mediaType?: MediaType; } export type LayerAvailability = "AVAILABLE"|"UNAVAILABLE"|string; export type LayerDigest = string; export type LayerDigestList = LayerDigest[]; export interface LayerFailure { /** * The layer digest associated with the failure. */ layerDigest?: BatchedOperationLayerDigest; /** * The failure code associated with the failure. */ failureCode?: LayerFailureCode; /** * The reason for the failure. */ failureReason?: LayerFailureReason; } export type LayerFailureCode = "InvalidLayerDigest"|"MissingLayerDigest"|string; export type LayerFailureList = LayerFailure[]; export type LayerFailureReason = string; export type LayerList = Layer[]; export type LayerPartBlob = Buffer|Uint8Array|Blob|string; export type LayerSizeInBytes = number; export interface LifecyclePolicyPreviewFilter { /** * The tag status of the image. */ tagStatus?: TagStatus; } export interface LifecyclePolicyPreviewResult { /** * The list of tags associated with this image. */ imageTags?: ImageTagList; /** * The sha256 digest of the image manifest. */ imageDigest?: ImageDigest; /** * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository. */ imagePushedAt?: PushTimestamp; /** * The type of action to be taken. */ action?: LifecyclePolicyRuleAction; /** * The priority of the applied rule. */ appliedRulePriority?: LifecyclePolicyRulePriority; } export type LifecyclePolicyPreviewResultList = LifecyclePolicyPreviewResult[]; export type LifecyclePolicyPreviewStatus = "IN_PROGRESS"|"COMPLETE"|"EXPIRED"|"FAILED"|string; export interface LifecyclePolicyPreviewSummary { /** * The number of expiring images. */ expiringImageTotalCount?: ImageCount; } export interface LifecyclePolicyRuleAction { /** * The type of action to be taken. */ type?: ImageActionType; } export type LifecyclePolicyRulePriority = number; export type LifecyclePolicyText = string; export type LifecyclePreviewMaxResults = number; export interface ListImagesFilter { /** * The tag status with which to filter your ListImages results. You can filter results based on whether they are TAGGED or UNTAGGED. */ tagStatus?: TagStatus; } export interface ListImagesRequest { /** * 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. */ registryId?: RegistryId; /** * The repository with image IDs to be listed. */ repositoryName: RepositoryName; /** * 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. */ nextToken?: NextToken; /** * 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. */ maxResults?: MaxResults; /** * The filter key and value with which to filter your ListImages results. */ filter?: ListImagesFilter; } export interface ListImagesResponse { /** * The list of image IDs for the requested repository. */ imageIds?: ImageIdentifierList; /** * 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. */ nextToken?: NextToken; } export interface ListTagsForResourceRequest { /** * 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. */ resourceArn: Arn; } export interface ListTagsForResourceResponse { /** * The tags for the resource. */ tags?: TagList; } export type MaxResults = number; export type MediaType = string; export type MediaTypeList = MediaType[]; export type NextToken = string; export type PartSize = number; export type ProxyEndpoint = string; export type PushTimestamp = Date; export interface PutImageRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository in which to put the image. */ repositoryName: RepositoryName; /** * The image manifest corresponding to the image to be uploaded. */ imageManifest: ImageManifest; /** * 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. */ imageTag?: ImageTag; } export interface PutImageResponse { /** * Details of the image uploaded. */ image?: Image; } export interface PutLifecyclePolicyRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do
 not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository to receive the policy. */ repositoryName: RepositoryName; /** * The JSON repository policy text to apply to the repository. */ lifecyclePolicyText: LifecyclePolicyText; } export interface PutLifecyclePolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON repository policy text. */ lifecyclePolicyText?: LifecyclePolicyText; } export type RegistryId = string; export interface Repository { /** * 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. */ repositoryArn?: Arn; /** * The AWS account ID associated with the registry that contains the repository. */ registryId?: RegistryId; /** * The name of the repository. */ repositoryName?: RepositoryName; /** * The URI for the repository. You can use this URI for Docker push or pull operations. */ repositoryUri?: Url; /** * The date and time, in JavaScript date format, when the repository was created. */ createdAt?: CreationTimestamp; } export type RepositoryList = Repository[]; export type RepositoryName = string; export type RepositoryNameList = RepositoryName[]; export type RepositoryPolicyText = string; export interface SetRepositoryPolicyRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository to receive the policy. */ repositoryName: RepositoryName; /** * The JSON repository policy text to apply to the repository. */ policyText: RepositoryPolicyText; /** * 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. */ force?: ForceFlag; } export interface SetRepositoryPolicyResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON repository policy text applied to the repository. */ policyText?: RepositoryPolicyText; } export interface StartLifecyclePolicyPreviewRequest { /** * The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. */ registryId?: RegistryId; /** * The name of the repository to be evaluated. */ repositoryName: RepositoryName; /** * The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used. */ lifecyclePolicyText?: LifecyclePolicyText; } export interface StartLifecyclePolicyPreviewResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The JSON repository policy text. */ lifecyclePolicyText?: LifecyclePolicyText; /** * The status of the lifecycle policy preview request. */ status?: LifecyclePolicyPreviewStatus; } export interface Tag { /** * 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. */ Key?: TagKey; /** * The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). */ Value?: TagValue; } export type TagKey = string; export type TagKeyList = TagKey[]; export type TagList = Tag[]; export interface TagResourceRequest { /** * The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported resource is an Amazon ECR repository. */ resourceArn: Arn; /** * 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. */ tags: TagList; } export interface TagResourceResponse { } export type TagStatus = "TAGGED"|"UNTAGGED"|"ANY"|string; export type TagValue = string; export interface UntagResourceRequest { /** * The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported resource is an Amazon ECR repository. */ resourceArn: Arn; /** * The keys of the tags to be removed. */ tagKeys: TagKeyList; } export interface UntagResourceResponse { } export type UploadId = string; export interface UploadLayerPartRequest { /** * 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. */ registryId?: RegistryId; /** * The name of the repository to which you are uploading layer parts. */ repositoryName: RepositoryName; /** * The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload. */ uploadId: UploadId; /** * The integer value of the first byte of the layer part. */ partFirstByte: PartSize; /** * The integer value of the last byte of the layer part. */ partLastByte: PartSize; /** * The base64-encoded layer part payload. */ layerPartBlob: LayerPartBlob; } export interface UploadLayerPartResponse { /** * The registry ID associated with the request. */ registryId?: RegistryId; /** * The repository name associated with the request. */ repositoryName?: RepositoryName; /** * The upload ID associated with the request. */ uploadId?: UploadId; /** * The integer value of the last byte received in the request. */ lastByteReceived?: PartSize; } export type Url = string; /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ export type apiVersion = "2015-09-21"|"latest"|string; export interface ClientApiVersions { /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ apiVersion?: apiVersion; } export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; /** * Contains interfaces for use with the ECR client. */ export import Types = ECR; } export = ECR;