Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uploads a part in a multipart upload.
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
See: AWS API Reference for UploadPart.
- uploadPart :: BucketName -> ObjectKey -> Int -> Text -> RqBody -> UploadPart
- data UploadPart
- upContentLength :: Lens' UploadPart (Maybe Int)
- upSSECustomerAlgorithm :: Lens' UploadPart (Maybe Text)
- upSSECustomerKey :: Lens' UploadPart (Maybe Text)
- upRequestPayer :: Lens' UploadPart (Maybe RequestPayer)
- upSSECustomerKeyMD5 :: Lens' UploadPart (Maybe Text)
- upContentMD5 :: Lens' UploadPart (Maybe Text)
- upBucket :: Lens' UploadPart BucketName
- upKey :: Lens' UploadPart ObjectKey
- upPartNumber :: Lens' UploadPart Int
- upUploadId :: Lens' UploadPart Text
- upBody :: Lens' UploadPart RqBody
- uploadPartResponse :: Int -> UploadPartResponse
- data UploadPartResponse
- uprsETag :: Lens' UploadPartResponse (Maybe ETag)
- uprsRequestCharged :: Lens' UploadPartResponse (Maybe RequestCharged)
- uprsSSECustomerAlgorithm :: Lens' UploadPartResponse (Maybe Text)
- uprsSSEKMSKeyId :: Lens' UploadPartResponse (Maybe Text)
- uprsSSECustomerKeyMD5 :: Lens' UploadPartResponse (Maybe Text)
- uprsServerSideEncryption :: Lens' UploadPartResponse (Maybe ServerSideEncryption)
- uprsStatus :: Lens' UploadPartResponse Int
Creating a Request
:: BucketName | |
-> ObjectKey | |
-> Int | |
-> Text | |
-> RqBody | |
-> UploadPart |
Creates a value of UploadPart
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadPart Source
See: uploadPart
smart constructor.
Request Lenses
upContentLength :: Lens' UploadPart (Maybe Int) Source
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.
upSSECustomerAlgorithm :: Lens' UploadPart (Maybe Text) Source
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
upSSECustomerKey :: Lens' UploadPart (Maybe Text) Source
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.
upRequestPayer :: Lens' UploadPart (Maybe RequestPayer) Source
Undocumented member.
upSSECustomerKeyMD5 :: Lens' UploadPart (Maybe Text) Source
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.
upContentMD5 :: Lens' UploadPart (Maybe Text) Source
Undocumented member.
upBucket :: Lens' UploadPart BucketName Source
Undocumented member.
upKey :: Lens' UploadPart ObjectKey Source
Undocumented member.
upPartNumber :: Lens' UploadPart Int Source
Part number of part being uploaded. This is a positive integer between 1 and 10,000.
upUploadId :: Lens' UploadPart Text Source
Upload ID identifying the multipart upload whose part is being uploaded.
upBody :: Lens' UploadPart RqBody Source
Undocumented member.
Destructuring the Response
Creates a value of UploadPartResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadPartResponse Source
See: uploadPartResponse
smart constructor.
Response Lenses
uprsRequestCharged :: Lens' UploadPartResponse (Maybe RequestCharged) Source
Undocumented member.
uprsSSECustomerAlgorithm :: Lens' UploadPartResponse (Maybe Text) Source
If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
uprsSSEKMSKeyId :: Lens' UploadPartResponse (Maybe Text) Source
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
uprsSSECustomerKeyMD5 :: Lens' UploadPartResponse (Maybe Text) Source
If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.
uprsServerSideEncryption :: Lens' UploadPartResponse (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
uprsStatus :: Lens' UploadPartResponse Int Source
The response status code.