Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.
This operation is used by the Amazon ECR proxy and is not generally used
by customers for pulling and pushing images. In most cases, you should
use the docker
CLI to pull, tag, and push images.
Synopsis
- data InitiateLayerUpload = InitiateLayerUpload' {}
- newInitiateLayerUpload :: Text -> InitiateLayerUpload
- initiateLayerUpload_registryId :: Lens' InitiateLayerUpload (Maybe Text)
- initiateLayerUpload_repositoryName :: Lens' InitiateLayerUpload Text
- data InitiateLayerUploadResponse = InitiateLayerUploadResponse' {}
- newInitiateLayerUploadResponse :: Int -> InitiateLayerUploadResponse
- initiateLayerUploadResponse_partSize :: Lens' InitiateLayerUploadResponse (Maybe Natural)
- initiateLayerUploadResponse_uploadId :: Lens' InitiateLayerUploadResponse (Maybe Text)
- initiateLayerUploadResponse_httpStatus :: Lens' InitiateLayerUploadResponse Int
Creating a Request
data InitiateLayerUpload Source #
See: newInitiateLayerUpload
smart constructor.
InitiateLayerUpload' | |
|
Instances
newInitiateLayerUpload Source #
Create a value of InitiateLayerUpload
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:
InitiateLayerUpload
, initiateLayerUpload_registryId
- The Amazon Web Services account ID associated with the registry to which
you intend to upload layers. If you do not specify a registry, the
default registry is assumed.
InitiateLayerUpload
, initiateLayerUpload_repositoryName
- The name of the repository to which you intend to upload layers.
Request Lenses
initiateLayerUpload_registryId :: Lens' InitiateLayerUpload (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry to which you intend to upload layers. If you do not specify a registry, the default registry is assumed.
initiateLayerUpload_repositoryName :: Lens' InitiateLayerUpload Text Source #
The name of the repository to which you intend to upload layers.
Destructuring the Response
data InitiateLayerUploadResponse Source #
See: newInitiateLayerUploadResponse
smart constructor.
Instances
newInitiateLayerUploadResponse Source #
Create a value of InitiateLayerUploadResponse
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:partSize:InitiateLayerUploadResponse'
, initiateLayerUploadResponse_partSize
- The size, in bytes, that Amazon ECR expects future layer part uploads to
be.
$sel:uploadId:InitiateLayerUploadResponse'
, initiateLayerUploadResponse_uploadId
- The upload ID for the layer upload. This parameter is passed to further
UploadLayerPart and CompleteLayerUpload operations.
$sel:httpStatus:InitiateLayerUploadResponse'
, initiateLayerUploadResponse_httpStatus
- The response's http status code.
Response Lenses
initiateLayerUploadResponse_partSize :: Lens' InitiateLayerUploadResponse (Maybe Natural) Source #
The size, in bytes, that Amazon ECR expects future layer part uploads to be.
initiateLayerUploadResponse_uploadId :: Lens' InitiateLayerUploadResponse (Maybe Text) Source #
The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.
initiateLayerUploadResponse_httpStatus :: Lens' InitiateLayerUploadResponse Int Source #
The response's http status code.