module Stratosphere.IVS.PlaybackKeyPair (
PlaybackKeyPair(..), mkPlaybackKeyPair
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data PlaybackKeyPair
=
PlaybackKeyPair {PlaybackKeyPair -> ()
haddock_workaround_ :: (),
PlaybackKeyPair -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: (Prelude.Maybe (Value Prelude.Text)),
PlaybackKeyPair -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (PlaybackKeyPair -> PlaybackKeyPair -> Bool
(PlaybackKeyPair -> PlaybackKeyPair -> Bool)
-> (PlaybackKeyPair -> PlaybackKeyPair -> Bool)
-> Eq PlaybackKeyPair
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PlaybackKeyPair -> PlaybackKeyPair -> Bool
== :: PlaybackKeyPair -> PlaybackKeyPair -> Bool
$c/= :: PlaybackKeyPair -> PlaybackKeyPair -> Bool
/= :: PlaybackKeyPair -> PlaybackKeyPair -> Bool
Prelude.Eq, Int -> PlaybackKeyPair -> ShowS
[PlaybackKeyPair] -> ShowS
PlaybackKeyPair -> String
(Int -> PlaybackKeyPair -> ShowS)
-> (PlaybackKeyPair -> String)
-> ([PlaybackKeyPair] -> ShowS)
-> Show PlaybackKeyPair
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PlaybackKeyPair -> ShowS
showsPrec :: Int -> PlaybackKeyPair -> ShowS
$cshow :: PlaybackKeyPair -> String
show :: PlaybackKeyPair -> String
$cshowList :: [PlaybackKeyPair] -> ShowS
showList :: [PlaybackKeyPair] -> ShowS
Prelude.Show)
mkPlaybackKeyPair :: PlaybackKeyPair
mkPlaybackKeyPair :: PlaybackKeyPair
mkPlaybackKeyPair
= PlaybackKeyPair
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
publicKeyMaterial :: Maybe (Value Text)
publicKeyMaterial = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PlaybackKeyPair where
toResourceProperties :: PlaybackKeyPair -> ResourceProperties
toResourceProperties PlaybackKeyPair {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: PlaybackKeyPair -> ()
name :: PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: PlaybackKeyPair -> Maybe (Value Text)
tags :: PlaybackKeyPair -> Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IVS::PlaybackKeyPair",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Name" (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)
name,
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
"PublicKeyMaterial" (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)
publicKeyMaterial,
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 PlaybackKeyPair where
toJSON :: PlaybackKeyPair -> Value
toJSON PlaybackKeyPair {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: PlaybackKeyPair -> ()
name :: PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: PlaybackKeyPair -> Maybe (Value Text)
tags :: PlaybackKeyPair -> Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"Name" (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)
name,
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
"PublicKeyMaterial" (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)
publicKeyMaterial,
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 "Name" PlaybackKeyPair where
type PropertyType "Name" PlaybackKeyPair = Value Prelude.Text
set :: PropertyType "Name" PlaybackKeyPair
-> PlaybackKeyPair -> PlaybackKeyPair
set PropertyType "Name" PlaybackKeyPair
newValue PlaybackKeyPair {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: PlaybackKeyPair -> ()
name :: PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: PlaybackKeyPair -> Maybe (Value Text)
tags :: PlaybackKeyPair -> Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= PlaybackKeyPair {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" PlaybackKeyPair
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PublicKeyMaterial" PlaybackKeyPair where
type PropertyType "PublicKeyMaterial" PlaybackKeyPair = Value Prelude.Text
set :: PropertyType "PublicKeyMaterial" PlaybackKeyPair
-> PlaybackKeyPair -> PlaybackKeyPair
set PropertyType "PublicKeyMaterial" PlaybackKeyPair
newValue PlaybackKeyPair {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: PlaybackKeyPair -> ()
name :: PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: PlaybackKeyPair -> Maybe (Value Text)
tags :: PlaybackKeyPair -> Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= PlaybackKeyPair {publicKeyMaterial :: Maybe (Value Text)
publicKeyMaterial = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PublicKeyMaterial" PlaybackKeyPair
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" PlaybackKeyPair where
type PropertyType "Tags" PlaybackKeyPair = [Tag]
set :: PropertyType "Tags" PlaybackKeyPair
-> PlaybackKeyPair -> PlaybackKeyPair
set PropertyType "Tags" PlaybackKeyPair
newValue PlaybackKeyPair {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: PlaybackKeyPair -> ()
name :: PlaybackKeyPair -> Maybe (Value Text)
publicKeyMaterial :: PlaybackKeyPair -> Maybe (Value Text)
tags :: PlaybackKeyPair -> Maybe [Tag]
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= PlaybackKeyPair {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" PlaybackKeyPair
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
publicKeyMaterial :: Maybe (Value Text)
..}