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