module Stratosphere.MediaTailor.SourceLocation.SecretsManagerAccessTokenConfigurationProperty (
        SecretsManagerAccessTokenConfigurationProperty(..),
        mkSecretsManagerAccessTokenConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecretsManagerAccessTokenConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration.html>
    SecretsManagerAccessTokenConfigurationProperty {SecretsManagerAccessTokenConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration.html#cfn-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration-headername>
                                                    SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
headerName :: (Prelude.Maybe (Value Prelude.Text)),
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration.html#cfn-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration-secretarn>
                                                    SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: (Prelude.Maybe (Value Prelude.Text)),
                                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration.html#cfn-mediatailor-sourcelocation-secretsmanageraccesstokenconfiguration-secretstringkey>
                                                    SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty -> Bool
(SecretsManagerAccessTokenConfigurationProperty
 -> SecretsManagerAccessTokenConfigurationProperty -> Bool)
-> (SecretsManagerAccessTokenConfigurationProperty
    -> SecretsManagerAccessTokenConfigurationProperty -> Bool)
-> Eq SecretsManagerAccessTokenConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty -> Bool
== :: SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty -> Bool
$c/= :: SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty -> Bool
/= :: SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty -> Bool
Prelude.Eq, Int -> SecretsManagerAccessTokenConfigurationProperty -> ShowS
[SecretsManagerAccessTokenConfigurationProperty] -> ShowS
SecretsManagerAccessTokenConfigurationProperty -> String
(Int -> SecretsManagerAccessTokenConfigurationProperty -> ShowS)
-> (SecretsManagerAccessTokenConfigurationProperty -> String)
-> ([SecretsManagerAccessTokenConfigurationProperty] -> ShowS)
-> Show SecretsManagerAccessTokenConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecretsManagerAccessTokenConfigurationProperty -> ShowS
showsPrec :: Int -> SecretsManagerAccessTokenConfigurationProperty -> ShowS
$cshow :: SecretsManagerAccessTokenConfigurationProperty -> String
show :: SecretsManagerAccessTokenConfigurationProperty -> String
$cshowList :: [SecretsManagerAccessTokenConfigurationProperty] -> ShowS
showList :: [SecretsManagerAccessTokenConfigurationProperty] -> ShowS
Prelude.Show)
mkSecretsManagerAccessTokenConfigurationProperty ::
  SecretsManagerAccessTokenConfigurationProperty
mkSecretsManagerAccessTokenConfigurationProperty :: SecretsManagerAccessTokenConfigurationProperty
mkSecretsManagerAccessTokenConfigurationProperty
  = SecretsManagerAccessTokenConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), headerName :: Maybe (Value Text)
headerName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       secretArn :: Maybe (Value Text)
secretArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, secretStringKey :: Maybe (Value Text)
secretStringKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecretsManagerAccessTokenConfigurationProperty where
  toResourceProperties :: SecretsManagerAccessTokenConfigurationProperty
-> ResourceProperties
toResourceProperties
    SecretsManagerAccessTokenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SecretsManagerAccessTokenConfigurationProperty -> ()
headerName :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::SourceLocation.SecretsManagerAccessTokenConfiguration",
         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
"HeaderName" (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)
headerName,
                            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
"SecretArn" (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)
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..=) Key
"SecretStringKey" (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)
secretStringKey])}
instance JSON.ToJSON SecretsManagerAccessTokenConfigurationProperty where
  toJSON :: SecretsManagerAccessTokenConfigurationProperty -> Value
toJSON SecretsManagerAccessTokenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SecretsManagerAccessTokenConfigurationProperty -> ()
headerName :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
secretStringKey :: 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
"HeaderName" (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)
headerName,
               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
"SecretArn" (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)
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..=) Key
"SecretStringKey" (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)
secretStringKey]))
instance Property "HeaderName" SecretsManagerAccessTokenConfigurationProperty where
  type PropertyType "HeaderName" SecretsManagerAccessTokenConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "HeaderName" SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
set PropertyType
  "HeaderName" SecretsManagerAccessTokenConfigurationProperty
newValue SecretsManagerAccessTokenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SecretsManagerAccessTokenConfigurationProperty -> ()
headerName :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
    = SecretsManagerAccessTokenConfigurationProperty
        {headerName :: Maybe (Value Text)
headerName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "HeaderName" SecretsManagerAccessTokenConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
haddock_workaround_ :: ()
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
instance Property "SecretArn" SecretsManagerAccessTokenConfigurationProperty where
  type PropertyType "SecretArn" SecretsManagerAccessTokenConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SecretArn" SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
set PropertyType
  "SecretArn" SecretsManagerAccessTokenConfigurationProperty
newValue SecretsManagerAccessTokenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SecretsManagerAccessTokenConfigurationProperty -> ()
headerName :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
    = SecretsManagerAccessTokenConfigurationProperty
        {secretArn :: Maybe (Value Text)
secretArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SecretArn" SecretsManagerAccessTokenConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
instance Property "SecretStringKey" SecretsManagerAccessTokenConfigurationProperty where
  type PropertyType "SecretStringKey" SecretsManagerAccessTokenConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "SecretStringKey" SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
-> SecretsManagerAccessTokenConfigurationProperty
set PropertyType
  "SecretStringKey" SecretsManagerAccessTokenConfigurationProperty
newValue SecretsManagerAccessTokenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SecretsManagerAccessTokenConfigurationProperty -> ()
headerName :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretArn :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
secretStringKey :: SecretsManagerAccessTokenConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
secretStringKey :: Maybe (Value Text)
..}
    = SecretsManagerAccessTokenConfigurationProperty
        {secretStringKey :: Maybe (Value Text)
secretStringKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SecretStringKey" SecretsManagerAccessTokenConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
headerName :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}