module Stratosphere.IVS.RecordingConfiguration.RenditionConfigurationProperty (
        RenditionConfigurationProperty(..),
        mkRenditionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RenditionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-renditionconfiguration.html>
    RenditionConfigurationProperty {RenditionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-renditionconfiguration.html#cfn-ivs-recordingconfiguration-renditionconfiguration-renditionselection>
                                    RenditionConfigurationProperty -> Maybe (Value Text)
renditionSelection :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-renditionconfiguration.html#cfn-ivs-recordingconfiguration-renditionconfiguration-renditions>
                                    RenditionConfigurationProperty -> Maybe (ValueList Text)
renditions :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (RenditionConfigurationProperty
-> RenditionConfigurationProperty -> Bool
(RenditionConfigurationProperty
 -> RenditionConfigurationProperty -> Bool)
-> (RenditionConfigurationProperty
    -> RenditionConfigurationProperty -> Bool)
-> Eq RenditionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RenditionConfigurationProperty
-> RenditionConfigurationProperty -> Bool
== :: RenditionConfigurationProperty
-> RenditionConfigurationProperty -> Bool
$c/= :: RenditionConfigurationProperty
-> RenditionConfigurationProperty -> Bool
/= :: RenditionConfigurationProperty
-> RenditionConfigurationProperty -> Bool
Prelude.Eq, Int -> RenditionConfigurationProperty -> ShowS
[RenditionConfigurationProperty] -> ShowS
RenditionConfigurationProperty -> String
(Int -> RenditionConfigurationProperty -> ShowS)
-> (RenditionConfigurationProperty -> String)
-> ([RenditionConfigurationProperty] -> ShowS)
-> Show RenditionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RenditionConfigurationProperty -> ShowS
showsPrec :: Int -> RenditionConfigurationProperty -> ShowS
$cshow :: RenditionConfigurationProperty -> String
show :: RenditionConfigurationProperty -> String
$cshowList :: [RenditionConfigurationProperty] -> ShowS
showList :: [RenditionConfigurationProperty] -> ShowS
Prelude.Show)
mkRenditionConfigurationProperty :: RenditionConfigurationProperty
mkRenditionConfigurationProperty :: RenditionConfigurationProperty
mkRenditionConfigurationProperty
  = RenditionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), renditionSelection :: Maybe (Value Text)
renditionSelection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       renditions :: Maybe (ValueList Text)
renditions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RenditionConfigurationProperty where
  toResourceProperties :: RenditionConfigurationProperty -> ResourceProperties
toResourceProperties RenditionConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RenditionConfigurationProperty -> ()
renditionSelection :: RenditionConfigurationProperty -> Maybe (Value Text)
renditions :: RenditionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
renditions :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IVS::RecordingConfiguration.RenditionConfiguration",
         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
"RenditionSelection" (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)
renditionSelection,
                            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
"Renditions" (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)
renditions])}
instance JSON.ToJSON RenditionConfigurationProperty where
  toJSON :: RenditionConfigurationProperty -> Value
toJSON RenditionConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RenditionConfigurationProperty -> ()
renditionSelection :: RenditionConfigurationProperty -> Maybe (Value Text)
renditions :: RenditionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
renditions :: 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 -> 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
"RenditionSelection" (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)
renditionSelection,
               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
"Renditions" (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)
renditions]))
instance Property "RenditionSelection" RenditionConfigurationProperty where
  type PropertyType "RenditionSelection" RenditionConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RenditionSelection" RenditionConfigurationProperty
-> RenditionConfigurationProperty -> RenditionConfigurationProperty
set PropertyType "RenditionSelection" RenditionConfigurationProperty
newValue RenditionConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RenditionConfigurationProperty -> ()
renditionSelection :: RenditionConfigurationProperty -> Maybe (Value Text)
renditions :: RenditionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
renditions :: Maybe (ValueList Text)
..}
    = RenditionConfigurationProperty
        {renditionSelection :: Maybe (Value Text)
renditionSelection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RenditionSelection" RenditionConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
renditions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
renditions :: Maybe (ValueList Text)
..}
instance Property "Renditions" RenditionConfigurationProperty where
  type PropertyType "Renditions" RenditionConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "Renditions" RenditionConfigurationProperty
-> RenditionConfigurationProperty -> RenditionConfigurationProperty
set PropertyType "Renditions" RenditionConfigurationProperty
newValue RenditionConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RenditionConfigurationProperty -> ()
renditionSelection :: RenditionConfigurationProperty -> Maybe (Value Text)
renditions :: RenditionConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
renditions :: Maybe (ValueList Text)
..}
    = RenditionConfigurationProperty
        {renditions :: Maybe (ValueList Text)
renditions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Renditions" RenditionConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
haddock_workaround_ :: ()
renditionSelection :: Maybe (Value Text)
..}