| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stratosphere.Values
- data Val a
- = Literal a
- | Ref Text
- | If Text (Val a) (Val a)
- | And (Val Bool) (Val Bool)
- | Equals (Val a) (Val a)
- | Or (Val Bool) (Val Bool)
- | GetAtt Text Text
- | Base64 (Val Text)
- | Join Text (ValList Text)
- | Select Integer (ValList a)
- | FindInMap (Val a) (Val a) (Val a)
- | ImportValue Text
- | Sub Text (Maybe (HashMap Text (Val Text)))
- sub :: Text -> Val Text
- data ValList a
- newtype Integer' = Integer' {}
- newtype Bool' = Bool' {}
- newtype Double' = Double' {}
- class ToRef a b where
Documentation
This type is a wrapper around any values in a template. A value can be a
Literal, a Ref, or an intrinsic function. See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html
Constructors
| Literal a | |
| Ref Text | |
| If Text (Val a) (Val a) | |
| And (Val Bool) (Val Bool) | |
| Equals (Val a) (Val a) | |
| Or (Val Bool) (Val Bool) | |
| GetAtt Text Text | |
| Base64 (Val Text) | |
| Join Text (ValList Text) | |
| Select Integer (ValList a) | |
| FindInMap (Val a) (Val a) (Val a) | Map name, top level key, and second level key |
| ImportValue Text | The account-and-region-unique exported name of the value to import |
| Sub Text (Maybe (HashMap Text (Val Text))) | Substitution string and optional map of values |
ValList is like Val, except it is used in place of lists of Vals in
templates. For example, if you have a parameter called SubnetIds of type
ListAWS::EC2::Subnet::Id then, you can use RefList SubnetIds to
reference it.
We need to wrap integers so we can override the Aeson type-classes. This is necessary because CloudFront made the silly decision to represent numbers as JSON strings.
Constructors
| Integer' | |
Fields | |
We need to wrap Bools for the same reason we need to wrap Ints.
We need to wrap Doubles for the same reason we need to wrap Ints.