module Stratosphere.Events.Rule.InputTransformerProperty (
        InputTransformerProperty(..), mkInputTransformerProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputTransformerProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html>
    InputTransformerProperty {InputTransformerProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html#cfn-events-rule-inputtransformer-inputpathsmap>
                              InputTransformerProperty -> Maybe (Map Text (Value Text))
inputPathsMap :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html#cfn-events-rule-inputtransformer-inputtemplate>
                              InputTransformerProperty -> Value Text
inputTemplate :: (Value Prelude.Text)}
  deriving stock (InputTransformerProperty -> InputTransformerProperty -> Bool
(InputTransformerProperty -> InputTransformerProperty -> Bool)
-> (InputTransformerProperty -> InputTransformerProperty -> Bool)
-> Eq InputTransformerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputTransformerProperty -> InputTransformerProperty -> Bool
== :: InputTransformerProperty -> InputTransformerProperty -> Bool
$c/= :: InputTransformerProperty -> InputTransformerProperty -> Bool
/= :: InputTransformerProperty -> InputTransformerProperty -> Bool
Prelude.Eq, Int -> InputTransformerProperty -> ShowS
[InputTransformerProperty] -> ShowS
InputTransformerProperty -> String
(Int -> InputTransformerProperty -> ShowS)
-> (InputTransformerProperty -> String)
-> ([InputTransformerProperty] -> ShowS)
-> Show InputTransformerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputTransformerProperty -> ShowS
showsPrec :: Int -> InputTransformerProperty -> ShowS
$cshow :: InputTransformerProperty -> String
show :: InputTransformerProperty -> String
$cshowList :: [InputTransformerProperty] -> ShowS
showList :: [InputTransformerProperty] -> ShowS
Prelude.Show)
mkInputTransformerProperty ::
  Value Prelude.Text -> InputTransformerProperty
mkInputTransformerProperty :: Value Text -> InputTransformerProperty
mkInputTransformerProperty Value Text
inputTemplate
  = InputTransformerProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputTemplate :: Value Text
inputTemplate = Value Text
inputTemplate,
       inputPathsMap :: Maybe (Map Text (Value Text))
inputPathsMap = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputTransformerProperty where
  toResourceProperties :: InputTransformerProperty -> ResourceProperties
toResourceProperties InputTransformerProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: InputTransformerProperty -> ()
inputPathsMap :: InputTransformerProperty -> Maybe (Map Text (Value Text))
inputTemplate :: InputTransformerProperty -> Value Text
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
inputTemplate :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Events::Rule.InputTransformer",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"InputTemplate" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
inputTemplate]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputPathsMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
inputPathsMap]))}
instance JSON.ToJSON InputTransformerProperty where
  toJSON :: InputTransformerProperty -> Value
toJSON InputTransformerProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: InputTransformerProperty -> ()
inputPathsMap :: InputTransformerProperty -> Maybe (Map Text (Value Text))
inputTemplate :: InputTransformerProperty -> Value Text
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
inputTemplate :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"InputTemplate" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
inputTemplate]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputPathsMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
inputPathsMap])))
instance Property "InputPathsMap" InputTransformerProperty where
  type PropertyType "InputPathsMap" InputTransformerProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "InputPathsMap" InputTransformerProperty
-> InputTransformerProperty -> InputTransformerProperty
set PropertyType "InputPathsMap" InputTransformerProperty
newValue InputTransformerProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: InputTransformerProperty -> ()
inputPathsMap :: InputTransformerProperty -> Maybe (Map Text (Value Text))
inputTemplate :: InputTransformerProperty -> Value Text
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
inputTemplate :: Value Text
..}
    = InputTransformerProperty
        {inputPathsMap :: Maybe (Map Text (Value Text))
inputPathsMap = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "InputPathsMap" InputTransformerProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
inputTemplate :: Value Text
haddock_workaround_ :: ()
inputTemplate :: Value Text
..}
instance Property "InputTemplate" InputTransformerProperty where
  type PropertyType "InputTemplate" InputTransformerProperty = Value Prelude.Text
  set :: PropertyType "InputTemplate" InputTransformerProperty
-> InputTransformerProperty -> InputTransformerProperty
set PropertyType "InputTemplate" InputTransformerProperty
newValue InputTransformerProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: InputTransformerProperty -> ()
inputPathsMap :: InputTransformerProperty -> Maybe (Map Text (Value Text))
inputTemplate :: InputTransformerProperty -> Value Text
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
inputTemplate :: Value Text
..}
    = InputTransformerProperty {inputTemplate :: Value Text
inputTemplate = PropertyType "InputTemplate" InputTransformerProperty
Value Text
newValue, Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
inputPathsMap :: Maybe (Map Text (Value Text))
..}