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