Copyright | Copyright © 2014 AlephCloud Systems, Inc. |
---|---|
License | BSD3 |
Maintainer | Lars Kuhtz <lars@alephcloud.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Aws.General
Contents
Description
- 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 :: 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
Constructors
GeneralVersion_1_0 |
generalVersionToText :: IsString a => GeneralVersion -> a Source
parseGeneralVersion :: CharParsing m => m GeneralVersion Source
SignatureVersion
data SignatureVersion Source
Constructors
SignatureVersion2 | |
SignatureVersion4 |
signatureVersionToText :: IsString a => SignatureVersion -> a Source
SignatureMethod
data SignatureMethod Source
Constructors
SignatureMethodSha1 | |
SignatureMethodSha256 |
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.
Constructors
ApNortheast1 | |
ApSoutheast1 | |
ApSoutheast2 | |
EuWest1 | |
SaEast1 | |
UsEast1 | |
UsWest1 | |
UsWest2 |
regionToText :: IsString a => Region -> a Source
parseRegion :: CharParsing m => m Region Source
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
Constructors
CanonicalUserId Text |
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
Constructors
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.
Constructors
Arn | |
Fields
|
Instances
Eq Arn | |
Ord Arn | |
Read Arn | |
Show 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 | |
AwsType Arn | |
Typeable * Arn |
parseArn :: CharParsing m => m Arn Source