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

Safe HaskellSafe-Inferred

Network.AWS.AWSConnection

Contents

Description

Connection and authentication info for an Amazon AWS request.

Synopsis

Constants

defaultAmazonS3Host :: StringSource

Hostname used for connecting to Amazon's production S3 service (s3.amazonaws.com).

defaultAmazonS3Port :: IntSource

Port number used for connecting to Amazon's production S3 service (80).

Function Types

amazonS3ConnectionSource

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