{-# 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.ElastiCache.DescribeCacheParameterGroups
(
DescribeCacheParameterGroups (..),
newDescribeCacheParameterGroups,
describeCacheParameterGroups_cacheParameterGroupName,
describeCacheParameterGroups_marker,
describeCacheParameterGroups_maxRecords,
DescribeCacheParameterGroupsResponse (..),
newDescribeCacheParameterGroupsResponse,
describeCacheParameterGroupsResponse_cacheParameterGroups,
describeCacheParameterGroupsResponse_marker,
describeCacheParameterGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElastiCache.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeCacheParameterGroups = DescribeCacheParameterGroups'
{
DescribeCacheParameterGroups -> Maybe Text
cacheParameterGroupName :: Prelude.Maybe Prelude.Text,
DescribeCacheParameterGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeCacheParameterGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool
(DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool)
-> (DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool)
-> Eq DescribeCacheParameterGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool
$c/= :: DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool
== :: DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool
$c== :: DescribeCacheParameterGroups
-> DescribeCacheParameterGroups -> Bool
Prelude.Eq, ReadPrec [DescribeCacheParameterGroups]
ReadPrec DescribeCacheParameterGroups
Int -> ReadS DescribeCacheParameterGroups
ReadS [DescribeCacheParameterGroups]
(Int -> ReadS DescribeCacheParameterGroups)
-> ReadS [DescribeCacheParameterGroups]
-> ReadPrec DescribeCacheParameterGroups
-> ReadPrec [DescribeCacheParameterGroups]
-> Read DescribeCacheParameterGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCacheParameterGroups]
$creadListPrec :: ReadPrec [DescribeCacheParameterGroups]
readPrec :: ReadPrec DescribeCacheParameterGroups
$creadPrec :: ReadPrec DescribeCacheParameterGroups
readList :: ReadS [DescribeCacheParameterGroups]
$creadList :: ReadS [DescribeCacheParameterGroups]
readsPrec :: Int -> ReadS DescribeCacheParameterGroups
$creadsPrec :: Int -> ReadS DescribeCacheParameterGroups
Prelude.Read, Int -> DescribeCacheParameterGroups -> ShowS
[DescribeCacheParameterGroups] -> ShowS
DescribeCacheParameterGroups -> String
(Int -> DescribeCacheParameterGroups -> ShowS)
-> (DescribeCacheParameterGroups -> String)
-> ([DescribeCacheParameterGroups] -> ShowS)
-> Show DescribeCacheParameterGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCacheParameterGroups] -> ShowS
$cshowList :: [DescribeCacheParameterGroups] -> ShowS
show :: DescribeCacheParameterGroups -> String
$cshow :: DescribeCacheParameterGroups -> String
showsPrec :: Int -> DescribeCacheParameterGroups -> ShowS
$cshowsPrec :: Int -> DescribeCacheParameterGroups -> ShowS
Prelude.Show, (forall x.
DescribeCacheParameterGroups -> Rep DescribeCacheParameterGroups x)
-> (forall x.
Rep DescribeCacheParameterGroups x -> DescribeCacheParameterGroups)
-> Generic DescribeCacheParameterGroups
forall x.
Rep DescribeCacheParameterGroups x -> DescribeCacheParameterGroups
forall x.
DescribeCacheParameterGroups -> Rep DescribeCacheParameterGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCacheParameterGroups x -> DescribeCacheParameterGroups
$cfrom :: forall x.
DescribeCacheParameterGroups -> Rep DescribeCacheParameterGroups x
Prelude.Generic)
newDescribeCacheParameterGroups ::
DescribeCacheParameterGroups
newDescribeCacheParameterGroups :: DescribeCacheParameterGroups
newDescribeCacheParameterGroups =
DescribeCacheParameterGroups' :: Maybe Text
-> Maybe Text -> Maybe Int -> DescribeCacheParameterGroups
DescribeCacheParameterGroups'
{ $sel:cacheParameterGroupName:DescribeCacheParameterGroups' :: Maybe Text
cacheParameterGroupName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeCacheParameterGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeCacheParameterGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeCacheParameterGroups_cacheParameterGroupName :: Lens.Lens' DescribeCacheParameterGroups (Prelude.Maybe Prelude.Text)
describeCacheParameterGroups_cacheParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeCacheParameterGroups -> f DescribeCacheParameterGroups
describeCacheParameterGroups_cacheParameterGroupName = (DescribeCacheParameterGroups -> Maybe Text)
-> (DescribeCacheParameterGroups
-> Maybe Text -> DescribeCacheParameterGroups)
-> Lens
DescribeCacheParameterGroups
DescribeCacheParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroups' {Maybe Text
cacheParameterGroupName :: Maybe Text
$sel:cacheParameterGroupName:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> Maybe Text
cacheParameterGroupName} -> Maybe Text
cacheParameterGroupName) (\s :: DescribeCacheParameterGroups
s@DescribeCacheParameterGroups' {} Maybe Text
a -> DescribeCacheParameterGroups
s {$sel:cacheParameterGroupName:DescribeCacheParameterGroups' :: Maybe Text
cacheParameterGroupName = Maybe Text
a} :: DescribeCacheParameterGroups)
describeCacheParameterGroups_marker :: Lens.Lens' DescribeCacheParameterGroups (Prelude.Maybe Prelude.Text)
describeCacheParameterGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeCacheParameterGroups -> f DescribeCacheParameterGroups
describeCacheParameterGroups_marker = (DescribeCacheParameterGroups -> Maybe Text)
-> (DescribeCacheParameterGroups
-> Maybe Text -> DescribeCacheParameterGroups)
-> Lens
DescribeCacheParameterGroups
DescribeCacheParameterGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeCacheParameterGroups
s@DescribeCacheParameterGroups' {} Maybe Text
a -> DescribeCacheParameterGroups
s {$sel:marker:DescribeCacheParameterGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeCacheParameterGroups)
describeCacheParameterGroups_maxRecords :: Lens.Lens' DescribeCacheParameterGroups (Prelude.Maybe Prelude.Int)
describeCacheParameterGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeCacheParameterGroups -> f DescribeCacheParameterGroups
describeCacheParameterGroups_maxRecords = (DescribeCacheParameterGroups -> Maybe Int)
-> (DescribeCacheParameterGroups
-> Maybe Int -> DescribeCacheParameterGroups)
-> Lens
DescribeCacheParameterGroups
DescribeCacheParameterGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeCacheParameterGroups
s@DescribeCacheParameterGroups' {} Maybe Int
a -> DescribeCacheParameterGroups
s {$sel:maxRecords:DescribeCacheParameterGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeCacheParameterGroups)
instance Core.AWSPager DescribeCacheParameterGroups where
page :: DescribeCacheParameterGroups
-> AWSResponse DescribeCacheParameterGroups
-> Maybe DescribeCacheParameterGroups
page DescribeCacheParameterGroups
rq AWSResponse DescribeCacheParameterGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeCacheParameterGroups
DescribeCacheParameterGroupsResponse
rs
DescribeCacheParameterGroupsResponse
-> Getting (First Text) DescribeCacheParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCacheParameterGroupsResponse
-> Const (First Text) DescribeCacheParameterGroupsResponse
Lens' DescribeCacheParameterGroupsResponse (Maybe Text)
describeCacheParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCacheParameterGroupsResponse
-> Const (First Text) DescribeCacheParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeCacheParameterGroupsResponse 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 DescribeCacheParameterGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [CacheParameterGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeCacheParameterGroups
DescribeCacheParameterGroupsResponse
rs
DescribeCacheParameterGroupsResponse
-> Getting
(First [CacheParameterGroup])
DescribeCacheParameterGroupsResponse
[CacheParameterGroup]
-> Maybe [CacheParameterGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [CacheParameterGroup]
-> Const
(First [CacheParameterGroup]) (Maybe [CacheParameterGroup]))
-> DescribeCacheParameterGroupsResponse
-> Const
(First [CacheParameterGroup]) DescribeCacheParameterGroupsResponse
Lens'
DescribeCacheParameterGroupsResponse (Maybe [CacheParameterGroup])
describeCacheParameterGroupsResponse_cacheParameterGroups
((Maybe [CacheParameterGroup]
-> Const
(First [CacheParameterGroup]) (Maybe [CacheParameterGroup]))
-> DescribeCacheParameterGroupsResponse
-> Const
(First [CacheParameterGroup]) DescribeCacheParameterGroupsResponse)
-> (([CacheParameterGroup]
-> Const (First [CacheParameterGroup]) [CacheParameterGroup])
-> Maybe [CacheParameterGroup]
-> Const
(First [CacheParameterGroup]) (Maybe [CacheParameterGroup]))
-> Getting
(First [CacheParameterGroup])
DescribeCacheParameterGroupsResponse
[CacheParameterGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([CacheParameterGroup]
-> Const (First [CacheParameterGroup]) [CacheParameterGroup])
-> Maybe [CacheParameterGroup]
-> Const
(First [CacheParameterGroup]) (Maybe [CacheParameterGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeCacheParameterGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeCacheParameterGroups -> Maybe DescribeCacheParameterGroups
forall a. a -> Maybe a
Prelude.Just (DescribeCacheParameterGroups
-> Maybe DescribeCacheParameterGroups)
-> DescribeCacheParameterGroups
-> Maybe DescribeCacheParameterGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeCacheParameterGroups
rq
DescribeCacheParameterGroups
-> (DescribeCacheParameterGroups -> DescribeCacheParameterGroups)
-> DescribeCacheParameterGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeCacheParameterGroups
-> Identity DescribeCacheParameterGroups
Lens
DescribeCacheParameterGroups
DescribeCacheParameterGroups
(Maybe Text)
(Maybe Text)
describeCacheParameterGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeCacheParameterGroups
-> Identity DescribeCacheParameterGroups)
-> Maybe Text
-> DescribeCacheParameterGroups
-> DescribeCacheParameterGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeCacheParameterGroups
DescribeCacheParameterGroupsResponse
rs
DescribeCacheParameterGroupsResponse
-> Getting (First Text) DescribeCacheParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCacheParameterGroupsResponse
-> Const (First Text) DescribeCacheParameterGroupsResponse
Lens' DescribeCacheParameterGroupsResponse (Maybe Text)
describeCacheParameterGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeCacheParameterGroupsResponse
-> Const (First Text) DescribeCacheParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeCacheParameterGroupsResponse 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 DescribeCacheParameterGroups where
type
AWSResponse DescribeCacheParameterGroups =
DescribeCacheParameterGroupsResponse
request :: DescribeCacheParameterGroups
-> Request DescribeCacheParameterGroups
request = Service
-> DescribeCacheParameterGroups
-> Request DescribeCacheParameterGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeCacheParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCacheParameterGroups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeCacheParameterGroups))
-> Logger
-> Service
-> Proxy DescribeCacheParameterGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeCacheParameterGroups)))
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
"DescribeCacheParameterGroupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [CacheParameterGroup]
-> Maybe Text -> Int -> DescribeCacheParameterGroupsResponse
DescribeCacheParameterGroupsResponse'
(Maybe [CacheParameterGroup]
-> Maybe Text -> Int -> DescribeCacheParameterGroupsResponse)
-> Either String (Maybe [CacheParameterGroup])
-> Either
String (Maybe Text -> Int -> DescribeCacheParameterGroupsResponse)
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
"CacheParameterGroups"
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 [CacheParameterGroup]))
-> Either String (Maybe [CacheParameterGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CacheParameterGroup])
-> [Node] -> Either String (Maybe [CacheParameterGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CacheParameterGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CacheParameterGroup")
)
Either
String (Maybe Text -> Int -> DescribeCacheParameterGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeCacheParameterGroupsResponse)
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 -> DescribeCacheParameterGroupsResponse)
-> Either String Int
-> Either String DescribeCacheParameterGroupsResponse
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
DescribeCacheParameterGroups
instance Prelude.NFData DescribeCacheParameterGroups
instance Core.ToHeaders DescribeCacheParameterGroups where
toHeaders :: DescribeCacheParameterGroups -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeCacheParameterGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeCacheParameterGroups where
toPath :: DescribeCacheParameterGroups -> ByteString
toPath = ByteString -> DescribeCacheParameterGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeCacheParameterGroups where
toQuery :: DescribeCacheParameterGroups -> QueryString
toQuery DescribeCacheParameterGroups' {Maybe Int
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
cacheParameterGroupName :: Maybe Text
$sel:maxRecords:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> Maybe Int
$sel:marker:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> Maybe Text
$sel:cacheParameterGroupName:DescribeCacheParameterGroups' :: DescribeCacheParameterGroups -> 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
"DescribeCacheParameterGroups" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-02-02" :: Prelude.ByteString),
ByteString
"CacheParameterGroupName"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cacheParameterGroupName,
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 DescribeCacheParameterGroupsResponse = DescribeCacheParameterGroupsResponse'
{
DescribeCacheParameterGroupsResponse -> Maybe [CacheParameterGroup]
cacheParameterGroups :: Prelude.Maybe [CacheParameterGroup],
DescribeCacheParameterGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeCacheParameterGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool
(DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool)
-> (DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool)
-> Eq DescribeCacheParameterGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool
$c/= :: DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool
== :: DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool
$c== :: DescribeCacheParameterGroupsResponse
-> DescribeCacheParameterGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeCacheParameterGroupsResponse]
ReadPrec DescribeCacheParameterGroupsResponse
Int -> ReadS DescribeCacheParameterGroupsResponse
ReadS [DescribeCacheParameterGroupsResponse]
(Int -> ReadS DescribeCacheParameterGroupsResponse)
-> ReadS [DescribeCacheParameterGroupsResponse]
-> ReadPrec DescribeCacheParameterGroupsResponse
-> ReadPrec [DescribeCacheParameterGroupsResponse]
-> Read DescribeCacheParameterGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCacheParameterGroupsResponse]
$creadListPrec :: ReadPrec [DescribeCacheParameterGroupsResponse]
readPrec :: ReadPrec DescribeCacheParameterGroupsResponse
$creadPrec :: ReadPrec DescribeCacheParameterGroupsResponse
readList :: ReadS [DescribeCacheParameterGroupsResponse]
$creadList :: ReadS [DescribeCacheParameterGroupsResponse]
readsPrec :: Int -> ReadS DescribeCacheParameterGroupsResponse
$creadsPrec :: Int -> ReadS DescribeCacheParameterGroupsResponse
Prelude.Read, Int -> DescribeCacheParameterGroupsResponse -> ShowS
[DescribeCacheParameterGroupsResponse] -> ShowS
DescribeCacheParameterGroupsResponse -> String
(Int -> DescribeCacheParameterGroupsResponse -> ShowS)
-> (DescribeCacheParameterGroupsResponse -> String)
-> ([DescribeCacheParameterGroupsResponse] -> ShowS)
-> Show DescribeCacheParameterGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCacheParameterGroupsResponse] -> ShowS
$cshowList :: [DescribeCacheParameterGroupsResponse] -> ShowS
show :: DescribeCacheParameterGroupsResponse -> String
$cshow :: DescribeCacheParameterGroupsResponse -> String
showsPrec :: Int -> DescribeCacheParameterGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeCacheParameterGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeCacheParameterGroupsResponse
-> Rep DescribeCacheParameterGroupsResponse x)
-> (forall x.
Rep DescribeCacheParameterGroupsResponse x
-> DescribeCacheParameterGroupsResponse)
-> Generic DescribeCacheParameterGroupsResponse
forall x.
Rep DescribeCacheParameterGroupsResponse x
-> DescribeCacheParameterGroupsResponse
forall x.
DescribeCacheParameterGroupsResponse
-> Rep DescribeCacheParameterGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCacheParameterGroupsResponse x
-> DescribeCacheParameterGroupsResponse
$cfrom :: forall x.
DescribeCacheParameterGroupsResponse
-> Rep DescribeCacheParameterGroupsResponse x
Prelude.Generic)
newDescribeCacheParameterGroupsResponse ::
Prelude.Int ->
DescribeCacheParameterGroupsResponse
newDescribeCacheParameterGroupsResponse :: Int -> DescribeCacheParameterGroupsResponse
newDescribeCacheParameterGroupsResponse Int
pHttpStatus_ =
DescribeCacheParameterGroupsResponse' :: Maybe [CacheParameterGroup]
-> Maybe Text -> Int -> DescribeCacheParameterGroupsResponse
DescribeCacheParameterGroupsResponse'
{ $sel:cacheParameterGroups:DescribeCacheParameterGroupsResponse' :: Maybe [CacheParameterGroup]
cacheParameterGroups =
Maybe [CacheParameterGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeCacheParameterGroupsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeCacheParameterGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeCacheParameterGroupsResponse_cacheParameterGroups :: Lens.Lens' DescribeCacheParameterGroupsResponse (Prelude.Maybe [CacheParameterGroup])
describeCacheParameterGroupsResponse_cacheParameterGroups :: (Maybe [CacheParameterGroup] -> f (Maybe [CacheParameterGroup]))
-> DescribeCacheParameterGroupsResponse
-> f DescribeCacheParameterGroupsResponse
describeCacheParameterGroupsResponse_cacheParameterGroups = (DescribeCacheParameterGroupsResponse
-> Maybe [CacheParameterGroup])
-> (DescribeCacheParameterGroupsResponse
-> Maybe [CacheParameterGroup]
-> DescribeCacheParameterGroupsResponse)
-> Lens'
DescribeCacheParameterGroupsResponse (Maybe [CacheParameterGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroupsResponse' {Maybe [CacheParameterGroup]
cacheParameterGroups :: Maybe [CacheParameterGroup]
$sel:cacheParameterGroups:DescribeCacheParameterGroupsResponse' :: DescribeCacheParameterGroupsResponse -> Maybe [CacheParameterGroup]
cacheParameterGroups} -> Maybe [CacheParameterGroup]
cacheParameterGroups) (\s :: DescribeCacheParameterGroupsResponse
s@DescribeCacheParameterGroupsResponse' {} Maybe [CacheParameterGroup]
a -> DescribeCacheParameterGroupsResponse
s {$sel:cacheParameterGroups:DescribeCacheParameterGroupsResponse' :: Maybe [CacheParameterGroup]
cacheParameterGroups = Maybe [CacheParameterGroup]
a} :: DescribeCacheParameterGroupsResponse) ((Maybe [CacheParameterGroup] -> f (Maybe [CacheParameterGroup]))
-> DescribeCacheParameterGroupsResponse
-> f DescribeCacheParameterGroupsResponse)
-> ((Maybe [CacheParameterGroup]
-> f (Maybe [CacheParameterGroup]))
-> Maybe [CacheParameterGroup] -> f (Maybe [CacheParameterGroup]))
-> (Maybe [CacheParameterGroup] -> f (Maybe [CacheParameterGroup]))
-> DescribeCacheParameterGroupsResponse
-> f DescribeCacheParameterGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CacheParameterGroup]
[CacheParameterGroup]
[CacheParameterGroup]
[CacheParameterGroup]
-> Iso
(Maybe [CacheParameterGroup])
(Maybe [CacheParameterGroup])
(Maybe [CacheParameterGroup])
(Maybe [CacheParameterGroup])
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
[CacheParameterGroup]
[CacheParameterGroup]
[CacheParameterGroup]
[CacheParameterGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeCacheParameterGroupsResponse_marker :: Lens.Lens' DescribeCacheParameterGroupsResponse (Prelude.Maybe Prelude.Text)
describeCacheParameterGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeCacheParameterGroupsResponse
-> f DescribeCacheParameterGroupsResponse
describeCacheParameterGroupsResponse_marker = (DescribeCacheParameterGroupsResponse -> Maybe Text)
-> (DescribeCacheParameterGroupsResponse
-> Maybe Text -> DescribeCacheParameterGroupsResponse)
-> Lens' DescribeCacheParameterGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeCacheParameterGroupsResponse' :: DescribeCacheParameterGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeCacheParameterGroupsResponse
s@DescribeCacheParameterGroupsResponse' {} Maybe Text
a -> DescribeCacheParameterGroupsResponse
s {$sel:marker:DescribeCacheParameterGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeCacheParameterGroupsResponse)
describeCacheParameterGroupsResponse_httpStatus :: Lens.Lens' DescribeCacheParameterGroupsResponse Prelude.Int
describeCacheParameterGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeCacheParameterGroupsResponse
-> f DescribeCacheParameterGroupsResponse
describeCacheParameterGroupsResponse_httpStatus = (DescribeCacheParameterGroupsResponse -> Int)
-> (DescribeCacheParameterGroupsResponse
-> Int -> DescribeCacheParameterGroupsResponse)
-> Lens
DescribeCacheParameterGroupsResponse
DescribeCacheParameterGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCacheParameterGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeCacheParameterGroupsResponse' :: DescribeCacheParameterGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeCacheParameterGroupsResponse
s@DescribeCacheParameterGroupsResponse' {} Int
a -> DescribeCacheParameterGroupsResponse
s {$sel:httpStatus:DescribeCacheParameterGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeCacheParameterGroupsResponse)
instance
Prelude.NFData
DescribeCacheParameterGroupsResponse