# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::ECR module Types # An object representing authorization data for an Amazon ECR registry. # # @!attribute [rw] authorization_token # 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`. # @return [String] # # @!attribute [rw] expires_at # The Unix time in seconds and milliseconds when the authorization # token expires. Authorization tokens are valid for 12 hours. # @return [Time] # # @!attribute [rw] proxy_endpoint # 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`.. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/AuthorizationData AWS API Documentation # class AuthorizationData < Struct.new( :authorization_token, :expires_at, :proxy_endpoint) include Aws::Structure end # @note When making an API call, you may pass BatchCheckLayerAvailabilityRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # layer_digests: ["BatchedOperationLayerDigest"], # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository that is associated with the image layers # to check. # @return [String] # # @!attribute [rw] layer_digests # The digests of the image layers to check. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailabilityRequest AWS API Documentation # class BatchCheckLayerAvailabilityRequest < Struct.new( :registry_id, :repository_name, :layer_digests) include Aws::Structure end # @!attribute [rw] layers # A list of image layer objects corresponding to the image layer # references in the request. # @return [Array] # # @!attribute [rw] failures # Any failures associated with the call. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailabilityResponse AWS API Documentation # class BatchCheckLayerAvailabilityResponse < Struct.new( :layers, :failures) include Aws::Structure end # Deletes specified images within a specified repository. Images are # specified with either the `imageTag` or `imageDigest`. # # @note When making an API call, you may pass BatchDeleteImageRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # image_ids: [ # required # { # image_digest: "ImageDigest", # image_tag: "ImageTag", # }, # ], # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The repository that contains the image to delete. # @return [String] # # @!attribute [rw] image_ids # A list of image ID references that correspond to images to delete. # The format of the `imageIds` reference is `imageTag=tag` or # `imageDigest=digest`. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImageRequest AWS API Documentation # class BatchDeleteImageRequest < Struct.new( :registry_id, :repository_name, :image_ids) include Aws::Structure end # @!attribute [rw] image_ids # The image IDs of the deleted images. # @return [Array] # # @!attribute [rw] failures # Any failures associated with the call. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImageResponse AWS API Documentation # class BatchDeleteImageResponse < Struct.new( :image_ids, :failures) include Aws::Structure end # @note When making an API call, you may pass BatchGetImageRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # image_ids: [ # required # { # image_digest: "ImageDigest", # image_tag: "ImageTag", # }, # ], # accepted_media_types: ["MediaType"], # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The repository that contains the images to describe. # @return [String] # # @!attribute [rw] image_ids # A list of image ID references that correspond to images to describe. # The format of the `imageIds` reference is `imageTag=tag` or # `imageDigest=digest`. # @return [Array] # # @!attribute [rw] accepted_media_types # 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` # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImageRequest AWS API Documentation # class BatchGetImageRequest < Struct.new( :registry_id, :repository_name, :image_ids, :accepted_media_types) include Aws::Structure end # @!attribute [rw] images # A list of image objects corresponding to the image references in the # request. # @return [Array] # # @!attribute [rw] failures # Any failures associated with the call. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImageResponse AWS API Documentation # class BatchGetImageResponse < Struct.new( :images, :failures) include Aws::Structure end # @note When making an API call, you may pass CompleteLayerUploadRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # upload_id: "UploadId", # required # layer_digests: ["LayerDigest"], # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to associate with the image layer. # @return [String] # # @!attribute [rw] upload_id # The upload ID from a previous InitiateLayerUpload operation to # associate with the image layer. # @return [String] # # @!attribute [rw] layer_digests # The `sha256` digest of the image layer. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUploadRequest AWS API Documentation # class CompleteLayerUploadRequest < Struct.new( :registry_id, :repository_name, :upload_id, :layer_digests) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] upload_id # The upload ID associated with the layer. # @return [String] # # @!attribute [rw] layer_digest # The `sha256` digest of the image layer. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUploadResponse AWS API Documentation # class CompleteLayerUploadResponse < Struct.new( :registry_id, :repository_name, :upload_id, :layer_digest) include Aws::Structure end # @note When making an API call, you may pass CreateRepositoryRequest # data as a hash: # # { # repository_name: "RepositoryName", # required # } # # @!attribute [rw] repository_name # 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`). # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryRequest AWS API Documentation # class CreateRepositoryRequest < Struct.new( :repository_name) include Aws::Structure end # @!attribute [rw] repository # The repository that was created. # @return [Types::Repository] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryResponse AWS API Documentation # class CreateRepositoryResponse < Struct.new( :repository) include Aws::Structure end # @note When making an API call, you may pass DeleteLifecyclePolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository that is associated with the repository # policy to
 delete. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteLifecyclePolicyRequest AWS API Documentation # class DeleteLifecyclePolicyRequest < Struct.new( :registry_id, :repository_name) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text. # @return [String] # # @!attribute [rw] last_evaluated_at # The time stamp of the last time that the lifecycle policy was run. # @return [Time] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteLifecyclePolicyResponse AWS API Documentation # class DeleteLifecyclePolicyResponse < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text, :last_evaluated_at) include Aws::Structure end # @note When making an API call, you may pass DeleteRepositoryPolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository that is associated with the repository # policy to delete. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicyRequest AWS API Documentation # class DeleteRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] policy_text # The JSON repository policy that was deleted from the repository. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryPolicyResponse AWS API Documentation # class DeleteRepositoryPolicyResponse < Struct.new( :registry_id, :repository_name, :policy_text) include Aws::Structure end # @note When making an API call, you may pass DeleteRepositoryRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # force: false, # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to delete. # @return [String] # # @!attribute [rw] force # If a repository contains images, forces the deletion. # @return [Boolean] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryRequest AWS API Documentation # class DeleteRepositoryRequest < Struct.new( :registry_id, :repository_name, :force) include Aws::Structure end # @!attribute [rw] repository # The repository that was deleted. # @return [Types::Repository] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryResponse AWS API Documentation # class DeleteRepositoryResponse < Struct.new( :repository) include Aws::Structure end # An object representing a filter on a DescribeImages operation. # # @note When making an API call, you may pass DescribeImagesFilter # data as a hash: # # { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # } # # @!attribute [rw] tag_status # The tag status with which to filter your DescribeImages results. You # can filter results based on whether they are `TAGGED` or `UNTAGGED`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesFilter AWS API Documentation # class DescribeImagesFilter < Struct.new( :tag_status) include Aws::Structure end # @note When making an API call, you may pass DescribeImagesRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # image_ids: [ # { # image_digest: "ImageDigest", # image_tag: "ImageTag", # }, # ], # next_token: "NextToken", # max_results: 1, # filter: { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # }, # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # A list of repositories to describe. If this parameter is omitted, # then all repositories in a registry are described. # @return [String] # # @!attribute [rw] image_ids # The list of image IDs for the requested repository. # @return [Array] # # @!attribute [rw] next_token # 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. # @return [String] # # @!attribute [rw] max_results # 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 100. If this parameter is not used, then # `DescribeImages` returns up to 100 results and a `nextToken` value, # if applicable. # @return [Integer] # # @!attribute [rw] filter # The filter key and value with which to filter your `DescribeImages` # results. # @return [Types::DescribeImagesFilter] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesRequest AWS API Documentation # class DescribeImagesRequest < Struct.new( :registry_id, :repository_name, :image_ids, :next_token, :max_results, :filter) include Aws::Structure end # @!attribute [rw] image_details # A list of ImageDetail objects that contain data about the image. # @return [Array] # # @!attribute [rw] next_token # 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. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesResponse AWS API Documentation # class DescribeImagesResponse < Struct.new( :image_details, :next_token) include Aws::Structure end # @note When making an API call, you may pass DescribeRepositoriesRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_names: ["RepositoryName"], # next_token: "NextToken", # max_results: 1, # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_names # A list of repositories to describe. If this parameter is omitted, # then all repositories in a registry are described. # @return [Array] # # @!attribute [rw] next_token # 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 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. # # # @return [String] # # @!attribute [rw] max_results # 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 100. If this parameter is not used, # then `DescribeRepositories` returns up to 100 results and a # `nextToken` value, if applicable. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoriesRequest AWS API Documentation # class DescribeRepositoriesRequest < Struct.new( :registry_id, :repository_names, :next_token, :max_results) include Aws::Structure end # @!attribute [rw] repositories # A list of repository objects corresponding to valid repositories. # @return [Array] # # @!attribute [rw] next_token # 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. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoriesResponse AWS API Documentation # class DescribeRepositoriesResponse < Struct.new( :repositories, :next_token) include Aws::Structure end # @note When making an API call, you may pass GetAuthorizationTokenRequest # data as a hash: # # { # registry_ids: ["RegistryId"], # } # # @!attribute [rw] registry_ids # 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. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationTokenRequest AWS API Documentation # class GetAuthorizationTokenRequest < Struct.new( :registry_ids) include Aws::Structure end # @!attribute [rw] authorization_data # A list of authorization token data objects that correspond to the # `registryIds` values in the request. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationTokenResponse AWS API Documentation # class GetAuthorizationTokenResponse < Struct.new( :authorization_data) include Aws::Structure end # @note When making an API call, you may pass GetDownloadUrlForLayerRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # layer_digest: "LayerDigest", # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository that is associated with the image layer # to download. # @return [String] # # @!attribute [rw] layer_digest # The digest of the image layer to download. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayerRequest AWS API Documentation # class GetDownloadUrlForLayerRequest < Struct.new( :registry_id, :repository_name, :layer_digest) include Aws::Structure end # @!attribute [rw] download_url # The pre-signed Amazon S3 download URL for the requested layer. # @return [String] # # @!attribute [rw] layer_digest # The digest of the image layer to download. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetDownloadUrlForLayerResponse AWS API Documentation # class GetDownloadUrlForLayerResponse < Struct.new( :download_url, :layer_digest) include Aws::Structure end # @note When making an API call, you may pass GetLifecyclePolicyPreviewRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # image_ids: [ # { # image_digest: "ImageDigest", # image_tag: "ImageTag", # }, # ], # next_token: "NextToken", # max_results: 1, # filter: { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # }, # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository with the policy to retrieve. # @return [String] # # @!attribute [rw] image_ids # The list of imageIDs to be included. # @return [Array] # # @!attribute [rw] next_token # 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. # @return [String] # # @!attribute [rw] max_results # 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 100. If this
 parameter is not used, then # `GetLifecyclePolicyPreviewRequest` returns up to
 100 results and a # `nextToken` value, if
 applicable. # @return [Integer] # # @!attribute [rw] filter # An optional parameter that filters results based on image tag status # and all tags, if tagged. # @return [Types::LifecyclePolicyPreviewFilter] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyPreviewRequest AWS API Documentation # class GetLifecyclePolicyPreviewRequest < Struct.new( :registry_id, :repository_name, :image_ids, :next_token, :max_results, :filter) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text. # @return [String] # # @!attribute [rw] status # The status of the lifecycle policy preview request. # @return [String] # # @!attribute [rw] next_token # 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. # @return [String] # # @!attribute [rw] preview_results # The results of the lifecycle policy preview request. # @return [Array] # # @!attribute [rw] summary # The list of images that is returned as a result of the action. # @return [Types::LifecyclePolicyPreviewSummary] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyPreviewResponse AWS API Documentation # class GetLifecyclePolicyPreviewResponse < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text, :status, :next_token, :preview_results, :summary) include Aws::Structure end # @note When making an API call, you may pass GetLifecyclePolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository with the policy to retrieve. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyRequest AWS API Documentation # class GetLifecyclePolicyRequest < Struct.new( :registry_id, :repository_name) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text. # @return [String] # # @!attribute [rw] last_evaluated_at # The time stamp of the last time that the lifecycle policy was run. # @return [Time] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyResponse AWS API Documentation # class GetLifecyclePolicyResponse < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text, :last_evaluated_at) include Aws::Structure end # @note When making an API call, you may pass GetRepositoryPolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository with the policy to retrieve. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicyRequest AWS API Documentation # class GetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] policy_text # The JSON repository policy text associated with the repository. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRepositoryPolicyResponse AWS API Documentation # class GetRepositoryPolicyResponse < Struct.new( :registry_id, :repository_name, :policy_text) include Aws::Structure end # An object representing an Amazon ECR image. # # @!attribute [rw] registry_id # The AWS account ID associated with the registry containing the # image. # @return [String] # # @!attribute [rw] repository_name # The name of the repository associated with the image. # @return [String] # # @!attribute [rw] image_id # An object containing the image tag and image digest associated with # an image. # @return [Types::ImageIdentifier] # # @!attribute [rw] image_manifest # The image manifest associated with the image. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image AWS API Documentation # class Image < Struct.new( :registry_id, :repository_name, :image_id, :image_manifest) include Aws::Structure end # An object that describes an image returned by a DescribeImages # operation. # # @!attribute [rw] registry_id # The AWS account ID associated with the registry to which this image # belongs. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to which this image belongs. # @return [String] # # @!attribute [rw] image_digest # The `sha256` digest of the image manifest. # @return [String] # # @!attribute [rw] image_tags # The list of tags associated with this image. # @return [Array] # # @!attribute [rw] image_size_in_bytes # 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. # # # @return [Integer] # # @!attribute [rw] image_pushed_at # The date and time, expressed in standard JavaScript date format, at # which the current image was pushed to the repository. # @return [Time] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDetail AWS API Documentation # class ImageDetail < Struct.new( :registry_id, :repository_name, :image_digest, :image_tags, :image_size_in_bytes, :image_pushed_at) include Aws::Structure end # An object representing an Amazon ECR image failure. # # @!attribute [rw] image_id # The image ID associated with the failure. # @return [Types::ImageIdentifier] # # @!attribute [rw] failure_code # The code associated with the failure. # @return [String] # # @!attribute [rw] failure_reason # The reason for the failure. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageFailure AWS API Documentation # class ImageFailure < Struct.new( :image_id, :failure_code, :failure_reason) include Aws::Structure end # An object with identifying information for an Amazon ECR image. # # @note When making an API call, you may pass ImageIdentifier # data as a hash: # # { # image_digest: "ImageDigest", # image_tag: "ImageTag", # } # # @!attribute [rw] image_digest # The `sha256` digest of the image manifest. # @return [String] # # @!attribute [rw] image_tag # The tag used for the image. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageIdentifier AWS API Documentation # class ImageIdentifier < Struct.new( :image_digest, :image_tag) include Aws::Structure end # @note When making an API call, you may pass InitiateLayerUploadRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to which you intend to upload layers. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUploadRequest AWS API Documentation # class InitiateLayerUploadRequest < Struct.new( :registry_id, :repository_name) include Aws::Structure end # @!attribute [rw] upload_id # The upload ID for the layer upload. This parameter is passed to # further UploadLayerPart and CompleteLayerUpload operations. # @return [String] # # @!attribute [rw] part_size # The size, in bytes, that Amazon ECR expects future layer part # uploads to be. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InitiateLayerUploadResponse AWS API Documentation # class InitiateLayerUploadResponse < Struct.new( :upload_id, :part_size) include Aws::Structure end # An object representing an Amazon ECR image layer. # # @!attribute [rw] layer_digest # The `sha256` digest of the image layer. # @return [String] # # @!attribute [rw] layer_availability # The availability status of the image layer. # @return [String] # # @!attribute [rw] layer_size # The size, in bytes, of the image layer. # @return [Integer] # # @!attribute [rw] media_type # 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`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Layer AWS API Documentation # class Layer < Struct.new( :layer_digest, :layer_availability, :layer_size, :media_type) include Aws::Structure end # An object representing an Amazon ECR image layer failure. # # @!attribute [rw] layer_digest # The layer digest associated with the failure. # @return [String] # # @!attribute [rw] failure_code # The failure code associated with the failure. # @return [String] # # @!attribute [rw] failure_reason # The reason for the failure. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LayerFailure AWS API Documentation # class LayerFailure < Struct.new( :layer_digest, :failure_code, :failure_reason) include Aws::Structure end # The filter for the lifecycle policy preview. # # @note When making an API call, you may pass LifecyclePolicyPreviewFilter # data as a hash: # # { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # } # # @!attribute [rw] tag_status # The tag status of the image. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewFilter AWS API Documentation # class LifecyclePolicyPreviewFilter < Struct.new( :tag_status) include Aws::Structure end # The result of the lifecycle policy preview. # # @!attribute [rw] image_tags # The list of tags associated with this image. # @return [Array] # # @!attribute [rw] image_digest # The `sha256` digest of the image manifest. # @return [String] # # @!attribute [rw] image_pushed_at # The date and time, expressed in standard JavaScript date format, at # which the current image was pushed to the repository. # @return [Time] # # @!attribute [rw] action # The type of action to be taken. # @return [Types::LifecyclePolicyRuleAction] # # @!attribute [rw] applied_rule_priority # The priority of the applied rule. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewResult AWS API Documentation # class LifecyclePolicyPreviewResult < Struct.new( :image_tags, :image_digest, :image_pushed_at, :action, :applied_rule_priority) include Aws::Structure end # The summary of the lifecycle policy preview request. # # @!attribute [rw] expiring_image_total_count # The number of expiring images. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewSummary AWS API Documentation # class LifecyclePolicyPreviewSummary < Struct.new( :expiring_image_total_count) include Aws::Structure end # The type of action to be taken. # # @!attribute [rw] type # The type of action to be taken. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyRuleAction AWS API Documentation # class LifecyclePolicyRuleAction < Struct.new( :type) include Aws::Structure end # An object representing a filter on a ListImages operation. # # @note When making an API call, you may pass ListImagesFilter # data as a hash: # # { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # } # # @!attribute [rw] tag_status # The tag status with which to filter your ListImages results. You can # filter results based on whether they are `TAGGED` or `UNTAGGED`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesFilter AWS API Documentation # class ListImagesFilter < Struct.new( :tag_status) include Aws::Structure end # @note When making an API call, you may pass ListImagesRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # next_token: "NextToken", # max_results: 1, # filter: { # tag_status: "TAGGED", # accepts TAGGED, UNTAGGED # }, # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The repository with image IDs to be listed. # @return [String] # # @!attribute [rw] next_token # 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. # # # @return [String] # # @!attribute [rw] max_results # 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 100. If # this parameter is not used, then `ListImages` returns up to 100 # results and a `nextToken` value, if applicable. # @return [Integer] # # @!attribute [rw] filter # The filter key and value with which to filter your `ListImages` # results. # @return [Types::ListImagesFilter] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesRequest AWS API Documentation # class ListImagesRequest < Struct.new( :registry_id, :repository_name, :next_token, :max_results, :filter) include Aws::Structure end # @!attribute [rw] image_ids # The list of image IDs for the requested repository. # @return [Array] # # @!attribute [rw] next_token # 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. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesResponse AWS API Documentation # class ListImagesResponse < Struct.new( :image_ids, :next_token) include Aws::Structure end # @note When making an API call, you may pass PutImageRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # image_manifest: "ImageManifest", # required # image_tag: "ImageTag", # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository in which to put the image. # @return [String] # # @!attribute [rw] image_manifest # The image manifest corresponding to the image to be uploaded. # @return [String] # # @!attribute [rw] image_tag # 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. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageRequest AWS API Documentation # class PutImageRequest < Struct.new( :registry_id, :repository_name, :image_manifest, :image_tag) include Aws::Structure end # @!attribute [rw] image # Details of the image uploaded. # @return [Types::Image] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageResponse AWS API Documentation # class PutImageResponse < Struct.new( :image) include Aws::Structure end # @note When making an API call, you may pass PutLifecyclePolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # lifecycle_policy_text: "LifecyclePolicyText", # required # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do
 not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to receive the policy. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text to apply to the repository. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutLifecyclePolicyRequest AWS API Documentation # class PutLifecyclePolicyRequest < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutLifecyclePolicyResponse AWS API Documentation # class PutLifecyclePolicyResponse < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text) include Aws::Structure end # An object representing a repository. # # @!attribute [rw] repository_arn # 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`. # @return [String] # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. # @return [String] # # @!attribute [rw] repository_name # The name of the repository. # @return [String] # # @!attribute [rw] repository_uri # The URI for the repository. You can use this URI for Docker `push` # or `pull` operations. # @return [String] # # @!attribute [rw] created_at # The date and time, in JavaScript date format, when the repository # was created. # @return [Time] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Repository AWS API Documentation # class Repository < Struct.new( :repository_arn, :registry_id, :repository_name, :repository_uri, :created_at) include Aws::Structure end # @note When making an API call, you may pass SetRepositoryPolicyRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # policy_text: "RepositoryPolicyText", # required # force: false, # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to receive the policy. # @return [String] # # @!attribute [rw] policy_text # The JSON repository policy text to apply to the repository. # @return [String] # # @!attribute [rw] force # 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. # @return [Boolean] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicyRequest AWS API Documentation # class SetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name, :policy_text, :force) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] policy_text # The JSON repository policy text applied to the repository. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicyResponse AWS API Documentation # class SetRepositoryPolicyResponse < Struct.new( :registry_id, :repository_name, :policy_text) include Aws::Structure end # @note When making an API call, you may pass StartLifecyclePolicyPreviewRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # lifecycle_policy_text: "LifecyclePolicyText", # } # # @!attribute [rw] registry_id # The AWS account ID associated with the registry that contains the # repository. If you do not specify a registry, the default registry # is assumed. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to be evaluated. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The policy to be evaluated against. If you do not specify a policy, # the current policy for the repository is used. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartLifecyclePolicyPreviewRequest AWS API Documentation # class StartLifecyclePolicyPreviewRequest < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] lifecycle_policy_text # The JSON repository policy text. # @return [String] # # @!attribute [rw] status # The status of the lifecycle policy preview request. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartLifecyclePolicyPreviewResponse AWS API Documentation # class StartLifecyclePolicyPreviewResponse < Struct.new( :registry_id, :repository_name, :lifecycle_policy_text, :status) include Aws::Structure end # @note When making an API call, you may pass UploadLayerPartRequest # data as a hash: # # { # registry_id: "RegistryId", # repository_name: "RepositoryName", # required # upload_id: "UploadId", # required # part_first_byte: 1, # required # part_last_byte: 1, # required # layer_part_blob: "data", # required # } # # @!attribute [rw] registry_id # 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. # @return [String] # # @!attribute [rw] repository_name # The name of the repository to which you are uploading layer parts. # @return [String] # # @!attribute [rw] upload_id # The upload ID from a previous InitiateLayerUpload operation to # associate with the layer part upload. # @return [String] # # @!attribute [rw] part_first_byte # The integer value of the first byte of the layer part. # @return [Integer] # # @!attribute [rw] part_last_byte # The integer value of the last byte of the layer part. # @return [Integer] # # @!attribute [rw] layer_part_blob # The base64-encoded layer part payload. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPartRequest AWS API Documentation # class UploadLayerPartRequest < Struct.new( :registry_id, :repository_name, :upload_id, :part_first_byte, :part_last_byte, :layer_part_blob) include Aws::Structure end # @!attribute [rw] registry_id # The registry ID associated with the request. # @return [String] # # @!attribute [rw] repository_name # The repository name associated with the request. # @return [String] # # @!attribute [rw] upload_id # The upload ID associated with the request. # @return [String] # # @!attribute [rw] last_byte_received # The integer value of the last byte received in the request. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UploadLayerPartResponse AWS API Documentation # class UploadLayerPartResponse < Struct.new( :registry_id, :repository_name, :upload_id, :last_byte_received) include Aws::Structure end end end