Aws.S3.Commands.Multipart

aws-0.16: Amazon Web Services (AWS) for Haskell

Safe Haskell | None
Language | Haskell2010

Aws.S3.Commands.Multipart

Synopsis

- data InitiateMultipartUpload = InitiateMultipartUpload {
  - imuBucket :: Bucket
  - imuObjectName :: Object
  - imuCacheControl :: Maybe Text
  - imuContentDisposition :: Maybe Text
  - imuContentEncoding :: Maybe Text
  - imuContentType :: Maybe Text
  - imuExpires :: Maybe Int
  - imuMetadata :: [(Text, Text)]
  - imuStorageClass :: Maybe StorageClass
  - imuWebsiteRedirectLocation :: Maybe Text
  - imuAcl :: Maybe CannedAcl
  - imuServerSideEncryption :: Maybe ServerSideEncryption
  - imuAutoMakeBucket :: Bool
  }
- postInitiateMultipartUpload :: Bucket -> Text -> InitiateMultipartUpload
- data InitiateMultipartUploadResponse = InitiateMultipartUploadResponse {
  - imurBucket :: !Bucket
  - imurKey :: !Text
  - imurUploadId :: !Text
  }
- data UploadPart = UploadPart {
  - upObjectName :: Text
  - upBucket :: Bucket
  - upPartNumber :: Integer
  - upUploadId :: Text
  - upContentType :: Maybe ByteString
  - upContentMD5 :: Maybe (Digest MD5)
  - upServerSideEncryption :: Maybe ServerSideEncryption
  - upRequestBody :: RequestBody
  - upExpect100Continue :: Bool
  }
- uploadPart :: Bucket -> Text -> Integer -> Text -> RequestBody -> UploadPart
- data UploadPartResponse = UploadPartResponse {
  - uprETag :: !Text
  }
- data CompleteMultipartUpload = CompleteMultipartUpload {
  - cmuBucket :: Bucket
  - cmuObjectName :: Object
  - cmuUploadId :: Text
  - cmuPartNumberAndEtags :: [(Integer, Text)]
  - cmuExpiration :: Maybe Text
  - cmuServerSideEncryption :: Maybe Text
  - cmuServerSideEncryptionCustomerAlgorithm :: Maybe Text
  }
- postCompleteMultipartUpload :: Bucket -> Text -> Text -> [(Integer, Text)] -> CompleteMultipartUpload
- data CompleteMultipartUploadResponse = CompleteMultipartUploadResponse {
  - cmurLocation :: !Text
  - cmurBucket :: !Bucket
  - cmurKey :: !Text
  - cmurETag :: !Text
  - cmurVersionId :: !(Maybe Text)
  }
- data AbortMultipartUpload = AbortMultipartUpload {
  - amuBucket :: Bucket
  - amuObjectName :: Object
  - amuUploadId :: Text
  }
- postAbortMultipartUpload :: Bucket -> Text -> Text -> AbortMultipartUpload
- data AbortMultipartUploadResponse = AbortMultipartUploadResponse {
  }
- getUploadId :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> IO Text
- sendEtag :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Text -> [Text] -> IO CompleteMultipartUploadResponse
- putConduit :: MonadResource m => Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Text -> Conduit ByteString m Text
- chunkedConduit :: MonadResource m => Integer -> Conduit ByteString m ByteString
- multipartUpload :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Conduit () (ResourceT IO) ByteString -> Integer -> ResourceT IO ()
- multipartUploadSink :: MonadResource m => Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Integer -> Sink ByteString m ()
- multipartUploadWithInitiator :: Configuration -> S3Configuration NormalQuery -> (Bucket -> Text -> InitiateMultipartUpload) -> Manager -> Text -> Text -> Conduit () (ResourceT IO) ByteString -> Integer -> ResourceT IO ()
- multipartUploadSinkWithInitiator :: MonadResource m => Configuration -> S3Configuration NormalQuery -> (Bucket -> Text -> InitiateMultipartUpload) -> Manager -> Text -> Text -> Integer -> Sink ByteString m ()

# Documentation

data InitiateMultipartUpload #

Constructors

InitiateMultipartUpload |
Fields imuBucket :: Bucket imuObjectName :: Object imuCacheControl :: Maybe Text imuContentDisposition :: Maybe Text imuContentEncoding :: Maybe Text imuContentType :: Maybe Text imuExpires :: Maybe Int imuMetadata :: [(Text, Text)] imuStorageClass :: Maybe StorageClass imuWebsiteRedirectLocation :: Maybe Text imuAcl :: Maybe CannedAcl imuServerSideEncryption :: Maybe ServerSideEncryption imuAutoMakeBucket :: Bool Internet Archive S3 nonstandard extension

Instances

Show InitiateMultipartUpload # |
Methods showsPrec :: Int -> InitiateMultipartUpload -> ShowS # show :: InitiateMultipartUpload -> String # showList :: [InitiateMultipartUpload] -> ShowS #
SignQuery InitiateMultipartUpload # | ServiceConfiguration: `S3Configuration`
Associated Types type ServiceConfiguration InitiateMultipartUpload :: * -> * # Methods signQuery :: InitiateMultipartUpload -> ServiceConfiguration InitiateMultipartUpload queryType -> SignatureData -> SignedQuery #
Transaction InitiateMultipartUpload InitiateMultipartUploadResponse # |
type ServiceConfiguration InitiateMultipartUpload # |
type ServiceConfiguration InitiateMultipartUpload = S3Configuration

postInitiateMultipartUpload :: Bucket -> Text -> InitiateMultipartUpload #

data InitiateMultipartUploadResponse #

Constructors

InitiateMultipartUploadResponse |
Fields imurBucket :: !Bucket imurKey :: !Text imurUploadId :: !Text

Instances

AsMemoryResponse InitiateMultipartUploadResponse # |
Associated Types type MemoryResponse InitiateMultipartUploadResponse :: * # Methods loadToMemory :: InitiateMultipartUploadResponse -> ResourceT IO (MemoryResponse InitiateMultipartUploadResponse) #
Transaction InitiateMultipartUpload InitiateMultipartUploadResponse # |
ResponseConsumer r InitiateMultipartUploadResponse # |
Associated Types type ResponseMetadata InitiateMultipartUploadResponse :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata InitiateMultipartUploadResponse) -> HTTPResponseConsumer InitiateMultipartUploadResponse #
type MemoryResponse InitiateMultipartUploadResponse # |
type MemoryResponse InitiateMultipartUploadResponse = InitiateMultipartUploadResponse
type ResponseMetadata InitiateMultipartUploadResponse # |
type ResponseMetadata InitiateMultipartUploadResponse = S3Metadata

data UploadPart #

Constructors

UploadPart |
Fields upObjectName :: Text upBucket :: Bucket upPartNumber :: Integer upUploadId :: Text upContentType :: Maybe ByteString upContentMD5 :: Maybe (Digest MD5) upServerSideEncryption :: Maybe ServerSideEncryption upRequestBody :: RequestBody upExpect100Continue :: Bool Note: Requires http-client >= 0.4.10

Instances

SignQuery UploadPart # | ServiceConfiguration: `S3Configuration`
Associated Types type ServiceConfiguration UploadPart :: * -> * # Methods signQuery :: UploadPart -> ServiceConfiguration UploadPart queryType -> SignatureData -> SignedQuery #
Transaction UploadPart UploadPartResponse # |
ResponseConsumer UploadPart UploadPartResponse # |
Associated Types type ResponseMetadata UploadPartResponse :: * # Methods responseConsumer :: Request -> UploadPart -> IORef (ResponseMetadata UploadPartResponse) -> HTTPResponseConsumer UploadPartResponse #
type ServiceConfiguration UploadPart # |
type ServiceConfiguration UploadPart = S3Configuration

uploadPart :: Bucket -> Text -> Integer -> Text -> RequestBody -> UploadPart #

data UploadPartResponse #

Constructors

UploadPartResponse |
Fields uprETag :: !Text

Instances

Show UploadPartResponse # |
Methods showsPrec :: Int -> UploadPartResponse -> ShowS # show :: UploadPartResponse -> String # showList :: [UploadPartResponse] -> ShowS #
AsMemoryResponse UploadPartResponse # |
Associated Types type MemoryResponse UploadPartResponse :: * # Methods loadToMemory :: UploadPartResponse -> ResourceT IO (MemoryResponse UploadPartResponse) #
Transaction UploadPart UploadPartResponse # |
ResponseConsumer UploadPart UploadPartResponse # |
Associated Types type ResponseMetadata UploadPartResponse :: * # Methods responseConsumer :: Request -> UploadPart -> IORef (ResponseMetadata UploadPartResponse) -> HTTPResponseConsumer UploadPartResponse #
type MemoryResponse UploadPartResponse # |
type MemoryResponse UploadPartResponse = UploadPartResponse
type ResponseMetadata UploadPartResponse # |
type ResponseMetadata UploadPartResponse = S3Metadata

data CompleteMultipartUpload #

Constructors

CompleteMultipartUpload |
Fields cmuBucket :: Bucket cmuObjectName :: Object cmuUploadId :: Text cmuPartNumberAndEtags :: [(Integer, Text)] cmuExpiration :: Maybe Text cmuServerSideEncryption :: Maybe Text cmuServerSideEncryptionCustomerAlgorithm :: Maybe Text

Instances

Show CompleteMultipartUpload # |
Methods showsPrec :: Int -> CompleteMultipartUpload -> ShowS # show :: CompleteMultipartUpload -> String # showList :: [CompleteMultipartUpload] -> ShowS #
SignQuery CompleteMultipartUpload # | ServiceConfiguration: `S3Configuration`
Associated Types type ServiceConfiguration CompleteMultipartUpload :: * -> * # Methods signQuery :: CompleteMultipartUpload -> ServiceConfiguration CompleteMultipartUpload queryType -> SignatureData -> SignedQuery #
Transaction CompleteMultipartUpload CompleteMultipartUploadResponse # |
type ServiceConfiguration CompleteMultipartUpload # |
type ServiceConfiguration CompleteMultipartUpload = S3Configuration

postCompleteMultipartUpload :: Bucket -> Text -> Text -> [(Integer, Text)] -> CompleteMultipartUpload #

data CompleteMultipartUploadResponse #

Constructors

CompleteMultipartUploadResponse |
Fields cmurLocation :: !Text cmurBucket :: !Bucket cmurKey :: !Text cmurETag :: !Text cmurVersionId :: !(Maybe Text)

Instances

AsMemoryResponse CompleteMultipartUploadResponse # |
Associated Types type MemoryResponse CompleteMultipartUploadResponse :: * # Methods loadToMemory :: CompleteMultipartUploadResponse -> ResourceT IO (MemoryResponse CompleteMultipartUploadResponse) #
Transaction CompleteMultipartUpload CompleteMultipartUploadResponse # |
ResponseConsumer r CompleteMultipartUploadResponse # |
Associated Types type ResponseMetadata CompleteMultipartUploadResponse :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata CompleteMultipartUploadResponse) -> HTTPResponseConsumer CompleteMultipartUploadResponse #
type MemoryResponse CompleteMultipartUploadResponse # |
type MemoryResponse CompleteMultipartUploadResponse = CompleteMultipartUploadResponse
type ResponseMetadata CompleteMultipartUploadResponse # |
type ResponseMetadata CompleteMultipartUploadResponse = S3Metadata

data AbortMultipartUpload #

Constructors

AbortMultipartUpload |
Fields amuBucket :: Bucket amuObjectName :: Object amuUploadId :: Text

Instances

Show AbortMultipartUpload # |
Methods showsPrec :: Int -> AbortMultipartUpload -> ShowS # show :: AbortMultipartUpload -> String # showList :: [AbortMultipartUpload] -> ShowS #
SignQuery AbortMultipartUpload # | ServiceConfiguration: `S3Configuration`
Associated Types type ServiceConfiguration AbortMultipartUpload :: * -> * # Methods signQuery :: AbortMultipartUpload -> ServiceConfiguration AbortMultipartUpload queryType -> SignatureData -> SignedQuery #
Transaction AbortMultipartUpload AbortMultipartUploadResponse # |
type ServiceConfiguration AbortMultipartUpload # |
type ServiceConfiguration AbortMultipartUpload = S3Configuration

postAbortMultipartUpload :: Bucket -> Text -> Text -> AbortMultipartUpload #

data AbortMultipartUploadResponse #

Constructors

AbortMultipartUploadResponse |

Instances

AsMemoryResponse AbortMultipartUploadResponse # |
Associated Types type MemoryResponse AbortMultipartUploadResponse :: * # Methods loadToMemory :: AbortMultipartUploadResponse -> ResourceT IO (MemoryResponse AbortMultipartUploadResponse) #
Transaction AbortMultipartUpload AbortMultipartUploadResponse # |
ResponseConsumer r AbortMultipartUploadResponse # |
Associated Types type ResponseMetadata AbortMultipartUploadResponse :: * # Methods responseConsumer :: Request -> r -> IORef (ResponseMetadata AbortMultipartUploadResponse) -> HTTPResponseConsumer AbortMultipartUploadResponse #
type MemoryResponse AbortMultipartUploadResponse # |
type MemoryResponse AbortMultipartUploadResponse = AbortMultipartUploadResponse
type ResponseMetadata AbortMultipartUploadResponse # |
type ResponseMetadata AbortMultipartUploadResponse = S3Metadata

getUploadId :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> IO Text #

sendEtag :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Text -> [Text] -> IO CompleteMultipartUploadResponse #

putConduit :: MonadResource m => Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Text -> Conduit ByteString m Text #

chunkedConduit :: MonadResource m => Integer -> Conduit ByteString m ByteString #

multipartUpload :: Configuration -> S3Configuration NormalQuery -> Manager -> Text -> Text -> Conduit () (ResourceT IO) ByteString -> Integer -> ResourceT IO () #

multipartUploadSink #

Arguments

:: MonadResource m |
=> Configuration |
-> S3Configuration NormalQuery |
-> Manager |
-> Text | Bucket name
-> Text | Object name
-> Integer | chunkSize (minimum: 5MB)
-> Sink ByteString m () |

multipartUploadWithInitiator :: Configuration -> S3Configuration NormalQuery -> (Bucket -> Text -> InitiateMultipartUpload) -> Manager -> Text -> Text -> Conduit () (ResourceT IO) ByteString -> Integer -> ResourceT IO () #

multipartUploadSinkWithInitiator #

Arguments

:: MonadResource m |
=> Configuration |
-> S3Configuration NormalQuery |
-> (Bucket -> Text -> InitiateMultipartUpload) | Initiator
-> Manager |
-> Text | Bucket name
-> Text | Object name
-> Integer | chunkSize (minimum: 5MB)
-> Sink ByteString m () |