amazonka-s3-1.6.0: 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.UploadPartCopy

Contents

Description

Uploads a part by copying data from an existing object as data source.

Synopsis

Creating a Request

uploadPartCopy Source #

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

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

  • upcCopySourceIfModifiedSince - Copies the object if it has been modified since the specified time.
  • upcCopySourceIfUnmodifiedSince - Copies the object if it hasn't been modified since the specified time.
  • upcCopySourceRange - 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.
  • upcCopySourceSSECustomerKeyMD5 - 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.
  • upcCopySourceIfNoneMatch - Copies the object if its entity tag (ETag) is different than the specified ETag.
  • upcSSECustomerAlgorithm - Specifies the algorithm to use to when encrypting the object (e.g., AES256).
  • upcSSECustomerKey - 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.
  • upcRequestPayer - Undocumented member.
  • upcCopySourceIfMatch - Copies the object if its entity tag (ETag) matches the specified tag.
  • upcSSECustomerKeyMD5 - 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.
  • upcCopySourceSSECustomerKey - 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.
  • upcCopySourceSSECustomerAlgorithm - Specifies the algorithm to use when decrypting the source object (e.g., AES256).
  • upcBucket - Undocumented member.
  • upcCopySource - The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded.
  • upcKey - Undocumented member.
  • upcPartNumber - Part number of part being copied. This is a positive integer between 1 and 10,000.
  • upcUploadId - Upload ID identifying the multipart upload whose part is being copied.

data UploadPartCopy Source #

See: uploadPartCopy smart constructor.

Instances

Eq UploadPartCopy Source # 
Data UploadPartCopy Source # 

Methods

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

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

toConstr :: UploadPartCopy -> Constr #

dataTypeOf :: UploadPartCopy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UploadPartCopy Source # 
Generic UploadPartCopy Source # 

Associated Types

type Rep UploadPartCopy :: * -> * #

Hashable UploadPartCopy Source # 
NFData UploadPartCopy Source # 

Methods

rnf :: UploadPartCopy -> () #

AWSRequest UploadPartCopy Source # 
ToHeaders UploadPartCopy Source # 
ToPath UploadPartCopy Source # 
ToQuery UploadPartCopy Source # 
type Rep UploadPartCopy Source # 
type Rep UploadPartCopy = D1 * (MetaData "UploadPartCopy" "Network.AWS.S3.UploadPartCopy" "amazonka-s3-1.6.0-AdElsico9UIGqHgrDvALBR" False) (C1 * (MetaCons "UploadPartCopy'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcCopySourceIfModifiedSince") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RFC822))) (S1 * (MetaSel (Just Symbol "_upcCopySourceIfUnmodifiedSince") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RFC822)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcCopySourceRange") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_upcCopySourceSSECustomerKeyMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcCopySourceIfNoneMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_upcSSECustomerAlgorithm") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcSSECustomerKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_upcRequestPayer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RequestPayer)))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcCopySourceIfMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_upcSSECustomerKeyMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcCopySourceSSECustomerKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_upcCopySourceSSECustomerAlgorithm") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * BucketName)) (S1 * (MetaSel (Just Symbol "_upcCopySource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ObjectKey)) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcPartNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_upcUploadId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))))
type Rs UploadPartCopy Source # 

Request Lenses

upcCopySourceIfModifiedSince :: Lens' UploadPartCopy (Maybe UTCTime) Source #

Copies the object if it has been modified since the specified time.

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.

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.

upcCopySourceIfNoneMatch :: Lens' UploadPartCopy (Maybe Text) Source #

Copies the object if its entity tag (ETag) is different than the specified ETag.

upcSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text) Source #

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

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.

upcCopySourceIfMatch :: Lens' UploadPartCopy (Maybe Text) Source #

Copies the object if its entity tag (ETag) matches the specified tag.

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.

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.

upcCopySourceSSECustomerAlgorithm :: Lens' UploadPartCopy (Maybe Text) Source #

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

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.

upcKey :: Lens' UploadPartCopy ObjectKey Source #

Undocumented member.

upcPartNumber :: Lens' UploadPartCopy Int Source #

Part number of part being copied. This is a positive integer between 1 and 10,000.

upcUploadId :: Lens' UploadPartCopy Text Source #

Upload ID identifying the multipart upload whose part is being copied.

Destructuring the Response

uploadPartCopyResponse Source #

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

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

  • upcrsRequestCharged - Undocumented member.
  • upcrsCopyPartResult - Undocumented member.
  • upcrsSSECustomerAlgorithm - If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
  • upcrsCopySourceVersionId - The version of the source object that was copied, if you have enabled versioning on the source bucket.
  • upcrsSSECustomerKeyMD5 - 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.
  • upcrsSSEKMSKeyId - If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the object.
  • upcrsServerSideEncryption - The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
  • upcrsResponseStatus - -- | The response status code.

data UploadPartCopyResponse Source #

See: uploadPartCopyResponse smart constructor.

Instances

Eq UploadPartCopyResponse Source # 
Data UploadPartCopyResponse Source # 

Methods

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

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

toConstr :: UploadPartCopyResponse -> Constr #

dataTypeOf :: UploadPartCopyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UploadPartCopyResponse Source # 
Generic UploadPartCopyResponse Source # 
NFData UploadPartCopyResponse Source # 

Methods

rnf :: UploadPartCopyResponse -> () #

type Rep UploadPartCopyResponse Source # 
type Rep UploadPartCopyResponse = D1 * (MetaData "UploadPartCopyResponse" "Network.AWS.S3.UploadPartCopy" "amazonka-s3-1.6.0-AdElsico9UIGqHgrDvALBR" False) (C1 * (MetaCons "UploadPartCopyResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcrsRequestCharged") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RequestCharged))) (S1 * (MetaSel (Just Symbol "_upcrsCopyPartResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe CopyPartResult)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcrsSSECustomerAlgorithm") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_upcrsCopySourceVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_upcrsSSECustomerKeyMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_upcrsSSEKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_upcrsServerSideEncryption") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ServerSideEncryption))) (S1 * (MetaSel (Just Symbol "_upcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

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

upcrsCopySourceVersionId :: Lens' UploadPartCopyResponse (Maybe Text) Source #

The version of the source object that was copied, if you have enabled versioning on the source bucket.

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

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

upcrsServerSideEncryption :: Lens' UploadPartCopyResponse (Maybe ServerSideEncryption) Source #

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