module Stratosphere.MediaLive.Channel.AdditionalDestinationsProperty (
module Exports, AdditionalDestinationsProperty(..),
mkAdditionalDestinationsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.OutputLocationRefProperty as Exports
import Stratosphere.ResourceProperties
data AdditionalDestinationsProperty
=
AdditionalDestinationsProperty {AdditionalDestinationsProperty -> ()
haddock_workaround_ :: (),
AdditionalDestinationsProperty -> Maybe OutputLocationRefProperty
destination :: (Prelude.Maybe OutputLocationRefProperty)}
deriving stock (AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool
(AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool)
-> (AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool)
-> Eq AdditionalDestinationsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool
== :: AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool
$c/= :: AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool
/= :: AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> Bool
Prelude.Eq, Int -> AdditionalDestinationsProperty -> ShowS
[AdditionalDestinationsProperty] -> ShowS
AdditionalDestinationsProperty -> String
(Int -> AdditionalDestinationsProperty -> ShowS)
-> (AdditionalDestinationsProperty -> String)
-> ([AdditionalDestinationsProperty] -> ShowS)
-> Show AdditionalDestinationsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AdditionalDestinationsProperty -> ShowS
showsPrec :: Int -> AdditionalDestinationsProperty -> ShowS
$cshow :: AdditionalDestinationsProperty -> String
show :: AdditionalDestinationsProperty -> String
$cshowList :: [AdditionalDestinationsProperty] -> ShowS
showList :: [AdditionalDestinationsProperty] -> ShowS
Prelude.Show)
mkAdditionalDestinationsProperty :: AdditionalDestinationsProperty
mkAdditionalDestinationsProperty :: AdditionalDestinationsProperty
mkAdditionalDestinationsProperty
= AdditionalDestinationsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: Maybe OutputLocationRefProperty
destination = Maybe OutputLocationRefProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AdditionalDestinationsProperty where
toResourceProperties :: AdditionalDestinationsProperty -> ResourceProperties
toResourceProperties AdditionalDestinationsProperty {Maybe OutputLocationRefProperty
()
haddock_workaround_ :: AdditionalDestinationsProperty -> ()
destination :: AdditionalDestinationsProperty -> Maybe OutputLocationRefProperty
haddock_workaround_ :: ()
destination :: Maybe OutputLocationRefProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.AdditionalDestinations",
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 -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination])}
instance JSON.ToJSON AdditionalDestinationsProperty where
toJSON :: AdditionalDestinationsProperty -> Value
toJSON AdditionalDestinationsProperty {Maybe OutputLocationRefProperty
()
haddock_workaround_ :: AdditionalDestinationsProperty -> ()
destination :: AdditionalDestinationsProperty -> Maybe OutputLocationRefProperty
haddock_workaround_ :: ()
destination :: Maybe OutputLocationRefProperty
..}
= [(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 -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination]))
instance Property "Destination" AdditionalDestinationsProperty where
type PropertyType "Destination" AdditionalDestinationsProperty = OutputLocationRefProperty
set :: PropertyType "Destination" AdditionalDestinationsProperty
-> AdditionalDestinationsProperty -> AdditionalDestinationsProperty
set PropertyType "Destination" AdditionalDestinationsProperty
newValue AdditionalDestinationsProperty {Maybe OutputLocationRefProperty
()
haddock_workaround_ :: AdditionalDestinationsProperty -> ()
destination :: AdditionalDestinationsProperty -> Maybe OutputLocationRefProperty
haddock_workaround_ :: ()
destination :: Maybe OutputLocationRefProperty
..}
= AdditionalDestinationsProperty
{destination :: Maybe OutputLocationRefProperty
destination = OutputLocationRefProperty -> Maybe OutputLocationRefProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" AdditionalDestinationsProperty
OutputLocationRefProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}