module Stratosphere.MediaPackageV2.OriginEndpoint.EncryptionMethodProperty (
EncryptionMethodProperty(..), mkEncryptionMethodProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionMethodProperty
=
EncryptionMethodProperty {EncryptionMethodProperty -> ()
haddock_workaround_ :: (),
EncryptionMethodProperty -> Maybe (Value Text)
cmafEncryptionMethod :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EncryptionMethodProperty -> EncryptionMethodProperty -> Bool
(EncryptionMethodProperty -> EncryptionMethodProperty -> Bool)
-> (EncryptionMethodProperty -> EncryptionMethodProperty -> Bool)
-> Eq EncryptionMethodProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionMethodProperty -> EncryptionMethodProperty -> Bool
== :: EncryptionMethodProperty -> EncryptionMethodProperty -> Bool
$c/= :: EncryptionMethodProperty -> EncryptionMethodProperty -> Bool
/= :: EncryptionMethodProperty -> EncryptionMethodProperty -> Bool
Prelude.Eq, Int -> EncryptionMethodProperty -> ShowS
[EncryptionMethodProperty] -> ShowS
EncryptionMethodProperty -> String
(Int -> EncryptionMethodProperty -> ShowS)
-> (EncryptionMethodProperty -> String)
-> ([EncryptionMethodProperty] -> ShowS)
-> Show EncryptionMethodProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionMethodProperty -> ShowS
showsPrec :: Int -> EncryptionMethodProperty -> ShowS
$cshow :: EncryptionMethodProperty -> String
show :: EncryptionMethodProperty -> String
$cshowList :: [EncryptionMethodProperty] -> ShowS
showList :: [EncryptionMethodProperty] -> ShowS
Prelude.Show)
mkEncryptionMethodProperty :: EncryptionMethodProperty
mkEncryptionMethodProperty :: EncryptionMethodProperty
mkEncryptionMethodProperty
= EncryptionMethodProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), cmafEncryptionMethod :: Maybe (Value Text)
cmafEncryptionMethod = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
ismEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tsEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionMethodProperty where
toResourceProperties :: EncryptionMethodProperty -> ResourceProperties
toResourceProperties EncryptionMethodProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionMethodProperty -> ()
cmafEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.EncryptionMethod",
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
"CmafEncryptionMethod" (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)
cmafEncryptionMethod,
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
"IsmEncryptionMethod" (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)
ismEncryptionMethod,
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
"TsEncryptionMethod" (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)
tsEncryptionMethod])}
instance JSON.ToJSON EncryptionMethodProperty where
toJSON :: EncryptionMethodProperty -> Value
toJSON EncryptionMethodProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionMethodProperty -> ()
cmafEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: 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
"CmafEncryptionMethod" (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)
cmafEncryptionMethod,
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
"IsmEncryptionMethod" (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)
ismEncryptionMethod,
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
"TsEncryptionMethod" (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)
tsEncryptionMethod]))
instance Property "CmafEncryptionMethod" EncryptionMethodProperty where
type PropertyType "CmafEncryptionMethod" EncryptionMethodProperty = Value Prelude.Text
set :: PropertyType "CmafEncryptionMethod" EncryptionMethodProperty
-> EncryptionMethodProperty -> EncryptionMethodProperty
set PropertyType "CmafEncryptionMethod" EncryptionMethodProperty
newValue EncryptionMethodProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionMethodProperty -> ()
cmafEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
= EncryptionMethodProperty
{cmafEncryptionMethod :: Maybe (Value Text)
cmafEncryptionMethod = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CmafEncryptionMethod" EncryptionMethodProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
haddock_workaround_ :: ()
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
instance Property "IsmEncryptionMethod" EncryptionMethodProperty where
type PropertyType "IsmEncryptionMethod" EncryptionMethodProperty = Value Prelude.Text
set :: PropertyType "IsmEncryptionMethod" EncryptionMethodProperty
-> EncryptionMethodProperty -> EncryptionMethodProperty
set PropertyType "IsmEncryptionMethod" EncryptionMethodProperty
newValue EncryptionMethodProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionMethodProperty -> ()
cmafEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
= EncryptionMethodProperty
{ismEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsmEncryptionMethod" EncryptionMethodProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
instance Property "TsEncryptionMethod" EncryptionMethodProperty where
type PropertyType "TsEncryptionMethod" EncryptionMethodProperty = Value Prelude.Text
set :: PropertyType "TsEncryptionMethod" EncryptionMethodProperty
-> EncryptionMethodProperty -> EncryptionMethodProperty
set PropertyType "TsEncryptionMethod" EncryptionMethodProperty
newValue EncryptionMethodProperty {Maybe (Value Text)
()
haddock_workaround_ :: EncryptionMethodProperty -> ()
cmafEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
ismEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
tsEncryptionMethod :: EncryptionMethodProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod :: Maybe (Value Text)
..}
= EncryptionMethodProperty
{tsEncryptionMethod :: Maybe (Value Text)
tsEncryptionMethod = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TsEncryptionMethod" EncryptionMethodProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
haddock_workaround_ :: ()
cmafEncryptionMethod :: Maybe (Value Text)
ismEncryptionMethod :: Maybe (Value Text)
..}