hS3-0.5.9: Interface to Amazon's Simple Storage Service (S3)

Copyright(c) Greg Heartsfield 2007
LicenseBSD3
Safe HaskellSafe-Inferred
LanguageHaskell98

Network.AWS.AWSConnection

Contents

Description

Connection and authentication info for an Amazon AWS request.

Synopsis

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

amazonS3Connection Source

Arguments

:: 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.

Constructors

AWSConnection 

Fields

awsHost :: String

Service provider hostname

awsPort :: Int

Service provider port number

awsAccessKey :: String

Access Key ID

awsSecretKey :: String

Secret Access Key

Instances