{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.RDS.Types.DBProxyTargetGroup where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types.ConnectionPoolConfigurationInfo
data DBProxyTargetGroup = DBProxyTargetGroup'
{
DBProxyTargetGroup -> Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig :: Prelude.Maybe ConnectionPoolConfigurationInfo,
DBProxyTargetGroup -> Maybe ISO8601
createdDate :: Prelude.Maybe Data.ISO8601,
DBProxyTargetGroup -> Maybe Text
dbProxyName :: Prelude.Maybe Prelude.Text,
DBProxyTargetGroup -> Maybe Bool
isDefault :: Prelude.Maybe Prelude.Bool,
DBProxyTargetGroup -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
DBProxyTargetGroup -> Maybe Text
targetGroupArn :: Prelude.Maybe Prelude.Text,
DBProxyTargetGroup -> Maybe Text
targetGroupName :: Prelude.Maybe Prelude.Text,
DBProxyTargetGroup -> Maybe ISO8601
updatedDate :: Prelude.Maybe Data.ISO8601
}
deriving (DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
$c/= :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
== :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
$c== :: DBProxyTargetGroup -> DBProxyTargetGroup -> Bool
Prelude.Eq, ReadPrec [DBProxyTargetGroup]
ReadPrec DBProxyTargetGroup
Int -> ReadS DBProxyTargetGroup
ReadS [DBProxyTargetGroup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBProxyTargetGroup]
$creadListPrec :: ReadPrec [DBProxyTargetGroup]
readPrec :: ReadPrec DBProxyTargetGroup
$creadPrec :: ReadPrec DBProxyTargetGroup
readList :: ReadS [DBProxyTargetGroup]
$creadList :: ReadS [DBProxyTargetGroup]
readsPrec :: Int -> ReadS DBProxyTargetGroup
$creadsPrec :: Int -> ReadS DBProxyTargetGroup
Prelude.Read, Int -> DBProxyTargetGroup -> ShowS
[DBProxyTargetGroup] -> ShowS
DBProxyTargetGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBProxyTargetGroup] -> ShowS
$cshowList :: [DBProxyTargetGroup] -> ShowS
show :: DBProxyTargetGroup -> String
$cshow :: DBProxyTargetGroup -> String
showsPrec :: Int -> DBProxyTargetGroup -> ShowS
$cshowsPrec :: Int -> DBProxyTargetGroup -> ShowS
Prelude.Show, forall x. Rep DBProxyTargetGroup x -> DBProxyTargetGroup
forall x. DBProxyTargetGroup -> Rep DBProxyTargetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DBProxyTargetGroup x -> DBProxyTargetGroup
$cfrom :: forall x. DBProxyTargetGroup -> Rep DBProxyTargetGroup x
Prelude.Generic)
newDBProxyTargetGroup ::
DBProxyTargetGroup
newDBProxyTargetGroup :: DBProxyTargetGroup
newDBProxyTargetGroup =
DBProxyTargetGroup'
{ $sel:connectionPoolConfig:DBProxyTargetGroup' :: Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig =
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:DBProxyTargetGroup' :: Maybe ISO8601
createdDate = forall a. Maybe a
Prelude.Nothing,
$sel:dbProxyName:DBProxyTargetGroup' :: Maybe Text
dbProxyName = forall a. Maybe a
Prelude.Nothing,
$sel:isDefault:DBProxyTargetGroup' :: Maybe Bool
isDefault = forall a. Maybe a
Prelude.Nothing,
$sel:status:DBProxyTargetGroup' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing,
$sel:targetGroupArn:DBProxyTargetGroup' :: Maybe Text
targetGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:targetGroupName:DBProxyTargetGroup' :: Maybe Text
targetGroupName = forall a. Maybe a
Prelude.Nothing,
$sel:updatedDate:DBProxyTargetGroup' :: Maybe ISO8601
updatedDate = forall a. Maybe a
Prelude.Nothing
}
dbProxyTargetGroup_connectionPoolConfig :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe ConnectionPoolConfigurationInfo)
dbProxyTargetGroup_connectionPoolConfig :: Lens' DBProxyTargetGroup (Maybe ConnectionPoolConfigurationInfo)
dbProxyTargetGroup_connectionPoolConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig :: Maybe ConnectionPoolConfigurationInfo
$sel:connectionPoolConfig:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig} -> Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe ConnectionPoolConfigurationInfo
a -> DBProxyTargetGroup
s {$sel:connectionPoolConfig:DBProxyTargetGroup' :: Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig = Maybe ConnectionPoolConfigurationInfo
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_createdDate :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.UTCTime)
dbProxyTargetGroup_createdDate :: Lens' DBProxyTargetGroup (Maybe UTCTime)
dbProxyTargetGroup_createdDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe ISO8601
createdDate :: Maybe ISO8601
$sel:createdDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
createdDate} -> Maybe ISO8601
createdDate) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe ISO8601
a -> DBProxyTargetGroup
s {$sel:createdDate:DBProxyTargetGroup' :: Maybe ISO8601
createdDate = Maybe ISO8601
a} :: DBProxyTargetGroup) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
dbProxyTargetGroup_dbProxyName :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.Text)
dbProxyTargetGroup_dbProxyName :: Lens' DBProxyTargetGroup (Maybe Text)
dbProxyTargetGroup_dbProxyName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe Text
dbProxyName :: Maybe Text
$sel:dbProxyName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
dbProxyName} -> Maybe Text
dbProxyName) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe Text
a -> DBProxyTargetGroup
s {$sel:dbProxyName:DBProxyTargetGroup' :: Maybe Text
dbProxyName = Maybe Text
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_isDefault :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.Bool)
dbProxyTargetGroup_isDefault :: Lens' DBProxyTargetGroup (Maybe Bool)
dbProxyTargetGroup_isDefault = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe Bool
isDefault :: Maybe Bool
$sel:isDefault:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Bool
isDefault} -> Maybe Bool
isDefault) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe Bool
a -> DBProxyTargetGroup
s {$sel:isDefault:DBProxyTargetGroup' :: Maybe Bool
isDefault = Maybe Bool
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_status :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.Text)
dbProxyTargetGroup_status :: Lens' DBProxyTargetGroup (Maybe Text)
dbProxyTargetGroup_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe Text
status :: Maybe Text
$sel:status:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
status} -> Maybe Text
status) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe Text
a -> DBProxyTargetGroup
s {$sel:status:DBProxyTargetGroup' :: Maybe Text
status = Maybe Text
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_targetGroupArn :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.Text)
dbProxyTargetGroup_targetGroupArn :: Lens' DBProxyTargetGroup (Maybe Text)
dbProxyTargetGroup_targetGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe Text
targetGroupArn :: Maybe Text
$sel:targetGroupArn:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
targetGroupArn} -> Maybe Text
targetGroupArn) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe Text
a -> DBProxyTargetGroup
s {$sel:targetGroupArn:DBProxyTargetGroup' :: Maybe Text
targetGroupArn = Maybe Text
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_targetGroupName :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.Text)
dbProxyTargetGroup_targetGroupName :: Lens' DBProxyTargetGroup (Maybe Text)
dbProxyTargetGroup_targetGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe Text
targetGroupName :: Maybe Text
$sel:targetGroupName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
targetGroupName} -> Maybe Text
targetGroupName) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe Text
a -> DBProxyTargetGroup
s {$sel:targetGroupName:DBProxyTargetGroup' :: Maybe Text
targetGroupName = Maybe Text
a} :: DBProxyTargetGroup)
dbProxyTargetGroup_updatedDate :: Lens.Lens' DBProxyTargetGroup (Prelude.Maybe Prelude.UTCTime)
dbProxyTargetGroup_updatedDate :: Lens' DBProxyTargetGroup (Maybe UTCTime)
dbProxyTargetGroup_updatedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBProxyTargetGroup' {Maybe ISO8601
updatedDate :: Maybe ISO8601
$sel:updatedDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
updatedDate} -> Maybe ISO8601
updatedDate) (\s :: DBProxyTargetGroup
s@DBProxyTargetGroup' {} Maybe ISO8601
a -> DBProxyTargetGroup
s {$sel:updatedDate:DBProxyTargetGroup' :: Maybe ISO8601
updatedDate = Maybe ISO8601
a} :: DBProxyTargetGroup) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromXML DBProxyTargetGroup where
parseXML :: [Node] -> Either String DBProxyTargetGroup
parseXML [Node]
x =
Maybe ConnectionPoolConfigurationInfo
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> DBProxyTargetGroup
DBProxyTargetGroup'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ConnectionPoolConfig")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"CreatedDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBProxyName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"IsDefault")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"TargetGroupArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"TargetGroupName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"UpdatedDate")
instance Prelude.Hashable DBProxyTargetGroup where
hashWithSalt :: Int -> DBProxyTargetGroup -> Int
hashWithSalt Int
_salt DBProxyTargetGroup' {Maybe Bool
Maybe Text
Maybe ISO8601
Maybe ConnectionPoolConfigurationInfo
updatedDate :: Maybe ISO8601
targetGroupName :: Maybe Text
targetGroupArn :: Maybe Text
status :: Maybe Text
isDefault :: Maybe Bool
dbProxyName :: Maybe Text
createdDate :: Maybe ISO8601
connectionPoolConfig :: Maybe ConnectionPoolConfigurationInfo
$sel:updatedDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
$sel:targetGroupName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:targetGroupArn:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:status:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:isDefault:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Bool
$sel:dbProxyName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:createdDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
$sel:connectionPoolConfig:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ConnectionPoolConfigurationInfo
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createdDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbProxyName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isDefault
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
targetGroupArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
targetGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updatedDate
instance Prelude.NFData DBProxyTargetGroup where
rnf :: DBProxyTargetGroup -> ()
rnf DBProxyTargetGroup' {Maybe Bool
Maybe Text
Maybe ISO8601
Maybe ConnectionPoolConfigurationInfo
updatedDate :: Maybe ISO8601
targetGroupName :: Maybe Text
targetGroupArn :: Maybe Text
status :: Maybe Text
isDefault :: Maybe Bool
dbProxyName :: Maybe Text
createdDate :: Maybe ISO8601
connectionPoolConfig :: Maybe ConnectionPoolConfigurationInfo
$sel:updatedDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
$sel:targetGroupName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:targetGroupArn:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:status:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:isDefault:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Bool
$sel:dbProxyName:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe Text
$sel:createdDate:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ISO8601
$sel:connectionPoolConfig:DBProxyTargetGroup' :: DBProxyTargetGroup -> Maybe ConnectionPoolConfigurationInfo
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionPoolConfigurationInfo
connectionPoolConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createdDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbProxyName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isDefault
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
targetGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
targetGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updatedDate