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