Stability | experimental |
---|---|
Maintainer | Lars Kuhtz <lars@alephcloud.com> |
Safe Haskell | None |
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
- = ApNortheast1
- | ApSoutheast1
- | ApSoutheast2
- | EuWest1
- | SaEast1
- | UsEast1
- | UsWest1
- | UsWest2
- 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 -> aSource
SignatureVersion
data SignatureVersion Source
Constructors
SignatureVersion2 | |
SignatureVersion4 |
signatureVersionToText :: IsString a => SignatureVersion -> aSource
SignatureMethod
data SignatureMethod Source
Constructors
SignatureMethodSha1 | |
SignatureMethodSha256 |
signatureMethodToText :: IsString a => SignatureMethod -> aSource
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 -> aSource
parseRegion :: CharParsing m => m RegionSource
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 -> aSource
parseAccountId :: CharParsing m => m AccountIdSource
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 -> aSource
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 -> aSource
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 | |
Typeable 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 |
parseArn :: CharParsing m => m ArnSource