module Stratosphere.IVS.Stage (
module Exports, Stage(..), mkStage
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IVS.Stage.AutoParticipantRecordingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Stage
=
Stage {Stage -> ()
haddock_workaround_ :: (),
Stage -> Maybe AutoParticipantRecordingConfigurationProperty
autoParticipantRecordingConfiguration :: (Prelude.Maybe AutoParticipantRecordingConfigurationProperty),
Stage -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
Stage -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Stage -> Stage -> Bool
(Stage -> Stage -> Bool) -> (Stage -> Stage -> Bool) -> Eq Stage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Stage -> Stage -> Bool
== :: Stage -> Stage -> Bool
$c/= :: Stage -> Stage -> Bool
/= :: Stage -> Stage -> Bool
Prelude.Eq, Int -> Stage -> ShowS
[Stage] -> ShowS
Stage -> String
(Int -> Stage -> ShowS)
-> (Stage -> String) -> ([Stage] -> ShowS) -> Show Stage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Stage -> ShowS
showsPrec :: Int -> Stage -> ShowS
$cshow :: Stage -> String
show :: Stage -> String
$cshowList :: [Stage] -> ShowS
showList :: [Stage] -> ShowS
Prelude.Show)
mkStage :: Stage
mkStage :: Stage
mkStage
= Stage
{haddock_workaround_ :: ()
haddock_workaround_ = (),
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
autoParticipantRecordingConfiguration = Maybe AutoParticipantRecordingConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Stage where
toResourceProperties :: Stage -> ResourceProperties
toResourceProperties Stage {Maybe [Tag]
Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: Stage -> ()
autoParticipantRecordingConfiguration :: Stage -> Maybe AutoParticipantRecordingConfigurationProperty
name :: Stage -> Maybe (Value Text)
tags :: Stage -> Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IVS::Stage", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
-> AutoParticipantRecordingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoParticipantRecordingConfiguration"
(AutoParticipantRecordingConfigurationProperty -> (Key, Value))
-> Maybe AutoParticipantRecordingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoParticipantRecordingConfigurationProperty
autoParticipantRecordingConfiguration,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON Stage where
toJSON :: Stage -> Value
toJSON Stage {Maybe [Tag]
Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: Stage -> ()
autoParticipantRecordingConfiguration :: Stage -> Maybe AutoParticipantRecordingConfigurationProperty
name :: Stage -> Maybe (Value Text)
tags :: Stage -> Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
-> AutoParticipantRecordingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoParticipantRecordingConfiguration"
(AutoParticipantRecordingConfigurationProperty -> (Key, Value))
-> Maybe AutoParticipantRecordingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoParticipantRecordingConfigurationProperty
autoParticipantRecordingConfiguration,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "AutoParticipantRecordingConfiguration" Stage where
type PropertyType "AutoParticipantRecordingConfiguration" Stage = AutoParticipantRecordingConfigurationProperty
set :: PropertyType "AutoParticipantRecordingConfiguration" Stage
-> Stage -> Stage
set PropertyType "AutoParticipantRecordingConfiguration" Stage
newValue Stage {Maybe [Tag]
Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: Stage -> ()
autoParticipantRecordingConfiguration :: Stage -> Maybe AutoParticipantRecordingConfigurationProperty
name :: Stage -> Maybe (Value Text)
tags :: Stage -> Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Stage
{autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
autoParticipantRecordingConfiguration = AutoParticipantRecordingConfigurationProperty
-> Maybe AutoParticipantRecordingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoParticipantRecordingConfiguration" Stage
AutoParticipantRecordingConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" Stage where
type PropertyType "Name" Stage = Value Prelude.Text
set :: PropertyType "Name" Stage -> Stage -> Stage
set PropertyType "Name" Stage
newValue Stage {Maybe [Tag]
Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: Stage -> ()
autoParticipantRecordingConfiguration :: Stage -> Maybe AutoParticipantRecordingConfigurationProperty
name :: Stage -> Maybe (Value Text)
tags :: Stage -> Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Stage {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Stage
Value Text
newValue, Maybe [Tag]
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" Stage where
type PropertyType "Tags" Stage = [Tag]
set :: PropertyType "Tags" Stage -> Stage -> Stage
set PropertyType "Tags" Stage
newValue Stage {Maybe [Tag]
Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: Stage -> ()
autoParticipantRecordingConfiguration :: Stage -> Maybe AutoParticipantRecordingConfigurationProperty
name :: Stage -> Maybe (Value Text)
tags :: Stage -> Maybe [Tag]
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Stage {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Stage
newValue, Maybe (Value Text)
Maybe AutoParticipantRecordingConfigurationProperty
()
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
autoParticipantRecordingConfiguration :: Maybe AutoParticipantRecordingConfigurationProperty
name :: Maybe (Value Text)
..}