module Stratosphere.IVS.Stage.ParticipantThumbnailConfigurationProperty (
ParticipantThumbnailConfigurationProperty(..),
mkParticipantThumbnailConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParticipantThumbnailConfigurationProperty
=
ParticipantThumbnailConfigurationProperty {ParticipantThumbnailConfigurationProperty -> ()
haddock_workaround_ :: (),
ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
recordingMode :: (Prelude.Maybe (Value Prelude.Text)),
ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
storage :: (Prelude.Maybe (ValueList Prelude.Text)),
ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
targetIntervalSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool
(ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool)
-> (ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool)
-> Eq ParticipantThumbnailConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool
== :: ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool
$c/= :: ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool
/= :: ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty -> Bool
Prelude.Eq, Int -> ParticipantThumbnailConfigurationProperty -> ShowS
[ParticipantThumbnailConfigurationProperty] -> ShowS
ParticipantThumbnailConfigurationProperty -> String
(Int -> ParticipantThumbnailConfigurationProperty -> ShowS)
-> (ParticipantThumbnailConfigurationProperty -> String)
-> ([ParticipantThumbnailConfigurationProperty] -> ShowS)
-> Show ParticipantThumbnailConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParticipantThumbnailConfigurationProperty -> ShowS
showsPrec :: Int -> ParticipantThumbnailConfigurationProperty -> ShowS
$cshow :: ParticipantThumbnailConfigurationProperty -> String
show :: ParticipantThumbnailConfigurationProperty -> String
$cshowList :: [ParticipantThumbnailConfigurationProperty] -> ShowS
showList :: [ParticipantThumbnailConfigurationProperty] -> ShowS
Prelude.Show)
mkParticipantThumbnailConfigurationProperty ::
ParticipantThumbnailConfigurationProperty
mkParticipantThumbnailConfigurationProperty :: ParticipantThumbnailConfigurationProperty
mkParticipantThumbnailConfigurationProperty
= ParticipantThumbnailConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), recordingMode :: Maybe (Value Text)
recordingMode = 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 ParticipantThumbnailConfigurationProperty where
toResourceProperties :: ParticipantThumbnailConfigurationProperty -> ResourceProperties
toResourceProperties ParticipantThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ParticipantThumbnailConfigurationProperty -> ()
recordingMode :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IVS::Stage.ParticipantThumbnailConfiguration",
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 -> 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 ParticipantThumbnailConfigurationProperty where
toJSON :: ParticipantThumbnailConfigurationProperty -> Value
toJSON ParticipantThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ParticipantThumbnailConfigurationProperty -> ()
recordingMode :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: 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 -> 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" ParticipantThumbnailConfigurationProperty where
type PropertyType "RecordingMode" ParticipantThumbnailConfigurationProperty = Value Prelude.Text
set :: PropertyType
"RecordingMode" ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
set PropertyType
"RecordingMode" ParticipantThumbnailConfigurationProperty
newValue ParticipantThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ParticipantThumbnailConfigurationProperty -> ()
recordingMode :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
= ParticipantThumbnailConfigurationProperty
{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" ParticipantThumbnailConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
instance Property "Storage" ParticipantThumbnailConfigurationProperty where
type PropertyType "Storage" ParticipantThumbnailConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "Storage" ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
set PropertyType "Storage" ParticipantThumbnailConfigurationProperty
newValue ParticipantThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ParticipantThumbnailConfigurationProperty -> ()
recordingMode :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
= ParticipantThumbnailConfigurationProperty
{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" ParticipantThumbnailConfigurationProperty
ValueList Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
targetIntervalSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
instance Property "TargetIntervalSeconds" ParticipantThumbnailConfigurationProperty where
type PropertyType "TargetIntervalSeconds" ParticipantThumbnailConfigurationProperty = Value Prelude.Integer
set :: PropertyType
"TargetIntervalSeconds" ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
-> ParticipantThumbnailConfigurationProperty
set PropertyType
"TargetIntervalSeconds" ParticipantThumbnailConfigurationProperty
newValue ParticipantThumbnailConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ParticipantThumbnailConfigurationProperty -> ()
recordingMode :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Text)
storage :: ParticipantThumbnailConfigurationProperty -> Maybe (ValueList Text)
targetIntervalSeconds :: ParticipantThumbnailConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
targetIntervalSeconds :: Maybe (Value Integer)
..}
= ParticipantThumbnailConfigurationProperty
{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" ParticipantThumbnailConfigurationProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
haddock_workaround_ :: ()
recordingMode :: Maybe (Value Text)
storage :: Maybe (ValueList Text)
..}