module Stratosphere.MediaConnect.FlowOutput.EncryptionProperty (
EncryptionProperty(..), mkEncryptionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncryptionProperty
=
EncryptionProperty {EncryptionProperty -> ()
haddock_workaround_ :: (),
EncryptionProperty -> Maybe (Value Text)
algorithm :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionProperty -> Maybe (Value Text)
keyType :: (Prelude.Maybe (Value Prelude.Text)),
EncryptionProperty -> Value Text
roleArn :: (Value Prelude.Text),
EncryptionProperty -> Value Text
secretArn :: (Value Prelude.Text)}
deriving stock (EncryptionProperty -> EncryptionProperty -> Bool
(EncryptionProperty -> EncryptionProperty -> Bool)
-> (EncryptionProperty -> EncryptionProperty -> Bool)
-> Eq EncryptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncryptionProperty -> EncryptionProperty -> Bool
== :: EncryptionProperty -> EncryptionProperty -> Bool
$c/= :: EncryptionProperty -> EncryptionProperty -> Bool
/= :: EncryptionProperty -> EncryptionProperty -> Bool
Prelude.Eq, Int -> EncryptionProperty -> ShowS
[EncryptionProperty] -> ShowS
EncryptionProperty -> String
(Int -> EncryptionProperty -> ShowS)
-> (EncryptionProperty -> String)
-> ([EncryptionProperty] -> ShowS)
-> Show EncryptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncryptionProperty -> ShowS
showsPrec :: Int -> EncryptionProperty -> ShowS
$cshow :: EncryptionProperty -> String
show :: EncryptionProperty -> String
$cshowList :: [EncryptionProperty] -> ShowS
showList :: [EncryptionProperty] -> ShowS
Prelude.Show)
mkEncryptionProperty ::
Value Prelude.Text -> Value Prelude.Text -> EncryptionProperty
mkEncryptionProperty :: Value Text -> Value Text -> EncryptionProperty
mkEncryptionProperty Value Text
roleArn Value Text
secretArn
= EncryptionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
secretArn :: Value Text
secretArn = Value Text
secretArn, algorithm :: Maybe (Value Text)
algorithm = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
keyType :: Maybe (Value Text)
keyType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncryptionProperty where
toResourceProperties :: EncryptionProperty -> ResourceProperties
toResourceProperties EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaConnect::FlowOutput.Encryption",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"RoleArn" 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
roleArn, Key
"SecretArn" 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
secretArn]
([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
"Algorithm" (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)
algorithm,
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
"KeyType" (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)
keyType]))}
instance JSON.ToJSON EncryptionProperty where
toJSON :: EncryptionProperty -> Value
toJSON EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= [(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
"RoleArn" 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
roleArn, Key
"SecretArn" 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
secretArn]
([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
"Algorithm" (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)
algorithm,
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
"KeyType" (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)
keyType])))
instance Property "Algorithm" EncryptionProperty where
type PropertyType "Algorithm" EncryptionProperty = Value Prelude.Text
set :: PropertyType "Algorithm" EncryptionProperty
-> EncryptionProperty -> EncryptionProperty
set PropertyType "Algorithm" EncryptionProperty
newValue EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= EncryptionProperty {algorithm :: Maybe (Value Text)
algorithm = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Algorithm" EncryptionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
haddock_workaround_ :: ()
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
instance Property "KeyType" EncryptionProperty where
type PropertyType "KeyType" EncryptionProperty = Value Prelude.Text
set :: PropertyType "KeyType" EncryptionProperty
-> EncryptionProperty -> EncryptionProperty
set PropertyType "KeyType" EncryptionProperty
newValue EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= EncryptionProperty {keyType :: Maybe (Value Text)
keyType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KeyType" EncryptionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
instance Property "RoleArn" EncryptionProperty where
type PropertyType "RoleArn" EncryptionProperty = Value Prelude.Text
set :: PropertyType "RoleArn" EncryptionProperty
-> EncryptionProperty -> EncryptionProperty
set PropertyType "RoleArn" EncryptionProperty
newValue EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= EncryptionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" EncryptionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
secretArn :: Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
secretArn :: Value Text
..}
instance Property "SecretArn" EncryptionProperty where
type PropertyType "SecretArn" EncryptionProperty = Value Prelude.Text
set :: PropertyType "SecretArn" EncryptionProperty
-> EncryptionProperty -> EncryptionProperty
set PropertyType "SecretArn" EncryptionProperty
newValue EncryptionProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EncryptionProperty -> ()
algorithm :: EncryptionProperty -> Maybe (Value Text)
keyType :: EncryptionProperty -> Maybe (Value Text)
roleArn :: EncryptionProperty -> Value Text
secretArn :: EncryptionProperty -> Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
secretArn :: Value Text
..}
= EncryptionProperty {secretArn :: Value Text
secretArn = PropertyType "SecretArn" EncryptionProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
keyType :: Maybe (Value Text)
roleArn :: Value Text
..}