aws-sdk-0.4.3.0: AWS SDK for Haskell

Safe HaskellNone

AWS.EC2

Contents

Synopsis

EC2 Environment

type EC2 m a = AWS AWSContext m aSource

runEC2 :: MonadIO m => Credential -> AWS AWSContext m a -> m aSource

setRegionSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

RegionName

-> EC2 m () 

set endpoint to EC2 context.

Instances

describeInstancesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

InstanceIds

-> [Filter]

Filters

-> EC2 m (Source m Reservation) 

runInstances :: (MonadResource m, MonadBaseControl IO m) => RunInstancesRequest -> EC2 m ReservationSource

RunInstancesParam is genereted with defaultRunInstancesParam

defaultRunInstancesRequestSource

Arguments

:: Text

ImageId

-> Int

MinCount

-> Int

MaxCount

-> RunInstancesRequest 

RunInstances parameter utility

stopInstancesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

InstanceIds

-> Bool

Force

-> EC2 m (Source m InstanceStateChange) 

rebootInstancesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

InstanceIds

-> EC2 m Bool 

describeInstanceStatusSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

InstanceIds

-> Bool

is all instance? False: running instance only.

-> [Filter]

Filters

-> Maybe Text

next token

-> EC2 m (Source m InstanceStatus) 

raise ResponseParserException(NextToken token)

Images

describeImagesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

ImageIds

-> [Text]

Owners (User Ids)

-> [Text]

ExecutedBy (User Ids)

-> [Filter]

Filers

-> EC2 m (Source m Image) 

createImageSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

InstanceId

-> Text

Name

-> Maybe Text

Description

-> Bool

NoReboot

-> [BlockDeviceMappingParam]

BlockDeviceMapping

-> EC2 m Text 

deregisterImageSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

ImageId

-> EC2 m Bool 

Volumes

describeVolumesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

VolumeIds

-> [Filter]

Filters

-> EC2 m (Source m Volume) 

deleteVolumeSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

VolumeId

-> EC2 m Bool 

attachVolumeSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

VolumeId

-> Text

InstanceId

-> Text

Device

-> EC2 m Attachment 

detachVolumeSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

VolumeId

-> Maybe Text

InstanceId

-> Maybe Text

Device

-> Maybe Bool

Force

-> EC2 m Attachment 

Snapshots

describeSnapshotsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

SnapshotIds

-> [Text]

Owners (UserId)

-> [Text]

RestorableBy (UserId)

-> [Filter]

Filters

-> EC2 m (Source m Snapshot) 

createSnapshotSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

SnapshotId

-> Maybe Text

Description

-> EC2 m Snapshot 

deleteSnapshotSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

SnapshotId

-> EC2 m Bool 

Addresses

describeAddressesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

PublicIps

-> [Text]

AllocationIds

-> [Filter]

Filters

-> EC2 m (Source m Address) 

releaseAddressSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Maybe Text

PublicIp

-> Maybe Text

AllocationId

-> EC2 m EC2Return 

data DisassociateAddressRequest Source

Constructors

DAEC2 Text

PublicIp for EC2

DAVPC Text

AssociationId for VPC

KeyPairs

describeKeyPairsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

PublicIps

-> [Filter]

Filters

-> EC2 m (Source m KeyPair) 

createKeyPairSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

KeyName

-> EC2 m (KeyPair, Text)

KeyPair and KeyMaterial

deleteKeyPairSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

KeyName

-> EC2 m Bool 

importKeyPairSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

KeyName

-> Text

PublicKeyMaterial

-> EC2 m KeyPair 

SecurityGroups

describeSecurityGroupsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

GroupNames

-> [Text]

GroupIds

-> [Filter]

Filters

-> EC2 m (Source m SecurityGroup) 

createSecurityGroupSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

GroupName

-> Text

GroupDescription

-> Maybe Text

VpcId

-> EC2 m (Maybe Text)

GroupId

authorizeSecurityGroupEgressSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

GroupId

-> [IpPermission] 
-> EC2 m Bool 

not tested

revokeSecurityGroupEgressSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> Text

GroupId

-> [IpPermission] 
-> EC2 m Bool 

not tested

Placements

describeRegionsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

RegionNames

-> [Filter]

Filters

-> EC2 m (Source m Region) 

describeAvailabilityZonesSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

ZoneNames

-> [Filter]

Filters

-> EC2 m (Source m AvailabilityZone) 

Tags

describeTagsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Filter]

Filters

-> EC2 m (Source m Tag) 

createTagsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

ResourceId (instance-id, image-id,..)

-> [(Text, Text)] 
-> EC2 m Bool 

deleteTagsSource

Arguments

:: (MonadResource m, MonadBaseControl IO m) 
=> [Text]

ResourceId (instance-id, image-id,..)

-> [ResourceTag] 
-> EC2 m Bool 

VPC

describeVpnConnectionsSource

Arguments

:: (MonadBaseControl IO m, MonadResource m) 
=> [Text]

VpnConnectionIds

-> [Filter] 
-> EC2 m (Source m VpnConnection)