Smaws_Client_ECR.UploadLayerPartUploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.
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
| `InvalidLayerPartException of Types.invalid_layer_part_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `KmsException of Types.kms_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UploadNotFoundException of Types.upload_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.upload_layer_part_request ->
(Types.upload_layer_part_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidLayerPartException of Types.invalid_layer_part_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `KmsException of Types.kms_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UploadNotFoundException of Types.upload_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.upload_layer_part_request ->
(Types.upload_layer_part_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidLayerPartException of Types.invalid_layer_part_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `KmsException of Types.kms_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `RepositoryNotFoundException of Types.repository_not_found_exception
| `ServerException of Types.server_exception
| `UploadNotFoundException of Types.upload_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result