module Stratosphere.IVS.RecordingConfiguration.ThumbnailConfigurationProperty (
        ThumbnailConfigurationProperty(..),
        mkThumbnailConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThumbnailConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html>
    ThumbnailConfigurationProperty {ThumbnailConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-recordingmode>
                                    ThumbnailConfigurationProperty -> Maybe (Value Text)
recordingMode :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-resolution>
                                    ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-storage>
                                    ThumbnailConfigurationProperty -> Maybe (ValueList Text)
storage :: (Prelude.Maybe (ValueList Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-targetintervalseconds>
                                    ThumbnailConfigurationProperty -> Maybe (Value Integer)
targetIntervalSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
(ThumbnailConfigurationProperty
 -> ThumbnailConfigurationProperty -> Bool)
-> (ThumbnailConfigurationProperty
    -> ThumbnailConfigurationProperty -> Bool)
-> Eq ThumbnailConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
== :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
$c/= :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
/= :: ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> Bool
Prelude.Eq, Int -> ThumbnailConfigurationProperty -> ShowS
[ThumbnailConfigurationProperty] -> ShowS
ThumbnailConfigurationProperty -> String
(Int -> ThumbnailConfigurationProperty -> ShowS)
-> (ThumbnailConfigurationProperty -> String)
-> ([ThumbnailConfigurationProperty] -> ShowS)
-> Show ThumbnailConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThumbnailConfigurationProperty -> ShowS
showsPrec :: Int -> ThumbnailConfigurationProperty -> ShowS
$cshow :: ThumbnailConfigurationProperty -> String
show :: ThumbnailConfigurationProperty -> String
$cshowList :: [ThumbnailConfigurationProperty] -> ShowS
showList :: [ThumbnailConfigurationProperty] -> ShowS
Prelude.Show)
mkThumbnailConfigurationProperty :: ThumbnailConfigurationProperty
mkThumbnailConfigurationProperty :: ThumbnailConfigurationProperty
mkThumbnailConfigurationProperty
  = ThumbnailConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), recordingMode :: Maybe (Value Text)
recordingMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       resolution :: Maybe (Value Text)
resolution = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, storage :: Maybe (ValueList Text)
storage = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       targetIntervalSeconds :: Maybe (Value Integer)
targetIntervalSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ThumbnailConfigurationProperty where
  toResourceProperties :: ThumbnailConfigurationProperty -> ResourceProperties
toResourceProperties ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IVS::RecordingConfiguration.ThumbnailConfiguration",
         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 -> 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
"RecordingMode" (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)
recordingMode,
                            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
"Resolution" (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)
resolution,
                            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
"Storage" (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)
storage,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetIntervalSeconds"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
targetIntervalSeconds])}
instance JSON.ToJSON ThumbnailConfigurationProperty where
  toJSON :: ThumbnailConfigurationProperty -> Value
toJSON ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = [(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 -> 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
"RecordingMode" (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)
recordingMode,
               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
"Resolution" (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)
resolution,
               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
"Storage" (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)
storage,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetIntervalSeconds"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
targetIntervalSeconds]))
instance Property "RecordingMode" ThumbnailConfigurationProperty where
  type PropertyType "RecordingMode" ThumbnailConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RecordingMode" ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> ThumbnailConfigurationProperty
set PropertyType "RecordingMode" ThumbnailConfigurationProperty
newValue ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = ThumbnailConfigurationProperty
        {recordingMode :: Maybe (Value Text)
recordingMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RecordingMode" ThumbnailConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
instance Property "Resolution" ThumbnailConfigurationProperty where
  type PropertyType "Resolution" ThumbnailConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Resolution" ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> ThumbnailConfigurationProperty
set PropertyType "Resolution" ThumbnailConfigurationProperty
newValue ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = ThumbnailConfigurationProperty
        {resolution :: Maybe (Value Text)
resolution = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Resolution" ThumbnailConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
instance Property "Storage" ThumbnailConfigurationProperty where
  type PropertyType "Storage" ThumbnailConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "Storage" ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> ThumbnailConfigurationProperty
set PropertyType "Storage" ThumbnailConfigurationProperty
newValue ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = ThumbnailConfigurationProperty
        {storage :: Maybe (ValueList Text)
storage = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Storage" ThumbnailConfigurationProperty
ValueList Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
targetIntervalSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
instance Property "TargetIntervalSeconds" ThumbnailConfigurationProperty where
  type PropertyType "TargetIntervalSeconds" ThumbnailConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "TargetIntervalSeconds" ThumbnailConfigurationProperty
-> ThumbnailConfigurationProperty -> ThumbnailConfigurationProperty
set PropertyType "TargetIntervalSeconds" ThumbnailConfigurationProperty
newValue ThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ThumbnailConfigurationProperty -> ()
recordingMode :: ThumbnailConfigurationProperty -> Maybe (Value Text)
resolution :: ThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
    = ThumbnailConfigurationProperty
        {targetIntervalSeconds :: Maybe (Value Integer)
targetIntervalSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetIntervalSeconds" ThumbnailConfigurationProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
resolution :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
..}