Safe Haskell | None |
---|---|
Language | Haskell2010 |
Uploads a part by copying data from an existing object as data source.
http://docs.aws.amazon.com/AmazonS3/latest/API/UploadPartCopy.html
- data UploadPartCopy
- uploadPartCopy :: Text -> Text -> Text -> Int -> Text -> UploadPartCopy
- upcBucket :: Lens' UploadPartCopy Text
- upcCopySource :: Lens' UploadPartCopy Text
- upcCopySourceIfMatch :: Lens' UploadPartCopy (Maybe Text)
- upcCopySourceIfModifiedSince :: Lens' UploadPartCopy (Maybe UTCTime)
- upcCopySourceIfNoneMatch :: Lens' UploadPartCopy (Maybe Text)
- upcCopySourceIfUnmodifiedSince :: Lens' UploadPartCopy (Maybe UTCTime)
- upcCopySourceRange :: Lens' UploadPartCopy (Maybe Text)
- upcCopySourceSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text)
- upcCopySourceSSECustomerKey :: Lens' UploadPartCopy (Maybe Text)
- upcCopySourceSSECustomerKeyMD5 :: Lens' UploadPartCopy (Maybe Text)
- upcKey :: Lens' UploadPartCopy Text
- upcPartNumber :: Lens' UploadPartCopy Int
- upcSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text)
- upcSSECustomerKey :: Lens' UploadPartCopy (Maybe Text)
- upcSSECustomerKeyMD5 :: Lens' UploadPartCopy (Maybe Text)
- upcUploadId :: Lens' UploadPartCopy Text
- data UploadPartCopyResponse
- uploadPartCopyResponse :: UploadPartCopyResponse
- upcrCopyPartResult :: Lens' UploadPartCopyResponse (Maybe CopyPartResult)
- upcrCopySourceVersionId :: Lens' UploadPartCopyResponse (Maybe Text)
- upcrSSECustomerAlgorithm :: Lens' UploadPartCopyResponse (Maybe Text)
- upcrSSECustomerKeyMD5 :: Lens' UploadPartCopyResponse (Maybe Text)
- upcrSSEKMSKeyId :: Lens' UploadPartCopyResponse (Maybe Text)
- upcrServerSideEncryption :: Lens' UploadPartCopyResponse (Maybe ServerSideEncryption)
Request
data UploadPartCopy Source
Request constructor
UploadPartCopy
constructor.
The fields accessible through corresponding lenses are:
upcBucket
::
Text
upcCopySource
::
Text
upcCopySourceIfMatch
::
Maybe
Text
upcCopySourceIfModifiedSince
::
Maybe
UTCTime
upcCopySourceIfNoneMatch
::
Maybe
Text
upcCopySourceIfUnmodifiedSince
::
Maybe
UTCTime
upcCopySourceRange
::
Maybe
Text
upcCopySourceSSECustomerAlgorithm
::
Maybe
Text
upcCopySourceSSECustomerKey
::
Maybe
Text
upcCopySourceSSECustomerKeyMD5
::
Maybe
Text
upcKey
::
Text
upcPartNumber
::
Int
upcSSECustomerAlgorithm
::
Maybe
Text
upcSSECustomerKey
::
Maybe
Text
upcSSECustomerKeyMD5
::
Maybe
Text
upcUploadId
::
Text
Request lenses
upcCopySource :: Lens' UploadPartCopy Text Source
The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded.
upcCopySourceIfMatch :: Lens' UploadPartCopy (Maybe Text) Source
Copies the object if its entity tag (ETag) matches the specified tag.
upcCopySourceIfModifiedSince :: Lens' UploadPartCopy (Maybe UTCTime) Source
Copies the object if it has been modified since the specified time.
upcCopySourceIfNoneMatch :: Lens' UploadPartCopy (Maybe Text) Source
Copies the object if its entity tag (ETag) is different than the specified ETag.
upcCopySourceIfUnmodifiedSince :: Lens' UploadPartCopy (Maybe UTCTime) Source
Copies the object if it hasn't been modified since the specified time.
upcCopySourceRange :: Lens' UploadPartCopy (Maybe Text) Source
The range of bytes to copy from the source object. The range value must use the form bytes=first-last, where the first and last are the zero-based byte offsets to copy. For example, bytes=0-9 indicates that you want to copy the first ten bytes of the source. You can copy a range only if the source object is greater than 5 GB.
upcCopySourceSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text) Source
Specifies the algorithm to use when decrypting the source object (e.g., AES256).
upcCopySourceSSECustomerKey :: Lens' UploadPartCopy (Maybe Text) Source
Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.
upcCopySourceSSECustomerKeyMD5 :: Lens' UploadPartCopy (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.
upcPartNumber :: Lens' UploadPartCopy Int Source
Part number of part being copied.
upcSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text) Source
Specifies the algorithm to use to when encrypting the object (e.g., AES256, aws:kms).
upcSSECustomerKey :: Lens' UploadPartCopy (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.
upcSSECustomerKeyMD5 :: Lens' UploadPartCopy (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.
upcUploadId :: Lens' UploadPartCopy Text Source
Upload ID identifying the multipart upload whose part is being copied.
Response
Response constructor
uploadPartCopyResponse :: UploadPartCopyResponse Source
UploadPartCopyResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
upcrCopySourceVersionId :: Lens' UploadPartCopyResponse (Maybe Text) Source
The version of the source object that was copied, if you have enabled versioning on the source bucket.
upcrSSECustomerAlgorithm :: Lens' UploadPartCopyResponse (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.
upcrSSECustomerKeyMD5 :: Lens' UploadPartCopyResponse (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.
upcrSSEKMSKeyId :: Lens' UploadPartCopyResponse (Maybe Text) Source
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
upcrServerSideEncryption :: Lens' UploadPartCopyResponse (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).