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 |
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.
When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached.
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 GetDownloadUrlForLayer = GetDownloadUrlForLayer' {
- registryId :: Maybe Text
- repositoryName :: Text
- layerDigest :: Text
- newGetDownloadUrlForLayer :: Text -> Text -> GetDownloadUrlForLayer
- getDownloadUrlForLayer_registryId :: Lens' GetDownloadUrlForLayer (Maybe Text)
- getDownloadUrlForLayer_repositoryName :: Lens' GetDownloadUrlForLayer Text
- getDownloadUrlForLayer_layerDigest :: Lens' GetDownloadUrlForLayer Text
- data GetDownloadUrlForLayerResponse = GetDownloadUrlForLayerResponse' {
- layerDigest :: Maybe Text
- downloadUrl :: Maybe Text
- httpStatus :: Int
- newGetDownloadUrlForLayerResponse :: Int -> GetDownloadUrlForLayerResponse
- getDownloadUrlForLayerResponse_layerDigest :: Lens' GetDownloadUrlForLayerResponse (Maybe Text)
- getDownloadUrlForLayerResponse_downloadUrl :: Lens' GetDownloadUrlForLayerResponse (Maybe Text)
- getDownloadUrlForLayerResponse_httpStatus :: Lens' GetDownloadUrlForLayerResponse Int
Creating a Request
data GetDownloadUrlForLayer Source #
See: newGetDownloadUrlForLayer
smart constructor.
GetDownloadUrlForLayer' | |
|
Instances
newGetDownloadUrlForLayer Source #
:: Text | |
-> Text | |
-> GetDownloadUrlForLayer |
Create a value of GetDownloadUrlForLayer
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:GetDownloadUrlForLayer'
, getDownloadUrlForLayer_registryId
- The Amazon Web Services 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.
$sel:repositoryName:GetDownloadUrlForLayer'
, getDownloadUrlForLayer_repositoryName
- The name of the repository that is associated with the image layer to
download.
$sel:layerDigest:GetDownloadUrlForLayer'
, getDownloadUrlForLayer_layerDigest
- The digest of the image layer to download.
Request Lenses
getDownloadUrlForLayer_registryId :: Lens' GetDownloadUrlForLayer (Maybe Text) Source #
The Amazon Web Services 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.
getDownloadUrlForLayer_repositoryName :: Lens' GetDownloadUrlForLayer Text Source #
The name of the repository that is associated with the image layer to download.
getDownloadUrlForLayer_layerDigest :: Lens' GetDownloadUrlForLayer Text Source #
The digest of the image layer to download.
Destructuring the Response
data GetDownloadUrlForLayerResponse Source #
See: newGetDownloadUrlForLayerResponse
smart constructor.
GetDownloadUrlForLayerResponse' | |
|
Instances
newGetDownloadUrlForLayerResponse Source #
Create a value of GetDownloadUrlForLayerResponse
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:layerDigest:GetDownloadUrlForLayer'
, getDownloadUrlForLayerResponse_layerDigest
- The digest of the image layer to download.
$sel:downloadUrl:GetDownloadUrlForLayerResponse'
, getDownloadUrlForLayerResponse_downloadUrl
- The pre-signed Amazon S3 download URL for the requested layer.
$sel:httpStatus:GetDownloadUrlForLayerResponse'
, getDownloadUrlForLayerResponse_httpStatus
- The response's http status code.
Response Lenses
getDownloadUrlForLayerResponse_layerDigest :: Lens' GetDownloadUrlForLayerResponse (Maybe Text) Source #
The digest of the image layer to download.
getDownloadUrlForLayerResponse_downloadUrl :: Lens' GetDownloadUrlForLayerResponse (Maybe Text) Source #
The pre-signed Amazon S3 download URL for the requested layer.
getDownloadUrlForLayerResponse_httpStatus :: Lens' GetDownloadUrlForLayerResponse Int Source #
The response's http status code.