Safe Haskell | None |
---|---|
Language | Haskell2010 |
Initiates a multipart upload and returns an upload ID.
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.
http://docs.aws.amazon.com/AmazonS3/latest/API/CreateMultipartUpload.html
- data CreateMultipartUpload
- createMultipartUpload :: Text -> Text -> CreateMultipartUpload
- cmuACL :: Lens' CreateMultipartUpload (Maybe ObjectCannedACL)
- cmuBucket :: Lens' CreateMultipartUpload Text
- cmuCacheControl :: Lens' CreateMultipartUpload (Maybe Text)
- cmuContentDisposition :: Lens' CreateMultipartUpload (Maybe Text)
- cmuContentEncoding :: Lens' CreateMultipartUpload (Maybe Text)
- cmuContentLanguage :: Lens' CreateMultipartUpload (Maybe Text)
- cmuContentType :: Lens' CreateMultipartUpload (Maybe Text)
- cmuExpires :: Lens' CreateMultipartUpload (Maybe UTCTime)
- cmuGrantFullControl :: Lens' CreateMultipartUpload (Maybe Text)
- cmuGrantRead :: Lens' CreateMultipartUpload (Maybe Text)
- cmuGrantReadACP :: Lens' CreateMultipartUpload (Maybe Text)
- cmuGrantWriteACP :: Lens' CreateMultipartUpload (Maybe Text)
- cmuKey :: Lens' CreateMultipartUpload Text
- cmuMetadata :: Lens' CreateMultipartUpload (HashMap (CI Text) Text)
- cmuSSECustomerAlgorithm :: Lens' CreateMultipartUpload (Maybe Text)
- cmuSSECustomerKey :: Lens' CreateMultipartUpload (Maybe Text)
- cmuSSECustomerKeyMD5 :: Lens' CreateMultipartUpload (Maybe Text)
- cmuSSEKMSKeyId :: Lens' CreateMultipartUpload (Maybe Text)
- cmuServerSideEncryption :: Lens' CreateMultipartUpload (Maybe ServerSideEncryption)
- cmuStorageClass :: Lens' CreateMultipartUpload (Maybe StorageClass)
- cmuWebsiteRedirectLocation :: Lens' CreateMultipartUpload (Maybe Text)
- data CreateMultipartUploadResponse
- createMultipartUploadResponse :: CreateMultipartUploadResponse
- cmurBucket :: Lens' CreateMultipartUploadResponse (Maybe Text)
- cmurKey :: Lens' CreateMultipartUploadResponse (Maybe Text)
- cmurSSECustomerAlgorithm :: Lens' CreateMultipartUploadResponse (Maybe Text)
- cmurSSECustomerKeyMD5 :: Lens' CreateMultipartUploadResponse (Maybe Text)
- cmurSSEKMSKeyId :: Lens' CreateMultipartUploadResponse (Maybe Text)
- cmurServerSideEncryption :: Lens' CreateMultipartUploadResponse (Maybe ServerSideEncryption)
- cmurUploadId :: Lens' CreateMultipartUploadResponse (Maybe Text)
Request
data CreateMultipartUpload Source
Request constructor
CreateMultipartUpload
constructor.
The fields accessible through corresponding lenses are:
cmuACL
::
Maybe
ObjectCannedACL
cmuBucket
::
Text
cmuCacheControl
::
Maybe
Text
cmuContentDisposition
::
Maybe
Text
cmuContentEncoding
::
Maybe
Text
cmuContentLanguage
::
Maybe
Text
cmuContentType
::
Maybe
Text
cmuExpires
::
Maybe
UTCTime
cmuGrantFullControl
::
Maybe
Text
cmuGrantRead
::
Maybe
Text
cmuGrantReadACP
::
Maybe
Text
cmuGrantWriteACP
::
Maybe
Text
cmuKey
::
Text
cmuMetadata
::
HashMap
(CI
Text
)Text
cmuSSECustomerAlgorithm
::
Maybe
Text
cmuSSECustomerKey
::
Maybe
Text
cmuSSECustomerKeyMD5
::
Maybe
Text
cmuSSEKMSKeyId
::
Maybe
Text
cmuServerSideEncryption
::
Maybe
ServerSideEncryption
cmuStorageClass
::
Maybe
StorageClass
cmuWebsiteRedirectLocation
::
Maybe
Text
Request lenses
cmuACL :: Lens' CreateMultipartUpload (Maybe ObjectCannedACL) Source
The canned ACL to apply to the object.
cmuCacheControl :: Lens' CreateMultipartUpload (Maybe Text) Source
Specifies caching behavior along the request/reply chain.
cmuContentDisposition :: Lens' CreateMultipartUpload (Maybe Text) Source
Specifies presentational information for the object.
cmuContentEncoding :: Lens' CreateMultipartUpload (Maybe Text) Source
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
cmuContentLanguage :: Lens' CreateMultipartUpload (Maybe Text) Source
The language the content is in.
cmuContentType :: Lens' CreateMultipartUpload (Maybe Text) Source
A standard MIME type describing the format of the object data.
cmuExpires :: Lens' CreateMultipartUpload (Maybe UTCTime) Source
The date and time at which the object is no longer cacheable.
cmuGrantFullControl :: Lens' CreateMultipartUpload (Maybe Text) Source
Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
cmuGrantRead :: Lens' CreateMultipartUpload (Maybe Text) Source
Allows grantee to read the object data and its metadata.
cmuGrantReadACP :: Lens' CreateMultipartUpload (Maybe Text) Source
Allows grantee to read the object ACL.
cmuGrantWriteACP :: Lens' CreateMultipartUpload (Maybe Text) Source
Allows grantee to write the ACL for the applicable object.
cmuMetadata :: Lens' CreateMultipartUpload (HashMap (CI Text) Text) Source
A map of metadata to store with the object in S3.
cmuSSECustomerAlgorithm :: Lens' CreateMultipartUpload (Maybe Text) Source
Specifies the algorithm to use to when encrypting the object (e.g., AES256, aws:kms).
cmuSSECustomerKey :: Lens' CreateMultipartUpload (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.
cmuSSECustomerKeyMD5 :: Lens' CreateMultipartUpload (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.
cmuSSEKMSKeyId :: Lens' CreateMultipartUpload (Maybe Text) Source
Specifies the AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not made via SSL or using SigV4. Documentation on configuring any of the officially supported AWS SDKs and CLI can be found at http:/docs.aws.amazon.comAmazonS3latestdev/UsingAWSSDK.html#specify-signature-version
cmuServerSideEncryption :: Lens' CreateMultipartUpload (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
cmuStorageClass :: Lens' CreateMultipartUpload (Maybe StorageClass) Source
The type of storage to use for the object. Defaults to STANDARD
.
cmuWebsiteRedirectLocation :: Lens' CreateMultipartUpload (Maybe Text) Source
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
Response
Response constructor
createMultipartUploadResponse :: CreateMultipartUploadResponse Source
CreateMultipartUploadResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
cmurBucket :: Lens' CreateMultipartUploadResponse (Maybe Text) Source
Name of the bucket to which the multipart upload was initiated.
cmurKey :: Lens' CreateMultipartUploadResponse (Maybe Text) Source
Object key for which the multipart upload was initiated.
cmurSSECustomerAlgorithm :: Lens' CreateMultipartUploadResponse (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.
cmurSSECustomerKeyMD5 :: Lens' CreateMultipartUploadResponse (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.
cmurSSEKMSKeyId :: Lens' CreateMultipartUploadResponse (Maybe Text) Source
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
cmurServerSideEncryption :: Lens' CreateMultipartUploadResponse (Maybe ServerSideEncryption) Source
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
cmurUploadId :: Lens' CreateMultipartUploadResponse (Maybe Text) Source
ID for the initiated multipart upload.