{-# 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.DescribeDBClusterParameterGroups
(
DescribeDBClusterParameterGroups (..),
newDescribeDBClusterParameterGroups,
describeDBClusterParameterGroups_filters,
describeDBClusterParameterGroups_marker,
describeDBClusterParameterGroups_maxRecords,
describeDBClusterParameterGroups_dbClusterParameterGroupName,
DescribeDBClusterParameterGroupsResponse (..),
newDescribeDBClusterParameterGroupsResponse,
describeDBClusterParameterGroupsResponse_marker,
describeDBClusterParameterGroupsResponse_dbClusterParameterGroups,
describeDBClusterParameterGroupsResponse_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 DescribeDBClusterParameterGroups = DescribeDBClusterParameterGroups'
{
DescribeDBClusterParameterGroups -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeDBClusterParameterGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBClusterParameterGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeDBClusterParameterGroups -> Maybe Text
dbClusterParameterGroupName :: Prelude.Maybe Prelude.Text
}
deriving (DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool
(DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool)
-> (DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool)
-> Eq DescribeDBClusterParameterGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool
$c/= :: DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool
== :: DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool
$c== :: DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups -> Bool
Prelude.Eq, ReadPrec [DescribeDBClusterParameterGroups]
ReadPrec DescribeDBClusterParameterGroups
Int -> ReadS DescribeDBClusterParameterGroups
ReadS [DescribeDBClusterParameterGroups]
(Int -> ReadS DescribeDBClusterParameterGroups)
-> ReadS [DescribeDBClusterParameterGroups]
-> ReadPrec DescribeDBClusterParameterGroups
-> ReadPrec [DescribeDBClusterParameterGroups]
-> Read DescribeDBClusterParameterGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBClusterParameterGroups]
$creadListPrec :: ReadPrec [DescribeDBClusterParameterGroups]
readPrec :: ReadPrec DescribeDBClusterParameterGroups
$creadPrec :: ReadPrec DescribeDBClusterParameterGroups
readList :: ReadS [DescribeDBClusterParameterGroups]
$creadList :: ReadS [DescribeDBClusterParameterGroups]
readsPrec :: Int -> ReadS DescribeDBClusterParameterGroups
$creadsPrec :: Int -> ReadS DescribeDBClusterParameterGroups
Prelude.Read, Int -> DescribeDBClusterParameterGroups -> ShowS
[DescribeDBClusterParameterGroups] -> ShowS
DescribeDBClusterParameterGroups -> String
(Int -> DescribeDBClusterParameterGroups -> ShowS)
-> (DescribeDBClusterParameterGroups -> String)
-> ([DescribeDBClusterParameterGroups] -> ShowS)
-> Show DescribeDBClusterParameterGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBClusterParameterGroups] -> ShowS
$cshowList :: [DescribeDBClusterParameterGroups] -> ShowS
show :: DescribeDBClusterParameterGroups -> String
$cshow :: DescribeDBClusterParameterGroups -> String
showsPrec :: Int -> DescribeDBClusterParameterGroups -> ShowS
$cshowsPrec :: Int -> DescribeDBClusterParameterGroups -> ShowS
Prelude.Show, (forall x.
DescribeDBClusterParameterGroups
-> Rep DescribeDBClusterParameterGroups x)
-> (forall x.
Rep DescribeDBClusterParameterGroups x
-> DescribeDBClusterParameterGroups)
-> Generic DescribeDBClusterParameterGroups
forall x.
Rep DescribeDBClusterParameterGroups x
-> DescribeDBClusterParameterGroups
forall x.
DescribeDBClusterParameterGroups
-> Rep DescribeDBClusterParameterGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBClusterParameterGroups x
-> DescribeDBClusterParameterGroups
$cfrom :: forall x.
DescribeDBClusterParameterGroups
-> Rep DescribeDBClusterParameterGroups x
Prelude.Generic)
newDescribeDBClusterParameterGroups ::
DescribeDBClusterParameterGroups
newDescribeDBClusterParameterGroups :: DescribeDBClusterParameterGroups
newDescribeDBClusterParameterGroups =
DescribeDBClusterParameterGroups' :: Maybe [Filter]
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups'
{ $sel:filters:DescribeDBClusterParameterGroups' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeDBClusterParameterGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeDBClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterParameterGroupName:DescribeDBClusterParameterGroups' :: Maybe Text
dbClusterParameterGroupName =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeDBClusterParameterGroups_filters :: Lens.Lens' DescribeDBClusterParameterGroups (Prelude.Maybe [Filter])
describeDBClusterParameterGroups_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups
describeDBClusterParameterGroups_filters = (DescribeDBClusterParameterGroups -> Maybe [Filter])
-> (DescribeDBClusterParameterGroups
-> Maybe [Filter] -> DescribeDBClusterParameterGroups)
-> Lens
DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroups' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBClusterParameterGroups
s@DescribeDBClusterParameterGroups' {} Maybe [Filter]
a -> DescribeDBClusterParameterGroups
s {$sel:filters:DescribeDBClusterParameterGroups' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBClusterParameterGroups) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups
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
describeDBClusterParameterGroups_marker :: Lens.Lens' DescribeDBClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeDBClusterParameterGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups
describeDBClusterParameterGroups_marker = (DescribeDBClusterParameterGroups -> Maybe Text)
-> (DescribeDBClusterParameterGroups
-> Maybe Text -> DescribeDBClusterParameterGroups)
-> Lens
DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBClusterParameterGroups
s@DescribeDBClusterParameterGroups' {} Maybe Text
a -> DescribeDBClusterParameterGroups
s {$sel:marker:DescribeDBClusterParameterGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBClusterParameterGroups)
describeDBClusterParameterGroups_maxRecords :: Lens.Lens' DescribeDBClusterParameterGroups (Prelude.Maybe Prelude.Int)
describeDBClusterParameterGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups
describeDBClusterParameterGroups_maxRecords = (DescribeDBClusterParameterGroups -> Maybe Int)
-> (DescribeDBClusterParameterGroups
-> Maybe Int -> DescribeDBClusterParameterGroups)
-> Lens
DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeDBClusterParameterGroups
s@DescribeDBClusterParameterGroups' {} Maybe Int
a -> DescribeDBClusterParameterGroups
s {$sel:maxRecords:DescribeDBClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeDBClusterParameterGroups)
describeDBClusterParameterGroups_dbClusterParameterGroupName :: Lens.Lens' DescribeDBClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeDBClusterParameterGroups_dbClusterParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterParameterGroups
-> f DescribeDBClusterParameterGroups
describeDBClusterParameterGroups_dbClusterParameterGroupName = (DescribeDBClusterParameterGroups -> Maybe Text)
-> (DescribeDBClusterParameterGroups
-> Maybe Text -> DescribeDBClusterParameterGroups)
-> Lens
DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroups' {Maybe Text
dbClusterParameterGroupName :: Maybe Text
$sel:dbClusterParameterGroupName:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Text
dbClusterParameterGroupName} -> Maybe Text
dbClusterParameterGroupName) (\s :: DescribeDBClusterParameterGroups
s@DescribeDBClusterParameterGroups' {} Maybe Text
a -> DescribeDBClusterParameterGroups
s {$sel:dbClusterParameterGroupName:DescribeDBClusterParameterGroups' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
a} :: DescribeDBClusterParameterGroups)
instance
Core.AWSPager
DescribeDBClusterParameterGroups
where
page :: DescribeDBClusterParameterGroups
-> AWSResponse DescribeDBClusterParameterGroups
-> Maybe DescribeDBClusterParameterGroups
page DescribeDBClusterParameterGroups
rq AWSResponse DescribeDBClusterParameterGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroupsResponse
rs
DescribeDBClusterParameterGroupsResponse
-> Getting
(First Text) DescribeDBClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterParameterGroupsResponse
-> Const (First Text) DescribeDBClusterParameterGroupsResponse
Lens' DescribeDBClusterParameterGroupsResponse (Maybe Text)
describeDBClusterParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterParameterGroupsResponse
-> Const (First Text) DescribeDBClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeDBClusterParameterGroupsResponse 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 DescribeDBClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [DBClusterParameterGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroupsResponse
rs
DescribeDBClusterParameterGroupsResponse
-> Getting
(First [DBClusterParameterGroup])
DescribeDBClusterParameterGroupsResponse
[DBClusterParameterGroup]
-> Maybe [DBClusterParameterGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup]))
-> DescribeDBClusterParameterGroupsResponse
-> Const
(First [DBClusterParameterGroup])
DescribeDBClusterParameterGroupsResponse
Lens'
DescribeDBClusterParameterGroupsResponse
(Maybe [DBClusterParameterGroup])
describeDBClusterParameterGroupsResponse_dbClusterParameterGroups
((Maybe [DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup]))
-> DescribeDBClusterParameterGroupsResponse
-> Const
(First [DBClusterParameterGroup])
DescribeDBClusterParameterGroupsResponse)
-> (([DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup]) [DBClusterParameterGroup])
-> Maybe [DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup]))
-> Getting
(First [DBClusterParameterGroup])
DescribeDBClusterParameterGroupsResponse
[DBClusterParameterGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup]) [DBClusterParameterGroup])
-> Maybe [DBClusterParameterGroup]
-> Const
(First [DBClusterParameterGroup]) (Maybe [DBClusterParameterGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDBClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDBClusterParameterGroups
-> Maybe DescribeDBClusterParameterGroups
forall a. a -> Maybe a
Prelude.Just (DescribeDBClusterParameterGroups
-> Maybe DescribeDBClusterParameterGroups)
-> DescribeDBClusterParameterGroups
-> Maybe DescribeDBClusterParameterGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDBClusterParameterGroups
rq
DescribeDBClusterParameterGroups
-> (DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups)
-> DescribeDBClusterParameterGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBClusterParameterGroups
-> Identity DescribeDBClusterParameterGroups
Lens
DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroups
(Maybe Text)
(Maybe Text)
describeDBClusterParameterGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeDBClusterParameterGroups
-> Identity DescribeDBClusterParameterGroups)
-> Maybe Text
-> DescribeDBClusterParameterGroups
-> DescribeDBClusterParameterGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBClusterParameterGroups
DescribeDBClusterParameterGroupsResponse
rs
DescribeDBClusterParameterGroupsResponse
-> Getting
(First Text) DescribeDBClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterParameterGroupsResponse
-> Const (First Text) DescribeDBClusterParameterGroupsResponse
Lens' DescribeDBClusterParameterGroupsResponse (Maybe Text)
describeDBClusterParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterParameterGroupsResponse
-> Const (First Text) DescribeDBClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeDBClusterParameterGroupsResponse 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
DescribeDBClusterParameterGroups
where
type
AWSResponse DescribeDBClusterParameterGroups =
DescribeDBClusterParameterGroupsResponse
request :: DescribeDBClusterParameterGroups
-> Request DescribeDBClusterParameterGroups
request = Service
-> DescribeDBClusterParameterGroups
-> Request DescribeDBClusterParameterGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDBClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeDBClusterParameterGroups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeDBClusterParameterGroups))
-> Logger
-> Service
-> Proxy DescribeDBClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeDBClusterParameterGroups)))
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
"DescribeDBClusterParameterGroupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe [DBClusterParameterGroup]
-> Int
-> DescribeDBClusterParameterGroupsResponse
DescribeDBClusterParameterGroupsResponse'
(Maybe Text
-> Maybe [DBClusterParameterGroup]
-> Int
-> DescribeDBClusterParameterGroupsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DBClusterParameterGroup]
-> Int -> DescribeDBClusterParameterGroupsResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [DBClusterParameterGroup]
-> Int -> DescribeDBClusterParameterGroupsResponse)
-> Either String (Maybe [DBClusterParameterGroup])
-> Either String (Int -> DescribeDBClusterParameterGroupsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"DBClusterParameterGroups"
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 [DBClusterParameterGroup]))
-> Either String (Maybe [DBClusterParameterGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBClusterParameterGroup])
-> [Node] -> Either String (Maybe [DBClusterParameterGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
(Text -> [Node] -> Either String [DBClusterParameterGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"DBClusterParameterGroup")
)
Either String (Int -> DescribeDBClusterParameterGroupsResponse)
-> Either String Int
-> Either String DescribeDBClusterParameterGroupsResponse
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
DescribeDBClusterParameterGroups
instance
Prelude.NFData
DescribeDBClusterParameterGroups
instance
Core.ToHeaders
DescribeDBClusterParameterGroups
where
toHeaders :: DescribeDBClusterParameterGroups -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeDBClusterParameterGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeDBClusterParameterGroups where
toPath :: DescribeDBClusterParameterGroups -> ByteString
toPath = ByteString -> DescribeDBClusterParameterGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeDBClusterParameterGroups
where
toQuery :: DescribeDBClusterParameterGroups -> QueryString
toQuery DescribeDBClusterParameterGroups' {Maybe Int
Maybe [Filter]
Maybe Text
dbClusterParameterGroupName :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:dbClusterParameterGroupName:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Text
$sel:maxRecords:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Int
$sel:marker:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> Maybe Text
$sel:filters:DescribeDBClusterParameterGroups' :: DescribeDBClusterParameterGroups -> 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
"DescribeDBClusterParameterGroups" ::
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 Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
ByteString
"DBClusterParameterGroupName"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbClusterParameterGroupName
]
data DescribeDBClusterParameterGroupsResponse = DescribeDBClusterParameterGroupsResponse'
{
DescribeDBClusterParameterGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeDBClusterParameterGroupsResponse
-> Maybe [DBClusterParameterGroup]
dbClusterParameterGroups :: Prelude.Maybe [DBClusterParameterGroup],
DescribeDBClusterParameterGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool
(DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool)
-> (DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool)
-> Eq DescribeDBClusterParameterGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool
$c/= :: DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool
== :: DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool
$c== :: DescribeDBClusterParameterGroupsResponse
-> DescribeDBClusterParameterGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBClusterParameterGroupsResponse]
ReadPrec DescribeDBClusterParameterGroupsResponse
Int -> ReadS DescribeDBClusterParameterGroupsResponse
ReadS [DescribeDBClusterParameterGroupsResponse]
(Int -> ReadS DescribeDBClusterParameterGroupsResponse)
-> ReadS [DescribeDBClusterParameterGroupsResponse]
-> ReadPrec DescribeDBClusterParameterGroupsResponse
-> ReadPrec [DescribeDBClusterParameterGroupsResponse]
-> Read DescribeDBClusterParameterGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBClusterParameterGroupsResponse]
$creadListPrec :: ReadPrec [DescribeDBClusterParameterGroupsResponse]
readPrec :: ReadPrec DescribeDBClusterParameterGroupsResponse
$creadPrec :: ReadPrec DescribeDBClusterParameterGroupsResponse
readList :: ReadS [DescribeDBClusterParameterGroupsResponse]
$creadList :: ReadS [DescribeDBClusterParameterGroupsResponse]
readsPrec :: Int -> ReadS DescribeDBClusterParameterGroupsResponse
$creadsPrec :: Int -> ReadS DescribeDBClusterParameterGroupsResponse
Prelude.Read, Int -> DescribeDBClusterParameterGroupsResponse -> ShowS
[DescribeDBClusterParameterGroupsResponse] -> ShowS
DescribeDBClusterParameterGroupsResponse -> String
(Int -> DescribeDBClusterParameterGroupsResponse -> ShowS)
-> (DescribeDBClusterParameterGroupsResponse -> String)
-> ([DescribeDBClusterParameterGroupsResponse] -> ShowS)
-> Show DescribeDBClusterParameterGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBClusterParameterGroupsResponse] -> ShowS
$cshowList :: [DescribeDBClusterParameterGroupsResponse] -> ShowS
show :: DescribeDBClusterParameterGroupsResponse -> String
$cshow :: DescribeDBClusterParameterGroupsResponse -> String
showsPrec :: Int -> DescribeDBClusterParameterGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBClusterParameterGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeDBClusterParameterGroupsResponse
-> Rep DescribeDBClusterParameterGroupsResponse x)
-> (forall x.
Rep DescribeDBClusterParameterGroupsResponse x
-> DescribeDBClusterParameterGroupsResponse)
-> Generic DescribeDBClusterParameterGroupsResponse
forall x.
Rep DescribeDBClusterParameterGroupsResponse x
-> DescribeDBClusterParameterGroupsResponse
forall x.
DescribeDBClusterParameterGroupsResponse
-> Rep DescribeDBClusterParameterGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBClusterParameterGroupsResponse x
-> DescribeDBClusterParameterGroupsResponse
$cfrom :: forall x.
DescribeDBClusterParameterGroupsResponse
-> Rep DescribeDBClusterParameterGroupsResponse x
Prelude.Generic)
newDescribeDBClusterParameterGroupsResponse ::
Prelude.Int ->
DescribeDBClusterParameterGroupsResponse
newDescribeDBClusterParameterGroupsResponse :: Int -> DescribeDBClusterParameterGroupsResponse
newDescribeDBClusterParameterGroupsResponse
Int
pHttpStatus_ =
DescribeDBClusterParameterGroupsResponse' :: Maybe Text
-> Maybe [DBClusterParameterGroup]
-> Int
-> DescribeDBClusterParameterGroupsResponse
DescribeDBClusterParameterGroupsResponse'
{ $sel:marker:DescribeDBClusterParameterGroupsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterParameterGroups:DescribeDBClusterParameterGroupsResponse' :: Maybe [DBClusterParameterGroup]
dbClusterParameterGroups =
Maybe [DBClusterParameterGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDBClusterParameterGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDBClusterParameterGroupsResponse_marker :: Lens.Lens' DescribeDBClusterParameterGroupsResponse (Prelude.Maybe Prelude.Text)
describeDBClusterParameterGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterParameterGroupsResponse
-> f DescribeDBClusterParameterGroupsResponse
describeDBClusterParameterGroupsResponse_marker = (DescribeDBClusterParameterGroupsResponse -> Maybe Text)
-> (DescribeDBClusterParameterGroupsResponse
-> Maybe Text -> DescribeDBClusterParameterGroupsResponse)
-> Lens' DescribeDBClusterParameterGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBClusterParameterGroupsResponse' :: DescribeDBClusterParameterGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBClusterParameterGroupsResponse
s@DescribeDBClusterParameterGroupsResponse' {} Maybe Text
a -> DescribeDBClusterParameterGroupsResponse
s {$sel:marker:DescribeDBClusterParameterGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBClusterParameterGroupsResponse)
describeDBClusterParameterGroupsResponse_dbClusterParameterGroups :: Lens.Lens' DescribeDBClusterParameterGroupsResponse (Prelude.Maybe [DBClusterParameterGroup])
describeDBClusterParameterGroupsResponse_dbClusterParameterGroups :: (Maybe [DBClusterParameterGroup]
-> f (Maybe [DBClusterParameterGroup]))
-> DescribeDBClusterParameterGroupsResponse
-> f DescribeDBClusterParameterGroupsResponse
describeDBClusterParameterGroupsResponse_dbClusterParameterGroups = (DescribeDBClusterParameterGroupsResponse
-> Maybe [DBClusterParameterGroup])
-> (DescribeDBClusterParameterGroupsResponse
-> Maybe [DBClusterParameterGroup]
-> DescribeDBClusterParameterGroupsResponse)
-> Lens'
DescribeDBClusterParameterGroupsResponse
(Maybe [DBClusterParameterGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroupsResponse' {Maybe [DBClusterParameterGroup]
dbClusterParameterGroups :: Maybe [DBClusterParameterGroup]
$sel:dbClusterParameterGroups:DescribeDBClusterParameterGroupsResponse' :: DescribeDBClusterParameterGroupsResponse
-> Maybe [DBClusterParameterGroup]
dbClusterParameterGroups} -> Maybe [DBClusterParameterGroup]
dbClusterParameterGroups) (\s :: DescribeDBClusterParameterGroupsResponse
s@DescribeDBClusterParameterGroupsResponse' {} Maybe [DBClusterParameterGroup]
a -> DescribeDBClusterParameterGroupsResponse
s {$sel:dbClusterParameterGroups:DescribeDBClusterParameterGroupsResponse' :: Maybe [DBClusterParameterGroup]
dbClusterParameterGroups = Maybe [DBClusterParameterGroup]
a} :: DescribeDBClusterParameterGroupsResponse) ((Maybe [DBClusterParameterGroup]
-> f (Maybe [DBClusterParameterGroup]))
-> DescribeDBClusterParameterGroupsResponse
-> f DescribeDBClusterParameterGroupsResponse)
-> ((Maybe [DBClusterParameterGroup]
-> f (Maybe [DBClusterParameterGroup]))
-> Maybe [DBClusterParameterGroup]
-> f (Maybe [DBClusterParameterGroup]))
-> (Maybe [DBClusterParameterGroup]
-> f (Maybe [DBClusterParameterGroup]))
-> DescribeDBClusterParameterGroupsResponse
-> f DescribeDBClusterParameterGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DBClusterParameterGroup]
[DBClusterParameterGroup]
[DBClusterParameterGroup]
[DBClusterParameterGroup]
-> Iso
(Maybe [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup])
(Maybe [DBClusterParameterGroup])
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
[DBClusterParameterGroup]
[DBClusterParameterGroup]
[DBClusterParameterGroup]
[DBClusterParameterGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDBClusterParameterGroupsResponse_httpStatus :: Lens.Lens' DescribeDBClusterParameterGroupsResponse Prelude.Int
describeDBClusterParameterGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeDBClusterParameterGroupsResponse
-> f DescribeDBClusterParameterGroupsResponse
describeDBClusterParameterGroupsResponse_httpStatus = (DescribeDBClusterParameterGroupsResponse -> Int)
-> (DescribeDBClusterParameterGroupsResponse
-> Int -> DescribeDBClusterParameterGroupsResponse)
-> Lens
DescribeDBClusterParameterGroupsResponse
DescribeDBClusterParameterGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterParameterGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDBClusterParameterGroupsResponse' :: DescribeDBClusterParameterGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDBClusterParameterGroupsResponse
s@DescribeDBClusterParameterGroupsResponse' {} Int
a -> DescribeDBClusterParameterGroupsResponse
s {$sel:httpStatus:DescribeDBClusterParameterGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeDBClusterParameterGroupsResponse)
instance
Prelude.NFData
DescribeDBClusterParameterGroupsResponse