module Stratosphere.RDS.DBProxyTargetGroup (
module Exports, DBProxyTargetGroup(..), mkDBProxyTargetGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RDS.DBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DBProxyTargetGroup
=
DBProxyTargetGroup {DBProxyTargetGroup -> ()
haddock_workaround_ :: (),
DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
connectionPoolConfigurationInfo :: (Prelude.Maybe ConnectionPoolConfigurationInfoFormatProperty),
DBProxyTargetGroup -> Maybe (ValueList Text)
dBClusterIdentifiers :: (Prelude.Maybe (ValueList Prelude.Text)),
DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: (Prelude.Maybe (ValueList Prelude.Text)),
DBProxyTargetGroup -> Value Text
dBProxyName :: (Value Prelude.Text),
DBProxyTargetGroup -> Value Text
targetGroupName :: (Value Prelude.Text)}
deriving stock (DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
(DBProxyTargetGroup -> DBProxyTargetGroup -> Bool)
-> (DBProxyTargetGroup -> DBProxyTargetGroup -> Bool)
-> Eq DBProxyTargetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
== :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
$c/= :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
/= :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
Prelude.Eq, Int -> DBProxyTargetGroup -> ShowS
[DBProxyTargetGroup] -> ShowS
DBProxyTargetGroup -> String
(Int -> DBProxyTargetGroup -> ShowS)
-> (DBProxyTargetGroup -> String)
-> ([DBProxyTargetGroup] -> ShowS)
-> Show DBProxyTargetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DBProxyTargetGroup -> ShowS
showsPrec :: Int -> DBProxyTargetGroup -> ShowS
$cshow :: DBProxyTargetGroup -> String
show :: DBProxyTargetGroup -> String
$cshowList :: [DBProxyTargetGroup] -> ShowS
showList :: [DBProxyTargetGroup] -> ShowS
Prelude.Show)
mkDBProxyTargetGroup ::
Value Prelude.Text -> Value Prelude.Text -> DBProxyTargetGroup
mkDBProxyTargetGroup :: Value Text -> Value Text -> DBProxyTargetGroup
mkDBProxyTargetGroup Value Text
dBProxyName Value Text
targetGroupName
= DBProxyTargetGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), dBProxyName :: Value Text
dBProxyName = Value Text
dBProxyName,
targetGroupName :: Value Text
targetGroupName = Value Text
targetGroupName,
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
connectionPoolConfigurationInfo = Maybe ConnectionPoolConfigurationInfoFormatProperty
forall a. Maybe a
Prelude.Nothing,
dBClusterIdentifiers :: Maybe (ValueList Text)
dBClusterIdentifiers = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DBProxyTargetGroup where
toResourceProperties :: DBProxyTargetGroup -> ResourceProperties
toResourceProperties DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RDS::DBProxyTargetGroup",
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
"DBProxyName" 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
dBProxyName,
Key
"TargetGroupName" 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
targetGroupName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> ConnectionPoolConfigurationInfoFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectionPoolConfigurationInfo"
(ConnectionPoolConfigurationInfoFormatProperty -> (Key, Value))
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectionPoolConfigurationInfoFormatProperty
connectionPoolConfigurationInfo,
Key -> ValueList 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
"DBClusterIdentifiers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dBClusterIdentifiers,
Key -> ValueList 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
"DBInstanceIdentifiers"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dBInstanceIdentifiers]))}
instance JSON.ToJSON DBProxyTargetGroup where
toJSON :: DBProxyTargetGroup -> Value
toJSON DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: 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
"DBProxyName" 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
dBProxyName,
Key
"TargetGroupName" 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
targetGroupName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> ConnectionPoolConfigurationInfoFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectionPoolConfigurationInfo"
(ConnectionPoolConfigurationInfoFormatProperty -> (Key, Value))
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectionPoolConfigurationInfoFormatProperty
connectionPoolConfigurationInfo,
Key -> ValueList 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
"DBClusterIdentifiers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dBClusterIdentifiers,
Key -> ValueList 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
"DBInstanceIdentifiers"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dBInstanceIdentifiers])))
instance Property "ConnectionPoolConfigurationInfo" DBProxyTargetGroup where
type PropertyType "ConnectionPoolConfigurationInfo" DBProxyTargetGroup = ConnectionPoolConfigurationInfoFormatProperty
set :: PropertyType "ConnectionPoolConfigurationInfo" DBProxyTargetGroup
-> DBProxyTargetGroup -> DBProxyTargetGroup
set PropertyType "ConnectionPoolConfigurationInfo" DBProxyTargetGroup
newValue DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= DBProxyTargetGroup
{connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
connectionPoolConfigurationInfo = ConnectionPoolConfigurationInfoFormatProperty
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectionPoolConfigurationInfo" DBProxyTargetGroup
ConnectionPoolConfigurationInfoFormatProperty
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
haddock_workaround_ :: ()
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
instance Property "DBClusterIdentifiers" DBProxyTargetGroup where
type PropertyType "DBClusterIdentifiers" DBProxyTargetGroup = ValueList Prelude.Text
set :: PropertyType "DBClusterIdentifiers" DBProxyTargetGroup
-> DBProxyTargetGroup -> DBProxyTargetGroup
set PropertyType "DBClusterIdentifiers" DBProxyTargetGroup
newValue DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= DBProxyTargetGroup
{dBClusterIdentifiers :: Maybe (ValueList Text)
dBClusterIdentifiers = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DBClusterIdentifiers" DBProxyTargetGroup
ValueList Text
newValue, Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
instance Property "DBInstanceIdentifiers" DBProxyTargetGroup where
type PropertyType "DBInstanceIdentifiers" DBProxyTargetGroup = ValueList Prelude.Text
set :: PropertyType "DBInstanceIdentifiers" DBProxyTargetGroup
-> DBProxyTargetGroup -> DBProxyTargetGroup
set PropertyType "DBInstanceIdentifiers" DBProxyTargetGroup
newValue DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= DBProxyTargetGroup
{dBInstanceIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DBInstanceIdentifiers" DBProxyTargetGroup
ValueList Text
newValue, Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
instance Property "DBProxyName" DBProxyTargetGroup where
type PropertyType "DBProxyName" DBProxyTargetGroup = Value Prelude.Text
set :: PropertyType "DBProxyName" DBProxyTargetGroup
-> DBProxyTargetGroup -> DBProxyTargetGroup
set PropertyType "DBProxyName" DBProxyTargetGroup
newValue DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= DBProxyTargetGroup {dBProxyName :: Value Text
dBProxyName = PropertyType "DBProxyName" DBProxyTargetGroup
Value Text
newValue, Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
targetGroupName :: Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
targetGroupName :: Value Text
..}
instance Property "TargetGroupName" DBProxyTargetGroup where
type PropertyType "TargetGroupName" DBProxyTargetGroup = Value Prelude.Text
set :: PropertyType "TargetGroupName" DBProxyTargetGroup
-> DBProxyTargetGroup -> DBProxyTargetGroup
set PropertyType "TargetGroupName" DBProxyTargetGroup
newValue DBProxyTargetGroup {Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: DBProxyTargetGroup -> ()
connectionPoolConfigurationInfo :: DBProxyTargetGroup
-> Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBInstanceIdentifiers :: DBProxyTargetGroup -> Maybe (ValueList Text)
dBProxyName :: DBProxyTargetGroup -> Value Text
targetGroupName :: DBProxyTargetGroup -> Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
targetGroupName :: Value Text
..}
= DBProxyTargetGroup {targetGroupName :: Value Text
targetGroupName = PropertyType "TargetGroupName" DBProxyTargetGroup
Value Text
newValue, Maybe (ValueList Text)
Maybe ConnectionPoolConfigurationInfoFormatProperty
()
Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
haddock_workaround_ :: ()
connectionPoolConfigurationInfo :: Maybe ConnectionPoolConfigurationInfoFormatProperty
dBClusterIdentifiers :: Maybe (ValueList Text)
dBInstanceIdentifiers :: Maybe (ValueList Text)
dBProxyName :: Value Text
..}