Copyright | Copyright © 2014 AlephCloud Systems, Inc. |
---|---|
License | BSD3 |
Maintainer | Lars Kuhtz <lars@alephcloud.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- class AwsType a where
- data GeneralVersion = GeneralVersion_1_0
- generalVersionToText :: IsString a => GeneralVersion -> a
- parseGeneralVersion :: CharParsing m => m GeneralVersion
- data SignatureVersion
- signatureVersionToText :: IsString a => SignatureVersion -> a
- parseSignatureVersion :: CharParsing m => m SignatureVersion
- data SignatureMethod
- signatureMethodToText :: IsString a => SignatureMethod -> a
- parseSignatureMethod :: CharParsing m => m SignatureMethod
- data Region
- regionToText :: (Monoid a, IsString a) => Region -> a
- parseRegion :: CharParsing m => m Region
- newtype AccountId = AccountId Text
- accountIdToText :: IsString a => AccountId -> a
- parseAccountId :: CharParsing m => m AccountId
- newtype CanonicalUserId = CanonicalUserId Text
- canonicalUserIdToText :: IsString a => CanonicalUserId -> a
- parseCanonicalUserId :: CharParsing m => m CanonicalUserId
- data ServiceNamespace
- = ServiceNamespaceAwsPortal
- | ServiceNamespaceAutoscaling
- | ServiceNamespaceCloudformation
- | ServiceNamespaceCloudfront
- | ServiceNamespaceCloudwatch
- | ServiceNamespaceDynamodb
- | ServiceNamespaceEc2
- | ServiceNamespaceElasticbeanstalk
- | ServiceNamespaceElasticloadbalancing
- | ServiceNamespaceElasticmapreduce
- | ServiceNamespaceElasticache
- | ServiceNamespaceGlacier
- | ServiceNamespaceIam
- | ServiceNamespaceKinesis
- | ServiceNamespaceAwsMarketplaceManagement
- | ServiceNamespaceOpsworks
- | ServiceNamespaceRds
- | ServiceNamespaceRedshift
- | ServiceNamespaceRoute53
- | ServiceNamespaceS3
- | ServiceNamespaceSes
- | ServiceNamespaceSdb
- | ServiceNamespaceSqs
- | ServiceNamespaceSns
- | ServiceNamespaceStoragegateway
- | ServiceNamespaceSts
- | ServiceNamespaceSupport
- | ServiceNamespaceSwf
- | ServiceNamespaceHost
- serviceNamespaceToText :: IsString a => ServiceNamespace -> a
- parseServiceNamespace :: CharParsing m => m ServiceNamespace
- data Arn = Arn {}
- arnToText :: (IsString a, Monoid a) => Arn -> a
- parseArn :: CharParsing m => m Arn
Documentation
AWS General Version
data GeneralVersion Source
generalVersionToText :: IsString a => GeneralVersion -> a Source
parseGeneralVersion :: CharParsing m => m GeneralVersion Source
SignatureVersion
data SignatureVersion Source
signatureVersionToText :: IsString a => SignatureVersion -> a Source
SignatureMethod
data SignatureMethod Source
signatureMethodToText :: IsString a => SignatureMethod -> a Source
parseSignatureMethod :: CharParsing m => m SignatureMethod Source
AWS Region
Region
http://docs.aws.amazon.com/general/1.0/gr/rande.html
The relation between regions and service endpoints is not bijective for all AWS services. Not all AWS services support all regions. Some services don't use the concept of region at all.
ApNortheast1 | |
ApSoutheast1 | |
ApSoutheast2 | |
EuWest1 | |
SaEast1 | |
UsEast1 | |
UsWest1 | |
UsWest2 | |
CustomEndpoint !Text !Int | To override the region settings with a custom service endpoint, e.g. for testing purpose |
regionToText :: (Monoid a, IsString a) => Region -> a Source
parseRegion :: CharParsing m => m Region Source
Regions are parsed as follows:
ApNortheast1
::= "ap-northeast-1"ApSoutheast1
::= "ap-southeast-1"ApSoutheast2
::= "ap-southeast-2"EuWest1
::= "eu-west-1"SaEast1
::= "sa-east-1"UsEast1
::= "us-east-1"UsWest1
::= "us-west-1"UsWest2
::= "us-west-2"CustomEndpoint
::= "custom:"Text
":"Int
AWS Account ID
AWS Account Id
http://docs.aws.amazon.com/general/1.0/gr/acct-identifiers.html.
This is actually a 12 digit number.
accountIdToText :: IsString a => AccountId -> a Source
parseAccountId :: CharParsing m => m AccountId Source
AWS Canonical User ID
newtype CanonicalUserId Source
AWS Canonical User ID
http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html.
This is actually a long hexadecimal number
canonicalUserIdToText :: IsString a => CanonicalUserId -> a Source
parseCanonicalUserId :: CharParsing m => m CanonicalUserId Source
AWS Service Namespace
data ServiceNamespace Source
AWS Service Namespaces
http://docs.aws.amazon.com/general/1.0/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
serviceNamespaceToText :: IsString a => ServiceNamespace -> a Source
AWS ARN
Amazon Resource Names
http://docs.aws.amazon.com/general/1.0/gr/aws-arns-and-namespaces.html
From the specification it is not clear if elements of arnResource
can be empty. Though examples given in the specification do not inlcude
such a case, our parser allows it.
Arn | |
|
Eq Arn | |
Ord Arn | |
Read Arn | |
Show Arn | |
Generic Arn | |
Arbitrary Arn | This instance if for general testing of the syntax of ARNs. For service
specific ARNs you should use a newtype wrapper and define an |
ToJSON Arn | |
FromJSON Arn | |
NFData Arn | |
AwsType Arn | |
Typeable * Arn | |
type Rep Arn |
parseArn :: CharParsing m => m Arn Source