module Stratosphere.MediaTailor.SourceLocation.DefaultSegmentDeliveryConfigurationProperty (
DefaultSegmentDeliveryConfigurationProperty(..),
mkDefaultSegmentDeliveryConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DefaultSegmentDeliveryConfigurationProperty
=
DefaultSegmentDeliveryConfigurationProperty {DefaultSegmentDeliveryConfigurationProperty -> ()
haddock_workaround_ :: (),
DefaultSegmentDeliveryConfigurationProperty -> Maybe (Value Text)
baseUrl :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool
(DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool)
-> (DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool)
-> Eq DefaultSegmentDeliveryConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool
== :: DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool
$c/= :: DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool
/= :: DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty -> Bool
Prelude.Eq, Int -> DefaultSegmentDeliveryConfigurationProperty -> ShowS
[DefaultSegmentDeliveryConfigurationProperty] -> ShowS
DefaultSegmentDeliveryConfigurationProperty -> String
(Int -> DefaultSegmentDeliveryConfigurationProperty -> ShowS)
-> (DefaultSegmentDeliveryConfigurationProperty -> String)
-> ([DefaultSegmentDeliveryConfigurationProperty] -> ShowS)
-> Show DefaultSegmentDeliveryConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultSegmentDeliveryConfigurationProperty -> ShowS
showsPrec :: Int -> DefaultSegmentDeliveryConfigurationProperty -> ShowS
$cshow :: DefaultSegmentDeliveryConfigurationProperty -> String
show :: DefaultSegmentDeliveryConfigurationProperty -> String
$cshowList :: [DefaultSegmentDeliveryConfigurationProperty] -> ShowS
showList :: [DefaultSegmentDeliveryConfigurationProperty] -> ShowS
Prelude.Show)
mkDefaultSegmentDeliveryConfigurationProperty ::
DefaultSegmentDeliveryConfigurationProperty
mkDefaultSegmentDeliveryConfigurationProperty :: DefaultSegmentDeliveryConfigurationProperty
mkDefaultSegmentDeliveryConfigurationProperty
= DefaultSegmentDeliveryConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), baseUrl :: Maybe (Value Text)
baseUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DefaultSegmentDeliveryConfigurationProperty where
toResourceProperties :: DefaultSegmentDeliveryConfigurationProperty -> ResourceProperties
toResourceProperties
DefaultSegmentDeliveryConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DefaultSegmentDeliveryConfigurationProperty -> ()
baseUrl :: DefaultSegmentDeliveryConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
baseUrl :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaTailor::SourceLocation.DefaultSegmentDeliveryConfiguration",
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
"BaseUrl" (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)
baseUrl])}
instance JSON.ToJSON DefaultSegmentDeliveryConfigurationProperty where
toJSON :: DefaultSegmentDeliveryConfigurationProperty -> Value
toJSON DefaultSegmentDeliveryConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DefaultSegmentDeliveryConfigurationProperty -> ()
baseUrl :: DefaultSegmentDeliveryConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
baseUrl :: 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
"BaseUrl" (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)
baseUrl]))
instance Property "BaseUrl" DefaultSegmentDeliveryConfigurationProperty where
type PropertyType "BaseUrl" DefaultSegmentDeliveryConfigurationProperty = Value Prelude.Text
set :: PropertyType "BaseUrl" DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty
-> DefaultSegmentDeliveryConfigurationProperty
set PropertyType "BaseUrl" DefaultSegmentDeliveryConfigurationProperty
newValue DefaultSegmentDeliveryConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DefaultSegmentDeliveryConfigurationProperty -> ()
baseUrl :: DefaultSegmentDeliveryConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
baseUrl :: Maybe (Value Text)
..}
= DefaultSegmentDeliveryConfigurationProperty
{baseUrl :: Maybe (Value Text)
baseUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BaseUrl" DefaultSegmentDeliveryConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}