module Stratosphere.Logs.Transformer.SubstituteStringEntryProperty (
        SubstituteStringEntryProperty(..), mkSubstituteStringEntryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubstituteStringEntryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-substitutestringentry.html>
    SubstituteStringEntryProperty {SubstituteStringEntryProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-substitutestringentry.html#cfn-logs-transformer-substitutestringentry-from>
                                   SubstituteStringEntryProperty -> Value Text
from :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-substitutestringentry.html#cfn-logs-transformer-substitutestringentry-source>
                                   SubstituteStringEntryProperty -> Value Text
source :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-substitutestringentry.html#cfn-logs-transformer-substitutestringentry-to>
                                   SubstituteStringEntryProperty -> Value Text
to :: (Value Prelude.Text)}
  deriving stock (SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> Bool
(SubstituteStringEntryProperty
 -> SubstituteStringEntryProperty -> Bool)
-> (SubstituteStringEntryProperty
    -> SubstituteStringEntryProperty -> Bool)
-> Eq SubstituteStringEntryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> Bool
== :: SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> Bool
$c/= :: SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> Bool
/= :: SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> Bool
Prelude.Eq, Int -> SubstituteStringEntryProperty -> ShowS
[SubstituteStringEntryProperty] -> ShowS
SubstituteStringEntryProperty -> String
(Int -> SubstituteStringEntryProperty -> ShowS)
-> (SubstituteStringEntryProperty -> String)
-> ([SubstituteStringEntryProperty] -> ShowS)
-> Show SubstituteStringEntryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubstituteStringEntryProperty -> ShowS
showsPrec :: Int -> SubstituteStringEntryProperty -> ShowS
$cshow :: SubstituteStringEntryProperty -> String
show :: SubstituteStringEntryProperty -> String
$cshowList :: [SubstituteStringEntryProperty] -> ShowS
showList :: [SubstituteStringEntryProperty] -> ShowS
Prelude.Show)
mkSubstituteStringEntryProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> SubstituteStringEntryProperty
mkSubstituteStringEntryProperty :: Value Text
-> Value Text -> Value Text -> SubstituteStringEntryProperty
mkSubstituteStringEntryProperty Value Text
from Value Text
source Value Text
to
  = SubstituteStringEntryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), from :: Value Text
from = Value Text
from, source :: Value Text
source = Value Text
source, to :: Value Text
to = Value Text
to}
instance ToResourceProperties SubstituteStringEntryProperty where
  toResourceProperties :: SubstituteStringEntryProperty -> ResourceProperties
toResourceProperties SubstituteStringEntryProperty {()
Value Text
haddock_workaround_ :: SubstituteStringEntryProperty -> ()
from :: SubstituteStringEntryProperty -> Value Text
source :: SubstituteStringEntryProperty -> Value Text
to :: SubstituteStringEntryProperty -> Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
to :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Logs::Transformer.SubstituteStringEntry",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"From" 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
from, Key
"Source" 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
source,
                       Key
"To" 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
to]}
instance JSON.ToJSON SubstituteStringEntryProperty where
  toJSON :: SubstituteStringEntryProperty -> Value
toJSON SubstituteStringEntryProperty {()
Value Text
haddock_workaround_ :: SubstituteStringEntryProperty -> ()
from :: SubstituteStringEntryProperty -> Value Text
source :: SubstituteStringEntryProperty -> Value Text
to :: SubstituteStringEntryProperty -> Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
to :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"From" 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
from, Key
"Source" 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
source, Key
"To" 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
to]
instance Property "From" SubstituteStringEntryProperty where
  type PropertyType "From" SubstituteStringEntryProperty = Value Prelude.Text
  set :: PropertyType "From" SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> SubstituteStringEntryProperty
set PropertyType "From" SubstituteStringEntryProperty
newValue SubstituteStringEntryProperty {()
Value Text
haddock_workaround_ :: SubstituteStringEntryProperty -> ()
from :: SubstituteStringEntryProperty -> Value Text
source :: SubstituteStringEntryProperty -> Value Text
to :: SubstituteStringEntryProperty -> Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
to :: Value Text
..}
    = SubstituteStringEntryProperty {from :: Value Text
from = PropertyType "From" SubstituteStringEntryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
source :: Value Text
to :: Value Text
haddock_workaround_ :: ()
source :: Value Text
to :: Value Text
..}
instance Property "Source" SubstituteStringEntryProperty where
  type PropertyType "Source" SubstituteStringEntryProperty = Value Prelude.Text
  set :: PropertyType "Source" SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> SubstituteStringEntryProperty
set PropertyType "Source" SubstituteStringEntryProperty
newValue SubstituteStringEntryProperty {()
Value Text
haddock_workaround_ :: SubstituteStringEntryProperty -> ()
from :: SubstituteStringEntryProperty -> Value Text
source :: SubstituteStringEntryProperty -> Value Text
to :: SubstituteStringEntryProperty -> Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
to :: Value Text
..}
    = SubstituteStringEntryProperty {source :: Value Text
source = PropertyType "Source" SubstituteStringEntryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
from :: Value Text
to :: Value Text
haddock_workaround_ :: ()
from :: Value Text
to :: Value Text
..}
instance Property "To" SubstituteStringEntryProperty where
  type PropertyType "To" SubstituteStringEntryProperty = Value Prelude.Text
  set :: PropertyType "To" SubstituteStringEntryProperty
-> SubstituteStringEntryProperty -> SubstituteStringEntryProperty
set PropertyType "To" SubstituteStringEntryProperty
newValue SubstituteStringEntryProperty {()
Value Text
haddock_workaround_ :: SubstituteStringEntryProperty -> ()
from :: SubstituteStringEntryProperty -> Value Text
source :: SubstituteStringEntryProperty -> Value Text
to :: SubstituteStringEntryProperty -> Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
to :: Value Text
..}
    = SubstituteStringEntryProperty {to :: Value Text
to = PropertyType "To" SubstituteStringEntryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
haddock_workaround_ :: ()
from :: Value Text
source :: Value Text
..}