module Stratosphere.Logs.Transformer.SubstituteStringProperty (
module Exports, SubstituteStringProperty(..),
mkSubstituteStringProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Logs.Transformer.SubstituteStringEntryProperty as Exports
import Stratosphere.ResourceProperties
data SubstituteStringProperty
=
SubstituteStringProperty {SubstituteStringProperty -> ()
haddock_workaround_ :: (),
SubstituteStringProperty -> [SubstituteStringEntryProperty]
entries :: [SubstituteStringEntryProperty]}
deriving stock (SubstituteStringProperty -> SubstituteStringProperty -> Bool
(SubstituteStringProperty -> SubstituteStringProperty -> Bool)
-> (SubstituteStringProperty -> SubstituteStringProperty -> Bool)
-> Eq SubstituteStringProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubstituteStringProperty -> SubstituteStringProperty -> Bool
== :: SubstituteStringProperty -> SubstituteStringProperty -> Bool
$c/= :: SubstituteStringProperty -> SubstituteStringProperty -> Bool
/= :: SubstituteStringProperty -> SubstituteStringProperty -> Bool
Prelude.Eq, Int -> SubstituteStringProperty -> ShowS
[SubstituteStringProperty] -> ShowS
SubstituteStringProperty -> String
(Int -> SubstituteStringProperty -> ShowS)
-> (SubstituteStringProperty -> String)
-> ([SubstituteStringProperty] -> ShowS)
-> Show SubstituteStringProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubstituteStringProperty -> ShowS
showsPrec :: Int -> SubstituteStringProperty -> ShowS
$cshow :: SubstituteStringProperty -> String
show :: SubstituteStringProperty -> String
$cshowList :: [SubstituteStringProperty] -> ShowS
showList :: [SubstituteStringProperty] -> ShowS
Prelude.Show)
mkSubstituteStringProperty ::
[SubstituteStringEntryProperty] -> SubstituteStringProperty
mkSubstituteStringProperty :: [SubstituteStringEntryProperty] -> SubstituteStringProperty
mkSubstituteStringProperty [SubstituteStringEntryProperty]
entries
= SubstituteStringProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), entries :: [SubstituteStringEntryProperty]
entries = [SubstituteStringEntryProperty]
entries}
instance ToResourceProperties SubstituteStringProperty where
toResourceProperties :: SubstituteStringProperty -> ResourceProperties
toResourceProperties SubstituteStringProperty {[SubstituteStringEntryProperty]
()
haddock_workaround_ :: SubstituteStringProperty -> ()
entries :: SubstituteStringProperty -> [SubstituteStringEntryProperty]
haddock_workaround_ :: ()
entries :: [SubstituteStringEntryProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Logs::Transformer.SubstituteString",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Entries" Key -> [SubstituteStringEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [SubstituteStringEntryProperty]
entries]}
instance JSON.ToJSON SubstituteStringProperty where
toJSON :: SubstituteStringProperty -> Value
toJSON SubstituteStringProperty {[SubstituteStringEntryProperty]
()
haddock_workaround_ :: SubstituteStringProperty -> ()
entries :: SubstituteStringProperty -> [SubstituteStringEntryProperty]
haddock_workaround_ :: ()
entries :: [SubstituteStringEntryProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Entries" Key -> [SubstituteStringEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [SubstituteStringEntryProperty]
entries]
instance Property "Entries" SubstituteStringProperty where
type PropertyType "Entries" SubstituteStringProperty = [SubstituteStringEntryProperty]
set :: PropertyType "Entries" SubstituteStringProperty
-> SubstituteStringProperty -> SubstituteStringProperty
set PropertyType "Entries" SubstituteStringProperty
newValue SubstituteStringProperty {[SubstituteStringEntryProperty]
()
haddock_workaround_ :: SubstituteStringProperty -> ()
entries :: SubstituteStringProperty -> [SubstituteStringEntryProperty]
haddock_workaround_ :: ()
entries :: [SubstituteStringEntryProperty]
..}
= SubstituteStringProperty {entries :: [SubstituteStringEntryProperty]
entries = [SubstituteStringEntryProperty]
PropertyType "Entries" SubstituteStringProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}