Safe Haskell | None |
---|---|
Language | Haskell2010 |
Aws.Core
Synopsis
- class Loggable a where
- toLogText :: a -> Text
- data Response m a = Response {
- responseMetadata :: m
- responseResult :: Either SomeException a
- 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 {
- xmlErrorMessage :: String
- newtype HeaderException = HeaderException {
- headerErrorMessage :: String
- newtype FormException = FormException {
- formErrorMesage :: String
- newtype NoCredentialsException = NoCredentialsException {
- noCredentialsErrorMessage :: String
- 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
- = Timestamp
- | ExpiresAt {
- fromExpiresAt :: UTCTime
- | ExpiresIn {
- fromExpiresIn :: NominalDiffTime
- data AbsoluteTimeInfo
- = AbsoluteTimestamp {
- fromAbsoluteTimestamp :: UTCTime
- | AbsoluteExpires {
- fromAbsoluteExpires :: UTCTime
- = AbsoluteTimestamp {
- 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
class Loggable a where Source #
Types that can be logged (textually).
Instances
Loggable DdbResponse Source # | |
Defined in Aws.DynamoDb.Core Methods toLogText :: DdbResponse -> Text Source # | |
Loggable IamMetadata Source # | |
Defined in Aws.Iam.Core Methods toLogText :: IamMetadata -> Text Source # | |
Loggable S3Metadata Source # | |
Defined in Aws.S3.Core Methods toLogText :: S3Metadata -> Text Source # | |
Loggable SesMetadata Source # | |
Defined in Aws.Ses.Core Methods toLogText :: SesMetadata -> Text Source # | |
Loggable SdbMetadata Source # | |
Defined in Aws.SimpleDb.Core Methods toLogText :: SdbMetadata -> Text Source # | |
Loggable SqsMetadata Source # | |
Defined in Aws.Sqs.Core Methods toLogText :: SqsMetadata -> Text Source # |
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 Source #
Read a response result (if it's a success response, fail otherwise).
readResponseIO :: MonadIO io => Response m a -> io a Source #
Read a response result (if it's a success response, fail otherwise). In MonadIO.
tellMetadata :: m -> Response m () Source #
An empty response with some metadata.
tellMetadataRef :: Monoid m => IORef m -> m -> IO () Source #
Add metadata to an IORef
(using mappend
).
mapMetadata :: (m -> n) -> Response m a -> Response n a Source #
Apply a function to the metadata.
Response data consumers
type HTTPResponseConsumer a = Response (ConduitM () ByteString (ResourceT IO) ()) -> ResourceT IO a Source #
A full HTTP response parser. Takes HTTP status, response headers, and response body.
class Monoid (ResponseMetadata resp) => ResponseConsumer req resp where Source #
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 Source #
Metadata associated with a response. Typically there is one metadata type for each AWS service.
Methods
responseConsumer :: Request -> req -> IORef (ResponseMetadata resp) -> HTTPResponseConsumer resp Source #
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 Source #
Class for responses that are fully loaded into memory
Associated Types
type MemoryResponse resp Source #
Methods
loadToMemory :: resp -> ResourceT IO (MemoryResponse resp) Source #
Instances
AsMemoryResponse BatchGetItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.BatchGetItem Associated Types
Methods loadToMemory :: BatchGetItemResponse -> ResourceT IO (MemoryResponse BatchGetItemResponse) Source # | |||||
AsMemoryResponse BatchWriteItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.BatchWriteItem Associated Types
Methods loadToMemory :: BatchWriteItemResponse -> ResourceT IO (MemoryResponse BatchWriteItemResponse) Source # | |||||
AsMemoryResponse DeleteItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.DeleteItem Associated Types
Methods loadToMemory :: DeleteItemResponse -> ResourceT IO (MemoryResponse DeleteItemResponse) Source # | |||||
AsMemoryResponse GetItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.GetItem Associated Types
Methods loadToMemory :: GetItemResponse -> ResourceT IO (MemoryResponse GetItemResponse) Source # | |||||
AsMemoryResponse PutItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.PutItem Associated Types
Methods loadToMemory :: PutItemResponse -> ResourceT IO (MemoryResponse PutItemResponse) Source # | |||||
AsMemoryResponse QueryResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.Query Associated Types
Methods loadToMemory :: QueryResponse -> ResourceT IO (MemoryResponse QueryResponse) Source # | |||||
AsMemoryResponse ScanResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.Scan Associated Types
Methods loadToMemory :: ScanResponse -> ResourceT IO (MemoryResponse ScanResponse) Source # | |||||
AsMemoryResponse CreateTableResult Source # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: CreateTableResult -> ResourceT IO (MemoryResponse CreateTableResult) Source # | |||||
AsMemoryResponse DeleteTableResult Source # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: DeleteTableResult -> ResourceT IO (MemoryResponse DeleteTableResult) Source # | |||||
AsMemoryResponse DescribeTableResult Source # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: DescribeTableResult -> ResourceT IO (MemoryResponse DescribeTableResult) Source # | |||||
AsMemoryResponse ListTablesResult Source # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: ListTablesResult -> ResourceT IO (MemoryResponse ListTablesResult) Source # | |||||
AsMemoryResponse UpdateTableResult Source # | |||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods loadToMemory :: UpdateTableResult -> ResourceT IO (MemoryResponse UpdateTableResult) Source # | |||||
AsMemoryResponse UpdateItemResponse Source # | |||||
Defined in Aws.DynamoDb.Commands.UpdateItem Associated Types
Methods loadToMemory :: UpdateItemResponse -> ResourceT IO (MemoryResponse UpdateItemResponse) Source # | |||||
AsMemoryResponse AddUserToGroupResponse Source # | |||||
Defined in Aws.Iam.Commands.AddUserToGroup Associated Types
Methods loadToMemory :: AddUserToGroupResponse -> ResourceT IO (MemoryResponse AddUserToGroupResponse) Source # | |||||
AsMemoryResponse CreateAccessKeyResponse Source # | |||||
Defined in Aws.Iam.Commands.CreateAccessKey Associated Types
Methods loadToMemory :: CreateAccessKeyResponse -> ResourceT IO (MemoryResponse CreateAccessKeyResponse) Source # | |||||
AsMemoryResponse CreateGroupResponse Source # | |||||
Defined in Aws.Iam.Commands.CreateGroup Associated Types
Methods loadToMemory :: CreateGroupResponse -> ResourceT IO (MemoryResponse CreateGroupResponse) Source # | |||||
AsMemoryResponse CreateUserResponse Source # | |||||
Defined in Aws.Iam.Commands.CreateUser Associated Types
Methods loadToMemory :: CreateUserResponse -> ResourceT IO (MemoryResponse CreateUserResponse) Source # | |||||
AsMemoryResponse DeleteAccessKeyResponse Source # | |||||
Defined in Aws.Iam.Commands.DeleteAccessKey Associated Types
Methods loadToMemory :: DeleteAccessKeyResponse -> ResourceT IO (MemoryResponse DeleteAccessKeyResponse) Source # | |||||
AsMemoryResponse DeleteGroupResponse Source # | |||||
Defined in Aws.Iam.Commands.DeleteGroup Associated Types
Methods loadToMemory :: DeleteGroupResponse -> ResourceT IO (MemoryResponse DeleteGroupResponse) Source # | |||||
AsMemoryResponse DeleteGroupPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.DeleteGroupPolicy Associated Types
Methods loadToMemory :: DeleteGroupPolicyResponse -> ResourceT IO (MemoryResponse DeleteGroupPolicyResponse) Source # | |||||
AsMemoryResponse DeleteUserResponse Source # | |||||
Defined in Aws.Iam.Commands.DeleteUser Associated Types
Methods loadToMemory :: DeleteUserResponse -> ResourceT IO (MemoryResponse DeleteUserResponse) Source # | |||||
AsMemoryResponse DeleteUserPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.DeleteUserPolicy Associated Types
Methods loadToMemory :: DeleteUserPolicyResponse -> ResourceT IO (MemoryResponse DeleteUserPolicyResponse) Source # | |||||
AsMemoryResponse GetGroupPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.GetGroupPolicy Associated Types
Methods loadToMemory :: GetGroupPolicyResponse -> ResourceT IO (MemoryResponse GetGroupPolicyResponse) Source # | |||||
AsMemoryResponse GetUserResponse Source # | |||||
Defined in Aws.Iam.Commands.GetUser Associated Types
Methods loadToMemory :: GetUserResponse -> ResourceT IO (MemoryResponse GetUserResponse) Source # | |||||
AsMemoryResponse GetUserPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.GetUserPolicy Associated Types
Methods loadToMemory :: GetUserPolicyResponse -> ResourceT IO (MemoryResponse GetUserPolicyResponse) Source # | |||||
AsMemoryResponse ListAccessKeysResponse Source # | |||||
Defined in Aws.Iam.Commands.ListAccessKeys Associated Types
Methods loadToMemory :: ListAccessKeysResponse -> ResourceT IO (MemoryResponse ListAccessKeysResponse) Source # | |||||
AsMemoryResponse ListGroupPoliciesResponse Source # | |||||
Defined in Aws.Iam.Commands.ListGroupPolicies Associated Types
Methods loadToMemory :: ListGroupPoliciesResponse -> ResourceT IO (MemoryResponse ListGroupPoliciesResponse) Source # | |||||
AsMemoryResponse ListGroupsResponse Source # | |||||
Defined in Aws.Iam.Commands.ListGroups Associated Types
Methods loadToMemory :: ListGroupsResponse -> ResourceT IO (MemoryResponse ListGroupsResponse) Source # | |||||
AsMemoryResponse ListMfaDevicesResponse Source # | |||||
Defined in Aws.Iam.Commands.ListMfaDevices Associated Types
Methods loadToMemory :: ListMfaDevicesResponse -> ResourceT IO (MemoryResponse ListMfaDevicesResponse) Source # | |||||
AsMemoryResponse ListUserPoliciesResponse Source # | |||||
Defined in Aws.Iam.Commands.ListUserPolicies Associated Types
Methods loadToMemory :: ListUserPoliciesResponse -> ResourceT IO (MemoryResponse ListUserPoliciesResponse) Source # | |||||
AsMemoryResponse ListUsersResponse Source # | |||||
Defined in Aws.Iam.Commands.ListUsers Associated Types
Methods loadToMemory :: ListUsersResponse -> ResourceT IO (MemoryResponse ListUsersResponse) Source # | |||||
AsMemoryResponse PutGroupPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.PutGroupPolicy Associated Types
Methods loadToMemory :: PutGroupPolicyResponse -> ResourceT IO (MemoryResponse PutGroupPolicyResponse) Source # | |||||
AsMemoryResponse PutUserPolicyResponse Source # | |||||
Defined in Aws.Iam.Commands.PutUserPolicy Associated Types
Methods loadToMemory :: PutUserPolicyResponse -> ResourceT IO (MemoryResponse PutUserPolicyResponse) Source # | |||||
AsMemoryResponse RemoveUserFromGroupResponse Source # | |||||
Defined in Aws.Iam.Commands.RemoveUserFromGroup Associated Types
Methods loadToMemory :: RemoveUserFromGroupResponse -> ResourceT IO (MemoryResponse RemoveUserFromGroupResponse) Source # | |||||
AsMemoryResponse UpdateAccessKeyResponse Source # | |||||
Defined in Aws.Iam.Commands.UpdateAccessKey Associated Types
Methods loadToMemory :: UpdateAccessKeyResponse -> ResourceT IO (MemoryResponse UpdateAccessKeyResponse) Source # | |||||
AsMemoryResponse UpdateGroupResponse Source # | |||||
Defined in Aws.Iam.Commands.UpdateGroup Associated Types
Methods loadToMemory :: UpdateGroupResponse -> ResourceT IO (MemoryResponse UpdateGroupResponse) Source # | |||||
AsMemoryResponse UpdateUserResponse Source # | |||||
Defined in Aws.Iam.Commands.UpdateUser Associated Types
Methods loadToMemory :: UpdateUserResponse -> ResourceT IO (MemoryResponse UpdateUserResponse) Source # | |||||
AsMemoryResponse CopyObjectResponse Source # | |||||
Defined in Aws.S3.Commands.CopyObject Associated Types
Methods loadToMemory :: CopyObjectResponse -> ResourceT IO (MemoryResponse CopyObjectResponse) Source # | |||||
AsMemoryResponse DeleteBucketResponse Source # | |||||
Defined in Aws.S3.Commands.DeleteBucket Associated Types
Methods loadToMemory :: DeleteBucketResponse -> ResourceT IO (MemoryResponse DeleteBucketResponse) Source # | |||||
AsMemoryResponse DeleteObjectResponse Source # | |||||
Defined in Aws.S3.Commands.DeleteObject Associated Types
Methods loadToMemory :: DeleteObjectResponse -> ResourceT IO (MemoryResponse DeleteObjectResponse) Source # | |||||
AsMemoryResponse DeleteObjectVersionResponse Source # | |||||
Defined in Aws.S3.Commands.DeleteObjectVersion Associated Types
Methods loadToMemory :: DeleteObjectVersionResponse -> ResourceT IO (MemoryResponse DeleteObjectVersionResponse) Source # | |||||
AsMemoryResponse DeleteObjectsResponse Source # | |||||
Defined in Aws.S3.Commands.DeleteObjects Associated Types
Methods loadToMemory :: DeleteObjectsResponse -> ResourceT IO (MemoryResponse DeleteObjectsResponse) Source # | |||||
AsMemoryResponse GetBucketResponse Source # | |||||
Defined in Aws.S3.Commands.GetBucket Associated Types
Methods loadToMemory :: GetBucketResponse -> ResourceT IO (MemoryResponse GetBucketResponse) Source # | |||||
AsMemoryResponse GetBucketLocationResponse Source # | |||||
Defined in Aws.S3.Commands.GetBucketLocation Associated Types
Methods loadToMemory :: GetBucketLocationResponse -> ResourceT IO (MemoryResponse GetBucketLocationResponse) Source # | |||||
AsMemoryResponse GetBucketObjectVersionsResponse Source # | |||||
Defined in Aws.S3.Commands.GetBucketObjectVersions Associated Types
Methods loadToMemory :: GetBucketObjectVersionsResponse -> ResourceT IO (MemoryResponse GetBucketObjectVersionsResponse) Source # | |||||
AsMemoryResponse GetBucketVersioningResponse Source # | |||||
Defined in Aws.S3.Commands.GetBucketVersioning Associated Types
Methods loadToMemory :: GetBucketVersioningResponse -> ResourceT IO (MemoryResponse GetBucketVersioningResponse) Source # | |||||
AsMemoryResponse GetObjectResponse Source # | |||||
Defined in Aws.S3.Commands.GetObject Associated Types
Methods loadToMemory :: GetObjectResponse -> ResourceT IO (MemoryResponse GetObjectResponse) Source # | |||||
AsMemoryResponse GetServiceResponse Source # | |||||
Defined in Aws.S3.Commands.GetService Associated Types
Methods loadToMemory :: GetServiceResponse -> ResourceT IO (MemoryResponse GetServiceResponse) Source # | |||||
AsMemoryResponse HeadObjectResponse Source # | |||||
Defined in Aws.S3.Commands.HeadObject Associated Types
Methods loadToMemory :: HeadObjectResponse -> ResourceT IO (MemoryResponse HeadObjectResponse) Source # | |||||
AsMemoryResponse AbortMultipartUploadResponse Source # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods loadToMemory :: AbortMultipartUploadResponse -> ResourceT IO (MemoryResponse AbortMultipartUploadResponse) Source # | |||||
AsMemoryResponse CompleteMultipartUploadResponse Source # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods loadToMemory :: CompleteMultipartUploadResponse -> ResourceT IO (MemoryResponse CompleteMultipartUploadResponse) Source # | |||||
AsMemoryResponse InitiateMultipartUploadResponse Source # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods loadToMemory :: InitiateMultipartUploadResponse -> ResourceT IO (MemoryResponse InitiateMultipartUploadResponse) Source # | |||||
AsMemoryResponse UploadPartResponse Source # | |||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods loadToMemory :: UploadPartResponse -> ResourceT IO (MemoryResponse UploadPartResponse) Source # | |||||
AsMemoryResponse PutBucketResponse Source # | |||||
Defined in Aws.S3.Commands.PutBucket Associated Types
Methods loadToMemory :: PutBucketResponse -> ResourceT IO (MemoryResponse PutBucketResponse) Source # | |||||
AsMemoryResponse PutBucketVersioningResponse Source # | |||||
Defined in Aws.S3.Commands.PutBucketVersioning Associated Types
Methods loadToMemory :: PutBucketVersioningResponse -> ResourceT IO (MemoryResponse PutBucketVersioningResponse) Source # | |||||
AsMemoryResponse PutObjectResponse Source # | |||||
Defined in Aws.S3.Commands.PutObject Associated Types
Methods loadToMemory :: PutObjectResponse -> ResourceT IO (MemoryResponse PutObjectResponse) Source # | |||||
AsMemoryResponse DeleteIdentityResponse Source # | |||||
Defined in Aws.Ses.Commands.DeleteIdentity Associated Types
Methods loadToMemory :: DeleteIdentityResponse -> ResourceT IO (MemoryResponse DeleteIdentityResponse) Source # | |||||
AsMemoryResponse GetIdentityDkimAttributesResponse Source # | |||||
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes Associated Types
Methods loadToMemory :: GetIdentityDkimAttributesResponse -> ResourceT IO (MemoryResponse GetIdentityDkimAttributesResponse) Source # | |||||
AsMemoryResponse GetIdentityNotificationAttributesResponse Source # | |||||
Defined in Aws.Ses.Commands.GetIdentityNotificationAttributes Associated Types
Methods loadToMemory :: GetIdentityNotificationAttributesResponse -> ResourceT IO (MemoryResponse GetIdentityNotificationAttributesResponse) Source # | |||||
AsMemoryResponse GetIdentityVerificationAttributesResponse Source # | |||||
Defined in Aws.Ses.Commands.GetIdentityVerificationAttributes Associated Types
Methods loadToMemory :: GetIdentityVerificationAttributesResponse -> ResourceT IO (MemoryResponse GetIdentityVerificationAttributesResponse) Source # | |||||
AsMemoryResponse ListIdentitiesResponse Source # | |||||
Defined in Aws.Ses.Commands.ListIdentities Associated Types
Methods loadToMemory :: ListIdentitiesResponse -> ResourceT IO (MemoryResponse ListIdentitiesResponse) Source # | |||||
AsMemoryResponse SendRawEmailResponse Source # | |||||
Defined in Aws.Ses.Commands.SendRawEmail Associated Types
Methods loadToMemory :: SendRawEmailResponse -> ResourceT IO (MemoryResponse SendRawEmailResponse) Source # | |||||
AsMemoryResponse SetIdentityDkimEnabledResponse Source # | |||||
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled Associated Types
Methods loadToMemory :: SetIdentityDkimEnabledResponse -> ResourceT IO (MemoryResponse SetIdentityDkimEnabledResponse) Source # | |||||
AsMemoryResponse SetIdentityFeedbackForwardingEnabledResponse Source # | |||||
Defined in Aws.Ses.Commands.SetIdentityFeedbackForwardingEnabled Associated Types
Methods loadToMemory :: SetIdentityFeedbackForwardingEnabledResponse -> ResourceT IO (MemoryResponse SetIdentityFeedbackForwardingEnabledResponse) Source # | |||||
AsMemoryResponse SetIdentityNotificationTopicResponse Source # | |||||
Defined in Aws.Ses.Commands.SetIdentityNotificationTopic Associated Types
Methods loadToMemory :: SetIdentityNotificationTopicResponse -> ResourceT IO (MemoryResponse SetIdentityNotificationTopicResponse) Source # | |||||
AsMemoryResponse VerifyDomainDkimResponse Source # | |||||
Defined in Aws.Ses.Commands.VerifyDomainDkim Associated Types
Methods loadToMemory :: VerifyDomainDkimResponse -> ResourceT IO (MemoryResponse VerifyDomainDkimResponse) Source # | |||||
AsMemoryResponse VerifyDomainIdentityResponse Source # | |||||
Defined in Aws.Ses.Commands.VerifyDomainIdentity Associated Types
Methods loadToMemory :: VerifyDomainIdentityResponse -> ResourceT IO (MemoryResponse VerifyDomainIdentityResponse) Source # | |||||
AsMemoryResponse VerifyEmailIdentityResponse Source # | |||||
Defined in Aws.Ses.Commands.VerifyEmailIdentity Associated Types
Methods loadToMemory :: VerifyEmailIdentityResponse -> ResourceT IO (MemoryResponse VerifyEmailIdentityResponse) Source # | |||||
AsMemoryResponse BatchDeleteAttributesResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: BatchDeleteAttributesResponse -> ResourceT IO (MemoryResponse BatchDeleteAttributesResponse) Source # | |||||
AsMemoryResponse BatchPutAttributesResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: BatchPutAttributesResponse -> ResourceT IO (MemoryResponse BatchPutAttributesResponse) Source # | |||||
AsMemoryResponse DeleteAttributesResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: DeleteAttributesResponse -> ResourceT IO (MemoryResponse DeleteAttributesResponse) Source # | |||||
AsMemoryResponse GetAttributesResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: GetAttributesResponse -> ResourceT IO (MemoryResponse GetAttributesResponse) Source # | |||||
AsMemoryResponse PutAttributesResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods loadToMemory :: PutAttributesResponse -> ResourceT IO (MemoryResponse PutAttributesResponse) Source # | |||||
AsMemoryResponse CreateDomainResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: CreateDomainResponse -> ResourceT IO (MemoryResponse CreateDomainResponse) Source # | |||||
AsMemoryResponse DeleteDomainResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: DeleteDomainResponse -> ResourceT IO (MemoryResponse DeleteDomainResponse) Source # | |||||
AsMemoryResponse DomainMetadataResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: DomainMetadataResponse -> ResourceT IO (MemoryResponse DomainMetadataResponse) Source # | |||||
AsMemoryResponse ListDomainsResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods loadToMemory :: ListDomainsResponse -> ResourceT IO (MemoryResponse ListDomainsResponse) Source # | |||||
AsMemoryResponse SelectResponse Source # | |||||
Defined in Aws.SimpleDb.Commands.Select Associated Types
Methods loadToMemory :: SelectResponse -> ResourceT IO (MemoryResponse SelectResponse) Source # | |||||
AsMemoryResponse ChangeMessageVisibilityResponse Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: ChangeMessageVisibilityResponse -> ResourceT IO (MemoryResponse ChangeMessageVisibilityResponse) Source # | |||||
AsMemoryResponse DeleteMessageResponse Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: DeleteMessageResponse -> ResourceT IO (MemoryResponse DeleteMessageResponse) Source # | |||||
AsMemoryResponse ReceiveMessageResponse Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: ReceiveMessageResponse -> ResourceT IO (MemoryResponse ReceiveMessageResponse) Source # | |||||
AsMemoryResponse SendMessageResponse Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods loadToMemory :: SendMessageResponse -> ResourceT IO (MemoryResponse SendMessageResponse) Source # | |||||
AsMemoryResponse AddPermissionResponse Source # | |||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods loadToMemory :: AddPermissionResponse -> ResourceT IO (MemoryResponse AddPermissionResponse) Source # | |||||
AsMemoryResponse RemovePermissionResponse Source # | |||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods loadToMemory :: RemovePermissionResponse -> ResourceT IO (MemoryResponse RemovePermissionResponse) Source # | |||||
AsMemoryResponse CreateQueueResponse Source # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: CreateQueueResponse -> ResourceT IO (MemoryResponse CreateQueueResponse) Source # | |||||
AsMemoryResponse DeleteQueueResponse Source # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: DeleteQueueResponse -> ResourceT IO (MemoryResponse DeleteQueueResponse) Source # | |||||
AsMemoryResponse ListQueuesResponse Source # | |||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods loadToMemory :: ListQueuesResponse -> ResourceT IO (MemoryResponse ListQueuesResponse) Source # | |||||
AsMemoryResponse GetQueueAttributesResponse Source # | |||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods loadToMemory :: GetQueueAttributesResponse -> ResourceT IO (MemoryResponse GetQueueAttributesResponse) Source # | |||||
AsMemoryResponse SetQueueAttributesResponse Source # | |||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods loadToMemory :: SetQueueAttributesResponse -> ResourceT IO (MemoryResponse SetQueueAttributesResponse) Source # |
List response
class ListResponse resp item | resp -> item where Source #
Responses that have one main list in them, and perhaps some decoration.
Methods
listResponse :: resp -> [item] Source #
Instances
ListResponse QueryResponse Item Source # | |
Defined in Aws.DynamoDb.Commands.Query Methods listResponse :: QueryResponse -> [Item] Source # | |
ListResponse ScanResponse Item Source # | |
Defined in Aws.DynamoDb.Commands.Scan Methods listResponse :: ScanResponse -> [Item] Source # | |
ListResponse GetBucketResponse ObjectInfo Source # | |
Defined in Aws.S3.Commands.GetBucket Methods listResponse :: GetBucketResponse -> [ObjectInfo] Source # | |
ListResponse GetBucketObjectVersionsResponse ObjectVersionInfo Source # | |
Defined in Aws.S3.Commands.GetBucketObjectVersions Methods listResponse :: GetBucketObjectVersionsResponse -> [ObjectVersionInfo] Source # | |
ListResponse ListDomainsResponse Text Source # | |
Defined in Aws.SimpleDb.Commands.Domain Methods listResponse :: ListDomainsResponse -> [Text] Source # | |
ListResponse SelectResponse (Item [Attribute Text]) Source # | |
Defined in Aws.SimpleDb.Commands.Select Methods listResponse :: SelectResponse -> [Item [Attribute Text]] Source # |
Exception types
newtype XmlException Source #
An error that occurred during XML parsing / validation.
Constructors
XmlException | |
Fields
|
Instances
Exception XmlException Source # | |
Defined in Aws.Core Methods toException :: XmlException -> SomeException fromException :: SomeException -> Maybe XmlException displayException :: XmlException -> String backtraceDesired :: XmlException -> Bool | |
Show XmlException Source # | |
Defined in Aws.Core Methods showsPrec :: Int -> XmlException -> ShowS show :: XmlException -> String showList :: [XmlException] -> ShowS |
newtype HeaderException Source #
An error that occurred during header parsing / validation.
Constructors
HeaderException | |
Fields
|
Instances
Exception HeaderException Source # | |
Defined in Aws.Core Methods toException :: HeaderException -> SomeException fromException :: SomeException -> Maybe HeaderException displayException :: HeaderException -> String backtraceDesired :: HeaderException -> Bool | |
Show HeaderException Source # | |
Defined in Aws.Core Methods showsPrec :: Int -> HeaderException -> ShowS show :: HeaderException -> String showList :: [HeaderException] -> ShowS |
newtype FormException Source #
An error that occurred during form parsing / validation.
Constructors
FormException | |
Fields
|
Instances
Exception FormException Source # | |
Defined in Aws.Core Methods toException :: FormException -> SomeException fromException :: SomeException -> Maybe FormException displayException :: FormException -> String backtraceDesired :: FormException -> Bool | |
Show FormException Source # | |
Defined in Aws.Core Methods showsPrec :: Int -> FormException -> ShowS show :: FormException -> String showList :: [FormException] -> ShowS |
newtype NoCredentialsException Source #
No credentials were found and an invariant was violated.
Constructors
NoCredentialsException | |
Fields
|
Instances
Exception NoCredentialsException Source # | |
Defined in Aws.Core Methods toException :: NoCredentialsException -> SomeException fromException :: SomeException -> Maybe NoCredentialsException displayException :: NoCredentialsException -> String backtraceDesired :: NoCredentialsException -> Bool | |
Show NoCredentialsException Source # | |
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 Source #
A helper to throw an StatusCodeException
.
Response deconstruction helpers
XML
elContent :: Text -> Cursor -> [Text] Source #
A specific element (case-insensitive, ignoring namespace - sadly necessary), extracting only the textual contents.
force :: MonadThrow m => String -> [a] -> m a Source #
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 Source #
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 Source #
Read a boolean from a Text
, throwing an XmlException
on failure.
textReadInt :: (MonadThrow m, Num a) => Text -> m a Source #
Read an integer from a Text
, throwing an XmlException
on failure.
readInt :: (MonadThrow m, Num a) => String -> m a Source #
Read an integer from a String
, throwing an XmlException
on failure.
xmlCursorConsumer :: Monoid m => (Cursor -> Response m a) -> IORef m -> HTTPResponseConsumer a Source #
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 Source #
A pre-signed medium-level request object.
Constructors
SignedQuery | |
Fields
|
data NormalQuery Source #
Tag type for normal queries.
Instances
DefaultServiceConfiguration (DdbConfiguration NormalQuery) Source # | |
Defined in Aws.DynamoDb.Core | |
DefaultServiceConfiguration (IamConfiguration NormalQuery) Source # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration NormalQuery) Source # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration NormalQuery) Source # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration NormalQuery) Source # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration NormalQuery) Source # | |
Defined in Aws.Sqs.Core | |
Default (DdbConfiguration NormalQuery) | |
Defined in Aws.DynamoDb.Core Methods |
data UriOnlyQuery Source #
Tag type for URI-only queries.
Instances
DefaultServiceConfiguration (IamConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration UriOnlyQuery) Source # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration UriOnlyQuery) Source # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Sqs.Core |
queryToHttpRequest :: SignedQuery -> IO Request Source #
Create a HTTP request from a SignedQuery
object.
queryToUri :: SignedQuery -> ByteString Source #
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).
Constructors
Timestamp | Use a simple timestamp to let AWS check the request validity. |
ExpiresAt | Let requests expire at a specific fixed time. |
Fields
| |
ExpiresIn | Let requests expire a specific number of seconds after they were generated. |
Fields
|
data AbsoluteTimeInfo Source #
Like TimeInfo
, but with all relative times replaced by absolute UTC.
Constructors
AbsoluteTimestamp | |
Fields
| |
AbsoluteExpires | |
Fields
|
Instances
Show AbsoluteTimeInfo Source # | |
Defined in Aws.Core Methods showsPrec :: Int -> AbsoluteTimeInfo -> ShowS show :: AbsoluteTimeInfo -> String showList :: [AbsoluteTimeInfo] -> ShowS |
fromAbsoluteTimeInfo :: AbsoluteTimeInfo -> UTCTime Source #
Just the UTC time value.
makeAbsoluteTimeInfo :: TimeInfo -> UTCTime -> AbsoluteTimeInfo Source #
Convert TimeInfo
to AbsoluteTimeInfo
given the current UTC time.
Signature
data SignatureData Source #
Data that is always required for signing requests.
Constructors
SignatureData | |
Fields
|
signatureData :: TimeInfo -> Credentials -> IO SignatureData Source #
Create signature data using the current system time.
class SignQuery request where Source #
A "signable" request object. Assembles together the Query, and signs it in one go.
Associated Types
type ServiceConfiguration request :: Type -> Type Source #
Additional information, like API endpoints and service-specific preferences.
Methods
signQuery :: request -> ServiceConfiguration request queryType -> SignatureData -> SignedQuery Source #
Create a SignedQuery
from a request, additional Info
, and SignatureData
.
Instances
SignQuery BatchGetItem Source # | |||||
Defined in Aws.DynamoDb.Commands.BatchGetItem Associated Types
Methods signQuery :: BatchGetItem -> ServiceConfiguration BatchGetItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery BatchWriteItem Source # | |||||
Defined in Aws.DynamoDb.Commands.BatchWriteItem Associated Types
Methods signQuery :: BatchWriteItem -> ServiceConfiguration BatchWriteItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteItem Source # | |||||
Defined in Aws.DynamoDb.Commands.DeleteItem Associated Types
Methods signQuery :: DeleteItem -> ServiceConfiguration DeleteItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetItem Source # | |||||
Defined in Aws.DynamoDb.Commands.GetItem Associated Types
Methods signQuery :: GetItem -> ServiceConfiguration GetItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutItem Source # | |||||
Defined in Aws.DynamoDb.Commands.PutItem Associated Types
Methods signQuery :: PutItem -> ServiceConfiguration PutItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery Query Source # | |||||
Defined in Aws.DynamoDb.Commands.Query Associated Types
Methods signQuery :: Query -> ServiceConfiguration Query queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery Scan Source # | |||||
Defined in Aws.DynamoDb.Commands.Scan Associated Types
Methods signQuery :: Scan -> ServiceConfiguration Scan queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateTable Source # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: CreateTable -> ServiceConfiguration CreateTable queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteTable Source # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: DeleteTable -> ServiceConfiguration DeleteTable queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DescribeTable Source # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: DescribeTable -> ServiceConfiguration DescribeTable queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListTables Source # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: ListTables -> ServiceConfiguration ListTables queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UpdateTable Source # | ServiceConfiguration: | ||||
Defined in Aws.DynamoDb.Commands.Table Associated Types
Methods signQuery :: UpdateTable -> ServiceConfiguration UpdateTable queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UpdateItem Source # | |||||
Defined in Aws.DynamoDb.Commands.UpdateItem Associated Types
Methods signQuery :: UpdateItem -> ServiceConfiguration UpdateItem queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery AddUserToGroup Source # | |||||
Defined in Aws.Iam.Commands.AddUserToGroup Associated Types
Methods signQuery :: AddUserToGroup -> ServiceConfiguration AddUserToGroup queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateAccessKey Source # | |||||
Defined in Aws.Iam.Commands.CreateAccessKey Associated Types
Methods signQuery :: CreateAccessKey -> ServiceConfiguration CreateAccessKey queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateGroup Source # | |||||
Defined in Aws.Iam.Commands.CreateGroup Associated Types
Methods signQuery :: CreateGroup -> ServiceConfiguration CreateGroup queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateUser Source # | |||||
Defined in Aws.Iam.Commands.CreateUser Associated Types
Methods signQuery :: CreateUser -> ServiceConfiguration CreateUser queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteAccessKey Source # | |||||
Defined in Aws.Iam.Commands.DeleteAccessKey Associated Types
Methods signQuery :: DeleteAccessKey -> ServiceConfiguration DeleteAccessKey queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteGroup Source # | |||||
Defined in Aws.Iam.Commands.DeleteGroup Associated Types
Methods signQuery :: DeleteGroup -> ServiceConfiguration DeleteGroup queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteGroupPolicy Source # | |||||
Defined in Aws.Iam.Commands.DeleteGroupPolicy Associated Types
Methods signQuery :: DeleteGroupPolicy -> ServiceConfiguration DeleteGroupPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteUser Source # | |||||
Defined in Aws.Iam.Commands.DeleteUser Associated Types
Methods signQuery :: DeleteUser -> ServiceConfiguration DeleteUser queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteUserPolicy Source # | |||||
Defined in Aws.Iam.Commands.DeleteUserPolicy Associated Types
Methods signQuery :: DeleteUserPolicy -> ServiceConfiguration DeleteUserPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetGroupPolicy Source # | |||||
Defined in Aws.Iam.Commands.GetGroupPolicy Associated Types
Methods signQuery :: GetGroupPolicy -> ServiceConfiguration GetGroupPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetUser Source # | |||||
Defined in Aws.Iam.Commands.GetUser Associated Types
Methods signQuery :: GetUser -> ServiceConfiguration GetUser queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetUserPolicy Source # | |||||
Defined in Aws.Iam.Commands.GetUserPolicy Associated Types
Methods signQuery :: GetUserPolicy -> ServiceConfiguration GetUserPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListAccessKeys Source # | |||||
Defined in Aws.Iam.Commands.ListAccessKeys Associated Types
Methods signQuery :: ListAccessKeys -> ServiceConfiguration ListAccessKeys queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListGroupPolicies Source # | |||||
Defined in Aws.Iam.Commands.ListGroupPolicies Associated Types
Methods signQuery :: ListGroupPolicies -> ServiceConfiguration ListGroupPolicies queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListGroups Source # | |||||
Defined in Aws.Iam.Commands.ListGroups Associated Types
Methods signQuery :: ListGroups -> ServiceConfiguration ListGroups queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListMfaDevices Source # | |||||
Defined in Aws.Iam.Commands.ListMfaDevices Associated Types
Methods signQuery :: ListMfaDevices -> ServiceConfiguration ListMfaDevices queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListUserPolicies Source # | |||||
Defined in Aws.Iam.Commands.ListUserPolicies Associated Types
Methods signQuery :: ListUserPolicies -> ServiceConfiguration ListUserPolicies queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListUsers Source # | |||||
Defined in Aws.Iam.Commands.ListUsers Associated Types
Methods signQuery :: ListUsers -> ServiceConfiguration ListUsers queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutGroupPolicy Source # | |||||
Defined in Aws.Iam.Commands.PutGroupPolicy Associated Types
Methods signQuery :: PutGroupPolicy -> ServiceConfiguration PutGroupPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutUserPolicy Source # | |||||
Defined in Aws.Iam.Commands.PutUserPolicy Associated Types
Methods signQuery :: PutUserPolicy -> ServiceConfiguration PutUserPolicy queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery RemoveUserFromGroup Source # | |||||
Defined in Aws.Iam.Commands.RemoveUserFromGroup Associated Types
Methods signQuery :: RemoveUserFromGroup -> ServiceConfiguration RemoveUserFromGroup queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UpdateAccessKey Source # | |||||
Defined in Aws.Iam.Commands.UpdateAccessKey Associated Types
Methods signQuery :: UpdateAccessKey -> ServiceConfiguration UpdateAccessKey queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UpdateGroup Source # | |||||
Defined in Aws.Iam.Commands.UpdateGroup Associated Types
Methods signQuery :: UpdateGroup -> ServiceConfiguration UpdateGroup queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UpdateUser Source # | |||||
Defined in Aws.Iam.Commands.UpdateUser Associated Types
Methods signQuery :: UpdateUser -> ServiceConfiguration UpdateUser queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CopyObject Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.CopyObject Associated Types
Methods signQuery :: CopyObject -> ServiceConfiguration CopyObject queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteBucket Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteBucket Associated Types
Methods signQuery :: DeleteBucket -> ServiceConfiguration DeleteBucket queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteObject Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObject Associated Types
Methods signQuery :: DeleteObject -> ServiceConfiguration DeleteObject queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteObjectVersion Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObjectVersion Associated Types
Methods signQuery :: DeleteObjectVersion -> ServiceConfiguration DeleteObjectVersion queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteObjects Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.DeleteObjects Associated Types
Methods signQuery :: DeleteObjects -> ServiceConfiguration DeleteObjects queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetBucket Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucket Associated Types
Methods signQuery :: GetBucket -> ServiceConfiguration GetBucket queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetBucketLocation Source # | |||||
Defined in Aws.S3.Commands.GetBucketLocation Associated Types
Methods signQuery :: GetBucketLocation -> ServiceConfiguration GetBucketLocation queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetBucketObjectVersions Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucketObjectVersions Associated Types
Methods signQuery :: GetBucketObjectVersions -> ServiceConfiguration GetBucketObjectVersions queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetBucketVersioning Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetBucketVersioning Associated Types
Methods signQuery :: GetBucketVersioning -> ServiceConfiguration GetBucketVersioning queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetObject Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetObject Associated Types
Methods signQuery :: GetObject -> ServiceConfiguration GetObject queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetService Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.GetService Associated Types
Methods signQuery :: GetService -> ServiceConfiguration GetService queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery HeadObject Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.HeadObject Associated Types
Methods signQuery :: HeadObject -> ServiceConfiguration HeadObject queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery AbortMultipartUpload Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: AbortMultipartUpload -> ServiceConfiguration AbortMultipartUpload queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CompleteMultipartUpload Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: CompleteMultipartUpload -> ServiceConfiguration CompleteMultipartUpload queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery InitiateMultipartUpload Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: InitiateMultipartUpload -> ServiceConfiguration InitiateMultipartUpload queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery UploadPart Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.Multipart Associated Types
Methods signQuery :: UploadPart -> ServiceConfiguration UploadPart queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutBucket Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutBucket Associated Types
Methods signQuery :: PutBucket -> ServiceConfiguration PutBucket queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutBucketVersioning Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutBucketVersioning Associated Types
Methods signQuery :: PutBucketVersioning -> ServiceConfiguration PutBucketVersioning queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutObject Source # | ServiceConfiguration: | ||||
Defined in Aws.S3.Commands.PutObject Associated Types
Methods signQuery :: PutObject -> ServiceConfiguration PutObject queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteIdentity Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.DeleteIdentity Associated Types
Methods signQuery :: DeleteIdentity -> ServiceConfiguration DeleteIdentity queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetIdentityDkimAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes Associated Types
Methods signQuery :: GetIdentityDkimAttributes -> ServiceConfiguration GetIdentityDkimAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetIdentityNotificationAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityNotificationAttributes Associated Types
Methods signQuery :: GetIdentityNotificationAttributes -> ServiceConfiguration GetIdentityNotificationAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetIdentityVerificationAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.GetIdentityVerificationAttributes Associated Types
Methods signQuery :: GetIdentityVerificationAttributes -> ServiceConfiguration GetIdentityVerificationAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListIdentities Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.ListIdentities Associated Types
Methods signQuery :: ListIdentities -> ServiceConfiguration ListIdentities queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SendRawEmail Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SendRawEmail Associated Types
Methods signQuery :: SendRawEmail -> ServiceConfiguration SendRawEmail queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SetIdentityDkimEnabled Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled Associated Types
Methods signQuery :: SetIdentityDkimEnabled -> ServiceConfiguration SetIdentityDkimEnabled queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SetIdentityFeedbackForwardingEnabled Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityFeedbackForwardingEnabled Associated Types
Methods signQuery :: SetIdentityFeedbackForwardingEnabled -> ServiceConfiguration SetIdentityFeedbackForwardingEnabled queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SetIdentityNotificationTopic Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.SetIdentityNotificationTopic Associated Types
Methods signQuery :: SetIdentityNotificationTopic -> ServiceConfiguration SetIdentityNotificationTopic queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery VerifyDomainDkim Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyDomainDkim Associated Types
Methods signQuery :: VerifyDomainDkim -> ServiceConfiguration VerifyDomainDkim queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery VerifyDomainIdentity Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyDomainIdentity Associated Types
Methods signQuery :: VerifyDomainIdentity -> ServiceConfiguration VerifyDomainIdentity queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery VerifyEmailIdentity Source # | ServiceConfiguration: | ||||
Defined in Aws.Ses.Commands.VerifyEmailIdentity Associated Types
Methods signQuery :: VerifyEmailIdentity -> ServiceConfiguration VerifyEmailIdentity queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery BatchDeleteAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: BatchDeleteAttributes -> ServiceConfiguration BatchDeleteAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery BatchPutAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: BatchPutAttributes -> ServiceConfiguration BatchPutAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: DeleteAttributes -> ServiceConfiguration DeleteAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: GetAttributes -> ServiceConfiguration GetAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery PutAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Attributes Associated Types
Methods signQuery :: PutAttributes -> ServiceConfiguration PutAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateDomain Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: CreateDomain -> ServiceConfiguration CreateDomain queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteDomain Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: DeleteDomain -> ServiceConfiguration DeleteDomain queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DomainMetadata Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: DomainMetadata -> ServiceConfiguration DomainMetadata queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListDomains Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Domain Associated Types
Methods signQuery :: ListDomains -> ServiceConfiguration ListDomains queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery Select Source # | ServiceConfiguration: | ||||
Defined in Aws.SimpleDb.Commands.Select Associated Types
Methods signQuery :: Select -> ServiceConfiguration Select queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ChangeMessageVisibility Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: ChangeMessageVisibility -> ServiceConfiguration ChangeMessageVisibility queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteMessage Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: DeleteMessage -> ServiceConfiguration DeleteMessage queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ReceiveMessage Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: ReceiveMessage -> ServiceConfiguration ReceiveMessage queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SendMessage Source # | |||||
Defined in Aws.Sqs.Commands.Message Associated Types
Methods signQuery :: SendMessage -> ServiceConfiguration SendMessage queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery AddPermission Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods signQuery :: AddPermission -> ServiceConfiguration AddPermission queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery RemovePermission Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Permission Associated Types
Methods signQuery :: RemovePermission -> ServiceConfiguration RemovePermission queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery CreateQueue Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: CreateQueue -> ServiceConfiguration CreateQueue queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery DeleteQueue Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: DeleteQueue -> ServiceConfiguration DeleteQueue queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery ListQueues Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.Queue Associated Types
Methods signQuery :: ListQueues -> ServiceConfiguration ListQueues queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery GetQueueAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods signQuery :: GetQueueAttributes -> ServiceConfiguration GetQueueAttributes queryType -> SignatureData -> SignedQuery Source # | |||||
SignQuery SetQueueAttributes Source # | ServiceConfiguration: | ||||
Defined in Aws.Sqs.Commands.QueueAttributes Associated Types
Methods signQuery :: SetQueueAttributes -> ServiceConfiguration SetQueueAttributes queryType -> SignatureData -> SignedQuery Source # |
data AuthorizationHash Source #
Supported crypto hashes for the signature.
Constructors
HmacSHA1 | |
HmacSHA256 |
Instances
Show AuthorizationHash Source # | |
Defined in Aws.Core Methods showsPrec :: Int -> AuthorizationHash -> ShowS show :: AuthorizationHash -> String showList :: [AuthorizationHash] -> ShowS |
amzHash :: AuthorizationHash -> ByteString Source #
Authorization hash identifier as expected by Amazon.
signature :: Credentials -> AuthorizationHash -> ByteString -> ByteString Source #
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)] Source #
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).
fmtTime :: String -> UTCTime -> ByteString Source #
Format time according to a format string, as a ByteString.
fmtRfc822Time :: UTCTime -> ByteString Source #
Format time in RFC 822 format.
rfc822Time :: String Source #
fmtAmzTime :: UTCTime -> ByteString Source #
Format time in yyyy-mm-ddThh-mm-ss format.
fmtTimeEpochSeconds :: UTCTime -> ByteString Source #
Format time as seconds since the Unix epoch.
parseHttpDate :: String -> Maybe UTCTime Source #
Parse HTTP-date (section 3.3.1 of RFC 2616)
textHttpDate :: UTCTime -> Text Source #
Format (as Text) HTTP-date (section 3.3.1 of RFC 2616, first type - RFC1123-style)
iso8601UtcDate :: String Source #
Transactions
class (SignQuery r, ResponseConsumer r a, Loggable (ResponseMetadata a)) => Transaction r a | r -> a Source #
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 Source # | |
Defined in Aws.DynamoDb.Commands.BatchGetItem | |
Transaction BatchWriteItem BatchWriteItemResponse Source # | |
Defined in Aws.DynamoDb.Commands.BatchWriteItem | |
Transaction DeleteItem DeleteItemResponse Source # | |
Defined in Aws.DynamoDb.Commands.DeleteItem | |
Transaction GetItem GetItemResponse Source # | |
Defined in Aws.DynamoDb.Commands.GetItem | |
Transaction PutItem PutItemResponse Source # | |
Defined in Aws.DynamoDb.Commands.PutItem | |
Transaction Query QueryResponse Source # | |
Defined in Aws.DynamoDb.Commands.Query | |
Transaction Scan ScanResponse Source # | |
Defined in Aws.DynamoDb.Commands.Scan | |
Transaction CreateTable CreateTableResult Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction DeleteTable DeleteTableResult Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction DescribeTable DescribeTableResult Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction ListTables ListTablesResult Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction UpdateTable UpdateTableResult Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
Transaction UpdateItem UpdateItemResponse Source # | |
Defined in Aws.DynamoDb.Commands.UpdateItem | |
Transaction AddUserToGroup AddUserToGroupResponse Source # | |
Defined in Aws.Iam.Commands.AddUserToGroup | |
Transaction CreateAccessKey CreateAccessKeyResponse Source # | |
Defined in Aws.Iam.Commands.CreateAccessKey | |
Transaction CreateGroup CreateGroupResponse Source # | |
Defined in Aws.Iam.Commands.CreateGroup | |
Transaction CreateUser CreateUserResponse Source # | |
Defined in Aws.Iam.Commands.CreateUser | |
Transaction DeleteAccessKey DeleteAccessKeyResponse Source # | |
Defined in Aws.Iam.Commands.DeleteAccessKey | |
Transaction DeleteGroup DeleteGroupResponse Source # | |
Defined in Aws.Iam.Commands.DeleteGroup | |
Transaction DeleteGroupPolicy DeleteGroupPolicyResponse Source # | |
Defined in Aws.Iam.Commands.DeleteGroupPolicy | |
Transaction DeleteUser DeleteUserResponse Source # | |
Defined in Aws.Iam.Commands.DeleteUser | |
Transaction DeleteUserPolicy DeleteUserPolicyResponse Source # | |
Defined in Aws.Iam.Commands.DeleteUserPolicy | |
Transaction GetGroupPolicy GetGroupPolicyResponse Source # | |
Defined in Aws.Iam.Commands.GetGroupPolicy | |
Transaction GetUser GetUserResponse Source # | |
Defined in Aws.Iam.Commands.GetUser | |
Transaction GetUserPolicy GetUserPolicyResponse Source # | |
Defined in Aws.Iam.Commands.GetUserPolicy | |
Transaction ListAccessKeys ListAccessKeysResponse Source # | |
Defined in Aws.Iam.Commands.ListAccessKeys | |
Transaction ListGroupPolicies ListGroupPoliciesResponse Source # | |
Defined in Aws.Iam.Commands.ListGroupPolicies | |
Transaction ListGroups ListGroupsResponse Source # | |
Defined in Aws.Iam.Commands.ListGroups | |
Transaction ListMfaDevices ListMfaDevicesResponse Source # | |
Defined in Aws.Iam.Commands.ListMfaDevices | |
Transaction ListUserPolicies ListUserPoliciesResponse Source # | |
Defined in Aws.Iam.Commands.ListUserPolicies | |
Transaction ListUsers ListUsersResponse Source # | |
Defined in Aws.Iam.Commands.ListUsers | |
Transaction PutGroupPolicy PutGroupPolicyResponse Source # | |
Defined in Aws.Iam.Commands.PutGroupPolicy | |
Transaction PutUserPolicy PutUserPolicyResponse Source # | |
Defined in Aws.Iam.Commands.PutUserPolicy | |
Transaction RemoveUserFromGroup RemoveUserFromGroupResponse Source # | |
Defined in Aws.Iam.Commands.RemoveUserFromGroup | |
Transaction UpdateAccessKey UpdateAccessKeyResponse Source # | |
Defined in Aws.Iam.Commands.UpdateAccessKey | |
Transaction UpdateGroup UpdateGroupResponse Source # | |
Defined in Aws.Iam.Commands.UpdateGroup | |
Transaction UpdateUser UpdateUserResponse Source # | |
Defined in Aws.Iam.Commands.UpdateUser | |
Transaction CopyObject CopyObjectResponse Source # | |
Defined in Aws.S3.Commands.CopyObject | |
Transaction DeleteBucket DeleteBucketResponse Source # | |
Defined in Aws.S3.Commands.DeleteBucket | |
Transaction DeleteObject DeleteObjectResponse Source # | |
Defined in Aws.S3.Commands.DeleteObject | |
Transaction DeleteObjectVersion DeleteObjectVersionResponse Source # | |
Defined in Aws.S3.Commands.DeleteObjectVersion | |
Transaction DeleteObjects DeleteObjectsResponse Source # | |
Defined in Aws.S3.Commands.DeleteObjects | |
Transaction GetBucket GetBucketResponse Source # | |
Defined in Aws.S3.Commands.GetBucket | |
Transaction GetBucketLocation GetBucketLocationResponse Source # | |
Defined in Aws.S3.Commands.GetBucketLocation | |
Transaction GetBucketObjectVersions GetBucketObjectVersionsResponse Source # | |
Defined in Aws.S3.Commands.GetBucketObjectVersions | |
Transaction GetBucketVersioning GetBucketVersioningResponse Source # | |
Defined in Aws.S3.Commands.GetBucketVersioning | |
Transaction GetObject GetObjectResponse Source # | |
Defined in Aws.S3.Commands.GetObject | |
Transaction GetService GetServiceResponse Source # | |
Defined in Aws.S3.Commands.GetService | |
Transaction HeadObject HeadObjectResponse Source # | |
Defined in Aws.S3.Commands.HeadObject | |
Transaction AbortMultipartUpload AbortMultipartUploadResponse Source # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction CompleteMultipartUpload CompleteMultipartUploadResponse Source # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction InitiateMultipartUpload InitiateMultipartUploadResponse Source # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction UploadPart UploadPartResponse Source # | |
Defined in Aws.S3.Commands.Multipart | |
Transaction PutBucket PutBucketResponse Source # | |
Defined in Aws.S3.Commands.PutBucket | |
Transaction PutBucketVersioning PutBucketVersioningResponse Source # | |
Defined in Aws.S3.Commands.PutBucketVersioning | |
Transaction PutObject PutObjectResponse Source # | |
Defined in Aws.S3.Commands.PutObject | |
Transaction DeleteIdentity DeleteIdentityResponse Source # | |
Defined in Aws.Ses.Commands.DeleteIdentity | |
Transaction GetIdentityDkimAttributes GetIdentityDkimAttributesResponse Source # | |
Defined in Aws.Ses.Commands.GetIdentityDkimAttributes | |
Transaction GetIdentityNotificationAttributes GetIdentityNotificationAttributesResponse Source # | |
Transaction GetIdentityVerificationAttributes GetIdentityVerificationAttributesResponse Source # | |
Transaction ListIdentities ListIdentitiesResponse Source # | |
Defined in Aws.Ses.Commands.ListIdentities | |
Transaction SendRawEmail SendRawEmailResponse Source # | |
Defined in Aws.Ses.Commands.SendRawEmail | |
Transaction SetIdentityDkimEnabled SetIdentityDkimEnabledResponse Source # | |
Defined in Aws.Ses.Commands.SetIdentityDkimEnabled | |
Transaction SetIdentityFeedbackForwardingEnabled SetIdentityFeedbackForwardingEnabledResponse Source # | |
Transaction SetIdentityNotificationTopic SetIdentityNotificationTopicResponse Source # | |
Transaction VerifyDomainDkim VerifyDomainDkimResponse Source # | |
Defined in Aws.Ses.Commands.VerifyDomainDkim | |
Transaction VerifyDomainIdentity VerifyDomainIdentityResponse Source # | |
Defined in Aws.Ses.Commands.VerifyDomainIdentity | |
Transaction VerifyEmailIdentity VerifyEmailIdentityResponse Source # | |
Defined in Aws.Ses.Commands.VerifyEmailIdentity | |
Transaction BatchDeleteAttributes BatchDeleteAttributesResponse Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction BatchPutAttributes BatchPutAttributesResponse Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction DeleteAttributes DeleteAttributesResponse Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction GetAttributes GetAttributesResponse Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction PutAttributes PutAttributesResponse Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
Transaction CreateDomain CreateDomainResponse Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction DeleteDomain DeleteDomainResponse Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction DomainMetadata DomainMetadataResponse Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction ListDomains ListDomainsResponse Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
Transaction Select SelectResponse Source # | |
Defined in Aws.SimpleDb.Commands.Select | |
Transaction ChangeMessageVisibility ChangeMessageVisibilityResponse Source # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction DeleteMessage DeleteMessageResponse Source # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction ReceiveMessage ReceiveMessageResponse Source # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction SendMessage SendMessageResponse Source # | |
Defined in Aws.Sqs.Commands.Message | |
Transaction AddPermission AddPermissionResponse Source # | |
Defined in Aws.Sqs.Commands.Permission | |
Transaction RemovePermission RemovePermissionResponse Source # | |
Defined in Aws.Sqs.Commands.Permission | |
Transaction CreateQueue CreateQueueResponse Source # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction DeleteQueue DeleteQueueResponse Source # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction ListQueues ListQueuesResponse Source # | |
Defined in Aws.Sqs.Commands.Queue | |
Transaction GetQueueAttributes GetQueueAttributesResponse Source # | |
Defined in Aws.Sqs.Commands.QueueAttributes | |
Transaction SetQueueAttributes SetQueueAttributesResponse Source # | |
Defined in Aws.Sqs.Commands.QueueAttributes |
class Transaction r a => IteratedTransaction r a | r -> a where Source #
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 Source #
Instances
IteratedTransaction Query QueryResponse Source # | |
Defined in Aws.DynamoDb.Commands.Query Methods nextIteratedRequest :: Query -> QueryResponse -> Maybe Query Source # | |
IteratedTransaction Scan ScanResponse Source # | |
Defined in Aws.DynamoDb.Commands.Scan Methods nextIteratedRequest :: Scan -> ScanResponse -> Maybe Scan Source # | |
IteratedTransaction ListAccessKeys ListAccessKeysResponse Source # | |
Defined in Aws.Iam.Commands.ListAccessKeys Methods nextIteratedRequest :: ListAccessKeys -> ListAccessKeysResponse -> Maybe ListAccessKeys Source # | |
IteratedTransaction ListGroupPolicies ListGroupPoliciesResponse Source # | |
Defined in Aws.Iam.Commands.ListGroupPolicies Methods nextIteratedRequest :: ListGroupPolicies -> ListGroupPoliciesResponse -> Maybe ListGroupPolicies Source # | |
IteratedTransaction ListGroups ListGroupsResponse Source # | |
Defined in Aws.Iam.Commands.ListGroups Methods nextIteratedRequest :: ListGroups -> ListGroupsResponse -> Maybe ListGroups Source # | |
IteratedTransaction ListMfaDevices ListMfaDevicesResponse Source # | |
Defined in Aws.Iam.Commands.ListMfaDevices Methods nextIteratedRequest :: ListMfaDevices -> ListMfaDevicesResponse -> Maybe ListMfaDevices Source # | |
IteratedTransaction ListUserPolicies ListUserPoliciesResponse Source # | |
Defined in Aws.Iam.Commands.ListUserPolicies Methods nextIteratedRequest :: ListUserPolicies -> ListUserPoliciesResponse -> Maybe ListUserPolicies Source # | |
IteratedTransaction ListUsers ListUsersResponse Source # | |
Defined in Aws.Iam.Commands.ListUsers Methods nextIteratedRequest :: ListUsers -> ListUsersResponse -> Maybe ListUsers Source # | |
IteratedTransaction GetBucket GetBucketResponse Source # | |
Defined in Aws.S3.Commands.GetBucket Methods nextIteratedRequest :: GetBucket -> GetBucketResponse -> Maybe GetBucket Source # | |
IteratedTransaction GetBucketObjectVersions GetBucketObjectVersionsResponse Source # | |
Defined in Aws.S3.Commands.GetBucketObjectVersions Methods nextIteratedRequest :: GetBucketObjectVersions -> GetBucketObjectVersionsResponse -> Maybe GetBucketObjectVersions Source # | |
IteratedTransaction ListDomains ListDomainsResponse Source # | |
Defined in Aws.SimpleDb.Commands.Domain Methods nextIteratedRequest :: ListDomains -> ListDomainsResponse -> Maybe ListDomains Source # | |
IteratedTransaction Select SelectResponse Source # | |
Defined in Aws.SimpleDb.Commands.Select Methods nextIteratedRequest :: Select -> SelectResponse -> Maybe Select Source # |
Credentials
data Credentials Source #
AWS access credentials.
Constructors
Credentials | |
Fields
|
Instances
Show Credentials Source # | |
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) Source #
The file where access credentials are loaded, when using loadCredentialsDefault
.
May return Nothing
if HOME
is unset.
Value: directory/.aws-keys
credentialsDefaultKey :: Text Source #
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) Source #
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) Source #
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) Source #
loadCredentialsFromEnvOrFile :: MonadIO io => FilePath -> Text -> io (Maybe Credentials) Source #
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) Source #
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) Source #
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 Source #
Make a dummy Credentials that can be used to access some AWS services anonymously.
Service configuration
class DefaultServiceConfiguration config where Source #
Default configuration for a specific service.
Minimal complete definition
Methods
defServiceConfig :: config Source #
Default service configuration.
debugServiceConfig :: config Source #
Default debugging-only configuration. (Normally using HTTP instead of HTTPS for easier debugging.)
Instances
DefaultServiceConfiguration (DdbConfiguration NormalQuery) Source # | |
Defined in Aws.DynamoDb.Core | |
DefaultServiceConfiguration (IamConfiguration NormalQuery) Source # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (IamConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Iam.Core | |
DefaultServiceConfiguration (S3Configuration NormalQuery) Source # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (S3Configuration UriOnlyQuery) Source # | |
Defined in Aws.S3.Core | |
DefaultServiceConfiguration (SesConfiguration NormalQuery) Source # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SesConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Ses.Core | |
DefaultServiceConfiguration (SdbConfiguration NormalQuery) Source # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SdbConfiguration UriOnlyQuery) Source # | |
Defined in Aws.SimpleDb.Core | |
DefaultServiceConfiguration (SqsConfiguration NormalQuery) Source # | |
Defined in Aws.Sqs.Core | |
DefaultServiceConfiguration (SqsConfiguration UriOnlyQuery) Source # | |
Defined in Aws.Sqs.Core |
HTTP types
Protocols supported by AWS. Currently, all AWS services use the HTTP or HTTPS protocols.
defaultPort :: Protocol -> Int Source #
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 Source #
HTTP method associated with a request method.