{-# 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.Neptune.DescribeDBSubnetGroups
(
DescribeDBSubnetGroups (..),
newDescribeDBSubnetGroups,
describeDBSubnetGroups_dbSubnetGroupName,
describeDBSubnetGroups_filters,
describeDBSubnetGroups_marker,
describeDBSubnetGroups_maxRecords,
DescribeDBSubnetGroupsResponse (..),
newDescribeDBSubnetGroupsResponse,
describeDBSubnetGroupsResponse_dbSubnetGroups,
describeDBSubnetGroupsResponse_marker,
describeDBSubnetGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Neptune.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeDBSubnetGroups = DescribeDBSubnetGroups'
{
DescribeDBSubnetGroups -> Maybe Text
dbSubnetGroupName :: Prelude.Maybe Prelude.Text,
DescribeDBSubnetGroups -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeDBSubnetGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBSubnetGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool
(DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool)
-> (DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool)
-> Eq DescribeDBSubnetGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool
$c/= :: DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool
== :: DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool
$c== :: DescribeDBSubnetGroups -> DescribeDBSubnetGroups -> Bool
Prelude.Eq, ReadPrec [DescribeDBSubnetGroups]
ReadPrec DescribeDBSubnetGroups
Int -> ReadS DescribeDBSubnetGroups
ReadS [DescribeDBSubnetGroups]
(Int -> ReadS DescribeDBSubnetGroups)
-> ReadS [DescribeDBSubnetGroups]
-> ReadPrec DescribeDBSubnetGroups
-> ReadPrec [DescribeDBSubnetGroups]
-> Read DescribeDBSubnetGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBSubnetGroups]
$creadListPrec :: ReadPrec [DescribeDBSubnetGroups]
readPrec :: ReadPrec DescribeDBSubnetGroups
$creadPrec :: ReadPrec DescribeDBSubnetGroups
readList :: ReadS [DescribeDBSubnetGroups]
$creadList :: ReadS [DescribeDBSubnetGroups]
readsPrec :: Int -> ReadS DescribeDBSubnetGroups
$creadsPrec :: Int -> ReadS DescribeDBSubnetGroups
Prelude.Read, Int -> DescribeDBSubnetGroups -> ShowS
[DescribeDBSubnetGroups] -> ShowS
DescribeDBSubnetGroups -> String
(Int -> DescribeDBSubnetGroups -> ShowS)
-> (DescribeDBSubnetGroups -> String)
-> ([DescribeDBSubnetGroups] -> ShowS)
-> Show DescribeDBSubnetGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBSubnetGroups] -> ShowS
$cshowList :: [DescribeDBSubnetGroups] -> ShowS
show :: DescribeDBSubnetGroups -> String
$cshow :: DescribeDBSubnetGroups -> String
showsPrec :: Int -> DescribeDBSubnetGroups -> ShowS
$cshowsPrec :: Int -> DescribeDBSubnetGroups -> ShowS
Prelude.Show, (forall x. DescribeDBSubnetGroups -> Rep DescribeDBSubnetGroups x)
-> (forall x.
Rep DescribeDBSubnetGroups x -> DescribeDBSubnetGroups)
-> Generic DescribeDBSubnetGroups
forall x. Rep DescribeDBSubnetGroups x -> DescribeDBSubnetGroups
forall x. DescribeDBSubnetGroups -> Rep DescribeDBSubnetGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDBSubnetGroups x -> DescribeDBSubnetGroups
$cfrom :: forall x. DescribeDBSubnetGroups -> Rep DescribeDBSubnetGroups x
Prelude.Generic)
newDescribeDBSubnetGroups ::
DescribeDBSubnetGroups
newDescribeDBSubnetGroups :: DescribeDBSubnetGroups
newDescribeDBSubnetGroups =
DescribeDBSubnetGroups' :: Maybe Text
-> Maybe [Filter]
-> Maybe Text
-> Maybe Int
-> DescribeDBSubnetGroups
DescribeDBSubnetGroups'
{ $sel:dbSubnetGroupName:DescribeDBSubnetGroups' :: Maybe Text
dbSubnetGroupName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filters:DescribeDBSubnetGroups' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBSubnetGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeDBSubnetGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeDBSubnetGroups_dbSubnetGroupName :: Lens.Lens' DescribeDBSubnetGroups (Prelude.Maybe Prelude.Text)
describeDBSubnetGroups_dbSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeDBSubnetGroups -> f DescribeDBSubnetGroups
describeDBSubnetGroups_dbSubnetGroupName = (DescribeDBSubnetGroups -> Maybe Text)
-> (DescribeDBSubnetGroups -> Maybe Text -> DescribeDBSubnetGroups)
-> Lens
DescribeDBSubnetGroups
DescribeDBSubnetGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroups' {Maybe Text
dbSubnetGroupName :: Maybe Text
$sel:dbSubnetGroupName:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Text
dbSubnetGroupName} -> Maybe Text
dbSubnetGroupName) (\s :: DescribeDBSubnetGroups
s@DescribeDBSubnetGroups' {} Maybe Text
a -> DescribeDBSubnetGroups
s {$sel:dbSubnetGroupName:DescribeDBSubnetGroups' :: Maybe Text
dbSubnetGroupName = Maybe Text
a} :: DescribeDBSubnetGroups)
describeDBSubnetGroups_filters :: Lens.Lens' DescribeDBSubnetGroups (Prelude.Maybe [Filter])
describeDBSubnetGroups_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBSubnetGroups -> f DescribeDBSubnetGroups
describeDBSubnetGroups_filters = (DescribeDBSubnetGroups -> Maybe [Filter])
-> (DescribeDBSubnetGroups
-> Maybe [Filter] -> DescribeDBSubnetGroups)
-> Lens
DescribeDBSubnetGroups
DescribeDBSubnetGroups
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroups' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBSubnetGroups
s@DescribeDBSubnetGroups' {} Maybe [Filter]
a -> DescribeDBSubnetGroups
s {$sel:filters:DescribeDBSubnetGroups' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBSubnetGroups) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBSubnetGroups -> f DescribeDBSubnetGroups)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBSubnetGroups
-> f DescribeDBSubnetGroups
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
describeDBSubnetGroups_marker :: Lens.Lens' DescribeDBSubnetGroups (Prelude.Maybe Prelude.Text)
describeDBSubnetGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBSubnetGroups -> f DescribeDBSubnetGroups
describeDBSubnetGroups_marker = (DescribeDBSubnetGroups -> Maybe Text)
-> (DescribeDBSubnetGroups -> Maybe Text -> DescribeDBSubnetGroups)
-> Lens
DescribeDBSubnetGroups
DescribeDBSubnetGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBSubnetGroups
s@DescribeDBSubnetGroups' {} Maybe Text
a -> DescribeDBSubnetGroups
s {$sel:marker:DescribeDBSubnetGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBSubnetGroups)
describeDBSubnetGroups_maxRecords :: Lens.Lens' DescribeDBSubnetGroups (Prelude.Maybe Prelude.Int)
describeDBSubnetGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeDBSubnetGroups -> f DescribeDBSubnetGroups
describeDBSubnetGroups_maxRecords = (DescribeDBSubnetGroups -> Maybe Int)
-> (DescribeDBSubnetGroups -> Maybe Int -> DescribeDBSubnetGroups)
-> Lens
DescribeDBSubnetGroups
DescribeDBSubnetGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeDBSubnetGroups
s@DescribeDBSubnetGroups' {} Maybe Int
a -> DescribeDBSubnetGroups
s {$sel:maxRecords:DescribeDBSubnetGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeDBSubnetGroups)
instance Core.AWSPager DescribeDBSubnetGroups where
page :: DescribeDBSubnetGroups
-> AWSResponse DescribeDBSubnetGroups
-> Maybe DescribeDBSubnetGroups
page DescribeDBSubnetGroups
rq AWSResponse DescribeDBSubnetGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBSubnetGroups
DescribeDBSubnetGroupsResponse
rs
DescribeDBSubnetGroupsResponse
-> Getting (First Text) DescribeDBSubnetGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBSubnetGroupsResponse
-> Const (First Text) DescribeDBSubnetGroupsResponse
Lens' DescribeDBSubnetGroupsResponse (Maybe Text)
describeDBSubnetGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBSubnetGroupsResponse
-> Const (First Text) DescribeDBSubnetGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBSubnetGroupsResponse 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 DescribeDBSubnetGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [DBSubnetGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBSubnetGroups
DescribeDBSubnetGroupsResponse
rs
DescribeDBSubnetGroupsResponse
-> Getting
(First [DBSubnetGroup])
DescribeDBSubnetGroupsResponse
[DBSubnetGroup]
-> Maybe [DBSubnetGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBSubnetGroup]
-> Const (First [DBSubnetGroup]) (Maybe [DBSubnetGroup]))
-> DescribeDBSubnetGroupsResponse
-> Const (First [DBSubnetGroup]) DescribeDBSubnetGroupsResponse
Lens' DescribeDBSubnetGroupsResponse (Maybe [DBSubnetGroup])
describeDBSubnetGroupsResponse_dbSubnetGroups
((Maybe [DBSubnetGroup]
-> Const (First [DBSubnetGroup]) (Maybe [DBSubnetGroup]))
-> DescribeDBSubnetGroupsResponse
-> Const (First [DBSubnetGroup]) DescribeDBSubnetGroupsResponse)
-> (([DBSubnetGroup]
-> Const (First [DBSubnetGroup]) [DBSubnetGroup])
-> Maybe [DBSubnetGroup]
-> Const (First [DBSubnetGroup]) (Maybe [DBSubnetGroup]))
-> Getting
(First [DBSubnetGroup])
DescribeDBSubnetGroupsResponse
[DBSubnetGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBSubnetGroup] -> Const (First [DBSubnetGroup]) [DBSubnetGroup])
-> Maybe [DBSubnetGroup]
-> Const (First [DBSubnetGroup]) (Maybe [DBSubnetGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBSubnetGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDBSubnetGroups -> Maybe DescribeDBSubnetGroups
forall a. a -> Maybe a
Prelude.Just (DescribeDBSubnetGroups -> Maybe DescribeDBSubnetGroups)
-> DescribeDBSubnetGroups -> Maybe DescribeDBSubnetGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDBSubnetGroups
rq
DescribeDBSubnetGroups
-> (DescribeDBSubnetGroups -> DescribeDBSubnetGroups)
-> DescribeDBSubnetGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBSubnetGroups -> Identity DescribeDBSubnetGroups
Lens
DescribeDBSubnetGroups
DescribeDBSubnetGroups
(Maybe Text)
(Maybe Text)
describeDBSubnetGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeDBSubnetGroups -> Identity DescribeDBSubnetGroups)
-> Maybe Text -> DescribeDBSubnetGroups -> DescribeDBSubnetGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBSubnetGroups
DescribeDBSubnetGroupsResponse
rs
DescribeDBSubnetGroupsResponse
-> Getting (First Text) DescribeDBSubnetGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBSubnetGroupsResponse
-> Const (First Text) DescribeDBSubnetGroupsResponse
Lens' DescribeDBSubnetGroupsResponse (Maybe Text)
describeDBSubnetGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBSubnetGroupsResponse
-> Const (First Text) DescribeDBSubnetGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBSubnetGroupsResponse 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 DescribeDBSubnetGroups where
type
AWSResponse DescribeDBSubnetGroups =
DescribeDBSubnetGroupsResponse
request :: DescribeDBSubnetGroups -> Request DescribeDBSubnetGroups
request = Service -> DescribeDBSubnetGroups -> Request DescribeDBSubnetGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDBSubnetGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBSubnetGroups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeDBSubnetGroups))
-> Logger
-> Service
-> Proxy DescribeDBSubnetGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDBSubnetGroups)))
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
"DescribeDBSubnetGroupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [DBSubnetGroup]
-> Maybe Text -> Int -> DescribeDBSubnetGroupsResponse
DescribeDBSubnetGroupsResponse'
(Maybe [DBSubnetGroup]
-> Maybe Text -> Int -> DescribeDBSubnetGroupsResponse)
-> Either String (Maybe [DBSubnetGroup])
-> Either
String (Maybe Text -> Int -> DescribeDBSubnetGroupsResponse)
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
"DBSubnetGroups" 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 [DBSubnetGroup]))
-> Either String (Maybe [DBSubnetGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBSubnetGroup])
-> [Node] -> Either String (Maybe [DBSubnetGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [DBSubnetGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"DBSubnetGroup")
)
Either String (Maybe Text -> Int -> DescribeDBSubnetGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeDBSubnetGroupsResponse)
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 -> DescribeDBSubnetGroupsResponse)
-> Either String Int
-> Either String DescribeDBSubnetGroupsResponse
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 DescribeDBSubnetGroups
instance Prelude.NFData DescribeDBSubnetGroups
instance Core.ToHeaders DescribeDBSubnetGroups where
toHeaders :: DescribeDBSubnetGroups -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeDBSubnetGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeDBSubnetGroups where
toPath :: DescribeDBSubnetGroups -> ByteString
toPath = ByteString -> DescribeDBSubnetGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDBSubnetGroups where
toQuery :: DescribeDBSubnetGroups -> QueryString
toQuery DescribeDBSubnetGroups' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
dbSubnetGroupName :: Maybe Text
$sel:maxRecords:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Int
$sel:marker:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Text
$sel:filters:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe [Filter]
$sel:dbSubnetGroupName:DescribeDBSubnetGroups' :: DescribeDBSubnetGroups -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeDBSubnetGroups" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"DBSubnetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbSubnetGroupName,
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 Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords
]
data DescribeDBSubnetGroupsResponse = DescribeDBSubnetGroupsResponse'
{
DescribeDBSubnetGroupsResponse -> Maybe [DBSubnetGroup]
dbSubnetGroups :: Prelude.Maybe [DBSubnetGroup],
DescribeDBSubnetGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBSubnetGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool
(DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool)
-> (DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool)
-> Eq DescribeDBSubnetGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool
$c/= :: DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool
== :: DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool
$c== :: DescribeDBSubnetGroupsResponse
-> DescribeDBSubnetGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBSubnetGroupsResponse]
ReadPrec DescribeDBSubnetGroupsResponse
Int -> ReadS DescribeDBSubnetGroupsResponse
ReadS [DescribeDBSubnetGroupsResponse]
(Int -> ReadS DescribeDBSubnetGroupsResponse)
-> ReadS [DescribeDBSubnetGroupsResponse]
-> ReadPrec DescribeDBSubnetGroupsResponse
-> ReadPrec [DescribeDBSubnetGroupsResponse]
-> Read DescribeDBSubnetGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBSubnetGroupsResponse]
$creadListPrec :: ReadPrec [DescribeDBSubnetGroupsResponse]
readPrec :: ReadPrec DescribeDBSubnetGroupsResponse
$creadPrec :: ReadPrec DescribeDBSubnetGroupsResponse
readList :: ReadS [DescribeDBSubnetGroupsResponse]
$creadList :: ReadS [DescribeDBSubnetGroupsResponse]
readsPrec :: Int -> ReadS DescribeDBSubnetGroupsResponse
$creadsPrec :: Int -> ReadS DescribeDBSubnetGroupsResponse
Prelude.Read, Int -> DescribeDBSubnetGroupsResponse -> ShowS
[DescribeDBSubnetGroupsResponse] -> ShowS
DescribeDBSubnetGroupsResponse -> String
(Int -> DescribeDBSubnetGroupsResponse -> ShowS)
-> (DescribeDBSubnetGroupsResponse -> String)
-> ([DescribeDBSubnetGroupsResponse] -> ShowS)
-> Show DescribeDBSubnetGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBSubnetGroupsResponse] -> ShowS
$cshowList :: [DescribeDBSubnetGroupsResponse] -> ShowS
show :: DescribeDBSubnetGroupsResponse -> String
$cshow :: DescribeDBSubnetGroupsResponse -> String
showsPrec :: Int -> DescribeDBSubnetGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBSubnetGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeDBSubnetGroupsResponse
-> Rep DescribeDBSubnetGroupsResponse x)
-> (forall x.
Rep DescribeDBSubnetGroupsResponse x
-> DescribeDBSubnetGroupsResponse)
-> Generic DescribeDBSubnetGroupsResponse
forall x.
Rep DescribeDBSubnetGroupsResponse x
-> DescribeDBSubnetGroupsResponse
forall x.
DescribeDBSubnetGroupsResponse
-> Rep DescribeDBSubnetGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBSubnetGroupsResponse x
-> DescribeDBSubnetGroupsResponse
$cfrom :: forall x.
DescribeDBSubnetGroupsResponse
-> Rep DescribeDBSubnetGroupsResponse x
Prelude.Generic)
newDescribeDBSubnetGroupsResponse ::
Prelude.Int ->
DescribeDBSubnetGroupsResponse
newDescribeDBSubnetGroupsResponse :: Int -> DescribeDBSubnetGroupsResponse
newDescribeDBSubnetGroupsResponse Int
pHttpStatus_ =
DescribeDBSubnetGroupsResponse' :: Maybe [DBSubnetGroup]
-> Maybe Text -> Int -> DescribeDBSubnetGroupsResponse
DescribeDBSubnetGroupsResponse'
{ $sel:dbSubnetGroups:DescribeDBSubnetGroupsResponse' :: Maybe [DBSubnetGroup]
dbSubnetGroups =
Maybe [DBSubnetGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBSubnetGroupsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDBSubnetGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDBSubnetGroupsResponse_dbSubnetGroups :: Lens.Lens' DescribeDBSubnetGroupsResponse (Prelude.Maybe [DBSubnetGroup])
describeDBSubnetGroupsResponse_dbSubnetGroups :: (Maybe [DBSubnetGroup] -> f (Maybe [DBSubnetGroup]))
-> DescribeDBSubnetGroupsResponse
-> f DescribeDBSubnetGroupsResponse
describeDBSubnetGroupsResponse_dbSubnetGroups = (DescribeDBSubnetGroupsResponse -> Maybe [DBSubnetGroup])
-> (DescribeDBSubnetGroupsResponse
-> Maybe [DBSubnetGroup] -> DescribeDBSubnetGroupsResponse)
-> Lens' DescribeDBSubnetGroupsResponse (Maybe [DBSubnetGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroupsResponse' {Maybe [DBSubnetGroup]
dbSubnetGroups :: Maybe [DBSubnetGroup]
$sel:dbSubnetGroups:DescribeDBSubnetGroupsResponse' :: DescribeDBSubnetGroupsResponse -> Maybe [DBSubnetGroup]
dbSubnetGroups} -> Maybe [DBSubnetGroup]
dbSubnetGroups) (\s :: DescribeDBSubnetGroupsResponse
s@DescribeDBSubnetGroupsResponse' {} Maybe [DBSubnetGroup]
a -> DescribeDBSubnetGroupsResponse
s {$sel:dbSubnetGroups:DescribeDBSubnetGroupsResponse' :: Maybe [DBSubnetGroup]
dbSubnetGroups = Maybe [DBSubnetGroup]
a} :: DescribeDBSubnetGroupsResponse) ((Maybe [DBSubnetGroup] -> f (Maybe [DBSubnetGroup]))
-> DescribeDBSubnetGroupsResponse
-> f DescribeDBSubnetGroupsResponse)
-> ((Maybe [DBSubnetGroup] -> f (Maybe [DBSubnetGroup]))
-> Maybe [DBSubnetGroup] -> f (Maybe [DBSubnetGroup]))
-> (Maybe [DBSubnetGroup] -> f (Maybe [DBSubnetGroup]))
-> DescribeDBSubnetGroupsResponse
-> f DescribeDBSubnetGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DBSubnetGroup] [DBSubnetGroup] [DBSubnetGroup] [DBSubnetGroup]
-> Iso
(Maybe [DBSubnetGroup])
(Maybe [DBSubnetGroup])
(Maybe [DBSubnetGroup])
(Maybe [DBSubnetGroup])
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
[DBSubnetGroup] [DBSubnetGroup] [DBSubnetGroup] [DBSubnetGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBSubnetGroupsResponse_marker :: Lens.Lens' DescribeDBSubnetGroupsResponse (Prelude.Maybe Prelude.Text)
describeDBSubnetGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBSubnetGroupsResponse
-> f DescribeDBSubnetGroupsResponse
describeDBSubnetGroupsResponse_marker = (DescribeDBSubnetGroupsResponse -> Maybe Text)
-> (DescribeDBSubnetGroupsResponse
-> Maybe Text -> DescribeDBSubnetGroupsResponse)
-> Lens' DescribeDBSubnetGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBSubnetGroupsResponse' :: DescribeDBSubnetGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBSubnetGroupsResponse
s@DescribeDBSubnetGroupsResponse' {} Maybe Text
a -> DescribeDBSubnetGroupsResponse
s {$sel:marker:DescribeDBSubnetGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBSubnetGroupsResponse)
describeDBSubnetGroupsResponse_httpStatus :: Lens.Lens' DescribeDBSubnetGroupsResponse Prelude.Int
describeDBSubnetGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeDBSubnetGroupsResponse
-> f DescribeDBSubnetGroupsResponse
describeDBSubnetGroupsResponse_httpStatus = (DescribeDBSubnetGroupsResponse -> Int)
-> (DescribeDBSubnetGroupsResponse
-> Int -> DescribeDBSubnetGroupsResponse)
-> Lens
DescribeDBSubnetGroupsResponse
DescribeDBSubnetGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBSubnetGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDBSubnetGroupsResponse' :: DescribeDBSubnetGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDBSubnetGroupsResponse
s@DescribeDBSubnetGroupsResponse' {} Int
a -> DescribeDBSubnetGroupsResponse
s {$sel:httpStatus:DescribeDBSubnetGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeDBSubnetGroupsResponse)
instance
Prelude.NFData
DescribeDBSubnetGroupsResponse