module Stratosphere.MediaLive.Channel.FrameCaptureOutputSettingsProperty (
        FrameCaptureOutputSettingsProperty(..),
        mkFrameCaptureOutputSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FrameCaptureOutputSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-framecaptureoutputsettings.html>
    FrameCaptureOutputSettingsProperty {FrameCaptureOutputSettingsProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-framecaptureoutputsettings.html#cfn-medialive-channel-framecaptureoutputsettings-namemodifier>
                                        FrameCaptureOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty -> Bool
(FrameCaptureOutputSettingsProperty
 -> FrameCaptureOutputSettingsProperty -> Bool)
-> (FrameCaptureOutputSettingsProperty
    -> FrameCaptureOutputSettingsProperty -> Bool)
-> Eq FrameCaptureOutputSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty -> Bool
== :: FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty -> Bool
$c/= :: FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty -> Bool
/= :: FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty -> Bool
Prelude.Eq, Int -> FrameCaptureOutputSettingsProperty -> ShowS
[FrameCaptureOutputSettingsProperty] -> ShowS
FrameCaptureOutputSettingsProperty -> String
(Int -> FrameCaptureOutputSettingsProperty -> ShowS)
-> (FrameCaptureOutputSettingsProperty -> String)
-> ([FrameCaptureOutputSettingsProperty] -> ShowS)
-> Show FrameCaptureOutputSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FrameCaptureOutputSettingsProperty -> ShowS
showsPrec :: Int -> FrameCaptureOutputSettingsProperty -> ShowS
$cshow :: FrameCaptureOutputSettingsProperty -> String
show :: FrameCaptureOutputSettingsProperty -> String
$cshowList :: [FrameCaptureOutputSettingsProperty] -> ShowS
showList :: [FrameCaptureOutputSettingsProperty] -> ShowS
Prelude.Show)
mkFrameCaptureOutputSettingsProperty ::
  FrameCaptureOutputSettingsProperty
mkFrameCaptureOutputSettingsProperty :: FrameCaptureOutputSettingsProperty
mkFrameCaptureOutputSettingsProperty
  = FrameCaptureOutputSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), nameModifier :: Maybe (Value Text)
nameModifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FrameCaptureOutputSettingsProperty where
  toResourceProperties :: FrameCaptureOutputSettingsProperty -> ResourceProperties
toResourceProperties FrameCaptureOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: FrameCaptureOutputSettingsProperty -> ()
nameModifier :: FrameCaptureOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nameModifier :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.FrameCaptureOutputSettings",
         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
"NameModifier" (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)
nameModifier])}
instance JSON.ToJSON FrameCaptureOutputSettingsProperty where
  toJSON :: FrameCaptureOutputSettingsProperty -> Value
toJSON FrameCaptureOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: FrameCaptureOutputSettingsProperty -> ()
nameModifier :: FrameCaptureOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nameModifier :: Maybe (Value 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
"NameModifier" (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)
nameModifier]))
instance Property "NameModifier" FrameCaptureOutputSettingsProperty where
  type PropertyType "NameModifier" FrameCaptureOutputSettingsProperty = Value Prelude.Text
  set :: PropertyType "NameModifier" FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty
-> FrameCaptureOutputSettingsProperty
set PropertyType "NameModifier" FrameCaptureOutputSettingsProperty
newValue FrameCaptureOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: FrameCaptureOutputSettingsProperty -> ()
nameModifier :: FrameCaptureOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nameModifier :: Maybe (Value Text)
..}
    = FrameCaptureOutputSettingsProperty
        {nameModifier :: Maybe (Value Text)
nameModifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NameModifier" FrameCaptureOutputSettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}