Copyright | (c) Greg Heartsfield 2007 |
---|---|
License | BSD3 |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Connection and authentication info for an Amazon AWS request.
- defaultAmazonS3Host :: String
- defaultAmazonS3Port :: Int
- amazonS3Connection :: String -> String -> AWSConnection
- amazonS3ConnectionFromEnv :: IO (Maybe AWSConnection)
- data AWSConnection = AWSConnection {
- awsHost :: String
- awsPort :: Int
- awsAccessKey :: String
- awsSecretKey :: String
Constants
defaultAmazonS3Host :: String Source
Hostname used for connecting to Amazon's production S3 service (s3.amazonaws.com
).
defaultAmazonS3Port :: Int Source
Port number used for connecting to Amazon's production S3 service (80
).
Function Types
:: String | Access Key ID |
-> String | Secret Access Key |
-> AWSConnection | Connection to Amazon S3 |
Create an AWSConnection to Amazon from credentials. Uses the production service.
amazonS3ConnectionFromEnv :: IO (Maybe AWSConnection) Source
Retrieve Access and Secret keys from environment variables
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, respectively.
Either variable being undefined or empty will result in
Nothing
.
Data Types
data AWSConnection Source
An Amazon Web Services connection. Everything needed to connect and authenticate requests.
AWSConnection | |
|