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