{-# 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.DescribeReplicationGroups
(
DescribeReplicationGroups (..),
newDescribeReplicationGroups,
describeReplicationGroups_marker,
describeReplicationGroups_maxRecords,
describeReplicationGroups_replicationGroupId,
DescribeReplicationGroupsResponse (..),
newDescribeReplicationGroupsResponse,
describeReplicationGroupsResponse_marker,
describeReplicationGroupsResponse_replicationGroups,
describeReplicationGroupsResponse_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 DescribeReplicationGroups = DescribeReplicationGroups'
{
DescribeReplicationGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReplicationGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeReplicationGroups -> Maybe Text
replicationGroupId :: Prelude.Maybe Prelude.Text
}
deriving (DescribeReplicationGroups -> DescribeReplicationGroups -> Bool
(DescribeReplicationGroups -> DescribeReplicationGroups -> Bool)
-> (DescribeReplicationGroups -> DescribeReplicationGroups -> Bool)
-> Eq DescribeReplicationGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationGroups -> DescribeReplicationGroups -> Bool
$c/= :: DescribeReplicationGroups -> DescribeReplicationGroups -> Bool
== :: DescribeReplicationGroups -> DescribeReplicationGroups -> Bool
$c== :: DescribeReplicationGroups -> DescribeReplicationGroups -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationGroups]
ReadPrec DescribeReplicationGroups
Int -> ReadS DescribeReplicationGroups
ReadS [DescribeReplicationGroups]
(Int -> ReadS DescribeReplicationGroups)
-> ReadS [DescribeReplicationGroups]
-> ReadPrec DescribeReplicationGroups
-> ReadPrec [DescribeReplicationGroups]
-> Read DescribeReplicationGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationGroups]
$creadListPrec :: ReadPrec [DescribeReplicationGroups]
readPrec :: ReadPrec DescribeReplicationGroups
$creadPrec :: ReadPrec DescribeReplicationGroups
readList :: ReadS [DescribeReplicationGroups]
$creadList :: ReadS [DescribeReplicationGroups]
readsPrec :: Int -> ReadS DescribeReplicationGroups
$creadsPrec :: Int -> ReadS DescribeReplicationGroups
Prelude.Read, Int -> DescribeReplicationGroups -> ShowS
[DescribeReplicationGroups] -> ShowS
DescribeReplicationGroups -> String
(Int -> DescribeReplicationGroups -> ShowS)
-> (DescribeReplicationGroups -> String)
-> ([DescribeReplicationGroups] -> ShowS)
-> Show DescribeReplicationGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationGroups] -> ShowS
$cshowList :: [DescribeReplicationGroups] -> ShowS
show :: DescribeReplicationGroups -> String
$cshow :: DescribeReplicationGroups -> String
showsPrec :: Int -> DescribeReplicationGroups -> ShowS
$cshowsPrec :: Int -> DescribeReplicationGroups -> ShowS
Prelude.Show, (forall x.
DescribeReplicationGroups -> Rep DescribeReplicationGroups x)
-> (forall x.
Rep DescribeReplicationGroups x -> DescribeReplicationGroups)
-> Generic DescribeReplicationGroups
forall x.
Rep DescribeReplicationGroups x -> DescribeReplicationGroups
forall x.
DescribeReplicationGroups -> Rep DescribeReplicationGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationGroups x -> DescribeReplicationGroups
$cfrom :: forall x.
DescribeReplicationGroups -> Rep DescribeReplicationGroups x
Prelude.Generic)
newDescribeReplicationGroups ::
DescribeReplicationGroups
newDescribeReplicationGroups :: DescribeReplicationGroups
newDescribeReplicationGroups =
DescribeReplicationGroups' :: Maybe Text -> Maybe Int -> Maybe Text -> DescribeReplicationGroups
DescribeReplicationGroups'
{ $sel:marker:DescribeReplicationGroups' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeReplicationGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:replicationGroupId:DescribeReplicationGroups' :: Maybe Text
replicationGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeReplicationGroups_marker :: Lens.Lens' DescribeReplicationGroups (Prelude.Maybe Prelude.Text)
describeReplicationGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationGroups -> f DescribeReplicationGroups
describeReplicationGroups_marker = (DescribeReplicationGroups -> Maybe Text)
-> (DescribeReplicationGroups
-> Maybe Text -> DescribeReplicationGroups)
-> Lens
DescribeReplicationGroups
DescribeReplicationGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationGroups' :: DescribeReplicationGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationGroups
s@DescribeReplicationGroups' {} Maybe Text
a -> DescribeReplicationGroups
s {$sel:marker:DescribeReplicationGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationGroups)
describeReplicationGroups_maxRecords :: Lens.Lens' DescribeReplicationGroups (Prelude.Maybe Prelude.Int)
describeReplicationGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeReplicationGroups -> f DescribeReplicationGroups
describeReplicationGroups_maxRecords = (DescribeReplicationGroups -> Maybe Int)
-> (DescribeReplicationGroups
-> Maybe Int -> DescribeReplicationGroups)
-> Lens
DescribeReplicationGroups
DescribeReplicationGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeReplicationGroups' :: DescribeReplicationGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeReplicationGroups
s@DescribeReplicationGroups' {} Maybe Int
a -> DescribeReplicationGroups
s {$sel:maxRecords:DescribeReplicationGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeReplicationGroups)
describeReplicationGroups_replicationGroupId :: Lens.Lens' DescribeReplicationGroups (Prelude.Maybe Prelude.Text)
describeReplicationGroups_replicationGroupId :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationGroups -> f DescribeReplicationGroups
describeReplicationGroups_replicationGroupId = (DescribeReplicationGroups -> Maybe Text)
-> (DescribeReplicationGroups
-> Maybe Text -> DescribeReplicationGroups)
-> Lens
DescribeReplicationGroups
DescribeReplicationGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroups' {Maybe Text
replicationGroupId :: Maybe Text
$sel:replicationGroupId:DescribeReplicationGroups' :: DescribeReplicationGroups -> Maybe Text
replicationGroupId} -> Maybe Text
replicationGroupId) (\s :: DescribeReplicationGroups
s@DescribeReplicationGroups' {} Maybe Text
a -> DescribeReplicationGroups
s {$sel:replicationGroupId:DescribeReplicationGroups' :: Maybe Text
replicationGroupId = Maybe Text
a} :: DescribeReplicationGroups)
instance Core.AWSPager DescribeReplicationGroups where
page :: DescribeReplicationGroups
-> AWSResponse DescribeReplicationGroups
-> Maybe DescribeReplicationGroups
page DescribeReplicationGroups
rq AWSResponse DescribeReplicationGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReplicationGroups
DescribeReplicationGroupsResponse
rs
DescribeReplicationGroupsResponse
-> Getting (First Text) DescribeReplicationGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationGroupsResponse
-> Const (First Text) DescribeReplicationGroupsResponse
Lens' DescribeReplicationGroupsResponse (Maybe Text)
describeReplicationGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationGroupsResponse
-> Const (First Text) DescribeReplicationGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeReplicationGroupsResponse 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 DescribeReplicationGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [ReplicationGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReplicationGroups
DescribeReplicationGroupsResponse
rs
DescribeReplicationGroupsResponse
-> Getting
(First [ReplicationGroup])
DescribeReplicationGroupsResponse
[ReplicationGroup]
-> Maybe [ReplicationGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ReplicationGroup]
-> Const (First [ReplicationGroup]) (Maybe [ReplicationGroup]))
-> DescribeReplicationGroupsResponse
-> Const
(First [ReplicationGroup]) DescribeReplicationGroupsResponse
Lens' DescribeReplicationGroupsResponse (Maybe [ReplicationGroup])
describeReplicationGroupsResponse_replicationGroups
((Maybe [ReplicationGroup]
-> Const (First [ReplicationGroup]) (Maybe [ReplicationGroup]))
-> DescribeReplicationGroupsResponse
-> Const
(First [ReplicationGroup]) DescribeReplicationGroupsResponse)
-> (([ReplicationGroup]
-> Const (First [ReplicationGroup]) [ReplicationGroup])
-> Maybe [ReplicationGroup]
-> Const (First [ReplicationGroup]) (Maybe [ReplicationGroup]))
-> Getting
(First [ReplicationGroup])
DescribeReplicationGroupsResponse
[ReplicationGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ReplicationGroup]
-> Const (First [ReplicationGroup]) [ReplicationGroup])
-> Maybe [ReplicationGroup]
-> Const (First [ReplicationGroup]) (Maybe [ReplicationGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeReplicationGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeReplicationGroups -> Maybe DescribeReplicationGroups
forall a. a -> Maybe a
Prelude.Just (DescribeReplicationGroups -> Maybe DescribeReplicationGroups)
-> DescribeReplicationGroups -> Maybe DescribeReplicationGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeReplicationGroups
rq
DescribeReplicationGroups
-> (DescribeReplicationGroups -> DescribeReplicationGroups)
-> DescribeReplicationGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeReplicationGroups -> Identity DescribeReplicationGroups
Lens
DescribeReplicationGroups
DescribeReplicationGroups
(Maybe Text)
(Maybe Text)
describeReplicationGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeReplicationGroups -> Identity DescribeReplicationGroups)
-> Maybe Text
-> DescribeReplicationGroups
-> DescribeReplicationGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeReplicationGroups
DescribeReplicationGroupsResponse
rs
DescribeReplicationGroupsResponse
-> Getting (First Text) DescribeReplicationGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationGroupsResponse
-> Const (First Text) DescribeReplicationGroupsResponse
Lens' DescribeReplicationGroupsResponse (Maybe Text)
describeReplicationGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationGroupsResponse
-> Const (First Text) DescribeReplicationGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeReplicationGroupsResponse 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 DescribeReplicationGroups where
type
AWSResponse DescribeReplicationGroups =
DescribeReplicationGroupsResponse
request :: DescribeReplicationGroups -> Request DescribeReplicationGroups
request = Service
-> DescribeReplicationGroups -> Request DescribeReplicationGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeReplicationGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReplicationGroups)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeReplicationGroups))
-> Logger
-> Service
-> Proxy DescribeReplicationGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeReplicationGroups)))
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
"DescribeReplicationGroupsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe [ReplicationGroup]
-> Int
-> DescribeReplicationGroupsResponse
DescribeReplicationGroupsResponse'
(Maybe Text
-> Maybe [ReplicationGroup]
-> Int
-> DescribeReplicationGroupsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ReplicationGroup]
-> Int -> DescribeReplicationGroupsResponse)
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 [ReplicationGroup]
-> Int -> DescribeReplicationGroupsResponse)
-> Either String (Maybe [ReplicationGroup])
-> Either String (Int -> DescribeReplicationGroupsResponse)
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
"ReplicationGroups"
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 [ReplicationGroup]))
-> Either String (Maybe [ReplicationGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ReplicationGroup])
-> [Node] -> Either String (Maybe [ReplicationGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ReplicationGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"ReplicationGroup")
)
Either String (Int -> DescribeReplicationGroupsResponse)
-> Either String Int
-> Either String DescribeReplicationGroupsResponse
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 DescribeReplicationGroups
instance Prelude.NFData DescribeReplicationGroups
instance Core.ToHeaders DescribeReplicationGroups where
toHeaders :: DescribeReplicationGroups -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeReplicationGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeReplicationGroups where
toPath :: DescribeReplicationGroups -> ByteString
toPath = ByteString -> DescribeReplicationGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeReplicationGroups where
toQuery :: DescribeReplicationGroups -> QueryString
toQuery DescribeReplicationGroups' {Maybe Int
Maybe Text
replicationGroupId :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:replicationGroupId:DescribeReplicationGroups' :: DescribeReplicationGroups -> Maybe Text
$sel:maxRecords:DescribeReplicationGroups' :: DescribeReplicationGroups -> Maybe Int
$sel:marker:DescribeReplicationGroups' :: DescribeReplicationGroups -> 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
"DescribeReplicationGroups" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-02-02" :: Prelude.ByteString),
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
"ReplicationGroupId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
replicationGroupId
]
data DescribeReplicationGroupsResponse = DescribeReplicationGroupsResponse'
{
DescribeReplicationGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReplicationGroupsResponse -> Maybe [ReplicationGroup]
replicationGroups :: Prelude.Maybe [ReplicationGroup],
DescribeReplicationGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool
(DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool)
-> (DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool)
-> Eq DescribeReplicationGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool
$c/= :: DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool
== :: DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool
$c== :: DescribeReplicationGroupsResponse
-> DescribeReplicationGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationGroupsResponse]
ReadPrec DescribeReplicationGroupsResponse
Int -> ReadS DescribeReplicationGroupsResponse
ReadS [DescribeReplicationGroupsResponse]
(Int -> ReadS DescribeReplicationGroupsResponse)
-> ReadS [DescribeReplicationGroupsResponse]
-> ReadPrec DescribeReplicationGroupsResponse
-> ReadPrec [DescribeReplicationGroupsResponse]
-> Read DescribeReplicationGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationGroupsResponse]
$creadListPrec :: ReadPrec [DescribeReplicationGroupsResponse]
readPrec :: ReadPrec DescribeReplicationGroupsResponse
$creadPrec :: ReadPrec DescribeReplicationGroupsResponse
readList :: ReadS [DescribeReplicationGroupsResponse]
$creadList :: ReadS [DescribeReplicationGroupsResponse]
readsPrec :: Int -> ReadS DescribeReplicationGroupsResponse
$creadsPrec :: Int -> ReadS DescribeReplicationGroupsResponse
Prelude.Read, Int -> DescribeReplicationGroupsResponse -> ShowS
[DescribeReplicationGroupsResponse] -> ShowS
DescribeReplicationGroupsResponse -> String
(Int -> DescribeReplicationGroupsResponse -> ShowS)
-> (DescribeReplicationGroupsResponse -> String)
-> ([DescribeReplicationGroupsResponse] -> ShowS)
-> Show DescribeReplicationGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationGroupsResponse] -> ShowS
$cshowList :: [DescribeReplicationGroupsResponse] -> ShowS
show :: DescribeReplicationGroupsResponse -> String
$cshow :: DescribeReplicationGroupsResponse -> String
showsPrec :: Int -> DescribeReplicationGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeReplicationGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeReplicationGroupsResponse
-> Rep DescribeReplicationGroupsResponse x)
-> (forall x.
Rep DescribeReplicationGroupsResponse x
-> DescribeReplicationGroupsResponse)
-> Generic DescribeReplicationGroupsResponse
forall x.
Rep DescribeReplicationGroupsResponse x
-> DescribeReplicationGroupsResponse
forall x.
DescribeReplicationGroupsResponse
-> Rep DescribeReplicationGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationGroupsResponse x
-> DescribeReplicationGroupsResponse
$cfrom :: forall x.
DescribeReplicationGroupsResponse
-> Rep DescribeReplicationGroupsResponse x
Prelude.Generic)
newDescribeReplicationGroupsResponse ::
Prelude.Int ->
DescribeReplicationGroupsResponse
newDescribeReplicationGroupsResponse :: Int -> DescribeReplicationGroupsResponse
newDescribeReplicationGroupsResponse Int
pHttpStatus_ =
DescribeReplicationGroupsResponse' :: Maybe Text
-> Maybe [ReplicationGroup]
-> Int
-> DescribeReplicationGroupsResponse
DescribeReplicationGroupsResponse'
{ $sel:marker:DescribeReplicationGroupsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationGroups:DescribeReplicationGroupsResponse' :: Maybe [ReplicationGroup]
replicationGroups = Maybe [ReplicationGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeReplicationGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeReplicationGroupsResponse_marker :: Lens.Lens' DescribeReplicationGroupsResponse (Prelude.Maybe Prelude.Text)
describeReplicationGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationGroupsResponse
-> f DescribeReplicationGroupsResponse
describeReplicationGroupsResponse_marker = (DescribeReplicationGroupsResponse -> Maybe Text)
-> (DescribeReplicationGroupsResponse
-> Maybe Text -> DescribeReplicationGroupsResponse)
-> Lens' DescribeReplicationGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationGroupsResponse' :: DescribeReplicationGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationGroupsResponse
s@DescribeReplicationGroupsResponse' {} Maybe Text
a -> DescribeReplicationGroupsResponse
s {$sel:marker:DescribeReplicationGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationGroupsResponse)
describeReplicationGroupsResponse_replicationGroups :: Lens.Lens' DescribeReplicationGroupsResponse (Prelude.Maybe [ReplicationGroup])
describeReplicationGroupsResponse_replicationGroups :: (Maybe [ReplicationGroup] -> f (Maybe [ReplicationGroup]))
-> DescribeReplicationGroupsResponse
-> f DescribeReplicationGroupsResponse
describeReplicationGroupsResponse_replicationGroups = (DescribeReplicationGroupsResponse -> Maybe [ReplicationGroup])
-> (DescribeReplicationGroupsResponse
-> Maybe [ReplicationGroup] -> DescribeReplicationGroupsResponse)
-> Lens'
DescribeReplicationGroupsResponse (Maybe [ReplicationGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroupsResponse' {Maybe [ReplicationGroup]
replicationGroups :: Maybe [ReplicationGroup]
$sel:replicationGroups:DescribeReplicationGroupsResponse' :: DescribeReplicationGroupsResponse -> Maybe [ReplicationGroup]
replicationGroups} -> Maybe [ReplicationGroup]
replicationGroups) (\s :: DescribeReplicationGroupsResponse
s@DescribeReplicationGroupsResponse' {} Maybe [ReplicationGroup]
a -> DescribeReplicationGroupsResponse
s {$sel:replicationGroups:DescribeReplicationGroupsResponse' :: Maybe [ReplicationGroup]
replicationGroups = Maybe [ReplicationGroup]
a} :: DescribeReplicationGroupsResponse) ((Maybe [ReplicationGroup] -> f (Maybe [ReplicationGroup]))
-> DescribeReplicationGroupsResponse
-> f DescribeReplicationGroupsResponse)
-> ((Maybe [ReplicationGroup] -> f (Maybe [ReplicationGroup]))
-> Maybe [ReplicationGroup] -> f (Maybe [ReplicationGroup]))
-> (Maybe [ReplicationGroup] -> f (Maybe [ReplicationGroup]))
-> DescribeReplicationGroupsResponse
-> f DescribeReplicationGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReplicationGroup]
[ReplicationGroup]
[ReplicationGroup]
[ReplicationGroup]
-> Iso
(Maybe [ReplicationGroup])
(Maybe [ReplicationGroup])
(Maybe [ReplicationGroup])
(Maybe [ReplicationGroup])
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
[ReplicationGroup]
[ReplicationGroup]
[ReplicationGroup]
[ReplicationGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReplicationGroupsResponse_httpStatus :: Lens.Lens' DescribeReplicationGroupsResponse Prelude.Int
describeReplicationGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeReplicationGroupsResponse
-> f DescribeReplicationGroupsResponse
describeReplicationGroupsResponse_httpStatus = (DescribeReplicationGroupsResponse -> Int)
-> (DescribeReplicationGroupsResponse
-> Int -> DescribeReplicationGroupsResponse)
-> Lens
DescribeReplicationGroupsResponse
DescribeReplicationGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReplicationGroupsResponse' :: DescribeReplicationGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReplicationGroupsResponse
s@DescribeReplicationGroupsResponse' {} Int
a -> DescribeReplicationGroupsResponse
s {$sel:httpStatus:DescribeReplicationGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeReplicationGroupsResponse)
instance
Prelude.NFData
DescribeReplicationGroupsResponse