module Stratosphere.MediaLive.Input.SrtCallerDecryptionRequestProperty (
        SrtCallerDecryptionRequestProperty(..),
        mkSrtCallerDecryptionRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SrtCallerDecryptionRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html>
    SrtCallerDecryptionRequestProperty {SrtCallerDecryptionRequestProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-algorithm>
                                        SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
algorithm :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-srtcallerdecryptionrequest.html#cfn-medialive-input-srtcallerdecryptionrequest-passphrasesecretarn>
                                        SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
passphraseSecretArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty -> Bool
(SrtCallerDecryptionRequestProperty
 -> SrtCallerDecryptionRequestProperty -> Bool)
-> (SrtCallerDecryptionRequestProperty
    -> SrtCallerDecryptionRequestProperty -> Bool)
-> Eq SrtCallerDecryptionRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty -> Bool
== :: SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty -> Bool
$c/= :: SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty -> Bool
/= :: SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty -> Bool
Prelude.Eq, Int -> SrtCallerDecryptionRequestProperty -> ShowS
[SrtCallerDecryptionRequestProperty] -> ShowS
SrtCallerDecryptionRequestProperty -> String
(Int -> SrtCallerDecryptionRequestProperty -> ShowS)
-> (SrtCallerDecryptionRequestProperty -> String)
-> ([SrtCallerDecryptionRequestProperty] -> ShowS)
-> Show SrtCallerDecryptionRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SrtCallerDecryptionRequestProperty -> ShowS
showsPrec :: Int -> SrtCallerDecryptionRequestProperty -> ShowS
$cshow :: SrtCallerDecryptionRequestProperty -> String
show :: SrtCallerDecryptionRequestProperty -> String
$cshowList :: [SrtCallerDecryptionRequestProperty] -> ShowS
showList :: [SrtCallerDecryptionRequestProperty] -> ShowS
Prelude.Show)
mkSrtCallerDecryptionRequestProperty ::
  SrtCallerDecryptionRequestProperty
mkSrtCallerDecryptionRequestProperty :: SrtCallerDecryptionRequestProperty
mkSrtCallerDecryptionRequestProperty
  = SrtCallerDecryptionRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), algorithm :: Maybe (Value Text)
algorithm = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       passphraseSecretArn :: Maybe (Value Text)
passphraseSecretArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SrtCallerDecryptionRequestProperty where
  toResourceProperties :: SrtCallerDecryptionRequestProperty -> ResourceProperties
toResourceProperties SrtCallerDecryptionRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtCallerDecryptionRequestProperty -> ()
algorithm :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
passphraseSecretArn :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
passphraseSecretArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Input.SrtCallerDecryptionRequest",
         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
"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
"PassphraseSecretArn" (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)
passphraseSecretArn])}
instance JSON.ToJSON SrtCallerDecryptionRequestProperty where
  toJSON :: SrtCallerDecryptionRequestProperty -> Value
toJSON SrtCallerDecryptionRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtCallerDecryptionRequestProperty -> ()
algorithm :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
passphraseSecretArn :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
passphraseSecretArn :: 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
"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
"PassphraseSecretArn" (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)
passphraseSecretArn]))
instance Property "Algorithm" SrtCallerDecryptionRequestProperty where
  type PropertyType "Algorithm" SrtCallerDecryptionRequestProperty = Value Prelude.Text
  set :: PropertyType "Algorithm" SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty
set PropertyType "Algorithm" SrtCallerDecryptionRequestProperty
newValue SrtCallerDecryptionRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtCallerDecryptionRequestProperty -> ()
algorithm :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
passphraseSecretArn :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
passphraseSecretArn :: Maybe (Value Text)
..}
    = SrtCallerDecryptionRequestProperty
        {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" SrtCallerDecryptionRequestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
passphraseSecretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
passphraseSecretArn :: Maybe (Value Text)
..}
instance Property "PassphraseSecretArn" SrtCallerDecryptionRequestProperty where
  type PropertyType "PassphraseSecretArn" SrtCallerDecryptionRequestProperty = Value Prelude.Text
  set :: PropertyType
  "PassphraseSecretArn" SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty
-> SrtCallerDecryptionRequestProperty
set PropertyType
  "PassphraseSecretArn" SrtCallerDecryptionRequestProperty
newValue SrtCallerDecryptionRequestProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtCallerDecryptionRequestProperty -> ()
algorithm :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
passphraseSecretArn :: SrtCallerDecryptionRequestProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
passphraseSecretArn :: Maybe (Value Text)
..}
    = SrtCallerDecryptionRequestProperty
        {passphraseSecretArn :: Maybe (Value Text)
passphraseSecretArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "PassphraseSecretArn" SrtCallerDecryptionRequestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
haddock_workaround_ :: ()
algorithm :: Maybe (Value Text)
..}