{-# 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.DescribeDBProxies
(
DescribeDBProxies (..),
newDescribeDBProxies,
describeDBProxies_filters,
describeDBProxies_marker,
describeDBProxies_maxRecords,
describeDBProxies_dbProxyName,
DescribeDBProxiesResponse (..),
newDescribeDBProxiesResponse,
describeDBProxiesResponse_dbProxies,
describeDBProxiesResponse_marker,
describeDBProxiesResponse_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 DescribeDBProxies = DescribeDBProxies'
{
DescribeDBProxies -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeDBProxies -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBProxies -> Maybe Natural
maxRecords :: Prelude.Maybe Prelude.Natural,
DescribeDBProxies -> Maybe Text
dbProxyName :: Prelude.Maybe Prelude.Text
}
deriving (DescribeDBProxies -> DescribeDBProxies -> Bool
(DescribeDBProxies -> DescribeDBProxies -> Bool)
-> (DescribeDBProxies -> DescribeDBProxies -> Bool)
-> Eq DescribeDBProxies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBProxies -> DescribeDBProxies -> Bool
$c/= :: DescribeDBProxies -> DescribeDBProxies -> Bool
== :: DescribeDBProxies -> DescribeDBProxies -> Bool
$c== :: DescribeDBProxies -> DescribeDBProxies -> Bool
Prelude.Eq, ReadPrec [DescribeDBProxies]
ReadPrec DescribeDBProxies
Int -> ReadS DescribeDBProxies
ReadS [DescribeDBProxies]
(Int -> ReadS DescribeDBProxies)
-> ReadS [DescribeDBProxies]
-> ReadPrec DescribeDBProxies
-> ReadPrec [DescribeDBProxies]
-> Read DescribeDBProxies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBProxies]
$creadListPrec :: ReadPrec [DescribeDBProxies]
readPrec :: ReadPrec DescribeDBProxies
$creadPrec :: ReadPrec DescribeDBProxies
readList :: ReadS [DescribeDBProxies]
$creadList :: ReadS [DescribeDBProxies]
readsPrec :: Int -> ReadS DescribeDBProxies
$creadsPrec :: Int -> ReadS DescribeDBProxies
Prelude.Read, Int -> DescribeDBProxies -> ShowS
[DescribeDBProxies] -> ShowS
DescribeDBProxies -> String
(Int -> DescribeDBProxies -> ShowS)
-> (DescribeDBProxies -> String)
-> ([DescribeDBProxies] -> ShowS)
-> Show DescribeDBProxies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBProxies] -> ShowS
$cshowList :: [DescribeDBProxies] -> ShowS
show :: DescribeDBProxies -> String
$cshow :: DescribeDBProxies -> String
showsPrec :: Int -> DescribeDBProxies -> ShowS
$cshowsPrec :: Int -> DescribeDBProxies -> ShowS
Prelude.Show, (forall x. DescribeDBProxies -> Rep DescribeDBProxies x)
-> (forall x. Rep DescribeDBProxies x -> DescribeDBProxies)
-> Generic DescribeDBProxies
forall x. Rep DescribeDBProxies x -> DescribeDBProxies
forall x. DescribeDBProxies -> Rep DescribeDBProxies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDBProxies x -> DescribeDBProxies
$cfrom :: forall x. DescribeDBProxies -> Rep DescribeDBProxies x
Prelude.Generic)
newDescribeDBProxies ::
DescribeDBProxies
newDescribeDBProxies :: DescribeDBProxies
newDescribeDBProxies =
DescribeDBProxies' :: Maybe [Filter]
-> Maybe Text -> Maybe Natural -> Maybe Text -> DescribeDBProxies
DescribeDBProxies'
{ $sel:filters:DescribeDBProxies' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBProxies' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeDBProxies' :: Maybe Natural
maxRecords = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dbProxyName:DescribeDBProxies' :: Maybe Text
dbProxyName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeDBProxies_filters :: Lens.Lens' DescribeDBProxies (Prelude.Maybe [Filter])
describeDBProxies_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxies -> f DescribeDBProxies
describeDBProxies_filters = (DescribeDBProxies -> Maybe [Filter])
-> (DescribeDBProxies -> Maybe [Filter] -> DescribeDBProxies)
-> Lens
DescribeDBProxies
DescribeDBProxies
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxies' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBProxies' :: DescribeDBProxies -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBProxies
s@DescribeDBProxies' {} Maybe [Filter]
a -> DescribeDBProxies
s {$sel:filters:DescribeDBProxies' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBProxies) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxies -> f DescribeDBProxies)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBProxies
-> f DescribeDBProxies
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
describeDBProxies_marker :: Lens.Lens' DescribeDBProxies (Prelude.Maybe Prelude.Text)
describeDBProxies_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxies -> f DescribeDBProxies
describeDBProxies_marker = (DescribeDBProxies -> Maybe Text)
-> (DescribeDBProxies -> Maybe Text -> DescribeDBProxies)
-> Lens
DescribeDBProxies DescribeDBProxies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxies' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBProxies' :: DescribeDBProxies -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBProxies
s@DescribeDBProxies' {} Maybe Text
a -> DescribeDBProxies
s {$sel:marker:DescribeDBProxies' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBProxies)
describeDBProxies_maxRecords :: Lens.Lens' DescribeDBProxies (Prelude.Maybe Prelude.Natural)
describeDBProxies_maxRecords :: (Maybe Natural -> f (Maybe Natural))
-> DescribeDBProxies -> f DescribeDBProxies
describeDBProxies_maxRecords = (DescribeDBProxies -> Maybe Natural)
-> (DescribeDBProxies -> Maybe Natural -> DescribeDBProxies)
-> Lens
DescribeDBProxies DescribeDBProxies (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxies' {Maybe Natural
maxRecords :: Maybe Natural
$sel:maxRecords:DescribeDBProxies' :: DescribeDBProxies -> Maybe Natural
maxRecords} -> Maybe Natural
maxRecords) (\s :: DescribeDBProxies
s@DescribeDBProxies' {} Maybe Natural
a -> DescribeDBProxies
s {$sel:maxRecords:DescribeDBProxies' :: Maybe Natural
maxRecords = Maybe Natural
a} :: DescribeDBProxies)
describeDBProxies_dbProxyName :: Lens.Lens' DescribeDBProxies (Prelude.Maybe Prelude.Text)
describeDBProxies_dbProxyName :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxies -> f DescribeDBProxies
describeDBProxies_dbProxyName = (DescribeDBProxies -> Maybe Text)
-> (DescribeDBProxies -> Maybe Text -> DescribeDBProxies)
-> Lens
DescribeDBProxies DescribeDBProxies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxies' {Maybe Text
dbProxyName :: Maybe Text
$sel:dbProxyName:DescribeDBProxies' :: DescribeDBProxies -> Maybe Text
dbProxyName} -> Maybe Text
dbProxyName) (\s :: DescribeDBProxies
s@DescribeDBProxies' {} Maybe Text
a -> DescribeDBProxies
s {$sel:dbProxyName:DescribeDBProxies' :: Maybe Text
dbProxyName = Maybe Text
a} :: DescribeDBProxies)
instance Core.AWSPager DescribeDBProxies where
page :: DescribeDBProxies
-> AWSResponse DescribeDBProxies -> Maybe DescribeDBProxies
page DescribeDBProxies
rq AWSResponse DescribeDBProxies
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBProxies
DescribeDBProxiesResponse
rs
DescribeDBProxiesResponse
-> Getting (First Text) DescribeDBProxiesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxiesResponse
-> Const (First Text) DescribeDBProxiesResponse
Lens' DescribeDBProxiesResponse (Maybe Text)
describeDBProxiesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxiesResponse
-> Const (First Text) DescribeDBProxiesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBProxiesResponse 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 DescribeDBProxies
forall a. Maybe a
Prelude.Nothing
| Maybe [DBProxy] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBProxies
DescribeDBProxiesResponse
rs
DescribeDBProxiesResponse
-> Getting (First [DBProxy]) DescribeDBProxiesResponse [DBProxy]
-> Maybe [DBProxy]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBProxy] -> Const (First [DBProxy]) (Maybe [DBProxy]))
-> DescribeDBProxiesResponse
-> Const (First [DBProxy]) DescribeDBProxiesResponse
Lens' DescribeDBProxiesResponse (Maybe [DBProxy])
describeDBProxiesResponse_dbProxies
((Maybe [DBProxy] -> Const (First [DBProxy]) (Maybe [DBProxy]))
-> DescribeDBProxiesResponse
-> Const (First [DBProxy]) DescribeDBProxiesResponse)
-> (([DBProxy] -> Const (First [DBProxy]) [DBProxy])
-> Maybe [DBProxy] -> Const (First [DBProxy]) (Maybe [DBProxy]))
-> Getting (First [DBProxy]) DescribeDBProxiesResponse [DBProxy]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBProxy] -> Const (First [DBProxy]) [DBProxy])
-> Maybe [DBProxy] -> Const (First [DBProxy]) (Maybe [DBProxy])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBProxies
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDBProxies -> Maybe DescribeDBProxies
forall a. a -> Maybe a
Prelude.Just (DescribeDBProxies -> Maybe DescribeDBProxies)
-> DescribeDBProxies -> Maybe DescribeDBProxies
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDBProxies
rq
DescribeDBProxies
-> (DescribeDBProxies -> DescribeDBProxies) -> DescribeDBProxies
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBProxies -> Identity DescribeDBProxies
Lens DescribeDBProxies DescribeDBProxies (Maybe Text) (Maybe Text)
describeDBProxies_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeDBProxies -> Identity DescribeDBProxies)
-> Maybe Text -> DescribeDBProxies -> DescribeDBProxies
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBProxies
DescribeDBProxiesResponse
rs
DescribeDBProxiesResponse
-> Getting (First Text) DescribeDBProxiesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxiesResponse
-> Const (First Text) DescribeDBProxiesResponse
Lens' DescribeDBProxiesResponse (Maybe Text)
describeDBProxiesResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBProxiesResponse
-> Const (First Text) DescribeDBProxiesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBProxiesResponse 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 DescribeDBProxies where
type
AWSResponse DescribeDBProxies =
DescribeDBProxiesResponse
request :: DescribeDBProxies -> Request DescribeDBProxies
request = Service -> DescribeDBProxies -> Request DescribeDBProxies
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDBProxies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBProxies)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeDBProxies))
-> Logger
-> Service
-> Proxy DescribeDBProxies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBProxies)))
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
"DescribeDBProxiesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [DBProxy] -> Maybe Text -> Int -> DescribeDBProxiesResponse
DescribeDBProxiesResponse'
(Maybe [DBProxy] -> Maybe Text -> Int -> DescribeDBProxiesResponse)
-> Either String (Maybe [DBProxy])
-> Either String (Maybe Text -> Int -> DescribeDBProxiesResponse)
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
"DBProxies" 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 [DBProxy]))
-> Either String (Maybe [DBProxy])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBProxy])
-> [Node] -> Either String (Maybe [DBProxy])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [DBProxy]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Int -> DescribeDBProxiesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeDBProxiesResponse)
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 -> DescribeDBProxiesResponse)
-> Either String Int -> Either String DescribeDBProxiesResponse
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 DescribeDBProxies
instance Prelude.NFData DescribeDBProxies
instance Core.ToHeaders DescribeDBProxies where
toHeaders :: DescribeDBProxies -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeDBProxies -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeDBProxies where
toPath :: DescribeDBProxies -> ByteString
toPath = ByteString -> DescribeDBProxies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDBProxies where
toQuery :: DescribeDBProxies -> QueryString
toQuery DescribeDBProxies' {Maybe Natural
Maybe [Filter]
Maybe Text
dbProxyName :: Maybe Text
maxRecords :: Maybe Natural
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:dbProxyName:DescribeDBProxies' :: DescribeDBProxies -> Maybe Text
$sel:maxRecords:DescribeDBProxies' :: DescribeDBProxies -> Maybe Natural
$sel:marker:DescribeDBProxies' :: DescribeDBProxies -> Maybe Text
$sel:filters:DescribeDBProxies' :: DescribeDBProxies -> 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
"DescribeDBProxies" :: 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
]
data DescribeDBProxiesResponse = DescribeDBProxiesResponse'
{
DescribeDBProxiesResponse -> Maybe [DBProxy]
dbProxies :: Prelude.Maybe [DBProxy],
DescribeDBProxiesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBProxiesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool
(DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool)
-> (DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool)
-> Eq DescribeDBProxiesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool
$c/= :: DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool
== :: DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool
$c== :: DescribeDBProxiesResponse -> DescribeDBProxiesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBProxiesResponse]
ReadPrec DescribeDBProxiesResponse
Int -> ReadS DescribeDBProxiesResponse
ReadS [DescribeDBProxiesResponse]
(Int -> ReadS DescribeDBProxiesResponse)
-> ReadS [DescribeDBProxiesResponse]
-> ReadPrec DescribeDBProxiesResponse
-> ReadPrec [DescribeDBProxiesResponse]
-> Read DescribeDBProxiesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBProxiesResponse]
$creadListPrec :: ReadPrec [DescribeDBProxiesResponse]
readPrec :: ReadPrec DescribeDBProxiesResponse
$creadPrec :: ReadPrec DescribeDBProxiesResponse
readList :: ReadS [DescribeDBProxiesResponse]
$creadList :: ReadS [DescribeDBProxiesResponse]
readsPrec :: Int -> ReadS DescribeDBProxiesResponse
$creadsPrec :: Int -> ReadS DescribeDBProxiesResponse
Prelude.Read, Int -> DescribeDBProxiesResponse -> ShowS
[DescribeDBProxiesResponse] -> ShowS
DescribeDBProxiesResponse -> String
(Int -> DescribeDBProxiesResponse -> ShowS)
-> (DescribeDBProxiesResponse -> String)
-> ([DescribeDBProxiesResponse] -> ShowS)
-> Show DescribeDBProxiesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBProxiesResponse] -> ShowS
$cshowList :: [DescribeDBProxiesResponse] -> ShowS
show :: DescribeDBProxiesResponse -> String
$cshow :: DescribeDBProxiesResponse -> String
showsPrec :: Int -> DescribeDBProxiesResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBProxiesResponse -> ShowS
Prelude.Show, (forall x.
DescribeDBProxiesResponse -> Rep DescribeDBProxiesResponse x)
-> (forall x.
Rep DescribeDBProxiesResponse x -> DescribeDBProxiesResponse)
-> Generic DescribeDBProxiesResponse
forall x.
Rep DescribeDBProxiesResponse x -> DescribeDBProxiesResponse
forall x.
DescribeDBProxiesResponse -> Rep DescribeDBProxiesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBProxiesResponse x -> DescribeDBProxiesResponse
$cfrom :: forall x.
DescribeDBProxiesResponse -> Rep DescribeDBProxiesResponse x
Prelude.Generic)
newDescribeDBProxiesResponse ::
Prelude.Int ->
DescribeDBProxiesResponse
newDescribeDBProxiesResponse :: Int -> DescribeDBProxiesResponse
newDescribeDBProxiesResponse Int
pHttpStatus_ =
DescribeDBProxiesResponse' :: Maybe [DBProxy] -> Maybe Text -> Int -> DescribeDBProxiesResponse
DescribeDBProxiesResponse'
{ $sel:dbProxies:DescribeDBProxiesResponse' :: Maybe [DBProxy]
dbProxies =
Maybe [DBProxy]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBProxiesResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDBProxiesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDBProxiesResponse_dbProxies :: Lens.Lens' DescribeDBProxiesResponse (Prelude.Maybe [DBProxy])
describeDBProxiesResponse_dbProxies :: (Maybe [DBProxy] -> f (Maybe [DBProxy]))
-> DescribeDBProxiesResponse -> f DescribeDBProxiesResponse
describeDBProxiesResponse_dbProxies = (DescribeDBProxiesResponse -> Maybe [DBProxy])
-> (DescribeDBProxiesResponse
-> Maybe [DBProxy] -> DescribeDBProxiesResponse)
-> Lens' DescribeDBProxiesResponse (Maybe [DBProxy])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxiesResponse' {Maybe [DBProxy]
dbProxies :: Maybe [DBProxy]
$sel:dbProxies:DescribeDBProxiesResponse' :: DescribeDBProxiesResponse -> Maybe [DBProxy]
dbProxies} -> Maybe [DBProxy]
dbProxies) (\s :: DescribeDBProxiesResponse
s@DescribeDBProxiesResponse' {} Maybe [DBProxy]
a -> DescribeDBProxiesResponse
s {$sel:dbProxies:DescribeDBProxiesResponse' :: Maybe [DBProxy]
dbProxies = Maybe [DBProxy]
a} :: DescribeDBProxiesResponse) ((Maybe [DBProxy] -> f (Maybe [DBProxy]))
-> DescribeDBProxiesResponse -> f DescribeDBProxiesResponse)
-> ((Maybe [DBProxy] -> f (Maybe [DBProxy]))
-> Maybe [DBProxy] -> f (Maybe [DBProxy]))
-> (Maybe [DBProxy] -> f (Maybe [DBProxy]))
-> DescribeDBProxiesResponse
-> f DescribeDBProxiesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [DBProxy] [DBProxy] [DBProxy] [DBProxy]
-> Iso
(Maybe [DBProxy])
(Maybe [DBProxy])
(Maybe [DBProxy])
(Maybe [DBProxy])
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 [DBProxy] [DBProxy] [DBProxy] [DBProxy]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBProxiesResponse_marker :: Lens.Lens' DescribeDBProxiesResponse (Prelude.Maybe Prelude.Text)
describeDBProxiesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBProxiesResponse -> f DescribeDBProxiesResponse
describeDBProxiesResponse_marker = (DescribeDBProxiesResponse -> Maybe Text)
-> (DescribeDBProxiesResponse
-> Maybe Text -> DescribeDBProxiesResponse)
-> Lens' DescribeDBProxiesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxiesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBProxiesResponse' :: DescribeDBProxiesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBProxiesResponse
s@DescribeDBProxiesResponse' {} Maybe Text
a -> DescribeDBProxiesResponse
s {$sel:marker:DescribeDBProxiesResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBProxiesResponse)
describeDBProxiesResponse_httpStatus :: Lens.Lens' DescribeDBProxiesResponse Prelude.Int
describeDBProxiesResponse_httpStatus :: (Int -> f Int)
-> DescribeDBProxiesResponse -> f DescribeDBProxiesResponse
describeDBProxiesResponse_httpStatus = (DescribeDBProxiesResponse -> Int)
-> (DescribeDBProxiesResponse -> Int -> DescribeDBProxiesResponse)
-> Lens DescribeDBProxiesResponse DescribeDBProxiesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBProxiesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDBProxiesResponse' :: DescribeDBProxiesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDBProxiesResponse
s@DescribeDBProxiesResponse' {} Int
a -> DescribeDBProxiesResponse
s {$sel:httpStatus:DescribeDBProxiesResponse' :: Int
httpStatus = Int
a} :: DescribeDBProxiesResponse)
instance Prelude.NFData DescribeDBProxiesResponse