module Stratosphere.MediaPackage.Channel (
module Exports, Channel(..), mkChannel
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaPackage.Channel.HlsIngestProperty as Exports
import {-# SOURCE #-} Stratosphere.MediaPackage.Channel.LogConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Channel
=
Channel {Channel -> ()
haddock_workaround_ :: (),
Channel -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Channel -> Maybe LogConfigurationProperty
egressAccessLogs :: (Prelude.Maybe LogConfigurationProperty),
Channel -> Maybe HlsIngestProperty
hlsIngest :: (Prelude.Maybe HlsIngestProperty),
Channel -> Value Text
id :: (Value Prelude.Text),
Channel -> Maybe LogConfigurationProperty
ingressAccessLogs :: (Prelude.Maybe LogConfigurationProperty),
Channel -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Channel -> Channel -> Bool
(Channel -> Channel -> Bool)
-> (Channel -> Channel -> Bool) -> Eq Channel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Channel -> Channel -> Bool
== :: Channel -> Channel -> Bool
$c/= :: Channel -> Channel -> Bool
/= :: Channel -> Channel -> Bool
Prelude.Eq, Int -> Channel -> ShowS
[Channel] -> ShowS
Channel -> String
(Int -> Channel -> ShowS)
-> (Channel -> String) -> ([Channel] -> ShowS) -> Show Channel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Channel -> ShowS
showsPrec :: Int -> Channel -> ShowS
$cshow :: Channel -> String
show :: Channel -> String
$cshowList :: [Channel] -> ShowS
showList :: [Channel] -> ShowS
Prelude.Show)
mkChannel :: Value Prelude.Text -> Channel
mkChannel :: Value Text -> Channel
mkChannel Value Text
id
= Channel
{haddock_workaround_ :: ()
haddock_workaround_ = (), id :: Value Text
id = Value Text
id, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
egressAccessLogs :: Maybe LogConfigurationProperty
egressAccessLogs = Maybe LogConfigurationProperty
forall a. Maybe a
Prelude.Nothing, hlsIngest :: Maybe HlsIngestProperty
hlsIngest = Maybe HlsIngestProperty
forall a. Maybe a
Prelude.Nothing,
ingressAccessLogs :: Maybe LogConfigurationProperty
ingressAccessLogs = Maybe LogConfigurationProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Channel where
toResourceProperties :: Channel -> ResourceProperties
toResourceProperties Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackage::Channel",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Id" 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..= Value Text
id]
([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
"Description" (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)
description,
Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EgressAccessLogs" (LogConfigurationProperty -> (Key, Value))
-> Maybe LogConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfigurationProperty
egressAccessLogs,
Key -> HlsIngestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HlsIngest" (HlsIngestProperty -> (Key, Value))
-> Maybe HlsIngestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsIngestProperty
hlsIngest,
Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IngressAccessLogs" (LogConfigurationProperty -> (Key, Value))
-> Maybe LogConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfigurationProperty
ingressAccessLogs,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Channel where
toJSON :: Channel -> Value
toJSON Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Id" 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..= Value Text
id]
([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
"Description" (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)
description,
Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EgressAccessLogs" (LogConfigurationProperty -> (Key, Value))
-> Maybe LogConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfigurationProperty
egressAccessLogs,
Key -> HlsIngestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HlsIngest" (HlsIngestProperty -> (Key, Value))
-> Maybe HlsIngestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsIngestProperty
hlsIngest,
Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IngressAccessLogs" (LogConfigurationProperty -> (Key, Value))
-> Maybe LogConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfigurationProperty
ingressAccessLogs,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Description" Channel where
type PropertyType "Description" Channel = Value Prelude.Text
set :: PropertyType "Description" Channel -> Channel -> Channel
set PropertyType "Description" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= Channel {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Channel
Value Text
newValue, Maybe [Tag]
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "EgressAccessLogs" Channel where
type PropertyType "EgressAccessLogs" Channel = LogConfigurationProperty
set :: PropertyType "EgressAccessLogs" Channel -> Channel -> Channel
set PropertyType "EgressAccessLogs" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= Channel {egressAccessLogs :: Maybe LogConfigurationProperty
egressAccessLogs = LogConfigurationProperty -> Maybe LogConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EgressAccessLogs" Channel
LogConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "HlsIngest" Channel where
type PropertyType "HlsIngest" Channel = HlsIngestProperty
set :: PropertyType "HlsIngest" Channel -> Channel -> Channel
set PropertyType "HlsIngest" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= Channel {hlsIngest :: Maybe HlsIngestProperty
hlsIngest = HlsIngestProperty -> Maybe HlsIngestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HlsIngest" Channel
HlsIngestProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "Id" Channel where
type PropertyType "Id" Channel = Value Prelude.Text
set :: PropertyType "Id" Channel -> Channel -> Channel
set PropertyType "Id" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..} = Channel {id :: Value Text
id = PropertyType "Id" Channel
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "IngressAccessLogs" Channel where
type PropertyType "IngressAccessLogs" Channel = LogConfigurationProperty
set :: PropertyType "IngressAccessLogs" Channel -> Channel -> Channel
set PropertyType "IngressAccessLogs" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= Channel {ingressAccessLogs :: Maybe LogConfigurationProperty
ingressAccessLogs = LogConfigurationProperty -> Maybe LogConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IngressAccessLogs" Channel
LogConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Channel where
type PropertyType "Tags" Channel = [Tag]
set :: PropertyType "Tags" Channel -> Channel -> Channel
set PropertyType "Tags" Channel
newValue Channel {Maybe [Tag]
Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: Channel -> ()
description :: Channel -> Maybe (Value Text)
egressAccessLogs :: Channel -> Maybe LogConfigurationProperty
hlsIngest :: Channel -> Maybe HlsIngestProperty
id :: Channel -> Value Text
ingressAccessLogs :: Channel -> Maybe LogConfigurationProperty
tags :: Channel -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
tags :: Maybe [Tag]
..}
= Channel {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Channel
newValue, Maybe (Value Text)
Maybe HlsIngestProperty
Maybe LogConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
egressAccessLogs :: Maybe LogConfigurationProperty
hlsIngest :: Maybe HlsIngestProperty
id :: Value Text
ingressAccessLogs :: Maybe LogConfigurationProperty
..}