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