module Stratosphere.MediaTailor.Channel.LogConfigurationForChannelProperty (
        LogConfigurationForChannelProperty(..),
        mkLogConfigurationForChannelProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LogConfigurationForChannelProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-logconfigurationforchannel.html>
    LogConfigurationForChannelProperty {LogConfigurationForChannelProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-logconfigurationforchannel.html#cfn-mediatailor-channel-logconfigurationforchannel-logtypes>
                                        LogConfigurationForChannelProperty -> Maybe (ValueList Text)
logTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty -> Bool
(LogConfigurationForChannelProperty
 -> LogConfigurationForChannelProperty -> Bool)
-> (LogConfigurationForChannelProperty
    -> LogConfigurationForChannelProperty -> Bool)
-> Eq LogConfigurationForChannelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty -> Bool
== :: LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty -> Bool
$c/= :: LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty -> Bool
/= :: LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty -> Bool
Prelude.Eq, Int -> LogConfigurationForChannelProperty -> ShowS
[LogConfigurationForChannelProperty] -> ShowS
LogConfigurationForChannelProperty -> String
(Int -> LogConfigurationForChannelProperty -> ShowS)
-> (LogConfigurationForChannelProperty -> String)
-> ([LogConfigurationForChannelProperty] -> ShowS)
-> Show LogConfigurationForChannelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LogConfigurationForChannelProperty -> ShowS
showsPrec :: Int -> LogConfigurationForChannelProperty -> ShowS
$cshow :: LogConfigurationForChannelProperty -> String
show :: LogConfigurationForChannelProperty -> String
$cshowList :: [LogConfigurationForChannelProperty] -> ShowS
showList :: [LogConfigurationForChannelProperty] -> ShowS
Prelude.Show)
mkLogConfigurationForChannelProperty ::
  LogConfigurationForChannelProperty
mkLogConfigurationForChannelProperty :: LogConfigurationForChannelProperty
mkLogConfigurationForChannelProperty
  = LogConfigurationForChannelProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), logTypes :: Maybe (ValueList Text)
logTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LogConfigurationForChannelProperty where
  toResourceProperties :: LogConfigurationForChannelProperty -> ResourceProperties
toResourceProperties LogConfigurationForChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LogConfigurationForChannelProperty -> ()
logTypes :: LogConfigurationForChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
logTypes :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::Channel.LogConfigurationForChannel",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LogTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
logTypes])}
instance JSON.ToJSON LogConfigurationForChannelProperty where
  toJSON :: LogConfigurationForChannelProperty -> Value
toJSON LogConfigurationForChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LogConfigurationForChannelProperty -> ()
logTypes :: LogConfigurationForChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
logTypes :: Maybe (ValueList Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LogTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
logTypes]))
instance Property "LogTypes" LogConfigurationForChannelProperty where
  type PropertyType "LogTypes" LogConfigurationForChannelProperty = ValueList Prelude.Text
  set :: PropertyType "LogTypes" LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty
-> LogConfigurationForChannelProperty
set PropertyType "LogTypes" LogConfigurationForChannelProperty
newValue LogConfigurationForChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: LogConfigurationForChannelProperty -> ()
logTypes :: LogConfigurationForChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
logTypes :: Maybe (ValueList Text)
..}
    = LogConfigurationForChannelProperty
        {logTypes :: Maybe (ValueList Text)
logTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LogTypes" LogConfigurationForChannelProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}