amazonka-s3-1.6.1: Amazon Simple Storage Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.S3.CreateMultipartUpload

Contents

Description

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.

Synopsis

Creating a Request

createMultipartUpload Source #

Creates a value of CreateMultipartUpload with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cmuExpires - The date and time at which the object is no longer cacheable.
  • cmuGrantReadACP - Allows grantee to read the object ACL.
  • cmuSSECustomerAlgorithm - Specifies the algorithm to use to when encrypting the object (e.g., AES256).
  • cmuSSECustomerKey - 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.
  • cmuRequestPayer - Undocumented member.
  • cmuGrantWriteACP - Allows grantee to write the ACL for the applicable object.
  • cmuWebsiteRedirectLocation - 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.
  • cmuGrantRead - Allows grantee to read the object data and its metadata.
  • cmuStorageClass - The type of storage to use for the object. Defaults to STANDARD.
  • cmuSSECustomerKeyMD5 - 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 - 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.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
  • cmuGrantFullControl - Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
  • cmuContentEncoding - 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.
  • cmuTagging - The tag-set for the object. The tag-set must be encoded as URL Query parameters
  • cmuMetadata - A map of metadata to store with the object in S3.
  • cmuCacheControl - Specifies caching behavior along the request/reply chain.
  • cmuContentLanguage - The language the content is in.
  • cmuACL - The canned ACL to apply to the object.
  • cmuContentDisposition - Specifies presentational information for the object.
  • cmuServerSideEncryption - The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
  • cmuContentType - A standard MIME type describing the format of the object data.
  • cmuBucket - Undocumented member.
  • cmuKey - Undocumented member.

data CreateMultipartUpload Source #

See: createMultipartUpload smart constructor.

Instances
Eq CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Data CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMultipartUpload -> c CreateMultipartUpload #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateMultipartUpload #

toConstr :: CreateMultipartUpload -> Constr #

dataTypeOf :: CreateMultipartUpload -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateMultipartUpload) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateMultipartUpload) #

gmapT :: (forall b. Data b => b -> b) -> CreateMultipartUpload -> CreateMultipartUpload #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMultipartUpload -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMultipartUpload -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateMultipartUpload -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMultipartUpload -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMultipartUpload -> m CreateMultipartUpload #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMultipartUpload -> m CreateMultipartUpload #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMultipartUpload -> m CreateMultipartUpload #

Show CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Generic CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Associated Types

type Rep CreateMultipartUpload :: Type -> Type #

Hashable CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

AWSRequest CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Associated Types

type Rs CreateMultipartUpload :: Type #

ToHeaders CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

ToPath CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

ToQuery CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

NFData CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Methods

rnf :: CreateMultipartUpload -> () #

type Rep CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

type Rep CreateMultipartUpload = D1 (MetaData "CreateMultipartUpload" "Network.AWS.S3.CreateMultipartUpload" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "CreateMultipartUpload'" PrefixI True) ((((S1 (MetaSel (Just "_cmuExpires") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RFC822)) :*: S1 (MetaSel (Just "_cmuGrantReadACP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cmuSSECustomerAlgorithm") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmuSSECustomerKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 (MetaSel (Just "_cmuRequestPayer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RequestPayer))))) :*: ((S1 (MetaSel (Just "_cmuGrantWriteACP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmuWebsiteRedirectLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmuGrantRead") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_cmuStorageClass") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StorageClass)) :*: (S1 (MetaSel (Just "_cmuSSECustomerKeyMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmuSSEKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))))))) :*: (((S1 (MetaSel (Just "_cmuGrantFullControl") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmuContentEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmuTagging") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_cmuMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)) :*: (S1 (MetaSel (Just "_cmuCacheControl") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmuContentLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_cmuACL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectCannedACL)) :*: (S1 (MetaSel (Just "_cmuContentDisposition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmuServerSideEncryption") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ServerSideEncryption)))) :*: (S1 (MetaSel (Just "_cmuContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmuBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BucketName) :*: S1 (MetaSel (Just "_cmuKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectKey)))))))
type Rs CreateMultipartUpload Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Request Lenses

cmuExpires :: Lens' CreateMultipartUpload (Maybe UTCTime) Source #

The date and time at which the object is no longer cacheable.

cmuGrantReadACP :: Lens' CreateMultipartUpload (Maybe Text) Source #

Allows grantee to read the object ACL.

cmuSSECustomerAlgorithm :: Lens' CreateMultipartUpload (Maybe Text) Source #

Specifies the algorithm to use to when encrypting the object (e.g., AES256).

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.

cmuGrantWriteACP :: Lens' CreateMultipartUpload (Maybe Text) Source #

Allows grantee to write the ACL for the applicable object.

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.

cmuGrantRead :: Lens' CreateMultipartUpload (Maybe Text) Source #

Allows grantee to read the object data and its metadata.

cmuStorageClass :: Lens' CreateMultipartUpload (Maybe StorageClass) Source #

The type of storage to use for the object. Defaults to STANDARD.

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.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version

cmuGrantFullControl :: Lens' CreateMultipartUpload (Maybe Text) Source #

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on 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.

cmuTagging :: Lens' CreateMultipartUpload (Maybe Text) Source #

The tag-set for the object. The tag-set must be encoded as URL Query parameters

cmuMetadata :: Lens' CreateMultipartUpload (HashMap Text Text) Source #

A map of metadata to store with the object in S3.

cmuCacheControl :: Lens' CreateMultipartUpload (Maybe Text) Source #

Specifies caching behavior along the request/reply chain.

cmuContentLanguage :: Lens' CreateMultipartUpload (Maybe Text) Source #

The language the content is in.

cmuACL :: Lens' CreateMultipartUpload (Maybe ObjectCannedACL) Source #

The canned ACL to apply to the object.

cmuContentDisposition :: Lens' CreateMultipartUpload (Maybe Text) Source #

Specifies presentational information for the object.

cmuServerSideEncryption :: Lens' CreateMultipartUpload (Maybe ServerSideEncryption) Source #

The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).

cmuContentType :: Lens' CreateMultipartUpload (Maybe Text) Source #

A standard MIME type describing the format of the object data.

Destructuring the Response

createMultipartUploadResponse Source #

Creates a value of CreateMultipartUploadResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cmursRequestCharged - Undocumented member.
  • cmursBucket - Name of the bucket to which the multipart upload was initiated.
  • cmursSSECustomerAlgorithm - If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
  • cmursAbortDate - Date when multipart upload will become eligible for abort operation by lifecycle.
  • cmursAbortRuleId - Id of the lifecycle rule that makes a multipart upload eligible for abort operation.
  • cmursKey - Object key for which the multipart upload was initiated.
  • cmursSSECustomerKeyMD5 - 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.
  • cmursSSEKMSKeyId - If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
  • cmursUploadId - ID for the initiated multipart upload.
  • cmursServerSideEncryption - The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
  • cmursResponseStatus - -- | The response status code.

data CreateMultipartUploadResponse Source #

See: createMultipartUploadResponse smart constructor.

Instances
Eq CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Data CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMultipartUploadResponse -> c CreateMultipartUploadResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateMultipartUploadResponse #

toConstr :: CreateMultipartUploadResponse -> Constr #

dataTypeOf :: CreateMultipartUploadResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateMultipartUploadResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateMultipartUploadResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateMultipartUploadResponse -> CreateMultipartUploadResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMultipartUploadResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMultipartUploadResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateMultipartUploadResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMultipartUploadResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMultipartUploadResponse -> m CreateMultipartUploadResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMultipartUploadResponse -> m CreateMultipartUploadResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMultipartUploadResponse -> m CreateMultipartUploadResponse #

Show CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Generic CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

Associated Types

type Rep CreateMultipartUploadResponse :: Type -> Type #

NFData CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

type Rep CreateMultipartUploadResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateMultipartUpload

type Rep CreateMultipartUploadResponse = D1 (MetaData "CreateMultipartUploadResponse" "Network.AWS.S3.CreateMultipartUpload" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "CreateMultipartUploadResponse'" PrefixI True) (((S1 (MetaSel (Just "_cmursRequestCharged") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RequestCharged)) :*: S1 (MetaSel (Just "_cmursBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketName))) :*: (S1 (MetaSel (Just "_cmursSSECustomerAlgorithm") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmursAbortDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RFC822)) :*: S1 (MetaSel (Just "_cmursAbortRuleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_cmursKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectKey)) :*: (S1 (MetaSel (Just "_cmursSSECustomerKeyMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cmursSSEKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) :*: (S1 (MetaSel (Just "_cmursUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cmursServerSideEncryption") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ServerSideEncryption)) :*: S1 (MetaSel (Just "_cmursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

cmursBucket :: Lens' CreateMultipartUploadResponse (Maybe BucketName) Source #

Name of the bucket to which the multipart upload was initiated.

cmursSSECustomerAlgorithm :: 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.

cmursAbortDate :: Lens' CreateMultipartUploadResponse (Maybe UTCTime) Source #

Date when multipart upload will become eligible for abort operation by lifecycle.

cmursAbortRuleId :: Lens' CreateMultipartUploadResponse (Maybe Text) Source #

Id of the lifecycle rule that makes a multipart upload eligible for abort operation.

cmursKey :: Lens' CreateMultipartUploadResponse (Maybe ObjectKey) Source #

Object key for which the multipart upload was initiated.

cmursSSECustomerKeyMD5 :: 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.

cmursSSEKMSKeyId :: 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.

cmursUploadId :: Lens' CreateMultipartUploadResponse (Maybe Text) Source #

ID for the initiated multipart upload.

cmursServerSideEncryption :: Lens' CreateMultipartUploadResponse (Maybe ServerSideEncryption) Source #

The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).