module Stratosphere.Logs.Transformer.AddKeysProperty (
        module Exports, AddKeysProperty(..), mkAddKeysProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Logs.Transformer.AddKeyEntryProperty as Exports
import Stratosphere.ResourceProperties
data AddKeysProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-addkeys.html>
    AddKeysProperty {AddKeysProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-transformer-addkeys.html#cfn-logs-transformer-addkeys-entries>
                     AddKeysProperty -> [AddKeyEntryProperty]
entries :: [AddKeyEntryProperty]}
  deriving stock (AddKeysProperty -> AddKeysProperty -> Bool
(AddKeysProperty -> AddKeysProperty -> Bool)
-> (AddKeysProperty -> AddKeysProperty -> Bool)
-> Eq AddKeysProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AddKeysProperty -> AddKeysProperty -> Bool
== :: AddKeysProperty -> AddKeysProperty -> Bool
$c/= :: AddKeysProperty -> AddKeysProperty -> Bool
/= :: AddKeysProperty -> AddKeysProperty -> Bool
Prelude.Eq, Int -> AddKeysProperty -> ShowS
[AddKeysProperty] -> ShowS
AddKeysProperty -> String
(Int -> AddKeysProperty -> ShowS)
-> (AddKeysProperty -> String)
-> ([AddKeysProperty] -> ShowS)
-> Show AddKeysProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AddKeysProperty -> ShowS
showsPrec :: Int -> AddKeysProperty -> ShowS
$cshow :: AddKeysProperty -> String
show :: AddKeysProperty -> String
$cshowList :: [AddKeysProperty] -> ShowS
showList :: [AddKeysProperty] -> ShowS
Prelude.Show)
mkAddKeysProperty :: [AddKeyEntryProperty] -> AddKeysProperty
mkAddKeysProperty :: [AddKeyEntryProperty] -> AddKeysProperty
mkAddKeysProperty [AddKeyEntryProperty]
entries
  = AddKeysProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), entries :: [AddKeyEntryProperty]
entries = [AddKeyEntryProperty]
entries}
instance ToResourceProperties AddKeysProperty where
  toResourceProperties :: AddKeysProperty -> ResourceProperties
toResourceProperties AddKeysProperty {[AddKeyEntryProperty]
()
haddock_workaround_ :: AddKeysProperty -> ()
entries :: AddKeysProperty -> [AddKeyEntryProperty]
haddock_workaround_ :: ()
entries :: [AddKeyEntryProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Logs::Transformer.AddKeys",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Entries" Key -> [AddKeyEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AddKeyEntryProperty]
entries]}
instance JSON.ToJSON AddKeysProperty where
  toJSON :: AddKeysProperty -> Value
toJSON AddKeysProperty {[AddKeyEntryProperty]
()
haddock_workaround_ :: AddKeysProperty -> ()
entries :: AddKeysProperty -> [AddKeyEntryProperty]
haddock_workaround_ :: ()
entries :: [AddKeyEntryProperty]
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Entries" Key -> [AddKeyEntryProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [AddKeyEntryProperty]
entries]
instance Property "Entries" AddKeysProperty where
  type PropertyType "Entries" AddKeysProperty = [AddKeyEntryProperty]
  set :: PropertyType "Entries" AddKeysProperty
-> AddKeysProperty -> AddKeysProperty
set PropertyType "Entries" AddKeysProperty
newValue AddKeysProperty {[AddKeyEntryProperty]
()
haddock_workaround_ :: AddKeysProperty -> ()
entries :: AddKeysProperty -> [AddKeyEntryProperty]
haddock_workaround_ :: ()
entries :: [AddKeyEntryProperty]
..}
    = AddKeysProperty {entries :: [AddKeyEntryProperty]
entries = [AddKeyEntryProperty]
PropertyType "Entries" AddKeysProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}