| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stratosphere.Value
Synopsis
- data Value a where
- Literal :: forall a. a -> Value a
- Ref :: forall a. Text -> Value a
- If :: forall a. Text -> Value a -> Value a -> Value a
- And :: Value Bool -> Value Bool -> Value Bool
- Equals :: forall a1. (Show a1, ToJSON a1, Eq a1, Typeable a1) => Value a1 -> Value a1 -> Value Bool
- Or :: Value Bool -> Value Bool -> Value Bool
- Not :: Value Bool -> Value Bool
- GetAtt :: forall a. Text -> Text -> Value a
- Base64 :: Value Text -> Value Text
- Join :: Text -> ValueList Text -> Value Text
- Select :: forall a. Integer -> ValueList a -> Value a
- FindInMap :: forall a. Value Text -> Value Text -> Value Text -> Value a
- ImportValue :: forall a. Value Text -> Value a
- Sub :: Text -> Maybe (KeyMap (Value Text)) -> Value Text
- class ToRef a b where
- data ValueList a
- sub :: Text -> Value Text
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 :: forall a. a -> Value a | |
| Ref :: forall a. Text -> Value a | |
| If :: forall a. Text -> Value a -> Value a -> Value a | |
| And :: Value Bool -> Value Bool -> Value Bool | |
| Equals :: forall a1. (Show a1, ToJSON a1, Eq a1, Typeable a1) => Value a1 -> Value a1 -> Value Bool | |
| Or :: Value Bool -> Value Bool -> Value Bool | |
| Not :: Value Bool -> Value Bool | |
| GetAtt :: forall a. Text -> Text -> Value a | |
| Base64 :: Value Text -> Value Text | |
| Join :: Text -> ValueList Text -> Value Text | |
| Select :: forall a. Integer -> ValueList a -> Value a | |
| FindInMap | |
| ImportValue | |
| Sub | |
class ToRef a b where Source #
Class used to create a Ref from another type.
ValueList is like Value, except it is used in place of lists of values 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.
Constructors
| Cidr (Value Text) (Value Text) (Value Text) | |
| GetAZs (Value Text) | |
| ImportValueList (Value Text) | |
| RefList Text | |
| Split Text (Value a) | |
| ValueList [Value a] |