Safe Haskell | None |
---|---|
Language | Haskell2010 |
Aws
Synopsis
- data LogLevel
- type Logger = LogLevel -> Text -> IO ()
- defaultLog :: LogLevel -> Logger
- data Configuration = Configuration {
- timeInfo :: TimeInfo
- credentials :: Credentials
- logger :: Logger
- proxy :: Maybe Proxy
- baseConfiguration :: MonadIO io => io Configuration
- dbgConfiguration :: MonadIO io => io Configuration
- aws :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO (Response (ResponseMetadata a) a)
- awsRef :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> IORef (ResponseMetadata a) -> r -> ResourceT IO a
- pureAws :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO a
- simpleAws :: (Transaction r a, AsMemoryResponse a, MonadIO io) => Configuration -> ServiceConfiguration r NormalQuery -> r -> io (MemoryResponse a)
- unsafeAws :: (ResponseConsumer r a, Loggable (ResponseMetadata a), SignQuery r) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO (Response (ResponseMetadata a) a)
- unsafeAwsRef :: (ResponseConsumer r a, SignQuery r) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> IORef (ResponseMetadata a) -> r -> ResourceT IO a
- awsUri :: (SignQuery request, MonadIO io) => Configuration -> ServiceConfiguration request UriOnlyQuery -> request -> io ByteString
- awsIteratedSource :: IteratedTransaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> forall i. ConduitT i (Response (ResponseMetadata a) a) (ResourceT IO) ()
- awsIteratedList :: (IteratedTransaction r a, ListResponse a i) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> forall j. ConduitT j i (ResourceT IO) ()
- type HTTPResponseConsumer a = Response (ConduitM () ByteString (ResourceT IO) ()) -> ResourceT IO a
- data Response m a = Response {}
- readResponse :: MonadThrow n => Response m a -> n a
- readResponseIO :: MonadIO io => Response m a -> io a
- type family ResponseMetadata resp
- class AsMemoryResponse resp where
- type MemoryResponse resp
- loadToMemory :: resp -> ResourceT IO (MemoryResponse resp)
- newtype XmlException = XmlException {}
- newtype HeaderException = HeaderException {}
- newtype FormException = FormException {}
- type family ServiceConfiguration request :: Type -> Type
- class DefaultServiceConfiguration config where
- defServiceConfig :: config
- debugServiceConfig :: config
- data NormalQuery
- data UriOnlyQuery
- data TimeInfo
- class (SignQuery r, ResponseConsumer r a, Loggable (ResponseMetadata a)) => Transaction r a | r -> a
- class Transaction r a => IteratedTransaction r a | r -> a
- 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
Logging
The severity of a log message, in rising order.
type Logger = LogLevel -> Text -> IO () Source #
The interface for any logging function. Takes log level and a log message, and can perform an arbitrary IO action.
defaultLog :: LogLevel -> Logger Source #
The default logger defaultLog minLevel
, which prints log messages above level minLevel
to stderr
.
Configuration
data Configuration Source #
The configuration for an AWS request. You can use multiple configurations in parallel, even over the same HTTP connection manager.
Constructors
Configuration | |
Fields
|
baseConfiguration :: MonadIO io => io Configuration Source #
The default configuration, with credentials loaded from environment variable or configuration file
(see loadCredentialsDefault
).
dbgConfiguration :: MonadIO io => io Configuration Source #
Debug configuration, which logs much more verbosely.
Transaction runners
Safe runners
aws :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO (Response (ResponseMetadata a) a) Source #
awsRef :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> IORef (ResponseMetadata a) -> r -> ResourceT IO a Source #
pureAws :: Transaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO a Source #
simpleAws :: (Transaction r a, AsMemoryResponse a, MonadIO io) => Configuration -> ServiceConfiguration r NormalQuery -> r -> io (MemoryResponse a) Source #
Unsafe runners
unsafeAws :: (ResponseConsumer r a, Loggable (ResponseMetadata a), SignQuery r) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> ResourceT IO (Response (ResponseMetadata a) a) Source #
Run an AWS transaction, without enforcing that response and request type form a valid transaction pair.
This is especially useful for debugging and development, you should not have to use it in production.
All errors are caught and wrapped in the Response
value.
Metadata is wrapped in the Response, and also logged at level Info
.
unsafeAwsRef :: (ResponseConsumer r a, SignQuery r) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> IORef (ResponseMetadata a) -> r -> ResourceT IO a Source #
Run an AWS transaction, without enforcing that response and request type form a valid transaction pair.
This is especially useful for debugging and development, you should not have to use it in production.
Errors are not caught, and need to be handled with exception handlers.
Metadata is put in the IORef
, but not logged.
URI runners
awsUri :: (SignQuery request, MonadIO io) => Configuration -> ServiceConfiguration request UriOnlyQuery -> request -> io ByteString Source #
Run a URI-only AWS transaction. Returns a URI that can be sent anywhere. Does not work with all requests.
Usage:
uri <- awsUri cfg request
Iterated runners
awsIteratedSource :: IteratedTransaction r a => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> forall i. ConduitT i (Response (ResponseMetadata a) a) (ResourceT IO) () Source #
awsIteratedList :: (IteratedTransaction r a, ListResponse a i) => Configuration -> ServiceConfiguration r NormalQuery -> Manager -> r -> forall j. ConduitT j i (ResourceT IO) () Source #
Response
Full HTTP response
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.
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.
type family ResponseMetadata resp Source #
Metadata associated with a response. Typically there is one metadata type for each AWS service.
Instances
Memory responses
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
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 # |
Query
Service configuration
type family ServiceConfiguration request :: Type -> Type Source #
Additional information, like API endpoints and service-specific preferences.
Instances
type ServiceConfiguration BatchGetItem Source # | |
Defined in Aws.DynamoDb.Commands.BatchGetItem | |
type ServiceConfiguration BatchWriteItem Source # | |
type ServiceConfiguration DeleteItem Source # | |
Defined in Aws.DynamoDb.Commands.DeleteItem | |
type ServiceConfiguration GetItem Source # | |
Defined in Aws.DynamoDb.Commands.GetItem | |
type ServiceConfiguration PutItem Source # | |
Defined in Aws.DynamoDb.Commands.PutItem | |
type ServiceConfiguration Query Source # | |
Defined in Aws.DynamoDb.Commands.Query | |
type ServiceConfiguration Scan Source # | |
Defined in Aws.DynamoDb.Commands.Scan | |
type ServiceConfiguration CreateTable Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
type ServiceConfiguration DeleteTable Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
type ServiceConfiguration DescribeTable Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
type ServiceConfiguration ListTables Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
type ServiceConfiguration UpdateTable Source # | |
Defined in Aws.DynamoDb.Commands.Table | |
type ServiceConfiguration UpdateItem Source # | |
Defined in Aws.DynamoDb.Commands.UpdateItem | |
type ServiceConfiguration AddUserToGroup Source # | |
Defined in Aws.Iam.Commands.AddUserToGroup | |
type ServiceConfiguration CreateAccessKey Source # | |
Defined in Aws.Iam.Commands.CreateAccessKey | |
type ServiceConfiguration CreateGroup Source # | |
Defined in Aws.Iam.Commands.CreateGroup | |
type ServiceConfiguration CreateUser Source # | |
Defined in Aws.Iam.Commands.CreateUser | |
type ServiceConfiguration DeleteAccessKey Source # | |
Defined in Aws.Iam.Commands.DeleteAccessKey | |
type ServiceConfiguration DeleteGroup Source # | |
Defined in Aws.Iam.Commands.DeleteGroup | |
type ServiceConfiguration DeleteGroupPolicy Source # | |
type ServiceConfiguration DeleteUser Source # | |
Defined in Aws.Iam.Commands.DeleteUser | |
type ServiceConfiguration DeleteUserPolicy Source # | |
type ServiceConfiguration GetGroupPolicy Source # | |
Defined in Aws.Iam.Commands.GetGroupPolicy | |
type ServiceConfiguration GetUser Source # | |
Defined in Aws.Iam.Commands.GetUser | |
type ServiceConfiguration GetUserPolicy Source # | |
Defined in Aws.Iam.Commands.GetUserPolicy | |
type ServiceConfiguration ListAccessKeys Source # | |
Defined in Aws.Iam.Commands.ListAccessKeys | |
type ServiceConfiguration ListGroupPolicies Source # | |
type ServiceConfiguration ListGroups Source # | |
Defined in Aws.Iam.Commands.ListGroups | |
type ServiceConfiguration ListMfaDevices Source # | |
Defined in Aws.Iam.Commands.ListMfaDevices | |
type ServiceConfiguration ListUserPolicies Source # | |
type ServiceConfiguration ListUsers Source # | |
Defined in Aws.Iam.Commands.ListUsers | |
type ServiceConfiguration PutGroupPolicy Source # | |
Defined in Aws.Iam.Commands.PutGroupPolicy | |
type ServiceConfiguration PutUserPolicy Source # | |
Defined in Aws.Iam.Commands.PutUserPolicy | |
type ServiceConfiguration RemoveUserFromGroup Source # | |
type ServiceConfiguration UpdateAccessKey Source # | |
Defined in Aws.Iam.Commands.UpdateAccessKey | |
type ServiceConfiguration UpdateGroup Source # | |
Defined in Aws.Iam.Commands.UpdateGroup | |
type ServiceConfiguration UpdateUser Source # | |
Defined in Aws.Iam.Commands.UpdateUser | |
type ServiceConfiguration CopyObject Source # | |
Defined in Aws.S3.Commands.CopyObject | |
type ServiceConfiguration DeleteBucket Source # | |
Defined in Aws.S3.Commands.DeleteBucket | |
type ServiceConfiguration DeleteObject Source # | |
Defined in Aws.S3.Commands.DeleteObject | |
type ServiceConfiguration DeleteObjectVersion Source # | |
type ServiceConfiguration DeleteObjects Source # | |
Defined in Aws.S3.Commands.DeleteObjects | |
type ServiceConfiguration GetBucket Source # | |
Defined in Aws.S3.Commands.GetBucket | |
type ServiceConfiguration GetBucketLocation Source # | |
type ServiceConfiguration GetBucketObjectVersions Source # | |
type ServiceConfiguration GetBucketVersioning Source # | |
type ServiceConfiguration GetObject Source # | |
Defined in Aws.S3.Commands.GetObject | |
type ServiceConfiguration GetService Source # | |
Defined in Aws.S3.Commands.GetService | |
type ServiceConfiguration HeadObject Source # | |
Defined in Aws.S3.Commands.HeadObject | |
type ServiceConfiguration AbortMultipartUpload Source # | |
Defined in Aws.S3.Commands.Multipart | |
type ServiceConfiguration CompleteMultipartUpload Source # | |
Defined in Aws.S3.Commands.Multipart | |
type ServiceConfiguration InitiateMultipartUpload Source # | |
Defined in Aws.S3.Commands.Multipart | |
type ServiceConfiguration UploadPart Source # | |
Defined in Aws.S3.Commands.Multipart | |
type ServiceConfiguration PutBucket Source # | |
Defined in Aws.S3.Commands.PutBucket | |
type ServiceConfiguration PutBucketVersioning Source # | |
type ServiceConfiguration PutObject Source # | |
Defined in Aws.S3.Commands.PutObject | |
type ServiceConfiguration DeleteIdentity Source # | |
Defined in Aws.Ses.Commands.DeleteIdentity | |
type ServiceConfiguration GetIdentityDkimAttributes Source # | |
type ServiceConfiguration GetIdentityNotificationAttributes Source # | |
type ServiceConfiguration GetIdentityVerificationAttributes Source # | |
type ServiceConfiguration ListIdentities Source # | |
Defined in Aws.Ses.Commands.ListIdentities | |
type ServiceConfiguration SendRawEmail Source # | |
Defined in Aws.Ses.Commands.SendRawEmail | |
type ServiceConfiguration SetIdentityDkimEnabled Source # | |
type ServiceConfiguration SetIdentityFeedbackForwardingEnabled Source # | |
type ServiceConfiguration SetIdentityNotificationTopic Source # | |
type ServiceConfiguration VerifyDomainDkim Source # | |
type ServiceConfiguration VerifyDomainIdentity Source # | |
type ServiceConfiguration VerifyEmailIdentity Source # | |
type ServiceConfiguration BatchDeleteAttributes Source # | |
type ServiceConfiguration BatchPutAttributes Source # | |
type ServiceConfiguration DeleteAttributes Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
type ServiceConfiguration GetAttributes Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
type ServiceConfiguration PutAttributes Source # | |
Defined in Aws.SimpleDb.Commands.Attributes | |
type ServiceConfiguration CreateDomain Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
type ServiceConfiguration DeleteDomain Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
type ServiceConfiguration DomainMetadata Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
type ServiceConfiguration ListDomains Source # | |
Defined in Aws.SimpleDb.Commands.Domain | |
type ServiceConfiguration Select Source # | |
Defined in Aws.SimpleDb.Commands.Select | |
type ServiceConfiguration ChangeMessageVisibility Source # | |
Defined in Aws.Sqs.Commands.Message | |
type ServiceConfiguration DeleteMessage Source # | |
Defined in Aws.Sqs.Commands.Message | |
type ServiceConfiguration ReceiveMessage Source # | |
Defined in Aws.Sqs.Commands.Message | |
type ServiceConfiguration SendMessage Source # | |
Defined in Aws.Sqs.Commands.Message | |
type ServiceConfiguration AddPermission Source # | |
Defined in Aws.Sqs.Commands.Permission | |
type ServiceConfiguration RemovePermission Source # | |
Defined in Aws.Sqs.Commands.Permission | |
type ServiceConfiguration CreateQueue Source # | |
Defined in Aws.Sqs.Commands.Queue | |
type ServiceConfiguration DeleteQueue Source # | |
Defined in Aws.Sqs.Commands.Queue | |
type ServiceConfiguration ListQueues Source # | |
Defined in Aws.Sqs.Commands.Queue | |
type ServiceConfiguration GetQueueAttributes Source # | |
type ServiceConfiguration SetQueueAttributes Source # | |
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 |
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) Source # | |
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 |
Expiration
Whether to restrict the signature validity with a plain timestamp, or with explicit expiration (absolute or relative).
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 Source #
A transaction that may need to be split over multiple requests, for example because of upstream response size limits.
Minimal complete definition
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 | |
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 # | |
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.