Smaws_Client_ECR.GetDownloadUrlForLayerRetrieves 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LayerInaccessibleException of Types.layer_inaccessible_exception
| `LayersNotFoundException of Types.layers_not_found_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UnableToGetUpstreamLayerException of
Types.unable_to_get_upstream_layer_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_download_url_for_layer_request ->
(Types.get_download_url_for_layer_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LayerInaccessibleException of Types.layer_inaccessible_exception
| `LayersNotFoundException of Types.layers_not_found_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UnableToGetUpstreamLayerException of
Types.unable_to_get_upstream_layer_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_download_url_for_layer_request ->
(Types.get_download_url_for_layer_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LayerInaccessibleException of Types.layer_inaccessible_exception
| `LayersNotFoundException of Types.layers_not_found_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UnableToGetUpstreamLayerException of
Types.unable_to_get_upstream_layer_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result