Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Aws.S3.Core
Synopsis
- data S3Authorization
- data RequestStyle
- data S3SignPayloadMode
- data S3SignVersion
- data S3Configuration qt = S3Configuration {}
- s3EndpointUsClassic :: ByteString
- s3EndpointUsWest :: ByteString
- s3EndpointUsWest2 :: ByteString
- s3EndpointEu :: ByteString
- s3EndpointEuWest2 :: ByteString
- s3EndpointApSouthEast :: ByteString
- s3EndpointApSouthEast2 :: ByteString
- s3EndpointApNorthEast :: ByteString
- s3 :: Protocol -> ByteString -> Bool -> S3Configuration qt
- s3v4 :: Protocol -> ByteString -> Bool -> S3SignPayloadMode -> S3Configuration qt
- type ErrorCode = Text
- data S3Error = S3Error {}
- data S3Metadata = S3Metadata {}
- data S3Query = S3Query {}
- hAmzDate :: HeaderName
- hAmzContentSha256 :: HeaderName
- hAmzAlgorithm :: HeaderName
- hAmzCredential :: HeaderName
- hAmzExpires :: HeaderName
- hAmzSignedHeaders :: HeaderName
- hAmzSignature :: HeaderName
- hAmzSecurityToken :: HeaderName
- s3SignQuery :: S3Query -> S3Configuration qt -> SignatureData -> SignedQuery
- s3UriEncode :: Bool -> ByteString -> ByteString
- s3RenderQuery :: Bool -> Query -> ByteString
- s3ExtractRegion :: ByteString -> ByteString
- s3ResponseConsumer :: HTTPResponseConsumer a -> IORef S3Metadata -> HTTPResponseConsumer a
- s3BinaryResponseConsumer :: HTTPResponseConsumer a -> IORef S3Metadata -> HTTPResponseConsumer a
- s3XmlResponseConsumer :: (Cursor -> Response S3Metadata a) -> IORef S3Metadata -> HTTPResponseConsumer a
- s3ErrorResponseConsumer :: HTTPResponseConsumer a
- type CanonicalUserId = Text
- data UserInfo = UserInfo {}
- parseUserInfo :: MonadThrow m => Cursor -> m UserInfo
- data CannedAcl
- writeCannedAcl :: CannedAcl -> Text
- data StorageClass
- parseStorageClass :: Text -> StorageClass
- writeStorageClass :: StorageClass -> Text
- data ServerSideEncryption = AES256
- parseServerSideEncryption :: MonadThrow m => Text -> m ServerSideEncryption
- writeServerSideEncryption :: ServerSideEncryption -> Text
- type Bucket = Text
- data BucketInfo = BucketInfo {}
- type Object = Text
- data ObjectId = ObjectId {}
- data ObjectVersionInfo
- = ObjectVersion { }
- | DeleteMarker {
- oviKey :: Text
- oviVersionId :: Text
- oviIsLatest :: Bool
- oviLastModified :: UTCTime
- oviOwner :: Maybe UserInfo
- parseObjectVersionInfo :: MonadThrow m => Cursor -> m ObjectVersionInfo
- data ObjectInfo = ObjectInfo {}
- parseObjectInfo :: MonadThrow m => Cursor -> m ObjectInfo
- data ObjectMetadata = ObjectMetadata {}
- parseObjectMetadata :: MonadThrow m => ResponseHeaders -> m ObjectMetadata
- type LocationConstraint = Text
- locationUsClassic :: LocationConstraint
- locationUsWest :: LocationConstraint
- locationUsWest2 :: LocationConstraint
- locationEu :: LocationConstraint
- locationEuWest2 :: LocationConstraint
- locationEuFrankfurt :: LocationConstraint
- locationApSouthEast :: LocationConstraint
- locationApSouthEast2 :: LocationConstraint
- locationApNorthEast :: LocationConstraint
- locationSA :: LocationConstraint
- normaliseLocation :: LocationConstraint -> LocationConstraint
Documentation
data S3Authorization Source #
Constructors
S3AuthorizationHeader | |
S3AuthorizationQuery |
Instances
Show S3Authorization Source # | |
Defined in Aws.S3.Core |
data RequestStyle Source #
Constructors
PathStyle | Requires correctly setting region endpoint, but allows non-DNS compliant bucket names in the US standard region. |
BucketStyle | Bucket name must be DNS compliant. |
VHostStyle |
Instances
Show RequestStyle Source # | |
Defined in Aws.S3.Core |
data S3SignPayloadMode Source #
Constructors
AlwaysUnsigned | Always use the "UNSIGNED-PAYLOAD" option. |
SignWithEffort | Sign the payload when |
AlwaysSigned | Always sign the payload. Note: |
Instances
Read S3SignPayloadMode Source # | |
Defined in Aws.S3.Core | |
Show S3SignPayloadMode Source # | |
Defined in Aws.S3.Core | |
Eq S3SignPayloadMode Source # | |
Defined in Aws.S3.Core Methods (==) :: S3SignPayloadMode -> S3SignPayloadMode -> Bool Source # (/=) :: S3SignPayloadMode -> S3SignPayloadMode -> Bool Source # |
data S3SignVersion Source #
Instances
Read S3SignVersion Source # | |
Defined in Aws.S3.Core | |
Show S3SignVersion Source # | |
Defined in Aws.S3.Core | |
Eq S3SignVersion Source # | |
Defined in Aws.S3.Core Methods (==) :: S3SignVersion -> S3SignVersion -> Bool Source # (/=) :: S3SignVersion -> S3SignVersion -> Bool Source # |
data S3Configuration qt Source #
Constructors
S3Configuration | |
Instances
DefaultServiceConfiguration (S3Configuration NormalQuery) Source # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (S3Configuration UriOnlyQuery) Source # | |
Defined in Aws.S3.Core | |
Show (S3Configuration qt) Source # | |
Defined in Aws.S3.Core |
s3 :: Protocol -> ByteString -> Bool -> S3Configuration qt Source #
s3v4 :: Protocol -> ByteString -> Bool -> S3SignPayloadMode -> S3Configuration qt Source #
Constructors
S3Error | |
Fields
|
Instances
Exception S3Error Source # | |
Defined in Aws.S3.Core Methods toException :: S3Error -> SomeException Source # fromException :: SomeException -> Maybe S3Error Source # displayException :: S3Error -> String Source # | |
Show S3Error Source # | |
data S3Metadata Source #
Constructors
S3Metadata | |
Instances
Loggable S3Metadata Source # | |
Defined in Aws.S3.Core Methods toLogText :: S3Metadata -> Text Source # | |
Monoid S3Metadata Source # | |
Defined in Aws.S3.Core Methods mempty :: S3Metadata Source # mappend :: S3Metadata -> S3Metadata -> S3Metadata Source # mconcat :: [S3Metadata] -> S3Metadata Source # | |
Semigroup S3Metadata Source # | |
Defined in Aws.S3.Core Methods (<>) :: S3Metadata -> S3Metadata -> S3Metadata Source # sconcat :: NonEmpty S3Metadata -> S3Metadata Source # stimes :: Integral b => b -> S3Metadata -> S3Metadata Source # | |
Show S3Metadata Source # | |
Defined in Aws.S3.Core |
Constructors
S3Query | |
Fields
|
hAmzContentSha256 :: HeaderName Source #
hAmzAlgorithm :: HeaderName Source #
hAmzCredential :: HeaderName Source #
hAmzExpires :: HeaderName Source #
hAmzSignedHeaders :: HeaderName Source #
hAmzSignature :: HeaderName Source #
hAmzSecurityToken :: HeaderName Source #
s3SignQuery :: S3Query -> S3Configuration qt -> SignatureData -> SignedQuery Source #
Arguments
:: Bool | Whether encode slash characters |
-> ByteString | |
-> ByteString |
Custom UriEncode function see http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
Arguments
:: Bool | Whether prepend a question mark |
-> Query | |
-> ByteString |
s3ExtractRegion :: ByteString -> ByteString Source #
Extract a S3 region from the S3 endpoint. AWS encodes the region names in the hostnames of endpoints in a way that makes this possible, see: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region For other S3 implementations, may instead need to specify s3Region.
s3BinaryResponseConsumer :: HTTPResponseConsumer a -> IORef S3Metadata -> HTTPResponseConsumer a Source #
s3XmlResponseConsumer :: (Cursor -> Response S3Metadata a) -> IORef S3Metadata -> HTTPResponseConsumer a Source #
type CanonicalUserId = Text Source #
Constructors
UserInfo | |
Fields |
parseUserInfo :: MonadThrow m => Cursor -> m UserInfo Source #
writeCannedAcl :: CannedAcl -> Text Source #
data StorageClass Source #
Instances
Show StorageClass Source # | |
Defined in Aws.S3.Core |
parseStorageClass :: Text -> StorageClass Source #
writeStorageClass :: StorageClass -> Text Source #
data ServerSideEncryption Source #
Constructors
AES256 |
Instances
Show ServerSideEncryption Source # | |
Defined in Aws.S3.Core |
parseServerSideEncryption :: MonadThrow m => Text -> m ServerSideEncryption Source #
data BucketInfo Source #
Constructors
BucketInfo | |
Fields |
Instances
Show BucketInfo Source # | |
Defined in Aws.S3.Core |
data ObjectVersionInfo Source #
Constructors
ObjectVersion | |
Fields
| |
DeleteMarker | |
Fields
|
Instances
parseObjectVersionInfo :: MonadThrow m => Cursor -> m ObjectVersionInfo Source #
data ObjectInfo Source #
Constructors
ObjectInfo | |
Fields |
Instances
Show ObjectInfo Source # | |
Defined in Aws.S3.Core | |
ListResponse GetBucketResponse ObjectInfo Source # | |
Defined in Aws.S3.Commands.GetBucket Methods listResponse :: GetBucketResponse -> [ObjectInfo] Source # |
parseObjectInfo :: MonadThrow m => Cursor -> m ObjectInfo Source #
data ObjectMetadata Source #
Constructors
ObjectMetadata | |
Fields
|
Instances
Show ObjectMetadata Source # | |
Defined in Aws.S3.Core |
parseObjectMetadata :: MonadThrow m => ResponseHeaders -> m ObjectMetadata Source #
type LocationConstraint = Text Source #