{-# 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.Redshift.DescribeClusterParameterGroups
(
DescribeClusterParameterGroups (..),
newDescribeClusterParameterGroups,
describeClusterParameterGroups_tagValues,
describeClusterParameterGroups_tagKeys,
describeClusterParameterGroups_marker,
describeClusterParameterGroups_maxRecords,
describeClusterParameterGroups_parameterGroupName,
DescribeClusterParameterGroupsResponse (..),
newDescribeClusterParameterGroupsResponse,
describeClusterParameterGroupsResponse_marker,
describeClusterParameterGroupsResponse_parameterGroups,
describeClusterParameterGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeClusterParameterGroups = DescribeClusterParameterGroups'
{
DescribeClusterParameterGroups -> Maybe [Text]
tagValues :: Prelude.Maybe [Prelude.Text],
DescribeClusterParameterGroups -> Maybe [Text]
tagKeys :: Prelude.Maybe [Prelude.Text],
DescribeClusterParameterGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeClusterParameterGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeClusterParameterGroups -> Maybe Text
parameterGroupName :: Prelude.Maybe Prelude.Text
}
deriving (DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
(DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool)
-> (DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool)
-> Eq DescribeClusterParameterGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
$c/= :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
== :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
$c== :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
Prelude.Eq, ReadPrec [DescribeClusterParameterGroups]
ReadPrec DescribeClusterParameterGroups
Int -> ReadS DescribeClusterParameterGroups
ReadS [DescribeClusterParameterGroups]
(Int -> ReadS DescribeClusterParameterGroups)
-> ReadS [DescribeClusterParameterGroups]
-> ReadPrec DescribeClusterParameterGroups
-> ReadPrec [DescribeClusterParameterGroups]
-> Read DescribeClusterParameterGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterParameterGroups]
$creadListPrec :: ReadPrec [DescribeClusterParameterGroups]
readPrec :: ReadPrec DescribeClusterParameterGroups
$creadPrec :: ReadPrec DescribeClusterParameterGroups
readList :: ReadS [DescribeClusterParameterGroups]
$creadList :: ReadS [DescribeClusterParameterGroups]
readsPrec :: Int -> ReadS DescribeClusterParameterGroups
$creadsPrec :: Int -> ReadS DescribeClusterParameterGroups
Prelude.Read, Int -> DescribeClusterParameterGroups -> ShowS
[DescribeClusterParameterGroups] -> ShowS
DescribeClusterParameterGroups -> String
(Int -> DescribeClusterParameterGroups -> ShowS)
-> (DescribeClusterParameterGroups -> String)
-> ([DescribeClusterParameterGroups] -> ShowS)
-> Show DescribeClusterParameterGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterParameterGroups] -> ShowS
$cshowList :: [DescribeClusterParameterGroups] -> ShowS
show :: DescribeClusterParameterGroups -> String
$cshow :: DescribeClusterParameterGroups -> String
showsPrec :: Int -> DescribeClusterParameterGroups -> ShowS
$cshowsPrec :: Int -> DescribeClusterParameterGroups -> ShowS
Prelude.Show, (forall x.
DescribeClusterParameterGroups
-> Rep DescribeClusterParameterGroups x)
-> (forall x.
Rep DescribeClusterParameterGroups x
-> DescribeClusterParameterGroups)
-> Generic DescribeClusterParameterGroups
forall x.
Rep DescribeClusterParameterGroups x
-> DescribeClusterParameterGroups
forall x.
DescribeClusterParameterGroups
-> Rep DescribeClusterParameterGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClusterParameterGroups x
-> DescribeClusterParameterGroups
$cfrom :: forall x.
DescribeClusterParameterGroups
-> Rep DescribeClusterParameterGroups x
Prelude.Generic)
newDescribeClusterParameterGroups ::
DescribeClusterParameterGroups
newDescribeClusterParameterGroups :: DescribeClusterParameterGroups
newDescribeClusterParameterGroups =
DescribeClusterParameterGroups' :: Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> DescribeClusterParameterGroups
DescribeClusterParameterGroups'
{ $sel:tagValues:DescribeClusterParameterGroups' :: Maybe [Text]
tagValues =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tagKeys:DescribeClusterParameterGroups' :: Maybe [Text]
tagKeys = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeClusterParameterGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:parameterGroupName:DescribeClusterParameterGroups' :: Maybe Text
parameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeClusterParameterGroups_tagValues :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe [Prelude.Text])
describeClusterParameterGroups_tagValues :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_tagValues = (DescribeClusterParameterGroups -> Maybe [Text])
-> (DescribeClusterParameterGroups
-> Maybe [Text] -> DescribeClusterParameterGroups)
-> Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe [Text]
tagValues :: Maybe [Text]
$sel:tagValues:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
tagValues} -> Maybe [Text]
tagValues) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe [Text]
a -> DescribeClusterParameterGroups
s {$sel:tagValues:DescribeClusterParameterGroups' :: Maybe [Text]
tagValues = Maybe [Text]
a} :: DescribeClusterParameterGroups) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeClusterParameterGroups_tagKeys :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe [Prelude.Text])
describeClusterParameterGroups_tagKeys :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_tagKeys = (DescribeClusterParameterGroups -> Maybe [Text])
-> (DescribeClusterParameterGroups
-> Maybe [Text] -> DescribeClusterParameterGroups)
-> Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe [Text]
tagKeys :: Maybe [Text]
$sel:tagKeys:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
tagKeys} -> Maybe [Text]
tagKeys) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe [Text]
a -> DescribeClusterParameterGroups
s {$sel:tagKeys:DescribeClusterParameterGroups' :: Maybe [Text]
tagKeys = Maybe [Text]
a} :: DescribeClusterParameterGroups) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeClusterParameterGroups_marker :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeClusterParameterGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_marker = (DescribeClusterParameterGroups -> Maybe Text)
-> (DescribeClusterParameterGroups
-> Maybe Text -> DescribeClusterParameterGroups)
-> Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Text
a -> DescribeClusterParameterGroups
s {$sel:marker:DescribeClusterParameterGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterParameterGroups)
describeClusterParameterGroups_maxRecords :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Int)
describeClusterParameterGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_maxRecords = (DescribeClusterParameterGroups -> Maybe Int)
-> (DescribeClusterParameterGroups
-> Maybe Int -> DescribeClusterParameterGroups)
-> Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Int
a -> DescribeClusterParameterGroups
s {$sel:maxRecords:DescribeClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeClusterParameterGroups)
describeClusterParameterGroups_parameterGroupName :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeClusterParameterGroups_parameterGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_parameterGroupName = (DescribeClusterParameterGroups -> Maybe Text)
-> (DescribeClusterParameterGroups
-> Maybe Text -> DescribeClusterParameterGroups)
-> Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Text
parameterGroupName :: Maybe Text
$sel:parameterGroupName:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
parameterGroupName} -> Maybe Text
parameterGroupName) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Text
a -> DescribeClusterParameterGroups
s {$sel:parameterGroupName:DescribeClusterParameterGroups' :: Maybe Text
parameterGroupName = Maybe Text
a} :: DescribeClusterParameterGroups)
instance Core.AWSPager DescribeClusterParameterGroups where
page :: DescribeClusterParameterGroups
-> AWSResponse DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
page DescribeClusterParameterGroups
rq AWSResponse DescribeClusterParameterGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
DescribeClusterParameterGroupsResponse
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse
Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
describeClusterParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterParameterGroupsResponse 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 DescribeClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [ClusterParameterGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
DescribeClusterParameterGroupsResponse
-> Getting
(First [ClusterParameterGroup])
DescribeClusterParameterGroupsResponse
[ClusterParameterGroup]
-> Maybe [ClusterParameterGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ClusterParameterGroup]
-> Const
(First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> Const
(First [ClusterParameterGroup])
DescribeClusterParameterGroupsResponse
Lens'
DescribeClusterParameterGroupsResponse
(Maybe [ClusterParameterGroup])
describeClusterParameterGroupsResponse_parameterGroups
((Maybe [ClusterParameterGroup]
-> Const
(First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> Const
(First [ClusterParameterGroup])
DescribeClusterParameterGroupsResponse)
-> (([ClusterParameterGroup]
-> Const (First [ClusterParameterGroup]) [ClusterParameterGroup])
-> Maybe [ClusterParameterGroup]
-> Const
(First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
-> Getting
(First [ClusterParameterGroup])
DescribeClusterParameterGroupsResponse
[ClusterParameterGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ClusterParameterGroup]
-> Const (First [ClusterParameterGroup]) [ClusterParameterGroup])
-> Maybe [ClusterParameterGroup]
-> Const
(First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
forall a. a -> Maybe a
Prelude.Just (DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups)
-> DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeClusterParameterGroups
rq
DescribeClusterParameterGroups
-> (DescribeClusterParameterGroups
-> DescribeClusterParameterGroups)
-> DescribeClusterParameterGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeClusterParameterGroups
-> Identity DescribeClusterParameterGroups
Lens
DescribeClusterParameterGroups
DescribeClusterParameterGroups
(Maybe Text)
(Maybe Text)
describeClusterParameterGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeClusterParameterGroups
-> Identity DescribeClusterParameterGroups)
-> Maybe Text
-> DescribeClusterParameterGroups
-> DescribeClusterParameterGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
DescribeClusterParameterGroupsResponse
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse
Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
describeClusterParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterParameterGroupsResponse 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
DescribeClusterParameterGroups
where
type
AWSResponse DescribeClusterParameterGroups =
DescribeClusterParameterGroupsResponse
request :: DescribeClusterParameterGroups
-> Request DescribeClusterParameterGroups
request = Service
-> DescribeClusterParameterGroups
-> Request DescribeClusterParameterGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeClusterParameterGroups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeClusterParameterGroups))
-> Logger
-> Service
-> Proxy DescribeClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeClusterParameterGroups)))
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
"DescribeClusterParameterGroupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe [ClusterParameterGroup]
-> Int
-> DescribeClusterParameterGroupsResponse
DescribeClusterParameterGroupsResponse'
(Maybe Text
-> Maybe [ClusterParameterGroup]
-> Int
-> DescribeClusterParameterGroupsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ClusterParameterGroup]
-> Int -> DescribeClusterParameterGroupsResponse)
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 [ClusterParameterGroup]
-> Int -> DescribeClusterParameterGroupsResponse)
-> Either String (Maybe [ClusterParameterGroup])
-> Either String (Int -> DescribeClusterParameterGroupsResponse)
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
"ParameterGroups" 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 [ClusterParameterGroup]))
-> Either String (Maybe [ClusterParameterGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ClusterParameterGroup])
-> [Node] -> Either String (Maybe [ClusterParameterGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ClusterParameterGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"ClusterParameterGroup")
)
Either String (Int -> DescribeClusterParameterGroupsResponse)
-> Either String Int
-> Either String DescribeClusterParameterGroupsResponse
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
DescribeClusterParameterGroups
instance
Prelude.NFData
DescribeClusterParameterGroups
instance
Core.ToHeaders
DescribeClusterParameterGroups
where
toHeaders :: DescribeClusterParameterGroups -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeClusterParameterGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeClusterParameterGroups where
toPath :: DescribeClusterParameterGroups -> ByteString
toPath = ByteString -> DescribeClusterParameterGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeClusterParameterGroups where
toQuery :: DescribeClusterParameterGroups -> QueryString
toQuery DescribeClusterParameterGroups' {Maybe Int
Maybe [Text]
Maybe Text
parameterGroupName :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
tagKeys :: Maybe [Text]
tagValues :: Maybe [Text]
$sel:parameterGroupName:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
$sel:maxRecords:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Int
$sel:marker:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
$sel:tagKeys:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
$sel:tagValues:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> 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
"DescribeClusterParameterGroups" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"TagValues"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"TagValue" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
tagValues),
ByteString
"TagKeys"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"TagKey" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
tagKeys),
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
"ParameterGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
parameterGroupName
]
data DescribeClusterParameterGroupsResponse = DescribeClusterParameterGroupsResponse'
{
DescribeClusterParameterGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup]
parameterGroups :: Prelude.Maybe [ClusterParameterGroup],
DescribeClusterParameterGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
(DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool)
-> (DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool)
-> Eq DescribeClusterParameterGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
$c/= :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
== :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
$c== :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeClusterParameterGroupsResponse]
ReadPrec DescribeClusterParameterGroupsResponse
Int -> ReadS DescribeClusterParameterGroupsResponse
ReadS [DescribeClusterParameterGroupsResponse]
(Int -> ReadS DescribeClusterParameterGroupsResponse)
-> ReadS [DescribeClusterParameterGroupsResponse]
-> ReadPrec DescribeClusterParameterGroupsResponse
-> ReadPrec [DescribeClusterParameterGroupsResponse]
-> Read DescribeClusterParameterGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterParameterGroupsResponse]
$creadListPrec :: ReadPrec [DescribeClusterParameterGroupsResponse]
readPrec :: ReadPrec DescribeClusterParameterGroupsResponse
$creadPrec :: ReadPrec DescribeClusterParameterGroupsResponse
readList :: ReadS [DescribeClusterParameterGroupsResponse]
$creadList :: ReadS [DescribeClusterParameterGroupsResponse]
readsPrec :: Int -> ReadS DescribeClusterParameterGroupsResponse
$creadsPrec :: Int -> ReadS DescribeClusterParameterGroupsResponse
Prelude.Read, Int -> DescribeClusterParameterGroupsResponse -> ShowS
[DescribeClusterParameterGroupsResponse] -> ShowS
DescribeClusterParameterGroupsResponse -> String
(Int -> DescribeClusterParameterGroupsResponse -> ShowS)
-> (DescribeClusterParameterGroupsResponse -> String)
-> ([DescribeClusterParameterGroupsResponse] -> ShowS)
-> Show DescribeClusterParameterGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterParameterGroupsResponse] -> ShowS
$cshowList :: [DescribeClusterParameterGroupsResponse] -> ShowS
show :: DescribeClusterParameterGroupsResponse -> String
$cshow :: DescribeClusterParameterGroupsResponse -> String
showsPrec :: Int -> DescribeClusterParameterGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeClusterParameterGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeClusterParameterGroupsResponse
-> Rep DescribeClusterParameterGroupsResponse x)
-> (forall x.
Rep DescribeClusterParameterGroupsResponse x
-> DescribeClusterParameterGroupsResponse)
-> Generic DescribeClusterParameterGroupsResponse
forall x.
Rep DescribeClusterParameterGroupsResponse x
-> DescribeClusterParameterGroupsResponse
forall x.
DescribeClusterParameterGroupsResponse
-> Rep DescribeClusterParameterGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClusterParameterGroupsResponse x
-> DescribeClusterParameterGroupsResponse
$cfrom :: forall x.
DescribeClusterParameterGroupsResponse
-> Rep DescribeClusterParameterGroupsResponse x
Prelude.Generic)
newDescribeClusterParameterGroupsResponse ::
Prelude.Int ->
DescribeClusterParameterGroupsResponse
newDescribeClusterParameterGroupsResponse :: Int -> DescribeClusterParameterGroupsResponse
newDescribeClusterParameterGroupsResponse
Int
pHttpStatus_ =
DescribeClusterParameterGroupsResponse' :: Maybe Text
-> Maybe [ClusterParameterGroup]
-> Int
-> DescribeClusterParameterGroupsResponse
DescribeClusterParameterGroupsResponse'
{ $sel:marker:DescribeClusterParameterGroupsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: Maybe [ClusterParameterGroup]
parameterGroups = Maybe [ClusterParameterGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeClusterParameterGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeClusterParameterGroupsResponse_marker :: Lens.Lens' DescribeClusterParameterGroupsResponse (Prelude.Maybe Prelude.Text)
describeClusterParameterGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
describeClusterParameterGroupsResponse_marker = (DescribeClusterParameterGroupsResponse -> Maybe Text)
-> (DescribeClusterParameterGroupsResponse
-> Maybe Text -> DescribeClusterParameterGroupsResponse)
-> Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterParameterGroupsResponse' :: DescribeClusterParameterGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterParameterGroupsResponse
s@DescribeClusterParameterGroupsResponse' {} Maybe Text
a -> DescribeClusterParameterGroupsResponse
s {$sel:marker:DescribeClusterParameterGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterParameterGroupsResponse)
describeClusterParameterGroupsResponse_parameterGroups :: Lens.Lens' DescribeClusterParameterGroupsResponse (Prelude.Maybe [ClusterParameterGroup])
describeClusterParameterGroupsResponse_parameterGroups :: (Maybe [ClusterParameterGroup]
-> f (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
describeClusterParameterGroupsResponse_parameterGroups = (DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup])
-> (DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup]
-> DescribeClusterParameterGroupsResponse)
-> Lens'
DescribeClusterParameterGroupsResponse
(Maybe [ClusterParameterGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroupsResponse' {Maybe [ClusterParameterGroup]
parameterGroups :: Maybe [ClusterParameterGroup]
$sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup]
parameterGroups} -> Maybe [ClusterParameterGroup]
parameterGroups) (\s :: DescribeClusterParameterGroupsResponse
s@DescribeClusterParameterGroupsResponse' {} Maybe [ClusterParameterGroup]
a -> DescribeClusterParameterGroupsResponse
s {$sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: Maybe [ClusterParameterGroup]
parameterGroups = Maybe [ClusterParameterGroup]
a} :: DescribeClusterParameterGroupsResponse) ((Maybe [ClusterParameterGroup]
-> f (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse)
-> ((Maybe [ClusterParameterGroup]
-> f (Maybe [ClusterParameterGroup]))
-> Maybe [ClusterParameterGroup]
-> f (Maybe [ClusterParameterGroup]))
-> (Maybe [ClusterParameterGroup]
-> f (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ClusterParameterGroup]
[ClusterParameterGroup]
[ClusterParameterGroup]
[ClusterParameterGroup]
-> Iso
(Maybe [ClusterParameterGroup])
(Maybe [ClusterParameterGroup])
(Maybe [ClusterParameterGroup])
(Maybe [ClusterParameterGroup])
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
[ClusterParameterGroup]
[ClusterParameterGroup]
[ClusterParameterGroup]
[ClusterParameterGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeClusterParameterGroupsResponse_httpStatus :: Lens.Lens' DescribeClusterParameterGroupsResponse Prelude.Int
describeClusterParameterGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
describeClusterParameterGroupsResponse_httpStatus = (DescribeClusterParameterGroupsResponse -> Int)
-> (DescribeClusterParameterGroupsResponse
-> Int -> DescribeClusterParameterGroupsResponse)
-> Lens
DescribeClusterParameterGroupsResponse
DescribeClusterParameterGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeClusterParameterGroupsResponse' :: DescribeClusterParameterGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeClusterParameterGroupsResponse
s@DescribeClusterParameterGroupsResponse' {} Int
a -> DescribeClusterParameterGroupsResponse
s {$sel:httpStatus:DescribeClusterParameterGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeClusterParameterGroupsResponse)
instance
Prelude.NFData
DescribeClusterParameterGroupsResponse