{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.RDS.DescribeDBProxyEndpoints
(
DescribeDBProxyEndpoints (..),
newDescribeDBProxyEndpoints,
describeDBProxyEndpoints_filters,
describeDBProxyEndpoints_marker,
describeDBProxyEndpoints_maxRecords,
describeDBProxyEndpoints_dbProxyName,
describeDBProxyEndpoints_dbProxyEndpointName,
DescribeDBProxyEndpointsResponse (..),
newDescribeDBProxyEndpointsResponse,
describeDBProxyEndpointsResponse_dbProxyEndpoints,
describeDBProxyEndpointsResponse_marker,
describeDBProxyEndpointsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeDBProxyEndpoints = DescribeDBProxyEndpoints'
{
DescribeDBProxyEndpoints -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeDBProxyEndpoints -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBProxyEndpoints -> Maybe Natural
maxRecords :: Prelude.Maybe Prelude.Natural,
DescribeDBProxyEndpoints -> Maybe Text
dbProxyName :: Prelude.Maybe Prelude.Text,
DescribeDBProxyEndpoints -> Maybe Text
dbProxyEndpointName :: Prelude.Maybe Prelude.Text
}
deriving (DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool
(DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool)
-> (DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool)
-> Eq DescribeDBProxyEndpoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool
$c/= :: DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool
== :: DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool
$c== :: DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints -> Bool
Prelude.Eq, ReadPrec [DescribeDBProxyEndpoints]
ReadPrec DescribeDBProxyEndpoints
Int -> ReadS DescribeDBProxyEndpoints
ReadS [DescribeDBProxyEndpoints]
(Int -> ReadS DescribeDBProxyEndpoints)
-> ReadS [DescribeDBProxyEndpoints]
-> ReadPrec DescribeDBProxyEndpoints
-> ReadPrec [DescribeDBProxyEndpoints]
-> Read DescribeDBProxyEndpoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBProxyEndpoints]
$creadListPrec :: ReadPrec [DescribeDBProxyEndpoints]
readPrec :: ReadPrec DescribeDBProxyEndpoints
$creadPrec :: ReadPrec DescribeDBProxyEndpoints
readList :: ReadS [DescribeDBProxyEndpoints]
$creadList :: ReadS [DescribeDBProxyEndpoints]
readsPrec :: Int -> ReadS DescribeDBProxyEndpoints
$creadsPrec :: Int -> ReadS DescribeDBProxyEndpoints
Prelude.Read, Int -> DescribeDBProxyEndpoints -> ShowS
[DescribeDBProxyEndpoints] -> ShowS
DescribeDBProxyEndpoints -> String
(Int -> DescribeDBProxyEndpoints -> ShowS)
-> (DescribeDBProxyEndpoints -> String)
-> ([DescribeDBProxyEndpoints] -> ShowS)
-> Show DescribeDBProxyEndpoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBProxyEndpoints] -> ShowS
$cshowList :: [DescribeDBProxyEndpoints] -> ShowS
show :: DescribeDBProxyEndpoints -> String
$cshow :: DescribeDBProxyEndpoints -> String
showsPrec :: Int -> DescribeDBProxyEndpoints -> ShowS
$cshowsPrec :: Int -> DescribeDBProxyEndpoints -> ShowS
Prelude.Show, (forall x.
DescribeDBProxyEndpoints -> Rep DescribeDBProxyEndpoints x)
-> (forall x.
Rep DescribeDBProxyEndpoints x -> DescribeDBProxyEndpoints)
-> Generic DescribeDBProxyEndpoints
forall x.
Rep DescribeDBProxyEndpoints x -> DescribeDBProxyEndpoints
forall x.
DescribeDBProxyEndpoints -> Rep DescribeDBProxyEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBProxyEndpoints x -> DescribeDBProxyEndpoints
$cfrom :: forall x.
DescribeDBProxyEndpoints -> Rep DescribeDBProxyEndpoints x
Prelude.Generic)
newDescribeDBProxyEndpoints ::
DescribeDBProxyEndpoints
newDescribeDBProxyEndpoints :: DescribeDBProxyEndpoints
newDescribeDBProxyEndpoints =
DescribeDBProxyEndpoints' :: Maybe [Filter]
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> DescribeDBProxyEndpoints
DescribeDBProxyEndpoints'
{ $sel:filters:DescribeDBProxyEndpoints' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBProxyEndpoints' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeDBProxyEndpoints' :: Maybe Natural
maxRecords = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dbProxyName:DescribeDBProxyEndpoints' :: Maybe Text
dbProxyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbProxyEndpointName:DescribeDBProxyEndpoints' :: Maybe Text
dbProxyEndpointName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeDBProxyEndpoints_filters :: Lens.Lens' DescribeDBProxyEndpoints (Prelude.Maybe [Filter])
describeDBProxyEndpoints_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints
describeDBProxyEndpoints_filters = (DescribeDBProxyEndpoints -> Maybe [Filter])
-> (DescribeDBProxyEndpoints
-> Maybe [Filter] -> DescribeDBProxyEndpoints)
-> Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpoints' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBProxyEndpoints
s@DescribeDBProxyEndpoints' {} Maybe [Filter]
a -> DescribeDBProxyEndpoints
s {$sel:filters:DescribeDBProxyEndpoints' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBProxyEndpoints) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxyEndpoints
-> f DescribeDBProxyEndpoints
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 AnIso [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBProxyEndpoints_marker :: Lens.Lens' DescribeDBProxyEndpoints (Prelude.Maybe Prelude.Text)
describeDBProxyEndpoints_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints
describeDBProxyEndpoints_marker = (DescribeDBProxyEndpoints -> Maybe Text)
-> (DescribeDBProxyEndpoints
-> Maybe Text -> DescribeDBProxyEndpoints)
-> Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpoints' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBProxyEndpoints
s@DescribeDBProxyEndpoints' {} Maybe Text
a -> DescribeDBProxyEndpoints
s {$sel:marker:DescribeDBProxyEndpoints' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBProxyEndpoints)
describeDBProxyEndpoints_maxRecords :: Lens.Lens' DescribeDBProxyEndpoints (Prelude.Maybe Prelude.Natural)
describeDBProxyEndpoints_maxRecords :: (Maybe Natural -> f (Maybe Natural))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints
describeDBProxyEndpoints_maxRecords = (DescribeDBProxyEndpoints -> Maybe Natural)
-> (DescribeDBProxyEndpoints
-> Maybe Natural -> DescribeDBProxyEndpoints)
-> Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpoints' {Maybe Natural
maxRecords :: Maybe Natural
$sel:maxRecords:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Natural
maxRecords} -> Maybe Natural
maxRecords) (\s :: DescribeDBProxyEndpoints
s@DescribeDBProxyEndpoints' {} Maybe Natural
a -> DescribeDBProxyEndpoints
s {$sel:maxRecords:DescribeDBProxyEndpoints' :: Maybe Natural
maxRecords = Maybe Natural
a} :: DescribeDBProxyEndpoints)
describeDBProxyEndpoints_dbProxyName :: Lens.Lens' DescribeDBProxyEndpoints (Prelude.Maybe Prelude.Text)
describeDBProxyEndpoints_dbProxyName :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints
describeDBProxyEndpoints_dbProxyName = (DescribeDBProxyEndpoints -> Maybe Text)
-> (DescribeDBProxyEndpoints
-> Maybe Text -> DescribeDBProxyEndpoints)
-> Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpoints' {Maybe Text
dbProxyName :: Maybe Text
$sel:dbProxyName:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
dbProxyName} -> Maybe Text
dbProxyName) (\s :: DescribeDBProxyEndpoints
s@DescribeDBProxyEndpoints' {} Maybe Text
a -> DescribeDBProxyEndpoints
s {$sel:dbProxyName:DescribeDBProxyEndpoints' :: Maybe Text
dbProxyName = Maybe Text
a} :: DescribeDBProxyEndpoints)
describeDBProxyEndpoints_dbProxyEndpointName :: Lens.Lens' DescribeDBProxyEndpoints (Prelude.Maybe Prelude.Text)
describeDBProxyEndpoints_dbProxyEndpointName :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxyEndpoints -> f DescribeDBProxyEndpoints
describeDBProxyEndpoints_dbProxyEndpointName = (DescribeDBProxyEndpoints -> Maybe Text)
-> (DescribeDBProxyEndpoints
-> Maybe Text -> DescribeDBProxyEndpoints)
-> Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpoints' {Maybe Text
dbProxyEndpointName :: Maybe Text
$sel:dbProxyEndpointName:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
dbProxyEndpointName} -> Maybe Text
dbProxyEndpointName) (\s :: DescribeDBProxyEndpoints
s@DescribeDBProxyEndpoints' {} Maybe Text
a -> DescribeDBProxyEndpoints
s {$sel:dbProxyEndpointName:DescribeDBProxyEndpoints' :: Maybe Text
dbProxyEndpointName = Maybe Text
a} :: DescribeDBProxyEndpoints)
instance Core.AWSPager DescribeDBProxyEndpoints where
page :: DescribeDBProxyEndpoints
-> AWSResponse DescribeDBProxyEndpoints
-> Maybe DescribeDBProxyEndpoints
page DescribeDBProxyEndpoints
rq AWSResponse DescribeDBProxyEndpoints
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBProxyEndpoints
DescribeDBProxyEndpointsResponse
rs
DescribeDBProxyEndpointsResponse
-> Getting (First Text) DescribeDBProxyEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxyEndpointsResponse
-> Const (First Text) DescribeDBProxyEndpointsResponse
Lens' DescribeDBProxyEndpointsResponse (Maybe Text)
describeDBProxyEndpointsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxyEndpointsResponse
-> Const (First Text) DescribeDBProxyEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBProxyEndpointsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBProxyEndpoints
forall a. Maybe a
Prelude.Nothing
| Maybe [DBProxyEndpoint] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBProxyEndpoints
DescribeDBProxyEndpointsResponse
rs
DescribeDBProxyEndpointsResponse
-> Getting
(First [DBProxyEndpoint])
DescribeDBProxyEndpointsResponse
[DBProxyEndpoint]
-> Maybe [DBProxyEndpoint]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) (Maybe [DBProxyEndpoint]))
-> DescribeDBProxyEndpointsResponse
-> Const (First [DBProxyEndpoint]) DescribeDBProxyEndpointsResponse
Lens' DescribeDBProxyEndpointsResponse (Maybe [DBProxyEndpoint])
describeDBProxyEndpointsResponse_dbProxyEndpoints
((Maybe [DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) (Maybe [DBProxyEndpoint]))
-> DescribeDBProxyEndpointsResponse
-> Const
(First [DBProxyEndpoint]) DescribeDBProxyEndpointsResponse)
-> (([DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) [DBProxyEndpoint])
-> Maybe [DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) (Maybe [DBProxyEndpoint]))
-> Getting
(First [DBProxyEndpoint])
DescribeDBProxyEndpointsResponse
[DBProxyEndpoint]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) [DBProxyEndpoint])
-> Maybe [DBProxyEndpoint]
-> Const (First [DBProxyEndpoint]) (Maybe [DBProxyEndpoint])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBProxyEndpoints
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDBProxyEndpoints -> Maybe DescribeDBProxyEndpoints
forall a. a -> Maybe a
Prelude.Just (DescribeDBProxyEndpoints -> Maybe DescribeDBProxyEndpoints)
-> DescribeDBProxyEndpoints -> Maybe DescribeDBProxyEndpoints
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDBProxyEndpoints
rq
DescribeDBProxyEndpoints
-> (DescribeDBProxyEndpoints -> DescribeDBProxyEndpoints)
-> DescribeDBProxyEndpoints
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBProxyEndpoints -> Identity DescribeDBProxyEndpoints
Lens
DescribeDBProxyEndpoints
DescribeDBProxyEndpoints
(Maybe Text)
(Maybe Text)
describeDBProxyEndpoints_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeDBProxyEndpoints -> Identity DescribeDBProxyEndpoints)
-> Maybe Text
-> DescribeDBProxyEndpoints
-> DescribeDBProxyEndpoints
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBProxyEndpoints
DescribeDBProxyEndpointsResponse
rs
DescribeDBProxyEndpointsResponse
-> Getting (First Text) DescribeDBProxyEndpointsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxyEndpointsResponse
-> Const (First Text) DescribeDBProxyEndpointsResponse
Lens' DescribeDBProxyEndpointsResponse (Maybe Text)
describeDBProxyEndpointsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxyEndpointsResponse
-> Const (First Text) DescribeDBProxyEndpointsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBProxyEndpointsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeDBProxyEndpoints where
type
AWSResponse DescribeDBProxyEndpoints =
DescribeDBProxyEndpointsResponse
request :: DescribeDBProxyEndpoints -> Request DescribeDBProxyEndpoints
request = Service
-> DescribeDBProxyEndpoints -> Request DescribeDBProxyEndpoints
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDBProxyEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBProxyEndpoints)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeDBProxyEndpoints))
-> Logger
-> Service
-> Proxy DescribeDBProxyEndpoints
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBProxyEndpoints)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"DescribeDBProxyEndpointsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [DBProxyEndpoint]
-> Maybe Text -> Int -> DescribeDBProxyEndpointsResponse
DescribeDBProxyEndpointsResponse'
(Maybe [DBProxyEndpoint]
-> Maybe Text -> Int -> DescribeDBProxyEndpointsResponse)
-> Either String (Maybe [DBProxyEndpoint])
-> Either
String (Maybe Text -> Int -> DescribeDBProxyEndpointsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBProxyEndpoints"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [DBProxyEndpoint]))
-> Either String (Maybe [DBProxyEndpoint])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBProxyEndpoint])
-> [Node] -> Either String (Maybe [DBProxyEndpoint])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [DBProxyEndpoint]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String (Maybe Text -> Int -> DescribeDBProxyEndpointsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeDBProxyEndpointsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either String (Int -> DescribeDBProxyEndpointsResponse)
-> Either String Int
-> Either String DescribeDBProxyEndpointsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeDBProxyEndpoints
instance Prelude.NFData DescribeDBProxyEndpoints
instance Core.ToHeaders DescribeDBProxyEndpoints where
toHeaders :: DescribeDBProxyEndpoints -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeDBProxyEndpoints -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeDBProxyEndpoints where
toPath :: DescribeDBProxyEndpoints -> ByteString
toPath = ByteString -> DescribeDBProxyEndpoints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDBProxyEndpoints where
toQuery :: DescribeDBProxyEndpoints -> QueryString
toQuery DescribeDBProxyEndpoints' {Maybe Natural
Maybe [Filter]
Maybe Text
dbProxyEndpointName :: Maybe Text
dbProxyName :: Maybe Text
maxRecords :: Maybe Natural
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:dbProxyEndpointName:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
$sel:dbProxyName:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
$sel:maxRecords:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Natural
$sel:marker:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe Text
$sel:filters:DescribeDBProxyEndpoints' :: DescribeDBProxyEndpoints -> Maybe [Filter]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeDBProxyEndpoints" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"Filters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxRecords" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxRecords,
ByteString
"DBProxyName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbProxyName,
ByteString
"DBProxyEndpointName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbProxyEndpointName
]
data DescribeDBProxyEndpointsResponse = DescribeDBProxyEndpointsResponse'
{
DescribeDBProxyEndpointsResponse -> Maybe [DBProxyEndpoint]
dbProxyEndpoints :: Prelude.Maybe [DBProxyEndpoint],
DescribeDBProxyEndpointsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBProxyEndpointsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool
(DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool)
-> (DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool)
-> Eq DescribeDBProxyEndpointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool
$c/= :: DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool
== :: DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool
$c== :: DescribeDBProxyEndpointsResponse
-> DescribeDBProxyEndpointsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBProxyEndpointsResponse]
ReadPrec DescribeDBProxyEndpointsResponse
Int -> ReadS DescribeDBProxyEndpointsResponse
ReadS [DescribeDBProxyEndpointsResponse]
(Int -> ReadS DescribeDBProxyEndpointsResponse)
-> ReadS [DescribeDBProxyEndpointsResponse]
-> ReadPrec DescribeDBProxyEndpointsResponse
-> ReadPrec [DescribeDBProxyEndpointsResponse]
-> Read DescribeDBProxyEndpointsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBProxyEndpointsResponse]
$creadListPrec :: ReadPrec [DescribeDBProxyEndpointsResponse]
readPrec :: ReadPrec DescribeDBProxyEndpointsResponse
$creadPrec :: ReadPrec DescribeDBProxyEndpointsResponse
readList :: ReadS [DescribeDBProxyEndpointsResponse]
$creadList :: ReadS [DescribeDBProxyEndpointsResponse]
readsPrec :: Int -> ReadS DescribeDBProxyEndpointsResponse
$creadsPrec :: Int -> ReadS DescribeDBProxyEndpointsResponse
Prelude.Read, Int -> DescribeDBProxyEndpointsResponse -> ShowS
[DescribeDBProxyEndpointsResponse] -> ShowS
DescribeDBProxyEndpointsResponse -> String
(Int -> DescribeDBProxyEndpointsResponse -> ShowS)
-> (DescribeDBProxyEndpointsResponse -> String)
-> ([DescribeDBProxyEndpointsResponse] -> ShowS)
-> Show DescribeDBProxyEndpointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBProxyEndpointsResponse] -> ShowS
$cshowList :: [DescribeDBProxyEndpointsResponse] -> ShowS
show :: DescribeDBProxyEndpointsResponse -> String
$cshow :: DescribeDBProxyEndpointsResponse -> String
showsPrec :: Int -> DescribeDBProxyEndpointsResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBProxyEndpointsResponse -> ShowS
Prelude.Show, (forall x.
DescribeDBProxyEndpointsResponse
-> Rep DescribeDBProxyEndpointsResponse x)
-> (forall x.
Rep DescribeDBProxyEndpointsResponse x
-> DescribeDBProxyEndpointsResponse)
-> Generic DescribeDBProxyEndpointsResponse
forall x.
Rep DescribeDBProxyEndpointsResponse x
-> DescribeDBProxyEndpointsResponse
forall x.
DescribeDBProxyEndpointsResponse
-> Rep DescribeDBProxyEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBProxyEndpointsResponse x
-> DescribeDBProxyEndpointsResponse
$cfrom :: forall x.
DescribeDBProxyEndpointsResponse
-> Rep DescribeDBProxyEndpointsResponse x
Prelude.Generic)
newDescribeDBProxyEndpointsResponse ::
Prelude.Int ->
DescribeDBProxyEndpointsResponse
newDescribeDBProxyEndpointsResponse :: Int -> DescribeDBProxyEndpointsResponse
newDescribeDBProxyEndpointsResponse Int
pHttpStatus_ =
DescribeDBProxyEndpointsResponse' :: Maybe [DBProxyEndpoint]
-> Maybe Text -> Int -> DescribeDBProxyEndpointsResponse
DescribeDBProxyEndpointsResponse'
{ $sel:dbProxyEndpoints:DescribeDBProxyEndpointsResponse' :: Maybe [DBProxyEndpoint]
dbProxyEndpoints =
Maybe [DBProxyEndpoint]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBProxyEndpointsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDBProxyEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDBProxyEndpointsResponse_dbProxyEndpoints :: Lens.Lens' DescribeDBProxyEndpointsResponse (Prelude.Maybe [DBProxyEndpoint])
describeDBProxyEndpointsResponse_dbProxyEndpoints :: (Maybe [DBProxyEndpoint] -> f (Maybe [DBProxyEndpoint]))
-> DescribeDBProxyEndpointsResponse
-> f DescribeDBProxyEndpointsResponse
describeDBProxyEndpointsResponse_dbProxyEndpoints = (DescribeDBProxyEndpointsResponse -> Maybe [DBProxyEndpoint])
-> (DescribeDBProxyEndpointsResponse
-> Maybe [DBProxyEndpoint] -> DescribeDBProxyEndpointsResponse)
-> Lens' DescribeDBProxyEndpointsResponse (Maybe [DBProxyEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpointsResponse' {Maybe [DBProxyEndpoint]
dbProxyEndpoints :: Maybe [DBProxyEndpoint]
$sel:dbProxyEndpoints:DescribeDBProxyEndpointsResponse' :: DescribeDBProxyEndpointsResponse -> Maybe [DBProxyEndpoint]
dbProxyEndpoints} -> Maybe [DBProxyEndpoint]
dbProxyEndpoints) (\s :: DescribeDBProxyEndpointsResponse
s@DescribeDBProxyEndpointsResponse' {} Maybe [DBProxyEndpoint]
a -> DescribeDBProxyEndpointsResponse
s {$sel:dbProxyEndpoints:DescribeDBProxyEndpointsResponse' :: Maybe [DBProxyEndpoint]
dbProxyEndpoints = Maybe [DBProxyEndpoint]
a} :: DescribeDBProxyEndpointsResponse) ((Maybe [DBProxyEndpoint] -> f (Maybe [DBProxyEndpoint]))
-> DescribeDBProxyEndpointsResponse
-> f DescribeDBProxyEndpointsResponse)
-> ((Maybe [DBProxyEndpoint] -> f (Maybe [DBProxyEndpoint]))
-> Maybe [DBProxyEndpoint] -> f (Maybe [DBProxyEndpoint]))
-> (Maybe [DBProxyEndpoint] -> f (Maybe [DBProxyEndpoint]))
-> DescribeDBProxyEndpointsResponse
-> f DescribeDBProxyEndpointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DBProxyEndpoint]
[DBProxyEndpoint]
[DBProxyEndpoint]
[DBProxyEndpoint]
-> Iso
(Maybe [DBProxyEndpoint])
(Maybe [DBProxyEndpoint])
(Maybe [DBProxyEndpoint])
(Maybe [DBProxyEndpoint])
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 AnIso
[DBProxyEndpoint]
[DBProxyEndpoint]
[DBProxyEndpoint]
[DBProxyEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBProxyEndpointsResponse_marker :: Lens.Lens' DescribeDBProxyEndpointsResponse (Prelude.Maybe Prelude.Text)
describeDBProxyEndpointsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxyEndpointsResponse
-> f DescribeDBProxyEndpointsResponse
describeDBProxyEndpointsResponse_marker = (DescribeDBProxyEndpointsResponse -> Maybe Text)
-> (DescribeDBProxyEndpointsResponse
-> Maybe Text -> DescribeDBProxyEndpointsResponse)
-> Lens' DescribeDBProxyEndpointsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpointsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBProxyEndpointsResponse' :: DescribeDBProxyEndpointsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBProxyEndpointsResponse
s@DescribeDBProxyEndpointsResponse' {} Maybe Text
a -> DescribeDBProxyEndpointsResponse
s {$sel:marker:DescribeDBProxyEndpointsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBProxyEndpointsResponse)
describeDBProxyEndpointsResponse_httpStatus :: Lens.Lens' DescribeDBProxyEndpointsResponse Prelude.Int
describeDBProxyEndpointsResponse_httpStatus :: (Int -> f Int)
-> DescribeDBProxyEndpointsResponse
-> f DescribeDBProxyEndpointsResponse
describeDBProxyEndpointsResponse_httpStatus = (DescribeDBProxyEndpointsResponse -> Int)
-> (DescribeDBProxyEndpointsResponse
-> Int -> DescribeDBProxyEndpointsResponse)
-> Lens
DescribeDBProxyEndpointsResponse
DescribeDBProxyEndpointsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxyEndpointsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDBProxyEndpointsResponse' :: DescribeDBProxyEndpointsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDBProxyEndpointsResponse
s@DescribeDBProxyEndpointsResponse' {} Int
a -> DescribeDBProxyEndpointsResponse
s {$sel:httpStatus:DescribeDBProxyEndpointsResponse' :: Int
httpStatus = Int
a} :: DescribeDBProxyEndpointsResponse)
instance
Prelude.NFData
DescribeDBProxyEndpointsResponse