module Stratosphere.MediaTailor.PlaybackConfiguration.AdsInteractionLogProperty (
        AdsInteractionLogProperty(..), mkAdsInteractionLogProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AdsInteractionLogProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-adsinteractionlog.html>
    AdsInteractionLogProperty {AdsInteractionLogProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-adsinteractionlog.html#cfn-mediatailor-playbackconfiguration-adsinteractionlog-excludeeventtypes>
                               AdsInteractionLogProperty -> Maybe (ValueList Text)
excludeEventTypes :: (Prelude.Maybe (ValueList Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-playbackconfiguration-adsinteractionlog.html#cfn-mediatailor-playbackconfiguration-adsinteractionlog-publishoptineventtypes>
                               AdsInteractionLogProperty -> Maybe (ValueList Text)
publishOptInEventTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool
(AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool)
-> (AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool)
-> Eq AdsInteractionLogProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool
== :: AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool
$c/= :: AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool
/= :: AdsInteractionLogProperty -> AdsInteractionLogProperty -> Bool
Prelude.Eq, Int -> AdsInteractionLogProperty -> ShowS
[AdsInteractionLogProperty] -> ShowS
AdsInteractionLogProperty -> String
(Int -> AdsInteractionLogProperty -> ShowS)
-> (AdsInteractionLogProperty -> String)
-> ([AdsInteractionLogProperty] -> ShowS)
-> Show AdsInteractionLogProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AdsInteractionLogProperty -> ShowS
showsPrec :: Int -> AdsInteractionLogProperty -> ShowS
$cshow :: AdsInteractionLogProperty -> String
show :: AdsInteractionLogProperty -> String
$cshowList :: [AdsInteractionLogProperty] -> ShowS
showList :: [AdsInteractionLogProperty] -> ShowS
Prelude.Show)
mkAdsInteractionLogProperty :: AdsInteractionLogProperty
mkAdsInteractionLogProperty :: AdsInteractionLogProperty
mkAdsInteractionLogProperty
  = AdsInteractionLogProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), excludeEventTypes :: Maybe (ValueList Text)
excludeEventTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       publishOptInEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AdsInteractionLogProperty where
  toResourceProperties :: AdsInteractionLogProperty -> ResourceProperties
toResourceProperties AdsInteractionLogProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: AdsInteractionLogProperty -> ()
excludeEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
publishOptInEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::PlaybackConfiguration.AdsInteractionLog",
         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
"ExcludeEventTypes" (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)
excludeEventTypes,
                            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
"PublishOptInEventTypes"
                              (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)
publishOptInEventTypes])}
instance JSON.ToJSON AdsInteractionLogProperty where
  toJSON :: AdsInteractionLogProperty -> Value
toJSON AdsInteractionLogProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: AdsInteractionLogProperty -> ()
excludeEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
publishOptInEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes :: 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
"ExcludeEventTypes" (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)
excludeEventTypes,
               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
"PublishOptInEventTypes"
                 (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)
publishOptInEventTypes]))
instance Property "ExcludeEventTypes" AdsInteractionLogProperty where
  type PropertyType "ExcludeEventTypes" AdsInteractionLogProperty = ValueList Prelude.Text
  set :: PropertyType "ExcludeEventTypes" AdsInteractionLogProperty
-> AdsInteractionLogProperty -> AdsInteractionLogProperty
set PropertyType "ExcludeEventTypes" AdsInteractionLogProperty
newValue AdsInteractionLogProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: AdsInteractionLogProperty -> ()
excludeEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
publishOptInEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes :: Maybe (ValueList Text)
..}
    = AdsInteractionLogProperty
        {excludeEventTypes :: Maybe (ValueList Text)
excludeEventTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExcludeEventTypes" AdsInteractionLogProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
publishOptInEventTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
publishOptInEventTypes :: Maybe (ValueList Text)
..}
instance Property "PublishOptInEventTypes" AdsInteractionLogProperty where
  type PropertyType "PublishOptInEventTypes" AdsInteractionLogProperty = ValueList Prelude.Text
  set :: PropertyType "PublishOptInEventTypes" AdsInteractionLogProperty
-> AdsInteractionLogProperty -> AdsInteractionLogProperty
set PropertyType "PublishOptInEventTypes" AdsInteractionLogProperty
newValue AdsInteractionLogProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: AdsInteractionLogProperty -> ()
excludeEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
publishOptInEventTypes :: AdsInteractionLogProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes :: Maybe (ValueList Text)
..}
    = AdsInteractionLogProperty
        {publishOptInEventTypes :: Maybe (ValueList Text)
publishOptInEventTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PublishOptInEventTypes" AdsInteractionLogProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
excludeEventTypes :: Maybe (ValueList Text)
..}