Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Checks the availability of one or more image layers within a repository in a public registry. When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.
This operation is used by the Amazon ECR proxy and is not generally used
by customers for pulling and pushing images. In most cases, you should
use the docker
CLI to pull, tag, and push images.
Synopsis
- data BatchCheckLayerAvailability = BatchCheckLayerAvailability' {}
- newBatchCheckLayerAvailability :: Text -> NonEmpty Text -> BatchCheckLayerAvailability
- batchCheckLayerAvailability_registryId :: Lens' BatchCheckLayerAvailability (Maybe Text)
- batchCheckLayerAvailability_repositoryName :: Lens' BatchCheckLayerAvailability Text
- batchCheckLayerAvailability_layerDigests :: Lens' BatchCheckLayerAvailability (NonEmpty Text)
- data BatchCheckLayerAvailabilityResponse = BatchCheckLayerAvailabilityResponse' {
- failures :: Maybe [LayerFailure]
- layers :: Maybe [Layer]
- httpStatus :: Int
- newBatchCheckLayerAvailabilityResponse :: Int -> BatchCheckLayerAvailabilityResponse
- batchCheckLayerAvailabilityResponse_failures :: Lens' BatchCheckLayerAvailabilityResponse (Maybe [LayerFailure])
- batchCheckLayerAvailabilityResponse_layers :: Lens' BatchCheckLayerAvailabilityResponse (Maybe [Layer])
- batchCheckLayerAvailabilityResponse_httpStatus :: Lens' BatchCheckLayerAvailabilityResponse Int
Creating a Request
data BatchCheckLayerAvailability Source #
See: newBatchCheckLayerAvailability
smart constructor.
BatchCheckLayerAvailability' | |
|
Instances
newBatchCheckLayerAvailability Source #
Create a value of BatchCheckLayerAvailability
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:registryId:BatchCheckLayerAvailability'
, batchCheckLayerAvailability_registryId
- The AWS account ID associated with the public registry that contains the
image layers to check. If you do not specify a registry, the default
public registry is assumed.
$sel:repositoryName:BatchCheckLayerAvailability'
, batchCheckLayerAvailability_repositoryName
- The name of the repository that is associated with the image layers to
check.
$sel:layerDigests:BatchCheckLayerAvailability'
, batchCheckLayerAvailability_layerDigests
- The digests of the image layers to check.
Request Lenses
batchCheckLayerAvailability_registryId :: Lens' BatchCheckLayerAvailability (Maybe Text) Source #
The AWS account ID associated with the public registry that contains the image layers to check. If you do not specify a registry, the default public registry is assumed.
batchCheckLayerAvailability_repositoryName :: Lens' BatchCheckLayerAvailability Text Source #
The name of the repository that is associated with the image layers to check.
batchCheckLayerAvailability_layerDigests :: Lens' BatchCheckLayerAvailability (NonEmpty Text) Source #
The digests of the image layers to check.
Destructuring the Response
data BatchCheckLayerAvailabilityResponse Source #
See: newBatchCheckLayerAvailabilityResponse
smart constructor.
BatchCheckLayerAvailabilityResponse' | |
|
Instances
newBatchCheckLayerAvailabilityResponse Source #
Create a value of BatchCheckLayerAvailabilityResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:failures:BatchCheckLayerAvailabilityResponse'
, batchCheckLayerAvailabilityResponse_failures
- Any failures associated with the call.
$sel:layers:BatchCheckLayerAvailabilityResponse'
, batchCheckLayerAvailabilityResponse_layers
- A list of image layer objects corresponding to the image layer
references in the request.
$sel:httpStatus:BatchCheckLayerAvailabilityResponse'
, batchCheckLayerAvailabilityResponse_httpStatus
- The response's http status code.
Response Lenses
batchCheckLayerAvailabilityResponse_failures :: Lens' BatchCheckLayerAvailabilityResponse (Maybe [LayerFailure]) Source #
Any failures associated with the call.
batchCheckLayerAvailabilityResponse_layers :: Lens' BatchCheckLayerAvailabilityResponse (Maybe [Layer]) Source #
A list of image layer objects corresponding to the image layer references in the request.
batchCheckLayerAvailabilityResponse_httpStatus :: Lens' BatchCheckLayerAvailabilityResponse Int Source #
The response's http status code.