{-# 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.DMS.DescribeReplicationSubnetGroups
(
DescribeReplicationSubnetGroups (..),
newDescribeReplicationSubnetGroups,
describeReplicationSubnetGroups_filters,
describeReplicationSubnetGroups_marker,
describeReplicationSubnetGroups_maxRecords,
DescribeReplicationSubnetGroupsResponse (..),
newDescribeReplicationSubnetGroupsResponse,
describeReplicationSubnetGroupsResponse_marker,
describeReplicationSubnetGroupsResponse_replicationSubnetGroups,
describeReplicationSubnetGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.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 DescribeReplicationSubnetGroups = DescribeReplicationSubnetGroups'
{
DescribeReplicationSubnetGroups -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribeReplicationSubnetGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReplicationSubnetGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int
}
deriving (DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool
(DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool)
-> (DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool)
-> Eq DescribeReplicationSubnetGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool
$c/= :: DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool
== :: DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool
$c== :: DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationSubnetGroups]
ReadPrec DescribeReplicationSubnetGroups
Int -> ReadS DescribeReplicationSubnetGroups
ReadS [DescribeReplicationSubnetGroups]
(Int -> ReadS DescribeReplicationSubnetGroups)
-> ReadS [DescribeReplicationSubnetGroups]
-> ReadPrec DescribeReplicationSubnetGroups
-> ReadPrec [DescribeReplicationSubnetGroups]
-> Read DescribeReplicationSubnetGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationSubnetGroups]
$creadListPrec :: ReadPrec [DescribeReplicationSubnetGroups]
readPrec :: ReadPrec DescribeReplicationSubnetGroups
$creadPrec :: ReadPrec DescribeReplicationSubnetGroups
readList :: ReadS [DescribeReplicationSubnetGroups]
$creadList :: ReadS [DescribeReplicationSubnetGroups]
readsPrec :: Int -> ReadS DescribeReplicationSubnetGroups
$creadsPrec :: Int -> ReadS DescribeReplicationSubnetGroups
Prelude.Read, Int -> DescribeReplicationSubnetGroups -> ShowS
[DescribeReplicationSubnetGroups] -> ShowS
DescribeReplicationSubnetGroups -> String
(Int -> DescribeReplicationSubnetGroups -> ShowS)
-> (DescribeReplicationSubnetGroups -> String)
-> ([DescribeReplicationSubnetGroups] -> ShowS)
-> Show DescribeReplicationSubnetGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationSubnetGroups] -> ShowS
$cshowList :: [DescribeReplicationSubnetGroups] -> ShowS
show :: DescribeReplicationSubnetGroups -> String
$cshow :: DescribeReplicationSubnetGroups -> String
showsPrec :: Int -> DescribeReplicationSubnetGroups -> ShowS
$cshowsPrec :: Int -> DescribeReplicationSubnetGroups -> ShowS
Prelude.Show, (forall x.
DescribeReplicationSubnetGroups
-> Rep DescribeReplicationSubnetGroups x)
-> (forall x.
Rep DescribeReplicationSubnetGroups x
-> DescribeReplicationSubnetGroups)
-> Generic DescribeReplicationSubnetGroups
forall x.
Rep DescribeReplicationSubnetGroups x
-> DescribeReplicationSubnetGroups
forall x.
DescribeReplicationSubnetGroups
-> Rep DescribeReplicationSubnetGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationSubnetGroups x
-> DescribeReplicationSubnetGroups
$cfrom :: forall x.
DescribeReplicationSubnetGroups
-> Rep DescribeReplicationSubnetGroups x
Prelude.Generic)
newDescribeReplicationSubnetGroups ::
DescribeReplicationSubnetGroups
newDescribeReplicationSubnetGroups :: DescribeReplicationSubnetGroups
newDescribeReplicationSubnetGroups =
DescribeReplicationSubnetGroups' :: Maybe [Filter]
-> Maybe Text -> Maybe Int -> DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroups'
{ $sel:filters:DescribeReplicationSubnetGroups' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeReplicationSubnetGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeReplicationSubnetGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeReplicationSubnetGroups_filters :: Lens.Lens' DescribeReplicationSubnetGroups (Prelude.Maybe [Filter])
describeReplicationSubnetGroups_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReplicationSubnetGroups
-> f DescribeReplicationSubnetGroups
describeReplicationSubnetGroups_filters = (DescribeReplicationSubnetGroups -> Maybe [Filter])
-> (DescribeReplicationSubnetGroups
-> Maybe [Filter] -> DescribeReplicationSubnetGroups)
-> Lens
DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroups
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroups' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeReplicationSubnetGroups
s@DescribeReplicationSubnetGroups' {} Maybe [Filter]
a -> DescribeReplicationSubnetGroups
s {$sel:filters:DescribeReplicationSubnetGroups' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeReplicationSubnetGroups) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReplicationSubnetGroups
-> f DescribeReplicationSubnetGroups)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeReplicationSubnetGroups
-> f DescribeReplicationSubnetGroups
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
describeReplicationSubnetGroups_marker :: Lens.Lens' DescribeReplicationSubnetGroups (Prelude.Maybe Prelude.Text)
describeReplicationSubnetGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationSubnetGroups
-> f DescribeReplicationSubnetGroups
describeReplicationSubnetGroups_marker = (DescribeReplicationSubnetGroups -> Maybe Text)
-> (DescribeReplicationSubnetGroups
-> Maybe Text -> DescribeReplicationSubnetGroups)
-> Lens
DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationSubnetGroups
s@DescribeReplicationSubnetGroups' {} Maybe Text
a -> DescribeReplicationSubnetGroups
s {$sel:marker:DescribeReplicationSubnetGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationSubnetGroups)
describeReplicationSubnetGroups_maxRecords :: Lens.Lens' DescribeReplicationSubnetGroups (Prelude.Maybe Prelude.Int)
describeReplicationSubnetGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeReplicationSubnetGroups
-> f DescribeReplicationSubnetGroups
describeReplicationSubnetGroups_maxRecords = (DescribeReplicationSubnetGroups -> Maybe Int)
-> (DescribeReplicationSubnetGroups
-> Maybe Int -> DescribeReplicationSubnetGroups)
-> Lens
DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroups
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeReplicationSubnetGroups
s@DescribeReplicationSubnetGroups' {} Maybe Int
a -> DescribeReplicationSubnetGroups
s {$sel:maxRecords:DescribeReplicationSubnetGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeReplicationSubnetGroups)
instance
Core.AWSPager
DescribeReplicationSubnetGroups
where
page :: DescribeReplicationSubnetGroups
-> AWSResponse DescribeReplicationSubnetGroups
-> Maybe DescribeReplicationSubnetGroups
page DescribeReplicationSubnetGroups
rq AWSResponse DescribeReplicationSubnetGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroupsResponse
rs
DescribeReplicationSubnetGroupsResponse
-> Getting
(First Text) DescribeReplicationSubnetGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationSubnetGroupsResponse
-> Const (First Text) DescribeReplicationSubnetGroupsResponse
Lens' DescribeReplicationSubnetGroupsResponse (Maybe Text)
describeReplicationSubnetGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationSubnetGroupsResponse
-> Const (First Text) DescribeReplicationSubnetGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeReplicationSubnetGroupsResponse 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 DescribeReplicationSubnetGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [ReplicationSubnetGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroupsResponse
rs
DescribeReplicationSubnetGroupsResponse
-> Getting
(First [ReplicationSubnetGroup])
DescribeReplicationSubnetGroupsResponse
[ReplicationSubnetGroup]
-> Maybe [ReplicationSubnetGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ReplicationSubnetGroup]
-> Const
(First [ReplicationSubnetGroup]) (Maybe [ReplicationSubnetGroup]))
-> DescribeReplicationSubnetGroupsResponse
-> Const
(First [ReplicationSubnetGroup])
DescribeReplicationSubnetGroupsResponse
Lens'
DescribeReplicationSubnetGroupsResponse
(Maybe [ReplicationSubnetGroup])
describeReplicationSubnetGroupsResponse_replicationSubnetGroups
((Maybe [ReplicationSubnetGroup]
-> Const
(First [ReplicationSubnetGroup]) (Maybe [ReplicationSubnetGroup]))
-> DescribeReplicationSubnetGroupsResponse
-> Const
(First [ReplicationSubnetGroup])
DescribeReplicationSubnetGroupsResponse)
-> (([ReplicationSubnetGroup]
-> Const (First [ReplicationSubnetGroup]) [ReplicationSubnetGroup])
-> Maybe [ReplicationSubnetGroup]
-> Const
(First [ReplicationSubnetGroup]) (Maybe [ReplicationSubnetGroup]))
-> Getting
(First [ReplicationSubnetGroup])
DescribeReplicationSubnetGroupsResponse
[ReplicationSubnetGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ReplicationSubnetGroup]
-> Const (First [ReplicationSubnetGroup]) [ReplicationSubnetGroup])
-> Maybe [ReplicationSubnetGroup]
-> Const
(First [ReplicationSubnetGroup]) (Maybe [ReplicationSubnetGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeReplicationSubnetGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeReplicationSubnetGroups
-> Maybe DescribeReplicationSubnetGroups
forall a. a -> Maybe a
Prelude.Just (DescribeReplicationSubnetGroups
-> Maybe DescribeReplicationSubnetGroups)
-> DescribeReplicationSubnetGroups
-> Maybe DescribeReplicationSubnetGroups
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeReplicationSubnetGroups
rq
DescribeReplicationSubnetGroups
-> (DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups)
-> DescribeReplicationSubnetGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeReplicationSubnetGroups
-> Identity DescribeReplicationSubnetGroups
Lens
DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroups
(Maybe Text)
(Maybe Text)
describeReplicationSubnetGroups_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeReplicationSubnetGroups
-> Identity DescribeReplicationSubnetGroups)
-> Maybe Text
-> DescribeReplicationSubnetGroups
-> DescribeReplicationSubnetGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeReplicationSubnetGroups
DescribeReplicationSubnetGroupsResponse
rs
DescribeReplicationSubnetGroupsResponse
-> Getting
(First Text) DescribeReplicationSubnetGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationSubnetGroupsResponse
-> Const (First Text) DescribeReplicationSubnetGroupsResponse
Lens' DescribeReplicationSubnetGroupsResponse (Maybe Text)
describeReplicationSubnetGroupsResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeReplicationSubnetGroupsResponse
-> Const (First Text) DescribeReplicationSubnetGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeReplicationSubnetGroupsResponse 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
DescribeReplicationSubnetGroups
where
type
AWSResponse DescribeReplicationSubnetGroups =
DescribeReplicationSubnetGroupsResponse
request :: DescribeReplicationSubnetGroups
-> Request DescribeReplicationSubnetGroups
request = Service
-> DescribeReplicationSubnetGroups
-> Request DescribeReplicationSubnetGroups
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeReplicationSubnetGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeReplicationSubnetGroups)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeReplicationSubnetGroups))
-> Logger
-> Service
-> Proxy DescribeReplicationSubnetGroups
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeReplicationSubnetGroups)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [ReplicationSubnetGroup]
-> Int
-> DescribeReplicationSubnetGroupsResponse
DescribeReplicationSubnetGroupsResponse'
(Maybe Text
-> Maybe [ReplicationSubnetGroup]
-> Int
-> DescribeReplicationSubnetGroupsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ReplicationSubnetGroup]
-> Int -> DescribeReplicationSubnetGroupsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Marker")
Either
String
(Maybe [ReplicationSubnetGroup]
-> Int -> DescribeReplicationSubnetGroupsResponse)
-> Either String (Maybe [ReplicationSubnetGroup])
-> Either String (Int -> DescribeReplicationSubnetGroupsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ReplicationSubnetGroup]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReplicationSubnetGroups"
Either String (Maybe (Maybe [ReplicationSubnetGroup]))
-> Maybe [ReplicationSubnetGroup]
-> Either String (Maybe [ReplicationSubnetGroup])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ReplicationSubnetGroup]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeReplicationSubnetGroupsResponse)
-> Either String Int
-> Either String DescribeReplicationSubnetGroupsResponse
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
DescribeReplicationSubnetGroups
instance
Prelude.NFData
DescribeReplicationSubnetGroups
instance
Core.ToHeaders
DescribeReplicationSubnetGroups
where
toHeaders :: DescribeReplicationSubnetGroups -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeReplicationSubnetGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonDMSv20160101.DescribeReplicationSubnetGroups" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeReplicationSubnetGroups where
toJSON :: DescribeReplicationSubnetGroups -> Value
toJSON DescribeReplicationSubnetGroups' {Maybe Int
Maybe [Filter]
Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:maxRecords:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe Int
$sel:marker:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe Text
$sel:filters:DescribeReplicationSubnetGroups' :: DescribeReplicationSubnetGroups -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(Text
"Marker" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
marker,
(Text
"MaxRecords" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRecords
]
)
instance Core.ToPath DescribeReplicationSubnetGroups where
toPath :: DescribeReplicationSubnetGroups -> ByteString
toPath = ByteString -> DescribeReplicationSubnetGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeReplicationSubnetGroups where
toQuery :: DescribeReplicationSubnetGroups -> QueryString
toQuery = QueryString -> DescribeReplicationSubnetGroups -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeReplicationSubnetGroupsResponse = DescribeReplicationSubnetGroupsResponse'
{
DescribeReplicationSubnetGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeReplicationSubnetGroupsResponse
-> Maybe [ReplicationSubnetGroup]
replicationSubnetGroups :: Prelude.Maybe [ReplicationSubnetGroup],
DescribeReplicationSubnetGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool
(DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool)
-> (DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool)
-> Eq DescribeReplicationSubnetGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool
$c/= :: DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool
== :: DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool
$c== :: DescribeReplicationSubnetGroupsResponse
-> DescribeReplicationSubnetGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeReplicationSubnetGroupsResponse]
ReadPrec DescribeReplicationSubnetGroupsResponse
Int -> ReadS DescribeReplicationSubnetGroupsResponse
ReadS [DescribeReplicationSubnetGroupsResponse]
(Int -> ReadS DescribeReplicationSubnetGroupsResponse)
-> ReadS [DescribeReplicationSubnetGroupsResponse]
-> ReadPrec DescribeReplicationSubnetGroupsResponse
-> ReadPrec [DescribeReplicationSubnetGroupsResponse]
-> Read DescribeReplicationSubnetGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeReplicationSubnetGroupsResponse]
$creadListPrec :: ReadPrec [DescribeReplicationSubnetGroupsResponse]
readPrec :: ReadPrec DescribeReplicationSubnetGroupsResponse
$creadPrec :: ReadPrec DescribeReplicationSubnetGroupsResponse
readList :: ReadS [DescribeReplicationSubnetGroupsResponse]
$creadList :: ReadS [DescribeReplicationSubnetGroupsResponse]
readsPrec :: Int -> ReadS DescribeReplicationSubnetGroupsResponse
$creadsPrec :: Int -> ReadS DescribeReplicationSubnetGroupsResponse
Prelude.Read, Int -> DescribeReplicationSubnetGroupsResponse -> ShowS
[DescribeReplicationSubnetGroupsResponse] -> ShowS
DescribeReplicationSubnetGroupsResponse -> String
(Int -> DescribeReplicationSubnetGroupsResponse -> ShowS)
-> (DescribeReplicationSubnetGroupsResponse -> String)
-> ([DescribeReplicationSubnetGroupsResponse] -> ShowS)
-> Show DescribeReplicationSubnetGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeReplicationSubnetGroupsResponse] -> ShowS
$cshowList :: [DescribeReplicationSubnetGroupsResponse] -> ShowS
show :: DescribeReplicationSubnetGroupsResponse -> String
$cshow :: DescribeReplicationSubnetGroupsResponse -> String
showsPrec :: Int -> DescribeReplicationSubnetGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeReplicationSubnetGroupsResponse -> ShowS
Prelude.Show, (forall x.
DescribeReplicationSubnetGroupsResponse
-> Rep DescribeReplicationSubnetGroupsResponse x)
-> (forall x.
Rep DescribeReplicationSubnetGroupsResponse x
-> DescribeReplicationSubnetGroupsResponse)
-> Generic DescribeReplicationSubnetGroupsResponse
forall x.
Rep DescribeReplicationSubnetGroupsResponse x
-> DescribeReplicationSubnetGroupsResponse
forall x.
DescribeReplicationSubnetGroupsResponse
-> Rep DescribeReplicationSubnetGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeReplicationSubnetGroupsResponse x
-> DescribeReplicationSubnetGroupsResponse
$cfrom :: forall x.
DescribeReplicationSubnetGroupsResponse
-> Rep DescribeReplicationSubnetGroupsResponse x
Prelude.Generic)
newDescribeReplicationSubnetGroupsResponse ::
Prelude.Int ->
DescribeReplicationSubnetGroupsResponse
newDescribeReplicationSubnetGroupsResponse :: Int -> DescribeReplicationSubnetGroupsResponse
newDescribeReplicationSubnetGroupsResponse
Int
pHttpStatus_ =
DescribeReplicationSubnetGroupsResponse' :: Maybe Text
-> Maybe [ReplicationSubnetGroup]
-> Int
-> DescribeReplicationSubnetGroupsResponse
DescribeReplicationSubnetGroupsResponse'
{ $sel:marker:DescribeReplicationSubnetGroupsResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationSubnetGroups:DescribeReplicationSubnetGroupsResponse' :: Maybe [ReplicationSubnetGroup]
replicationSubnetGroups =
Maybe [ReplicationSubnetGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeReplicationSubnetGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeReplicationSubnetGroupsResponse_marker :: Lens.Lens' DescribeReplicationSubnetGroupsResponse (Prelude.Maybe Prelude.Text)
describeReplicationSubnetGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeReplicationSubnetGroupsResponse
-> f DescribeReplicationSubnetGroupsResponse
describeReplicationSubnetGroupsResponse_marker = (DescribeReplicationSubnetGroupsResponse -> Maybe Text)
-> (DescribeReplicationSubnetGroupsResponse
-> Maybe Text -> DescribeReplicationSubnetGroupsResponse)
-> Lens' DescribeReplicationSubnetGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeReplicationSubnetGroupsResponse' :: DescribeReplicationSubnetGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeReplicationSubnetGroupsResponse
s@DescribeReplicationSubnetGroupsResponse' {} Maybe Text
a -> DescribeReplicationSubnetGroupsResponse
s {$sel:marker:DescribeReplicationSubnetGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeReplicationSubnetGroupsResponse)
describeReplicationSubnetGroupsResponse_replicationSubnetGroups :: Lens.Lens' DescribeReplicationSubnetGroupsResponse (Prelude.Maybe [ReplicationSubnetGroup])
describeReplicationSubnetGroupsResponse_replicationSubnetGroups :: (Maybe [ReplicationSubnetGroup]
-> f (Maybe [ReplicationSubnetGroup]))
-> DescribeReplicationSubnetGroupsResponse
-> f DescribeReplicationSubnetGroupsResponse
describeReplicationSubnetGroupsResponse_replicationSubnetGroups = (DescribeReplicationSubnetGroupsResponse
-> Maybe [ReplicationSubnetGroup])
-> (DescribeReplicationSubnetGroupsResponse
-> Maybe [ReplicationSubnetGroup]
-> DescribeReplicationSubnetGroupsResponse)
-> Lens'
DescribeReplicationSubnetGroupsResponse
(Maybe [ReplicationSubnetGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroupsResponse' {Maybe [ReplicationSubnetGroup]
replicationSubnetGroups :: Maybe [ReplicationSubnetGroup]
$sel:replicationSubnetGroups:DescribeReplicationSubnetGroupsResponse' :: DescribeReplicationSubnetGroupsResponse
-> Maybe [ReplicationSubnetGroup]
replicationSubnetGroups} -> Maybe [ReplicationSubnetGroup]
replicationSubnetGroups) (\s :: DescribeReplicationSubnetGroupsResponse
s@DescribeReplicationSubnetGroupsResponse' {} Maybe [ReplicationSubnetGroup]
a -> DescribeReplicationSubnetGroupsResponse
s {$sel:replicationSubnetGroups:DescribeReplicationSubnetGroupsResponse' :: Maybe [ReplicationSubnetGroup]
replicationSubnetGroups = Maybe [ReplicationSubnetGroup]
a} :: DescribeReplicationSubnetGroupsResponse) ((Maybe [ReplicationSubnetGroup]
-> f (Maybe [ReplicationSubnetGroup]))
-> DescribeReplicationSubnetGroupsResponse
-> f DescribeReplicationSubnetGroupsResponse)
-> ((Maybe [ReplicationSubnetGroup]
-> f (Maybe [ReplicationSubnetGroup]))
-> Maybe [ReplicationSubnetGroup]
-> f (Maybe [ReplicationSubnetGroup]))
-> (Maybe [ReplicationSubnetGroup]
-> f (Maybe [ReplicationSubnetGroup]))
-> DescribeReplicationSubnetGroupsResponse
-> f DescribeReplicationSubnetGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
-> Iso
(Maybe [ReplicationSubnetGroup])
(Maybe [ReplicationSubnetGroup])
(Maybe [ReplicationSubnetGroup])
(Maybe [ReplicationSubnetGroup])
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
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
[ReplicationSubnetGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeReplicationSubnetGroupsResponse_httpStatus :: Lens.Lens' DescribeReplicationSubnetGroupsResponse Prelude.Int
describeReplicationSubnetGroupsResponse_httpStatus :: (Int -> f Int)
-> DescribeReplicationSubnetGroupsResponse
-> f DescribeReplicationSubnetGroupsResponse
describeReplicationSubnetGroupsResponse_httpStatus = (DescribeReplicationSubnetGroupsResponse -> Int)
-> (DescribeReplicationSubnetGroupsResponse
-> Int -> DescribeReplicationSubnetGroupsResponse)
-> Lens
DescribeReplicationSubnetGroupsResponse
DescribeReplicationSubnetGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeReplicationSubnetGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeReplicationSubnetGroupsResponse' :: DescribeReplicationSubnetGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeReplicationSubnetGroupsResponse
s@DescribeReplicationSubnetGroupsResponse' {} Int
a -> DescribeReplicationSubnetGroupsResponse
s {$sel:httpStatus:DescribeReplicationSubnetGroupsResponse' :: Int
httpStatus = Int
a} :: DescribeReplicationSubnetGroupsResponse)
instance
Prelude.NFData
DescribeReplicationSubnetGroupsResponse