Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stratosphere.Values
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 Bool) (Val Bool) | |
Or (Val Bool) (Val Bool) | |
GetAtt Text Text | |
Base64 (Val a) | |
Join Text [Val a] | |
Split Text Text | |
Select Integer (Val a) | |
GetAZs (Val 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 |
There are two ways to construct a list of Val
s. One is to use a literal
ValList
to construct the list. The other is to reference something that is
already a list. 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.