module Stratosphere.MediaConnect.Flow.SourceMonitoringConfigProperty (
        module Exports, SourceMonitoringConfigProperty(..),
        mkSourceMonitoringConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaConnect.Flow.AudioMonitoringSettingProperty as Exports
import {-# SOURCE #-} Stratosphere.MediaConnect.Flow.VideoMonitoringSettingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourceMonitoringConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html>
    SourceMonitoringConfigProperty {SourceMonitoringConfigProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-audiomonitoringsettings>
                                    SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
audioMonitoringSettings :: (Prelude.Maybe [AudioMonitoringSettingProperty]),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-contentqualityanalysisstate>
                                    SourceMonitoringConfigProperty -> Maybe (Value Text)
contentQualityAnalysisState :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-thumbnailstate>
                                    SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcemonitoringconfig.html#cfn-mediaconnect-flow-sourcemonitoringconfig-videomonitoringsettings>
                                    SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
videoMonitoringSettings :: (Prelude.Maybe [VideoMonitoringSettingProperty])}
  deriving stock (SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> Bool
(SourceMonitoringConfigProperty
 -> SourceMonitoringConfigProperty -> Bool)
-> (SourceMonitoringConfigProperty
    -> SourceMonitoringConfigProperty -> Bool)
-> Eq SourceMonitoringConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> Bool
== :: SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> Bool
$c/= :: SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> Bool
/= :: SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> Bool
Prelude.Eq, Int -> SourceMonitoringConfigProperty -> ShowS
[SourceMonitoringConfigProperty] -> ShowS
SourceMonitoringConfigProperty -> String
(Int -> SourceMonitoringConfigProperty -> ShowS)
-> (SourceMonitoringConfigProperty -> String)
-> ([SourceMonitoringConfigProperty] -> ShowS)
-> Show SourceMonitoringConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceMonitoringConfigProperty -> ShowS
showsPrec :: Int -> SourceMonitoringConfigProperty -> ShowS
$cshow :: SourceMonitoringConfigProperty -> String
show :: SourceMonitoringConfigProperty -> String
$cshowList :: [SourceMonitoringConfigProperty] -> ShowS
showList :: [SourceMonitoringConfigProperty] -> ShowS
Prelude.Show)
mkSourceMonitoringConfigProperty :: SourceMonitoringConfigProperty
mkSourceMonitoringConfigProperty :: SourceMonitoringConfigProperty
mkSourceMonitoringConfigProperty
  = SourceMonitoringConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
audioMonitoringSettings = Maybe [AudioMonitoringSettingProperty]
forall a. Maybe a
Prelude.Nothing,
       contentQualityAnalysisState :: Maybe (Value Text)
contentQualityAnalysisState = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       thumbnailState :: Maybe (Value Text)
thumbnailState = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
videoMonitoringSettings = Maybe [VideoMonitoringSettingProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SourceMonitoringConfigProperty where
  toResourceProperties :: SourceMonitoringConfigProperty -> ResourceProperties
toResourceProperties SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.SourceMonitoringConfig",
         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 -> [AudioMonitoringSettingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioMonitoringSettings"
                              ([AudioMonitoringSettingProperty] -> (Key, Value))
-> Maybe [AudioMonitoringSettingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AudioMonitoringSettingProperty]
audioMonitoringSettings,
                            Key -> Value 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
"ContentQualityAnalysisState"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
contentQualityAnalysisState,
                            Key -> Value 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
"ThumbnailState" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
thumbnailState,
                            Key -> [VideoMonitoringSettingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VideoMonitoringSettings"
                              ([VideoMonitoringSettingProperty] -> (Key, Value))
-> Maybe [VideoMonitoringSettingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VideoMonitoringSettingProperty]
videoMonitoringSettings])}
instance JSON.ToJSON SourceMonitoringConfigProperty where
  toJSON :: SourceMonitoringConfigProperty -> Value
toJSON SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = [(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 -> [AudioMonitoringSettingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioMonitoringSettings"
                 ([AudioMonitoringSettingProperty] -> (Key, Value))
-> Maybe [AudioMonitoringSettingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AudioMonitoringSettingProperty]
audioMonitoringSettings,
               Key -> Value 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
"ContentQualityAnalysisState"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
contentQualityAnalysisState,
               Key -> Value 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
"ThumbnailState" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
thumbnailState,
               Key -> [VideoMonitoringSettingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VideoMonitoringSettings"
                 ([VideoMonitoringSettingProperty] -> (Key, Value))
-> Maybe [VideoMonitoringSettingProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VideoMonitoringSettingProperty]
videoMonitoringSettings]))
instance Property "AudioMonitoringSettings" SourceMonitoringConfigProperty where
  type PropertyType "AudioMonitoringSettings" SourceMonitoringConfigProperty = [AudioMonitoringSettingProperty]
  set :: PropertyType
  "AudioMonitoringSettings" SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> SourceMonitoringConfigProperty
set PropertyType
  "AudioMonitoringSettings" SourceMonitoringConfigProperty
newValue SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = SourceMonitoringConfigProperty
        {audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
audioMonitoringSettings = [AudioMonitoringSettingProperty]
-> Maybe [AudioMonitoringSettingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AudioMonitoringSettingProperty]
PropertyType
  "AudioMonitoringSettings" SourceMonitoringConfigProperty
newValue, Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
instance Property "ContentQualityAnalysisState" SourceMonitoringConfigProperty where
  type PropertyType "ContentQualityAnalysisState" SourceMonitoringConfigProperty = Value Prelude.Text
  set :: PropertyType
  "ContentQualityAnalysisState" SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> SourceMonitoringConfigProperty
set PropertyType
  "ContentQualityAnalysisState" SourceMonitoringConfigProperty
newValue SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = SourceMonitoringConfigProperty
        {contentQualityAnalysisState :: Maybe (Value Text)
contentQualityAnalysisState = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ContentQualityAnalysisState" SourceMonitoringConfigProperty
Value Text
newValue, Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
instance Property "ThumbnailState" SourceMonitoringConfigProperty where
  type PropertyType "ThumbnailState" SourceMonitoringConfigProperty = Value Prelude.Text
  set :: PropertyType "ThumbnailState" SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> SourceMonitoringConfigProperty
set PropertyType "ThumbnailState" SourceMonitoringConfigProperty
newValue SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = SourceMonitoringConfigProperty
        {thumbnailState :: Maybe (Value Text)
thumbnailState = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ThumbnailState" SourceMonitoringConfigProperty
Value Text
newValue, Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
instance Property "VideoMonitoringSettings" SourceMonitoringConfigProperty where
  type PropertyType "VideoMonitoringSettings" SourceMonitoringConfigProperty = [VideoMonitoringSettingProperty]
  set :: PropertyType
  "VideoMonitoringSettings" SourceMonitoringConfigProperty
-> SourceMonitoringConfigProperty -> SourceMonitoringConfigProperty
set PropertyType
  "VideoMonitoringSettings" SourceMonitoringConfigProperty
newValue SourceMonitoringConfigProperty {Maybe [AudioMonitoringSettingProperty]
Maybe [VideoMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SourceMonitoringConfigProperty -> ()
audioMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
thumbnailState :: SourceMonitoringConfigProperty -> Maybe (Value Text)
videoMonitoringSettings :: SourceMonitoringConfigProperty
-> Maybe [VideoMonitoringSettingProperty]
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
..}
    = SourceMonitoringConfigProperty
        {videoMonitoringSettings :: Maybe [VideoMonitoringSettingProperty]
videoMonitoringSettings = [VideoMonitoringSettingProperty]
-> Maybe [VideoMonitoringSettingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [VideoMonitoringSettingProperty]
PropertyType
  "VideoMonitoringSettings" SourceMonitoringConfigProperty
newValue, Maybe [AudioMonitoringSettingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
haddock_workaround_ :: ()
audioMonitoringSettings :: Maybe [AudioMonitoringSettingProperty]
contentQualityAnalysisState :: Maybe (Value Text)
thumbnailState :: Maybe (Value Text)
..}