module Stratosphere.RDS.DBProxy.AuthFormatProperty (
AuthFormatProperty(..), mkAuthFormatProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AuthFormatProperty
=
AuthFormatProperty {AuthFormatProperty -> ()
haddock_workaround_ :: (),
AuthFormatProperty -> Maybe (Value Text)
authScheme :: (Prelude.Maybe (Value Prelude.Text)),
AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: (Prelude.Maybe (Value Prelude.Text)),
AuthFormatProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: (Prelude.Maybe (Value Prelude.Text)),
AuthFormatProperty -> Maybe (Value Text)
secretArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AuthFormatProperty -> AuthFormatProperty -> Bool
(AuthFormatProperty -> AuthFormatProperty -> Bool)
-> (AuthFormatProperty -> AuthFormatProperty -> Bool)
-> Eq AuthFormatProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuthFormatProperty -> AuthFormatProperty -> Bool
== :: AuthFormatProperty -> AuthFormatProperty -> Bool
$c/= :: AuthFormatProperty -> AuthFormatProperty -> Bool
/= :: AuthFormatProperty -> AuthFormatProperty -> Bool
Prelude.Eq, Int -> AuthFormatProperty -> ShowS
[AuthFormatProperty] -> ShowS
AuthFormatProperty -> String
(Int -> AuthFormatProperty -> ShowS)
-> (AuthFormatProperty -> String)
-> ([AuthFormatProperty] -> ShowS)
-> Show AuthFormatProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuthFormatProperty -> ShowS
showsPrec :: Int -> AuthFormatProperty -> ShowS
$cshow :: AuthFormatProperty -> String
show :: AuthFormatProperty -> String
$cshowList :: [AuthFormatProperty] -> ShowS
showList :: [AuthFormatProperty] -> ShowS
Prelude.Show)
mkAuthFormatProperty :: AuthFormatProperty
mkAuthFormatProperty :: AuthFormatProperty
mkAuthFormatProperty
= AuthFormatProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), authScheme :: Maybe (Value Text)
authScheme = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
clientPasswordAuthType :: Maybe (Value Text)
clientPasswordAuthType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, iAMAuth :: Maybe (Value Text)
iAMAuth = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
secretArn :: Maybe (Value Text)
secretArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AuthFormatProperty where
toResourceProperties :: AuthFormatProperty -> ResourceProperties
toResourceProperties AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RDS::DBProxy.AuthFormat",
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
"AuthScheme" (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)
authScheme,
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
"ClientPasswordAuthType"
(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)
clientPasswordAuthType,
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
"Description" (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)
description,
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
"IAMAuth" (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)
iAMAuth,
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])}
instance JSON.ToJSON AuthFormatProperty where
toJSON :: AuthFormatProperty -> Value
toJSON AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: 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
"AuthScheme" (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)
authScheme,
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
"ClientPasswordAuthType"
(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)
clientPasswordAuthType,
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
"Description" (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)
description,
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
"IAMAuth" (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)
iAMAuth,
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]))
instance Property "AuthScheme" AuthFormatProperty where
type PropertyType "AuthScheme" AuthFormatProperty = Value Prelude.Text
set :: PropertyType "AuthScheme" AuthFormatProperty
-> AuthFormatProperty -> AuthFormatProperty
set PropertyType "AuthScheme" AuthFormatProperty
newValue AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= AuthFormatProperty {authScheme :: Maybe (Value Text)
authScheme = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AuthScheme" AuthFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
instance Property "ClientPasswordAuthType" AuthFormatProperty where
type PropertyType "ClientPasswordAuthType" AuthFormatProperty = Value Prelude.Text
set :: PropertyType "ClientPasswordAuthType" AuthFormatProperty
-> AuthFormatProperty -> AuthFormatProperty
set PropertyType "ClientPasswordAuthType" AuthFormatProperty
newValue AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= AuthFormatProperty
{clientPasswordAuthType :: Maybe (Value Text)
clientPasswordAuthType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ClientPasswordAuthType" AuthFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
instance Property "Description" AuthFormatProperty where
type PropertyType "Description" AuthFormatProperty = Value Prelude.Text
set :: PropertyType "Description" AuthFormatProperty
-> AuthFormatProperty -> AuthFormatProperty
set PropertyType "Description" AuthFormatProperty
newValue AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= AuthFormatProperty {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" AuthFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
instance Property "IAMAuth" AuthFormatProperty where
type PropertyType "IAMAuth" AuthFormatProperty = Value Prelude.Text
set :: PropertyType "IAMAuth" AuthFormatProperty
-> AuthFormatProperty -> AuthFormatProperty
set PropertyType "IAMAuth" AuthFormatProperty
newValue AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= AuthFormatProperty {iAMAuth :: Maybe (Value Text)
iAMAuth = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IAMAuth" AuthFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
instance Property "SecretArn" AuthFormatProperty where
type PropertyType "SecretArn" AuthFormatProperty = Value Prelude.Text
set :: PropertyType "SecretArn" AuthFormatProperty
-> AuthFormatProperty -> AuthFormatProperty
set PropertyType "SecretArn" AuthFormatProperty
newValue AuthFormatProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthFormatProperty -> ()
authScheme :: AuthFormatProperty -> Maybe (Value Text)
clientPasswordAuthType :: AuthFormatProperty -> Maybe (Value Text)
description :: AuthFormatProperty -> Maybe (Value Text)
iAMAuth :: AuthFormatProperty -> Maybe (Value Text)
secretArn :: AuthFormatProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
secretArn :: Maybe (Value Text)
..}
= AuthFormatProperty {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" AuthFormatProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
haddock_workaround_ :: ()
authScheme :: Maybe (Value Text)
clientPasswordAuthType :: Maybe (Value Text)
description :: Maybe (Value Text)
iAMAuth :: Maybe (Value Text)
..}