Safe Haskell | None |
---|---|
Language | Haskell2010 |
Aws.Core
Synopsis
- class Loggable a where
- data Response m a = Response {}
- readResponse :: MonadThrow n => Response m a -> n a
- readResponseIO :: MonadIO io => Response m a -> io a
- tellMetadata :: m -> Response m ()
- tellMetadataRef :: Monoid m => IORef m -> m -> IO ()
- mapMetadata :: (m -> n) -> Response m a -> Response n a
- type HTTPResponseConsumer a = Response (ConduitM () ByteString (ResourceT IO) ()) -> ResourceT IO a
- class Monoid (ResponseMetadata resp) => ResponseConsumer req resp where
- type ResponseMetadata resp
- responseConsumer :: Request -> req -> IORef (ResponseMetadata resp) -> HTTPResponseConsumer resp
- class AsMemoryResponse resp where
- type MemoryResponse resp
- loadToMemory :: resp -> ResourceT IO (MemoryResponse resp)
- class ListResponse resp item | resp -> item where
- listResponse :: resp -> [item]
- newtype XmlException = XmlException {}
- newtype HeaderException = HeaderException {}
- newtype FormException = FormException {}
- newtype NoCredentialsException = NoCredentialsException {}
- throwStatusCodeException :: MonadThrow m => Request -> Response (ConduitM () ByteString m ()) -> m a
- readHex2 :: [Char] -> Maybe Word8
- elContent :: Text -> Cursor -> [Text]
- elCont :: Text -> Cursor -> [String]
- force :: MonadThrow m => String -> [a] -> m a
- forceM :: MonadThrow m => String -> [m a] -> m a
- textReadBool :: MonadThrow m => Text -> m Bool
- textReadInt :: (MonadThrow m, Num a) => Text -> m a
- readInt :: (MonadThrow m, Num a) => String -> m a
- xmlCursorConsumer :: Monoid m => (Cursor -> Response m a) -> IORef m -> HTTPResponseConsumer a
- data SignedQuery = SignedQuery {
- sqMethod :: !Method
- sqProtocol :: !Protocol
- sqHost :: !ByteString
- sqPort :: !Int
- sqPath :: !ByteString
- sqQuery :: !Query
- sqDate :: !(Maybe UTCTime)
- sqAuthorization :: !(Maybe (IO ByteString))
- sqContentType :: !(Maybe ByteString)
- sqContentMd5 :: !(Maybe (Digest MD5))
- sqAmzHeaders :: !RequestHeaders
- sqOtherHeaders :: !RequestHeaders
- sqBody :: !(Maybe RequestBody)
- sqStringToSign :: !ByteString
- data NormalQuery
- data UriOnlyQuery
- queryToHttpRequest :: SignedQuery -> IO Request
- queryToUri :: SignedQuery -> ByteString
- data TimeInfo
- data AbsoluteTimeInfo
- = AbsoluteTimestamp { }
- | AbsoluteExpires { }
- fromAbsoluteTimeInfo :: AbsoluteTimeInfo -> UTCTime
- makeAbsoluteTimeInfo :: TimeInfo -> UTCTime -> AbsoluteTimeInfo
- data SignatureData = SignatureData {}
- signatureData :: TimeInfo -> Credentials -> IO SignatureData
- class SignQuery request where
- type ServiceConfiguration request :: Type -> Type
- signQuery :: request -> ServiceConfiguration request queryType -> SignatureData -> SignedQuery
- data AuthorizationHash
- amzHash :: AuthorizationHash -> ByteString
- signature :: Credentials -> AuthorizationHash -> ByteString -> ByteString
- credentialV4 :: SignatureData -> ByteString -> ByteString -> ByteString
- authorizationV4 :: SignatureData -> AuthorizationHash -> ByteString -> ByteString -> ByteString -> ByteString -> IO ByteString
- authorizationV4' :: SignatureData -> AuthorizationHash -> ByteString -> ByteString -> ByteString -> ByteString -> ByteString
- signatureV4 :: SignatureData -> AuthorizationHash -> ByteString -> ByteString -> ByteString -> ByteString
- queryList :: (a -> [(ByteString, ByteString)]) -> ByteString -> [a] -> [(ByteString, ByteString)]
- awsBool :: Bool -> ByteString
- awsTrue :: ByteString
- awsFalse :: ByteString
- fmtTime :: String -> UTCTime -> ByteString
- fmtRfc822Time :: UTCTime -> ByteString
- rfc822Time :: String
- fmtAmzTime :: UTCTime -> ByteString
- fmtTimeEpochSeconds :: UTCTime -> ByteString
- parseHttpDate :: String -> Maybe UTCTime
- httpDate1 :: String
- textHttpDate :: UTCTime -> Text
- iso8601UtcDate :: String
- class (SignQuery r, ResponseConsumer r a, Loggable (ResponseMetadata a)) => Transaction r a | r -> a
- class Transaction r a => IteratedTransaction r a | r -> a where
- nextIteratedRequest :: r -> a -> Maybe r
- data Credentials = Credentials {
- accessKeyID :: ByteString
- secretAccessKey :: ByteString
- v4SigningKeys :: IORef [V4Key]
- iamToken :: Maybe ByteString
- isAnonymousCredentials :: Bool
- makeCredentials :: MonadIO io => ByteString -> ByteString -> io Credentials
- credentialsDefaultFile :: MonadIO io => io (Maybe FilePath)
- credentialsDefaultKey :: Text
- loadCredentialsFromFile :: MonadIO io => FilePath -> Text -> io (Maybe Credentials)
- loadCredentialsFromEnv :: MonadIO io => io (Maybe Credentials)
- loadCredentialsFromInstanceMetadata :: MonadIO io => io (Maybe Credentials)
- loadCredentialsFromEnvOrFile :: MonadIO io => FilePath -> Text -> io (Maybe Credentials)
- loadCredentialsFromEnvOrFileOrInstanceMetadata :: MonadIO io => FilePath -> Text -> io (Maybe Credentials)
- loadCredentialsDefault :: MonadIO io => io (Maybe Credentials)
- anonymousCredentials :: MonadIO io => io Credentials
- class DefaultServiceConfiguration config where
- defServiceConfig :: config
- debugServiceConfig :: config
- data Protocol
- defaultPort :: Protocol -> Int
- data Method
- httpMethod :: Method -> Method
Logging
Types that can be logged (textually).
Instances
Loggable DdbResponse # | |
Defined in Aws.DynamoDb.Core Methods toLogText :: DdbResponse -> Text # | |
Loggable IamMetadata # | |
Defined in Aws.Iam.Core Methods toLogText :: IamMetadata -> Text # | |
Loggable S3Metadata # | |
Defined in Aws.S3.Core Methods toLogText :: S3Metadata -> Text # | |
Loggable SesMetadata # | |
Defined in Aws.Ses.Core Methods toLogText :: SesMetadata -> Text # | |
Loggable SdbMetadata # | |
Defined in Aws.SimpleDb.Core Methods toLogText :: SdbMetadata -> Text # | |
Loggable SqsMetadata # | |
Defined in Aws.Sqs.Core Methods toLogText :: SqsMetadata -> Text # |
Response
Metadata in responses
A response with metadata. Can also contain an error response, or
an internal error, via Attempt
.
Response forms a Writer-like monad.
Constructors
Response | |
Fields
|
readResponse :: MonadThrow n => Response m a -> n a #
Read a response result (if it's a success response, fail otherwise).
readResponseIO :: MonadIO io => Response m a -> io a #
Read a response result (if it's a success response, fail otherwise). In MonadIO.
tellMetadata :: m -> Response m () #
An empty response with some metadata.
mapMetadata :: (m -> n) -> Response m a -> Response n a #
Apply a function to the metadata.
Response data consumers
type HTTPResponseConsumer a = Response (ConduitM () ByteString (ResourceT IO) ()) -> ResourceT IO a #
A full HTTP response parser. Takes HTTP status, response headers, and response body.
class Monoid (ResponseMetadata resp) => ResponseConsumer req resp where #
Class for types that AWS HTTP responses can be parsed into.
The request is also passed for possibly required additional metadata.
Note that for debugging, there is an instance for ByteString
.
Associated Types
type ResponseMetadata resp #
Metadata associated with a response. Typically there is one metadata type for each AWS service.
Methods
responseConsumer :: Request -> req -> IORef (ResponseMetadata resp) -> HTTPResponseConsumer resp #
Response parser. Takes the corresponding AWS request, the derived
http-client
request (for error reporting), an IORef
for metadata, and
HTTP response data.
Instances
Memory response
class AsMemoryResponse resp where #
Class for responses that are fully loaded into memory
Associated Types
type MemoryResponse resp #
Methods
loadToMemory :: resp -> ResourceT IO (MemoryResponse resp) #
Instances
AsMemoryResponse BatchGetItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.BatchGetItem Associated Types
Methods loadToMemory :: BatchGetItemResponse -> ResourceT IO (MemoryResponse BatchGetItemResponse) # | |||||
AsMemoryResponse BatchWriteItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.BatchWriteItem Associated Types
Methods loadToMemory :: BatchWriteItemResponse -> ResourceT IO (MemoryResponse BatchWriteItemResponse) # | |||||
AsMemoryResponse DeleteItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.DeleteItem Associated Types
Methods loadToMemory :: DeleteItemResponse -> ResourceT IO (MemoryResponse DeleteItemResponse) # | |||||
AsMemoryResponse GetItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.GetItem Associated Types
Methods loadToMemory :: GetItemResponse -> ResourceT IO (MemoryResponse GetItemResponse) # | |||||
AsMemoryResponse PutItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.PutItem Associated Types
Methods loadToMemory :: PutItemResponse -> ResourceT IO (MemoryResponse PutItemResponse) # | |||||
AsMemoryResponse QueryResponse # | |||||
Defined in Aws.DynamoDb.Commands.Query Associated Types
Methods loadToMemory :: QueryResponse -> ResourceT IO (MemoryResponse QueryResponse) # | |||||
AsMemoryResponse ScanResponse # | |||||
Defined in Aws.DynamoDb.Commands.Scan Associated Types
Methods loadToMemory :: ScanResponse -> ResourceT IO (MemoryResponse ScanResponse) # | |||||
AsMemoryResponse CreateTableResult # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: CreateTableResult -> ResourceT IO (MemoryResponse CreateTableResult) # | |||||
AsMemoryResponse DeleteTableResult # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: DeleteTableResult -> ResourceT IO (MemoryResponse DeleteTableResult) # | |||||
AsMemoryResponse DescribeTableResult # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: DescribeTableResult -> ResourceT IO (MemoryResponse DescribeTableResult) # | |||||
AsMemoryResponse ListTablesResult # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: ListTablesResult -> ResourceT IO (MemoryResponse ListTablesResult) # | |||||
AsMemoryResponse UpdateTableResult # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: UpdateTableResult -> ResourceT IO (MemoryResponse UpdateTableResult) # | |||||
AsMemoryResponse UpdateItemResponse # | |||||
Defined in Aws.DynamoDb.Commands.UpdateItem Associated Types
Methods loadToMemory :: UpdateItemResponse -> ResourceT IO (MemoryResponse UpdateItemResponse) # | |||||
AsMemoryResponse AddUserToGroupResponse # | |||||
Defined in Aws.Iam.Commands.AddUserToGroup Associated Types
Methods loadToMemory :: AddUserToGroupResponse -> ResourceT IO (MemoryResponse AddUserToGroupResponse) # | |||||
AsMemoryResponse CreateAccessKeyResponse # | |||||
Defined in Aws.Iam.Commands.CreateAccessKey Associated Types
Methods loadToMemory :: CreateAccessKeyResponse -> ResourceT IO (MemoryResponse CreateAccessKeyResponse) # | |||||
AsMemoryResponse CreateGroupResponse # | |||||
Defined in Aws.Iam.Commands.CreateGroup Associated Types
Methods loadToMemory :: CreateGroupResponse -> ResourceT IO (MemoryResponse CreateGroupResponse) # | |||||
AsMemoryResponse CreateUserResponse # | |||||
Defined in Aws.Iam.Commands.CreateUser Associated Types
Methods loadToMemory :: CreateUserResponse -> ResourceT IO (MemoryResponse CreateUserResponse) # | |||||
AsMemoryResponse DeleteAccessKeyResponse # | |||||
Defined in Aws.Iam.Commands.DeleteAccessKey Associated Types
Methods loadToMemory :: DeleteAccessKeyResponse -> ResourceT IO (MemoryResponse DeleteAccessKeyResponse) # | |||||
AsMemoryResponse DeleteGroupResponse # | |||||
Defined in Aws.Iam.Commands.DeleteGroup Associated Types
Methods loadToMemory :: DeleteGroupResponse -> ResourceT IO (MemoryResponse DeleteGroupResponse) # | |||||
AsMemoryResponse DeleteGroupPolicyResponse # | |||||
Defined in Aws.Iam.Commands.DeleteGroupPolicy Associated Types
| |||||
AsMemoryResponse DeleteUserResponse # | |||||
Defined in Aws.Iam.Commands.DeleteUser Associated Types
Methods loadToMemory :: DeleteUserResponse -> ResourceT IO (MemoryResponse DeleteUserResponse) # | |||||
AsMemoryResponse DeleteUserPolicyResponse # | |||||
Defined in Aws.Iam.Commands.DeleteUserPolicy Associated Types
| |||||
AsMemoryResponse GetGroupPolicyResponse # | |||||
Defined in Aws.Iam.Commands.GetGroupPolicy Associated Types
Methods loadToMemory :: GetGroupPolicyResponse -> ResourceT IO (MemoryResponse GetGroupPolicyResponse) # | |||||
AsMemoryResponse GetUserResponse # | |||||
Defined in Aws.Iam.Commands.GetUser Associated Types
Methods loadToMemory :: GetUserResponse -> ResourceT IO (MemoryResponse GetUserResponse) # | |||||
AsMemoryResponse GetUserPolicyResponse # | |||||
Defined in Aws.Iam.Commands.GetUserPolicy Associated Types
Methods loadToMemory :: GetUserPolicyResponse -> ResourceT IO (MemoryResponse GetUserPolicyResponse) # | |||||
AsMemoryResponse ListAccessKeysResponse # | |||||
Defined in Aws.Iam.Commands.ListAccessKeys Associated Types
Methods loadToMemory :: ListAccessKeysResponse -> ResourceT IO (MemoryResponse ListAccessKeysResponse) # | |||||
AsMemoryResponse ListGroupPoliciesResponse # | |||||
Defined in Aws.Iam.Commands.ListGroupPolicies Associated Types
| |||||
AsMemoryResponse ListGroupsResponse # | |||||
Defined in Aws.Iam.Commands.ListGroups Associated Types
Methods loadToMemory :: ListGroupsResponse -> ResourceT IO (MemoryResponse ListGroupsResponse) # | |||||
AsMemoryResponse ListMfaDevicesResponse # | |||||
Defined in Aws.Iam.Commands.ListMfaDevices Associated Types
Methods loadToMemory :: ListMfaDevicesResponse -> ResourceT IO (MemoryResponse ListMfaDevicesResponse) # | |||||
AsMemoryResponse ListUserPoliciesResponse # | |||||
Defined in Aws.Iam.Commands.ListUserPolicies Associated Types
| |||||
AsMemoryResponse ListUsersResponse # | |||||
Defined in Aws.Iam.Commands.ListUsers Associated Types
Methods loadToMemory :: ListUsersResponse -> ResourceT IO (MemoryResponse ListUsersResponse) # | |||||
AsMemoryResponse PutGroupPolicyResponse # | |||||
Defined in Aws.Iam.Commands.PutGroupPolicy Associated Types
Methods loadToMemory :: PutGroupPolicyResponse -> ResourceT IO (MemoryResponse PutGroupPolicyResponse) # | |||||
AsMemoryResponse PutUserPolicyResponse # | |||||
Defined in Aws.Iam.Commands.PutUserPolicy Associated Types
Methods loadToMemory :: PutUserPolicyResponse -> ResourceT IO (MemoryResponse PutUserPolicyResponse) # | |||||
AsMemoryResponse RemoveUserFromGroupResponse # | |||||
Defined in Aws.Iam.Commands.RemoveUserFromGroup Associated Types
| |||||
AsMemoryResponse UpdateAccessKeyResponse # | |||||
Defined in Aws.Iam.Commands.UpdateAccessKey Associated Types
Methods loadToMemory :: UpdateAccessKeyResponse -> ResourceT IO (MemoryResponse UpdateAccessKeyResponse) # | |||||
AsMemoryResponse UpdateGroupResponse # | |||||
Defined in Aws.Iam.Commands.UpdateGroup Associated Types
Methods loadToMemory :: UpdateGroupResponse -> ResourceT IO (MemoryResponse UpdateGroupResponse) # | |||||
AsMemoryResponse UpdateUserResponse # | |||||
Defined in Aws.Iam.Commands.UpdateUser Associated Types
Methods loadToMemory :: UpdateUserResponse -> ResourceT IO (MemoryResponse UpdateUserResponse) # | |||||
AsMemoryResponse CopyObjectResponse # | |||||
Defined in Aws.S3.Commands.CopyObject Associated Types
Methods loadToMemory :: CopyObjectResponse -> ResourceT IO (MemoryResponse CopyObjectResponse) # | |||||
AsMemoryResponse DeleteBucketResponse # | |||||
Defined in Aws.S3.Commands.DeleteBucket Associated Types
Methods loadToMemory :: DeleteBucketResponse -> ResourceT IO (MemoryResponse DeleteBucketResponse) # | |||||
AsMemoryResponse DeleteObjectResponse # | |||||
Defined in Aws.S3.Commands.DeleteObject Associated Types
Methods loadToMemory :: DeleteObjectResponse -> ResourceT IO (MemoryResponse DeleteObjectResponse) # | |||||
AsMemoryResponse DeleteObjectVersionResponse # | |||||
Defined in Aws.S3.Commands.DeleteObjectVersion Associated Types
| |||||
AsMemoryResponse DeleteObjectsResponse # | |||||
Defined in Aws.S3.Commands.DeleteObjects Associated Types
Methods loadToMemory :: DeleteObjectsResponse -> ResourceT IO (MemoryResponse DeleteObjectsResponse) # | |||||
AsMemoryResponse GetBucketResponse # | |||||
Defined in Aws.S3.Commands.GetBucket Associated Types
Methods loadToMemory :: GetBucketResponse -> ResourceT IO (MemoryResponse GetBucketResponse) # | |||||
AsMemoryResponse GetBucketLocationResponse # | |||||
Defined in Aws.S3.Commands.GetBucketLocation Associated Types
| |||||
AsMemoryResponse GetBucketObjectVersionsResponse # | |||||
Defined in Aws.S3.Commands.GetBucketObjectVersions Associated Types
| |||||
AsMemoryResponse GetBucketVersioningResponse # | |||||
Defined in Aws.S3.Commands.GetBucketVersioning Associated Types
| |||||
AsMemoryResponse GetObjectResponse # | |||||
Defined in Aws.S3.Commands.GetObject Associated Types
Methods loadToMemory :: GetObjectResponse -> ResourceT IO (MemoryResponse GetObjectResponse) # | |||||
AsMemoryResponse GetServiceResponse # | |||||
Defined in Aws.S3.Commands.GetService Associated Types
Methods loadToMemory :: GetServiceResponse -> ResourceT IO (MemoryResponse GetServiceResponse) # | |||||
AsMemoryResponse HeadObjectResponse # | |||||
Defined in Aws.S3.Commands.HeadObject Associated Types
Methods loadToMemory :: HeadObjectResponse -> ResourceT IO (MemoryResponse HeadObjectResponse) # | |||||
AsMemoryResponse AbortMultipartUploadResponse # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
| |||||
AsMemoryResponse CompleteMultipartUploadResponse # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
| |||||
AsMemoryResponse InitiateMultipartUploadResponse # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
| |||||
AsMemoryResponse UploadPartResponse # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods loadToMemory :: UploadPartResponse -> ResourceT IO (MemoryResponse UploadPartResponse) # | |||||
AsMemoryResponse PutBucketResponse # | |||||
Defined in Aws.S3.Commands.PutBucket Associated Types
Methods loadToMemory :: PutBucketResponse -> ResourceT IO (MemoryResponse PutBucketResponse) # | |||||
AsMemoryResponse PutBucketVersioningResponse # | |||||
Defined in Aws.S3.Commands.PutBucketVersioning Associated Types
| |||||
AsMemoryResponse PutObjectResponse # | |||||
Defined in Aws.S3.Commands.PutObject Associated Types
Methods loadToMemory :: PutObjectResponse -> ResourceT IO (MemoryResponse PutObjectResponse) # | |||||
AsMemoryResponse DeleteIdentityResponse # | |||||
Defined in Aws.Ses.Commands.DeleteIdentity Associated Types
Methods loadToMemory :: DeleteIdentityResponse -> ResourceT IO (MemoryResponse DeleteIdentityResponse) # | |||||
AsMemoryResponse GetIdentityDkimAttributesResponse # | |||||
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes Associated Types
| |||||
AsMemoryResponse GetIdentityNotificationAttributesResponse # | |||||
Defined in Aws.Ses.Commands.GetIdentityNotificationAttributes Associated Types
| |||||
AsMemoryResponse GetIdentityVerificationAttributesResponse # | |||||
Defined in Aws.Ses.Commands.GetIdentityVerificationAttributes Associated Types
| |||||
AsMemoryResponse ListIdentitiesResponse # | |||||
Defined in Aws.Ses.Commands.ListIdentities Associated Types
Methods loadToMemory :: ListIdentitiesResponse -> ResourceT IO (MemoryResponse ListIdentitiesResponse) # | |||||
AsMemoryResponse SendRawEmailResponse # | |||||
Defined in Aws.Ses.Commands.SendRawEmail Associated Types
Methods loadToMemory :: SendRawEmailResponse -> ResourceT IO (MemoryResponse SendRawEmailResponse) # | |||||
AsMemoryResponse SetIdentityDkimEnabledResponse # | |||||
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled Associated Types
| |||||
AsMemoryResponse SetIdentityFeedbackForwardingEnabledResponse # | |||||
Defined in Aws.Ses.Commands.SetIdentityFeedbackForwardingEnabled Associated Types
| |||||
AsMemoryResponse SetIdentityNotificationTopicResponse # | |||||
Defined in Aws.Ses.Commands.SetIdentityNotificationTopic Associated Types
| |||||
AsMemoryResponse VerifyDomainDkimResponse # | |||||
Defined in Aws.Ses.Commands.VerifyDomainDkim Associated Types
| |||||
AsMemoryResponse VerifyDomainIdentityResponse # | |||||
Defined in Aws.Ses.Commands.VerifyDomainIdentity Associated Types
| |||||
AsMemoryResponse VerifyEmailIdentityResponse # | |||||
Defined in Aws.Ses.Commands.VerifyEmailIdentity Associated Types
| |||||
AsMemoryResponse BatchDeleteAttributesResponse # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
| |||||
AsMemoryResponse BatchPutAttributesResponse # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
| |||||
AsMemoryResponse DeleteAttributesResponse # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
| |||||
AsMemoryResponse GetAttributesResponse # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: GetAttributesResponse -> ResourceT IO (MemoryResponse GetAttributesResponse) # | |||||
AsMemoryResponse PutAttributesResponse # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: PutAttributesResponse -> ResourceT IO (MemoryResponse PutAttributesResponse) # | |||||
AsMemoryResponse CreateDomainResponse # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: CreateDomainResponse -> ResourceT IO (MemoryResponse CreateDomainResponse) # | |||||
AsMemoryResponse DeleteDomainResponse # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: DeleteDomainResponse -> ResourceT IO (MemoryResponse DeleteDomainResponse) # | |||||
AsMemoryResponse DomainMetadataResponse # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: DomainMetadataResponse -> ResourceT IO (MemoryResponse DomainMetadataResponse) # | |||||
AsMemoryResponse ListDomainsResponse # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: ListDomainsResponse -> ResourceT IO (MemoryResponse ListDomainsResponse) # | |||||
AsMemoryResponse SelectResponse # | |||||
Defined in Aws.SimpleDb.Commands.Select Associated Types
Methods loadToMemory :: SelectResponse -> ResourceT IO (MemoryResponse SelectResponse) # | |||||
AsMemoryResponse ChangeMessageVisibilityResponse # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
| |||||
AsMemoryResponse DeleteMessageResponse # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: DeleteMessageResponse -> ResourceT IO (MemoryResponse DeleteMessageResponse) # | |||||
AsMemoryResponse ReceiveMessageResponse # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: ReceiveMessageResponse -> ResourceT IO (MemoryResponse ReceiveMessageResponse) # | |||||
AsMemoryResponse SendMessageResponse # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: SendMessageResponse -> ResourceT IO (MemoryResponse SendMessageResponse) # | |||||
AsMemoryResponse AddPermissionResponse # | |||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods loadToMemory :: AddPermissionResponse -> ResourceT IO (MemoryResponse AddPermissionResponse) # | |||||
AsMemoryResponse RemovePermissionResponse # | |||||
Defined in Aws.Sqs.Commands.Permission Associated Types
| |||||
AsMemoryResponse CreateQueueResponse # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: CreateQueueResponse -> ResourceT IO (MemoryResponse CreateQueueResponse) # | |||||
AsMemoryResponse DeleteQueueResponse # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: DeleteQueueResponse -> ResourceT IO (MemoryResponse DeleteQueueResponse) # | |||||
AsMemoryResponse ListQueuesResponse # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: ListQueuesResponse -> ResourceT IO (MemoryResponse ListQueuesResponse) # | |||||
AsMemoryResponse GetQueueAttributesResponse # | |||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
| |||||
AsMemoryResponse SetQueueAttributesResponse # | |||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
|
List response
class ListResponse resp item | resp -> item where #
Responses that have one main list in them, and perhaps some decoration.
Methods
listResponse :: resp -> [item] #
Instances
ListResponse QueryResponse Item # | |
Defined in Aws.DynamoDb.Commands.Query Methods listResponse :: QueryResponse -> [Item] # | |
ListResponse ScanResponse Item # | |
Defined in Aws.DynamoDb.Commands.Scan Methods listResponse :: ScanResponse -> [Item] # | |
ListResponse GetBucketResponse ObjectInfo # | |
Defined in Aws.S3.Commands.GetBucket Methods listResponse :: GetBucketResponse -> [ObjectInfo] # | |
ListResponse GetBucketObjectVersionsResponse ObjectVersionInfo # | |
Defined in Aws.S3.Commands.GetBucketObjectVersions Methods listResponse :: GetBucketObjectVersionsResponse -> [ObjectVersionInfo] # | |
ListResponse ListDomainsResponse Text # | |
Defined in Aws.SimpleDb.Commands.Domain Methods listResponse :: ListDomainsResponse -> [Text] # | |
ListResponse SelectResponse (Item [Attribute Text]) # | |
Defined in Aws.SimpleDb.Commands.Select Methods listResponse :: SelectResponse -> [Item [Attribute Text]] # |
Exception types
newtype XmlException #
An error that occurred during XML parsing / validation.
Constructors
XmlException | |
Fields |
Instances
Exception XmlException # | |
Defined in Aws.Core Methods toException :: XmlException -> SomeException # fromException :: SomeException -> Maybe XmlException # displayException :: XmlException -> String # backtraceDesired :: XmlException -> Bool # | |
Show XmlException # | |
Defined in Aws.Core Methods showsPrec :: Int -> XmlException -> ShowS # show :: XmlException -> String # showList :: [XmlException] -> ShowS # |
newtype HeaderException #
An error that occurred during header parsing / validation.
Constructors
HeaderException | |
Fields |
Instances
Exception HeaderException # | |
Defined in Aws.Core Methods toException :: HeaderException -> SomeException # fromException :: SomeException -> Maybe HeaderException # displayException :: HeaderException -> String # backtraceDesired :: HeaderException -> Bool # | |
Show HeaderException # | |
Defined in Aws.Core Methods showsPrec :: Int -> HeaderException -> ShowS # show :: HeaderException -> String # showList :: [HeaderException] -> ShowS # |
newtype FormException #
An error that occurred during form parsing / validation.
Constructors
FormException | |
Fields |
Instances
Exception FormException # | |
Defined in Aws.Core Methods toException :: FormException -> SomeException # fromException :: SomeException -> Maybe FormException # displayException :: FormException -> String # backtraceDesired :: FormException -> Bool # | |
Show FormException # | |
Defined in Aws.Core Methods showsPrec :: Int -> FormException -> ShowS # show :: FormException -> String # showList :: [FormException] -> ShowS # |
newtype NoCredentialsException #
No credentials were found and an invariant was violated.
Constructors
NoCredentialsException | |
Fields |
Instances
Exception NoCredentialsException # | |
Defined in Aws.Core | |
Show NoCredentialsException # | |
Defined in Aws.Core Methods showsPrec :: Int -> NoCredentialsException -> ShowS # show :: NoCredentialsException -> String # showList :: [NoCredentialsException] -> ShowS # |
throwStatusCodeException :: MonadThrow m => Request -> Response (ConduitM () ByteString m ()) -> m a #
A helper to throw an StatusCodeException
.
Response deconstruction helpers
XML
elContent :: Text -> Cursor -> [Text] #
A specific element (case-insensitive, ignoring namespace - sadly necessary), extracting only the textual contents.
force :: MonadThrow m => String -> [a] -> m a #
Extract the first element from a parser result list, and throw an XmlException
if the list is empty.
forceM :: MonadThrow m => String -> [m a] -> m a #
Extract the first element from a monadic parser result list, and throw an XmlException
if the list is empty.
textReadBool :: MonadThrow m => Text -> m Bool #
Read a boolean from a Text
, throwing an XmlException
on failure.
textReadInt :: (MonadThrow m, Num a) => Text -> m a #
Read an integer from a Text
, throwing an XmlException
on failure.
readInt :: (MonadThrow m, Num a) => String -> m a #
Read an integer from a String
, throwing an XmlException
on failure.
xmlCursorConsumer :: Monoid m => (Cursor -> Response m a) -> IORef m -> HTTPResponseConsumer a #
Create a complete HTTPResponseConsumer
from a simple function that takes a Cursor
to XML in the response
body.
This function is highly recommended for any services that parse relatively short XML responses. (If status and response headers are required, simply take them as function parameters, and pass them through to this function.)
Query
data SignedQuery #
A pre-signed medium-level request object.
Constructors
SignedQuery | |
Fields
|
data NormalQuery #
Tag type for normal queries.
Instances
DefaultServiceConfiguration (DdbConfiguration NormalQuery) # | |
Defined in Aws.DynamoDb.Core | |
DefaultServiceConfiguration (IamConfiguration NormalQuery) # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration NormalQuery) # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration NormalQuery) # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration NormalQuery) # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration NormalQuery) # | |
Defined in Aws.Sqs.Core | |
Default (DdbConfiguration NormalQuery) # | |
Defined in Aws.DynamoDb.Core Methods |
data UriOnlyQuery #
Tag type for URI-only queries.
Instances
DefaultServiceConfiguration (IamConfiguration UriOnlyQuery) # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration UriOnlyQuery) # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration UriOnlyQuery) # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration UriOnlyQuery) # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration UriOnlyQuery) # | |
Defined in Aws.Sqs.Core |
queryToHttpRequest :: SignedQuery -> IO Request #
Create a HTTP request from a SignedQuery
object.
queryToUri :: SignedQuery -> ByteString #
Create a URI fro a SignedQuery
object.
Unused / incompatible fields will be silently ignored.
Expiration
Whether to restrict the signature validity with a plain timestamp, or with explicit expiration (absolute or relative).
data AbsoluteTimeInfo #
Like TimeInfo
, but with all relative times replaced by absolute UTC.
Constructors
AbsoluteTimestamp | |
Fields | |
AbsoluteExpires | |
Fields |
Instances
Show AbsoluteTimeInfo # | |
Defined in Aws.Core Methods showsPrec :: Int -> AbsoluteTimeInfo -> ShowS # show :: AbsoluteTimeInfo -> String # showList :: [AbsoluteTimeInfo] -> ShowS # |
fromAbsoluteTimeInfo :: AbsoluteTimeInfo -> UTCTime #
Just the UTC time value.
makeAbsoluteTimeInfo :: TimeInfo -> UTCTime -> AbsoluteTimeInfo #
Convert TimeInfo
to AbsoluteTimeInfo
given the current UTC time.
Signature
data SignatureData #
Data that is always required for signing requests.
Constructors
SignatureData | |
Fields
|
signatureData :: TimeInfo -> Credentials -> IO SignatureData #
Create signature data using the current system time.
class SignQuery request where #
A "signable" request object. Assembles together the Query, and signs it in one go.
Associated Types
type ServiceConfiguration request :: Type -> Type #
Additional information, like API endpoints and service-specific preferences.
Methods
signQuery :: request -> ServiceConfiguration request queryType -> SignatureData -> SignedQuery #
Create a SignedQuery
from a request, additional Info
, and SignatureData
.
Instances
SignQuery BatchGetItem # | |||||
Defined in Aws.DynamoDb.Commands.BatchGetItem Associated Types
Methods signQuery :: BatchGetItem -> ServiceConfiguration BatchGetItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery BatchWriteItem # | |||||
Defined in Aws.DynamoDb.Commands.BatchWriteItem Associated Types
Methods signQuery :: BatchWriteItem -> ServiceConfiguration BatchWriteItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteItem # | |||||
Defined in Aws.DynamoDb.Commands.DeleteItem Associated Types
Methods signQuery :: DeleteItem -> ServiceConfiguration DeleteItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetItem # | |||||
Defined in Aws.DynamoDb.Commands.GetItem Associated Types
Methods signQuery :: GetItem -> ServiceConfiguration GetItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutItem # | |||||
Defined in Aws.DynamoDb.Commands.PutItem Associated Types
Methods signQuery :: PutItem -> ServiceConfiguration PutItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery Query # | |||||
Defined in Aws.DynamoDb.Commands.Query Associated Types
Methods signQuery :: Query -> ServiceConfiguration Query queryType -> SignatureData -> SignedQuery # | |||||
SignQuery Scan # | |||||
Defined in Aws.DynamoDb.Commands.Scan Associated Types
Methods signQuery :: Scan -> ServiceConfiguration Scan queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateTable # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: CreateTable -> ServiceConfiguration CreateTable queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteTable # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: DeleteTable -> ServiceConfiguration DeleteTable queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DescribeTable # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: DescribeTable -> ServiceConfiguration DescribeTable queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListTables # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: ListTables -> ServiceConfiguration ListTables queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UpdateTable # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: UpdateTable -> ServiceConfiguration UpdateTable queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UpdateItem # | |||||
Defined in Aws.DynamoDb.Commands.UpdateItem Associated Types
Methods signQuery :: UpdateItem -> ServiceConfiguration UpdateItem queryType -> SignatureData -> SignedQuery # | |||||
SignQuery AddUserToGroup # | |||||
Defined in Aws.Iam.Commands.AddUserToGroup Associated Types
Methods signQuery :: AddUserToGroup -> ServiceConfiguration AddUserToGroup queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateAccessKey # | |||||
Defined in Aws.Iam.Commands.CreateAccessKey Associated Types
Methods signQuery :: CreateAccessKey -> ServiceConfiguration CreateAccessKey queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateGroup # | |||||
Defined in Aws.Iam.Commands.CreateGroup Associated Types
Methods signQuery :: CreateGroup -> ServiceConfiguration CreateGroup queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateUser # | |||||
Defined in Aws.Iam.Commands.CreateUser Associated Types
Methods signQuery :: CreateUser -> ServiceConfiguration CreateUser queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteAccessKey # | |||||
Defined in Aws.Iam.Commands.DeleteAccessKey Associated Types
Methods signQuery :: DeleteAccessKey -> ServiceConfiguration DeleteAccessKey queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteGroup # | |||||
Defined in Aws.Iam.Commands.DeleteGroup Associated Types
Methods signQuery :: DeleteGroup -> ServiceConfiguration DeleteGroup queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteGroupPolicy # | |||||
Defined in Aws.Iam.Commands.DeleteGroupPolicy Associated Types
Methods signQuery :: DeleteGroupPolicy -> ServiceConfiguration DeleteGroupPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteUser # | |||||
Defined in Aws.Iam.Commands.DeleteUser Associated Types
Methods signQuery :: DeleteUser -> ServiceConfiguration DeleteUser queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteUserPolicy # | |||||
Defined in Aws.Iam.Commands.DeleteUserPolicy Associated Types
Methods signQuery :: DeleteUserPolicy -> ServiceConfiguration DeleteUserPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetGroupPolicy # | |||||
Defined in Aws.Iam.Commands.GetGroupPolicy Associated Types
Methods signQuery :: GetGroupPolicy -> ServiceConfiguration GetGroupPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetUser # | |||||
Defined in Aws.Iam.Commands.GetUser Associated Types
Methods signQuery :: GetUser -> ServiceConfiguration GetUser queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetUserPolicy # | |||||
Defined in Aws.Iam.Commands.GetUserPolicy Associated Types
Methods signQuery :: GetUserPolicy -> ServiceConfiguration GetUserPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListAccessKeys # | |||||
Defined in Aws.Iam.Commands.ListAccessKeys Associated Types
Methods signQuery :: ListAccessKeys -> ServiceConfiguration ListAccessKeys queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListGroupPolicies # | |||||
Defined in Aws.Iam.Commands.ListGroupPolicies Associated Types
Methods signQuery :: ListGroupPolicies -> ServiceConfiguration ListGroupPolicies queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListGroups # | |||||
Defined in Aws.Iam.Commands.ListGroups Associated Types
Methods signQuery :: ListGroups -> ServiceConfiguration ListGroups queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListMfaDevices # | |||||
Defined in Aws.Iam.Commands.ListMfaDevices Associated Types
Methods signQuery :: ListMfaDevices -> ServiceConfiguration ListMfaDevices queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListUserPolicies # | |||||
Defined in Aws.Iam.Commands.ListUserPolicies Associated Types
Methods signQuery :: ListUserPolicies -> ServiceConfiguration ListUserPolicies queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListUsers # | |||||
Defined in Aws.Iam.Commands.ListUsers Associated Types
Methods signQuery :: ListUsers -> ServiceConfiguration ListUsers queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutGroupPolicy # | |||||
Defined in Aws.Iam.Commands.PutGroupPolicy Associated Types
Methods signQuery :: PutGroupPolicy -> ServiceConfiguration PutGroupPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutUserPolicy # | |||||
Defined in Aws.Iam.Commands.PutUserPolicy Associated Types
Methods signQuery :: PutUserPolicy -> ServiceConfiguration PutUserPolicy queryType -> SignatureData -> SignedQuery # | |||||
SignQuery RemoveUserFromGroup # | |||||
Defined in Aws.Iam.Commands.RemoveUserFromGroup Associated Types
Methods signQuery :: RemoveUserFromGroup -> ServiceConfiguration RemoveUserFromGroup queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UpdateAccessKey # | |||||
Defined in Aws.Iam.Commands.UpdateAccessKey Associated Types
Methods signQuery :: UpdateAccessKey -> ServiceConfiguration UpdateAccessKey queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UpdateGroup # | |||||
Defined in Aws.Iam.Commands.UpdateGroup Associated Types
Methods signQuery :: UpdateGroup -> ServiceConfiguration UpdateGroup queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UpdateUser # | |||||
Defined in Aws.Iam.Commands.UpdateUser Associated Types
Methods signQuery :: UpdateUser -> ServiceConfiguration UpdateUser queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CopyObject # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.CopyObject Associated Types
Methods signQuery :: CopyObject -> ServiceConfiguration CopyObject queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteBucket # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteBucket Associated Types
Methods signQuery :: DeleteBucket -> ServiceConfiguration DeleteBucket queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteObject # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObject Associated Types
Methods signQuery :: DeleteObject -> ServiceConfiguration DeleteObject queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteObjectVersion # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObjectVersion Associated Types
Methods signQuery :: DeleteObjectVersion -> ServiceConfiguration DeleteObjectVersion queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteObjects # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObjects Associated Types
Methods signQuery :: DeleteObjects -> ServiceConfiguration DeleteObjects queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetBucket # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucket Associated Types
Methods signQuery :: GetBucket -> ServiceConfiguration GetBucket queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetBucketLocation # | |||||
Defined in Aws.S3.Commands.GetBucketLocation Associated Types
Methods signQuery :: GetBucketLocation -> ServiceConfiguration GetBucketLocation queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetBucketObjectVersions # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucketObjectVersions Associated Types
Methods signQuery :: GetBucketObjectVersions -> ServiceConfiguration GetBucketObjectVersions queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetBucketVersioning # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucketVersioning Associated Types
Methods signQuery :: GetBucketVersioning -> ServiceConfiguration GetBucketVersioning queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetObject # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetObject Associated Types
Methods signQuery :: GetObject -> ServiceConfiguration GetObject queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetService # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetService Associated Types
Methods signQuery :: GetService -> ServiceConfiguration GetService queryType -> SignatureData -> SignedQuery # | |||||
SignQuery HeadObject # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.HeadObject Associated Types
Methods signQuery :: HeadObject -> ServiceConfiguration HeadObject queryType -> SignatureData -> SignedQuery # | |||||
SignQuery AbortMultipartUpload # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: AbortMultipartUpload -> ServiceConfiguration AbortMultipartUpload queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CompleteMultipartUpload # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: CompleteMultipartUpload -> ServiceConfiguration CompleteMultipartUpload queryType -> SignatureData -> SignedQuery # | |||||
SignQuery InitiateMultipartUpload # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: InitiateMultipartUpload -> ServiceConfiguration InitiateMultipartUpload queryType -> SignatureData -> SignedQuery # | |||||
SignQuery UploadPart # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: UploadPart -> ServiceConfiguration UploadPart queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutBucket # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutBucket Associated Types
Methods signQuery :: PutBucket -> ServiceConfiguration PutBucket queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutBucketVersioning # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutBucketVersioning Associated Types
Methods signQuery :: PutBucketVersioning -> ServiceConfiguration PutBucketVersioning queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutObject # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutObject Associated Types
Methods signQuery :: PutObject -> ServiceConfiguration PutObject queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteIdentity # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.DeleteIdentity Associated Types
Methods signQuery :: DeleteIdentity -> ServiceConfiguration DeleteIdentity queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetIdentityDkimAttributes # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes Associated Types
Methods signQuery :: GetIdentityDkimAttributes -> ServiceConfiguration GetIdentityDkimAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetIdentityNotificationAttributes # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityNotificationAttributes Associated Types
Methods signQuery :: GetIdentityNotificationAttributes -> ServiceConfiguration GetIdentityNotificationAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetIdentityVerificationAttributes # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityVerificationAttributes Associated Types
Methods signQuery :: GetIdentityVerificationAttributes -> ServiceConfiguration GetIdentityVerificationAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListIdentities # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.ListIdentities Associated Types
Methods signQuery :: ListIdentities -> ServiceConfiguration ListIdentities queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SendRawEmail # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SendRawEmail Associated Types
Methods signQuery :: SendRawEmail -> ServiceConfiguration SendRawEmail queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SetIdentityDkimEnabled # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled Associated Types
Methods signQuery :: SetIdentityDkimEnabled -> ServiceConfiguration SetIdentityDkimEnabled queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SetIdentityFeedbackForwardingEnabled # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityFeedbackForwardingEnabled Associated Types
Methods signQuery :: SetIdentityFeedbackForwardingEnabled -> ServiceConfiguration SetIdentityFeedbackForwardingEnabled queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SetIdentityNotificationTopic # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityNotificationTopic Associated Types
Methods signQuery :: SetIdentityNotificationTopic -> ServiceConfiguration SetIdentityNotificationTopic queryType -> SignatureData -> SignedQuery # | |||||
SignQuery VerifyDomainDkim # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyDomainDkim Associated Types
Methods signQuery :: VerifyDomainDkim -> ServiceConfiguration VerifyDomainDkim queryType -> SignatureData -> SignedQuery # | |||||
SignQuery VerifyDomainIdentity # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyDomainIdentity Associated Types
Methods signQuery :: VerifyDomainIdentity -> ServiceConfiguration VerifyDomainIdentity queryType -> SignatureData -> SignedQuery # | |||||
SignQuery VerifyEmailIdentity # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyEmailIdentity Associated Types
Methods signQuery :: VerifyEmailIdentity -> ServiceConfiguration VerifyEmailIdentity queryType -> SignatureData -> SignedQuery # | |||||
SignQuery BatchDeleteAttributes # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: BatchDeleteAttributes -> ServiceConfiguration BatchDeleteAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery BatchPutAttributes # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: BatchPutAttributes -> ServiceConfiguration BatchPutAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteAttributes # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: DeleteAttributes -> ServiceConfiguration DeleteAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetAttributes # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: GetAttributes -> ServiceConfiguration GetAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery PutAttributes # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: PutAttributes -> ServiceConfiguration PutAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateDomain # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: CreateDomain -> ServiceConfiguration CreateDomain queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteDomain # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: DeleteDomain -> ServiceConfiguration DeleteDomain queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DomainMetadata # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: DomainMetadata -> ServiceConfiguration DomainMetadata queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListDomains # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: ListDomains -> ServiceConfiguration ListDomains queryType -> SignatureData -> SignedQuery # | |||||
SignQuery Select # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Select Associated Types
Methods signQuery :: Select -> ServiceConfiguration Select queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ChangeMessageVisibility # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: ChangeMessageVisibility -> ServiceConfiguration ChangeMessageVisibility queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteMessage # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: DeleteMessage -> ServiceConfiguration DeleteMessage queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ReceiveMessage # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: ReceiveMessage -> ServiceConfiguration ReceiveMessage queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SendMessage # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: SendMessage -> ServiceConfiguration SendMessage queryType -> SignatureData -> SignedQuery # | |||||
SignQuery AddPermission # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods signQuery :: AddPermission -> ServiceConfiguration AddPermission queryType -> SignatureData -> SignedQuery # | |||||
SignQuery RemovePermission # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods signQuery :: RemovePermission -> ServiceConfiguration RemovePermission queryType -> SignatureData -> SignedQuery # | |||||
SignQuery CreateQueue # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: CreateQueue -> ServiceConfiguration CreateQueue queryType -> SignatureData -> SignedQuery # | |||||
SignQuery DeleteQueue # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: DeleteQueue -> ServiceConfiguration DeleteQueue queryType -> SignatureData -> SignedQuery # | |||||
SignQuery ListQueues # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: ListQueues -> ServiceConfiguration ListQueues queryType -> SignatureData -> SignedQuery # | |||||
SignQuery GetQueueAttributes # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods signQuery :: GetQueueAttributes -> ServiceConfiguration GetQueueAttributes queryType -> SignatureData -> SignedQuery # | |||||
SignQuery SetQueueAttributes # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods signQuery :: SetQueueAttributes -> ServiceConfiguration SetQueueAttributes queryType -> SignatureData -> SignedQuery # |
data AuthorizationHash #
Supported crypto hashes for the signature.
Constructors
HmacSHA1 | |
HmacSHA256 |
Instances
Show AuthorizationHash # | |
Defined in Aws.Core Methods showsPrec :: Int -> AuthorizationHash -> ShowS # show :: AuthorizationHash -> String # showList :: [AuthorizationHash] -> ShowS # |
amzHash :: AuthorizationHash -> ByteString #
Authorization hash identifier as expected by Amazon.
signature :: Credentials -> AuthorizationHash -> ByteString -> ByteString #
Create a signature. Usually, AWS wants a specifically constructed string to be signed.
The signature is a HMAC-based hash of the string and the secret access key.
Arguments
:: SignatureData | |
-> ByteString | region, e.g. us-east-1 |
-> ByteString | service, e.g. dynamodb |
-> ByteString |
Generates the Credential string, required for V4 signatures.
Arguments
:: SignatureData | |
-> AuthorizationHash | |
-> ByteString | region, e.g. us-east-1 |
-> ByteString | service, e.g. dynamodb |
-> ByteString | SignedHeaders, e.g. content-type;host;x-amz-date;x-amz-target |
-> ByteString | canonicalRequest (before hashing) |
-> IO ByteString |
Use this to create the Authorization header to set into sqAuthorization
.
See http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html: you must create the
canonical request as explained by Step 1 and this function takes care of Steps 2 and 3.
Arguments
:: SignatureData | |
-> AuthorizationHash | |
-> ByteString | region, e.g. us-east-1 |
-> ByteString | service, e.g. dynamodb |
-> ByteString | SignedHeaders, e.g. content-type;host;x-amz-date;x-amz-target |
-> ByteString | canonicalRequest (before hashing) |
-> ByteString |
IO free version of authorizationV4
, use this if you need
to compute the signature outside of IO.
Arguments
:: SignatureData | |
-> AuthorizationHash | |
-> ByteString | region, e.g. us-east-1 |
-> ByteString | service, e.g. dynamodb |
-> ByteString | canonicalRequest (before hashing) |
-> ByteString |
Query construction helpers
queryList :: (a -> [(ByteString, ByteString)]) -> ByteString -> [a] -> [(ByteString, ByteString)] #
queryList f prefix xs
constructs a query list from a list of
elements xs
, using a common prefix prefix
, and a transformer
function f
.
A dot (.
) is interspersed between prefix and generated key.
Example:
queryList swap "pfx" [("a", "b"), ("c", "d")]
evaluates to [("pfx.b", "a"), ("pfx.d", "c")]
(except with ByteString instead of String, of course).
awsBool :: Bool -> ByteString #
A "true"/"false" boolean as requested by some services.
awsTrue :: ByteString #
"true"
awsFalse :: ByteString #
"false"
fmtTime :: String -> UTCTime -> ByteString #
Format time according to a format string, as a ByteString.
fmtRfc822Time :: UTCTime -> ByteString #
Format time in RFC 822 format.
rfc822Time :: String #
fmtAmzTime :: UTCTime -> ByteString #
Format time in yyyy-mm-ddThh-mm-ss format.
fmtTimeEpochSeconds :: UTCTime -> ByteString #
Format time as seconds since the Unix epoch.
parseHttpDate :: String -> Maybe UTCTime #
Parse HTTP-date (section 3.3.1 of RFC 2616)
textHttpDate :: UTCTime -> Text #
Format (as Text) HTTP-date (section 3.3.1 of RFC 2616, first type - RFC1123-style)
Transactions
class (SignQuery r, ResponseConsumer r a, Loggable (ResponseMetadata a)) => Transaction r a | r -> a #
Associates a request type and a response type in a bi-directional way.
This allows the type-checker to infer the response type when given the request type and vice versa.
Note that the actual request generation and response parsing
resides in SignQuery
and ResponseConsumer
respectively.
Instances
Transaction BatchGetItem BatchGetItemResponse # | |
Defined in Aws.DynamoDb.Commands.BatchGetItem | |
Transaction BatchWriteItem BatchWriteItemResponse # | |
Defined in Aws.DynamoDb.Commands.BatchWriteItem | |
Transaction DeleteItem DeleteItemResponse # | |
Defined in Aws.DynamoDb.Commands.DeleteItem | |
Transaction GetItem GetItemResponse # | |
Defined in Aws.DynamoDb.Commands.GetItem | |
Transaction PutItem PutItemResponse # | |
Defined in Aws.DynamoDb.Commands.PutItem | |
Transaction Query QueryResponse # | |
Defined in Aws.DynamoDb.Commands.Query | |
Transaction Scan ScanResponse # | |
Defined in Aws.DynamoDb.Commands.Scan | |
Transaction CreateTable CreateTableResult # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction DeleteTable DeleteTableResult # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction DescribeTable DescribeTableResult # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction ListTables ListTablesResult # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction UpdateTable UpdateTableResult # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction UpdateItem UpdateItemResponse # | |
Defined in Aws.DynamoDb.Commands.UpdateItem | |
Transaction AddUserToGroup AddUserToGroupResponse # | |
Defined in Aws.Iam.Commands.AddUserToGroup | |
Transaction CreateAccessKey CreateAccessKeyResponse # | |
Defined in Aws.Iam.Commands.CreateAccessKey | |
Transaction CreateGroup CreateGroupResponse # | |
Defined in Aws.Iam.Commands.CreateGroup | |
Transaction CreateUser CreateUserResponse # | |
Defined in Aws.Iam.Commands.CreateUser | |
Transaction DeleteAccessKey DeleteAccessKeyResponse # | |
Defined in Aws.Iam.Commands.DeleteAccessKey | |
Transaction DeleteGroup DeleteGroupResponse # | |
Defined in Aws.Iam.Commands.DeleteGroup | |
Transaction DeleteGroupPolicy DeleteGroupPolicyResponse # | |
Defined in Aws.Iam.Commands.DeleteGroupPolicy | |
Transaction DeleteUser DeleteUserResponse # | |
Defined in Aws.Iam.Commands.DeleteUser | |
Transaction DeleteUserPolicy DeleteUserPolicyResponse # | |
Defined in Aws.Iam.Commands.DeleteUserPolicy | |
Transaction GetGroupPolicy GetGroupPolicyResponse # | |
Defined in Aws.Iam.Commands.GetGroupPolicy | |
Transaction GetUser GetUserResponse # | |
Defined in Aws.Iam.Commands.GetUser | |
Transaction GetUserPolicy GetUserPolicyResponse # | |
Defined in Aws.Iam.Commands.GetUserPolicy | |
Transaction ListAccessKeys ListAccessKeysResponse # | |
Defined in Aws.Iam.Commands.ListAccessKeys | |
Transaction ListGroupPolicies ListGroupPoliciesResponse # | |
Defined in Aws.Iam.Commands.ListGroupPolicies | |
Transaction ListGroups ListGroupsResponse # | |
Defined in Aws.Iam.Commands.ListGroups | |
Transaction ListMfaDevices ListMfaDevicesResponse # | |
Defined in Aws.Iam.Commands.ListMfaDevices | |
Transaction ListUserPolicies ListUserPoliciesResponse # | |
Defined in Aws.Iam.Commands.ListUserPolicies | |
Transaction ListUsers ListUsersResponse # | |
Defined in Aws.Iam.Commands.ListUsers | |
Transaction PutGroupPolicy PutGroupPolicyResponse # | |
Defined in Aws.Iam.Commands.PutGroupPolicy | |
Transaction PutUserPolicy PutUserPolicyResponse # | |
Defined in Aws.Iam.Commands.PutUserPolicy | |
Transaction RemoveUserFromGroup RemoveUserFromGroupResponse # | |
Defined in Aws.Iam.Commands.RemoveUserFromGroup | |
Transaction UpdateAccessKey UpdateAccessKeyResponse # | |
Defined in Aws.Iam.Commands.UpdateAccessKey | |
Transaction UpdateGroup UpdateGroupResponse # | |
Defined in Aws.Iam.Commands.UpdateGroup | |
Transaction UpdateUser UpdateUserResponse # | |
Defined in Aws.Iam.Commands.UpdateUser | |
Transaction CopyObject CopyObjectResponse # | |
Defined in Aws.S3.Commands.CopyObject | |
Transaction DeleteBucket DeleteBucketResponse # | |
Defined in Aws.S3.Commands.DeleteBucket | |
Transaction DeleteObject DeleteObjectResponse # | |
Defined in Aws.S3.Commands.DeleteObject | |
Transaction DeleteObjectVersion DeleteObjectVersionResponse # | |
Defined in Aws.S3.Commands.DeleteObjectVersion | |
Transaction DeleteObjects DeleteObjectsResponse # | |
Defined in Aws.S3.Commands.DeleteObjects | |
Transaction GetBucket GetBucketResponse # | |
Defined in Aws.S3.Commands.GetBucket | |
Transaction GetBucketLocation GetBucketLocationResponse # | |
Defined in Aws.S3.Commands.GetBucketLocation | |
Transaction GetBucketObjectVersions GetBucketObjectVersionsResponse # | |
Defined in Aws.S3.Commands.GetBucketObjectVersions | |
Transaction GetBucketVersioning GetBucketVersioningResponse # | |
Defined in Aws.S3.Commands.GetBucketVersioning | |
Transaction GetObject GetObjectResponse # | |
Defined in Aws.S3.Commands.GetObject | |
Transaction GetService GetServiceResponse # | |
Defined in Aws.S3.Commands.GetService | |
Transaction HeadObject HeadObjectResponse # | |
Defined in Aws.S3.Commands.HeadObject | |
Transaction AbortMultipartUpload AbortMultipartUploadResponse # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction CompleteMultipartUpload CompleteMultipartUploadResponse # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction InitiateMultipartUpload InitiateMultipartUploadResponse # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction UploadPart UploadPartResponse # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction PutBucket PutBucketResponse # | |
Defined in Aws.S3.Commands.PutBucket | |
Transaction PutBucketVersioning PutBucketVersioningResponse # | |
Defined in Aws.S3.Commands.PutBucketVersioning | |
Transaction PutObject PutObjectResponse # | |
Defined in Aws.S3.Commands.PutObject | |
Transaction DeleteIdentity DeleteIdentityResponse # | |
Defined in Aws.Ses.Commands.DeleteIdentity | |
Transaction GetIdentityDkimAttributes GetIdentityDkimAttributesResponse # | |
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes | |
Transaction GetIdentityNotificationAttributes GetIdentityNotificationAttributesResponse # | |
Transaction GetIdentityVerificationAttributes GetIdentityVerificationAttributesResponse # | |
Transaction ListIdentities ListIdentitiesResponse # | |
Defined in Aws.Ses.Commands.ListIdentities | |
Transaction SendRawEmail SendRawEmailResponse # | |
Defined in Aws.Ses.Commands.SendRawEmail | |
Transaction SetIdentityDkimEnabled SetIdentityDkimEnabledResponse # | |
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled | |
Transaction SetIdentityFeedbackForwardingEnabled SetIdentityFeedbackForwardingEnabledResponse # | |
Transaction SetIdentityNotificationTopic SetIdentityNotificationTopicResponse # | |
Transaction VerifyDomainDkim VerifyDomainDkimResponse # | |
Defined in Aws.Ses.Commands.VerifyDomainDkim | |
Transaction VerifyDomainIdentity VerifyDomainIdentityResponse # | |
Defined in Aws.Ses.Commands.VerifyDomainIdentity | |
Transaction VerifyEmailIdentity VerifyEmailIdentityResponse # | |
Defined in Aws.Ses.Commands.VerifyEmailIdentity | |
Transaction BatchDeleteAttributes BatchDeleteAttributesResponse # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction BatchPutAttributes BatchPutAttributesResponse # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction DeleteAttributes DeleteAttributesResponse # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction GetAttributes GetAttributesResponse # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction PutAttributes PutAttributesResponse # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction CreateDomain CreateDomainResponse # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction DeleteDomain DeleteDomainResponse # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction DomainMetadata DomainMetadataResponse # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction ListDomains ListDomainsResponse # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction Select SelectResponse # | |
Defined in Aws.SimpleDb.Commands.Select | |
Transaction ChangeMessageVisibility ChangeMessageVisibilityResponse # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction DeleteMessage DeleteMessageResponse # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction ReceiveMessage ReceiveMessageResponse # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction SendMessage SendMessageResponse # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction AddPermission AddPermissionResponse # | |
Defined in Aws.Sqs.Commands.Permission | |
Transaction RemovePermission RemovePermissionResponse # | |
Defined in Aws.Sqs.Commands.Permission | |
Transaction CreateQueue CreateQueueResponse # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction DeleteQueue DeleteQueueResponse # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction ListQueues ListQueuesResponse # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction GetQueueAttributes GetQueueAttributesResponse # | |
Defined in Aws.Sqs.Commands.QueueAttributes | |
Transaction SetQueueAttributes SetQueueAttributesResponse # | |
Defined in Aws.Sqs.Commands.QueueAttributes |
class Transaction r a => IteratedTransaction r a | r -> a where #
A transaction that may need to be split over multiple requests, for example because of upstream response size limits.
Methods
nextIteratedRequest :: r -> a -> Maybe r #
Instances
IteratedTransaction Query QueryResponse # | |
Defined in Aws.DynamoDb.Commands.Query Methods nextIteratedRequest :: Query -> QueryResponse -> Maybe Query # | |
IteratedTransaction Scan ScanResponse # | |
Defined in Aws.DynamoDb.Commands.Scan Methods nextIteratedRequest :: Scan -> ScanResponse -> Maybe Scan # | |
IteratedTransaction ListAccessKeys ListAccessKeysResponse # | |
Defined in Aws.Iam.Commands.ListAccessKeys Methods nextIteratedRequest :: ListAccessKeys -> ListAccessKeysResponse -> Maybe ListAccessKeys # | |
IteratedTransaction ListGroupPolicies ListGroupPoliciesResponse # | |
Defined in Aws.Iam.Commands.ListGroupPolicies Methods nextIteratedRequest :: ListGroupPolicies -> ListGroupPoliciesResponse -> Maybe ListGroupPolicies # | |
IteratedTransaction ListGroups ListGroupsResponse # | |
Defined in Aws.Iam.Commands.ListGroups Methods nextIteratedRequest :: ListGroups -> ListGroupsResponse -> Maybe ListGroups # | |
IteratedTransaction ListMfaDevices ListMfaDevicesResponse # | |
Defined in Aws.Iam.Commands.ListMfaDevices Methods nextIteratedRequest :: ListMfaDevices -> ListMfaDevicesResponse -> Maybe ListMfaDevices # | |
IteratedTransaction ListUserPolicies ListUserPoliciesResponse # | |
Defined in Aws.Iam.Commands.ListUserPolicies Methods nextIteratedRequest :: ListUserPolicies -> ListUserPoliciesResponse -> Maybe ListUserPolicies # | |
IteratedTransaction ListUsers ListUsersResponse # | |
Defined in Aws.Iam.Commands.ListUsers Methods nextIteratedRequest :: ListUsers -> ListUsersResponse -> Maybe ListUsers # | |
IteratedTransaction GetBucket GetBucketResponse # | |
Defined in Aws.S3.Commands.GetBucket Methods nextIteratedRequest :: GetBucket -> GetBucketResponse -> Maybe GetBucket # | |
IteratedTransaction GetBucketObjectVersions GetBucketObjectVersionsResponse # | |
IteratedTransaction ListDomains ListDomainsResponse # | |
Defined in Aws.SimpleDb.Commands.Domain Methods nextIteratedRequest :: ListDomains -> ListDomainsResponse -> Maybe ListDomains # | |
IteratedTransaction Select SelectResponse # | |
Defined in Aws.SimpleDb.Commands.Select Methods nextIteratedRequest :: Select -> SelectResponse -> Maybe Select # |
Credentials
data Credentials #
AWS access credentials.
Constructors
Credentials | |
Fields
|
Instances
Show Credentials # | |
Defined in Aws.Core Methods showsPrec :: Int -> Credentials -> ShowS # show :: Credentials -> String # showList :: [Credentials] -> ShowS # |
Arguments
:: MonadIO io | |
=> ByteString | AWS Access Key ID |
-> ByteString | AWS Secret Access Key |
-> io Credentials |
credentialsDefaultFile :: MonadIO io => io (Maybe FilePath) #
The file where access credentials are loaded, when using loadCredentialsDefault
.
May return Nothing
if HOME
is unset.
Value: directory/.aws-keys
credentialsDefaultKey :: Text #
The key to be used in the access credential file that is loaded, when using loadCredentialsDefault
.
Value: default
loadCredentialsFromFile :: MonadIO io => FilePath -> Text -> io (Maybe Credentials) #
Load credentials from a (text) file given a key name.
The file consists of a sequence of lines, each in the following format:
keyName awsKeyID awsKeySecret
loadCredentialsFromEnv :: MonadIO io => io (Maybe Credentials) #
Load credentials from the environment variables AWS_ACCESS_KEY_ID
and AWS_ACCESS_KEY_SECRET
(or AWS_SECRET_ACCESS_KEY
), if possible.
loadCredentialsFromInstanceMetadata :: MonadIO io => io (Maybe Credentials) #
loadCredentialsFromEnvOrFile :: MonadIO io => FilePath -> Text -> io (Maybe Credentials) #
Load credentials from environment variables if possible, or alternatively from a file with a given key name.
See loadCredentialsFromEnv
and loadCredentialsFromFile
for details.
loadCredentialsFromEnvOrFileOrInstanceMetadata :: MonadIO io => FilePath -> Text -> io (Maybe Credentials) #
Load credentials from environment variables if possible, or alternatively from the instance metadata store, or alternatively from a file with a given key name.
See loadCredentialsFromEnv
, loadCredentialsFromFile
and loadCredentialsFromInstanceMetadata
for details.
loadCredentialsDefault :: MonadIO io => io (Maybe Credentials) #
Load credentials from environment variables if possible, or alternative from the default file with the default key name.
Default file: directory/.aws-keys
Default key name: default
See loadCredentialsFromEnv
and loadCredentialsFromFile
for details.
anonymousCredentials :: MonadIO io => io Credentials #
Make a dummy Credentials that can be used to access some AWS services anonymously.
Service configuration
class DefaultServiceConfiguration config where #
Default configuration for a specific service.
Minimal complete definition
Methods
defServiceConfig :: config #
Default service configuration.
debugServiceConfig :: config #
Default debugging-only configuration. (Normally using HTTP instead of HTTPS for easier debugging.)
Instances
DefaultServiceConfiguration (DdbConfiguration NormalQuery) # | |
Defined in Aws.DynamoDb.Core | |
DefaultServiceConfiguration (IamConfiguration NormalQuery) # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (IamConfiguration UriOnlyQuery) # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration NormalQuery) # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (S3Configuration UriOnlyQuery) # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration NormalQuery) # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SesConfiguration UriOnlyQuery) # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration NormalQuery) # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SdbConfiguration UriOnlyQuery) # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration NormalQuery) # | |
Defined in Aws.Sqs.Core | |
DefaultServiceConfiguration (SqsConfiguration UriOnlyQuery) # | |
Defined in Aws.Sqs.Core |
HTTP types
Protocols supported by AWS. Currently, all AWS services use the HTTP or HTTPS protocols.
defaultPort :: Protocol -> Int #
The default port to be used for a protocol if no specific port is specified.
Request method. Not all request methods are supported by all services.
Constructors
Head | HEAD method. Put all request parameters in a query string and HTTP headers. |
Get | GET method. Put all request parameters in a query string and HTTP headers. |
PostQuery | POST method. Put all request parameters in a query string and HTTP headers, but send the query string as a POST payload |
Post | POST method. Sends a service- and request-specific request body. |
Put | PUT method. |
Delete | DELETE method. |
httpMethod :: Method -> Method #
HTTP method associated with a request method.