{-# 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.KafkaConnect.ListConnectors
(
ListConnectors (..),
newListConnectors,
listConnectors_connectorNamePrefix,
listConnectors_nextToken,
listConnectors_maxResults,
ListConnectorsResponse (..),
newListConnectorsResponse,
listConnectorsResponse_connectors,
listConnectorsResponse_nextToken,
listConnectorsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KafkaConnect.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 ListConnectors = ListConnectors'
{
ListConnectors -> Maybe Text
connectorNamePrefix :: Prelude.Maybe Prelude.Text,
ListConnectors -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListConnectors -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListConnectors -> ListConnectors -> Bool
(ListConnectors -> ListConnectors -> Bool)
-> (ListConnectors -> ListConnectors -> Bool) -> Eq ListConnectors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConnectors -> ListConnectors -> Bool
$c/= :: ListConnectors -> ListConnectors -> Bool
== :: ListConnectors -> ListConnectors -> Bool
$c== :: ListConnectors -> ListConnectors -> Bool
Prelude.Eq, ReadPrec [ListConnectors]
ReadPrec ListConnectors
Int -> ReadS ListConnectors
ReadS [ListConnectors]
(Int -> ReadS ListConnectors)
-> ReadS [ListConnectors]
-> ReadPrec ListConnectors
-> ReadPrec [ListConnectors]
-> Read ListConnectors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConnectors]
$creadListPrec :: ReadPrec [ListConnectors]
readPrec :: ReadPrec ListConnectors
$creadPrec :: ReadPrec ListConnectors
readList :: ReadS [ListConnectors]
$creadList :: ReadS [ListConnectors]
readsPrec :: Int -> ReadS ListConnectors
$creadsPrec :: Int -> ReadS ListConnectors
Prelude.Read, Int -> ListConnectors -> ShowS
[ListConnectors] -> ShowS
ListConnectors -> String
(Int -> ListConnectors -> ShowS)
-> (ListConnectors -> String)
-> ([ListConnectors] -> ShowS)
-> Show ListConnectors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConnectors] -> ShowS
$cshowList :: [ListConnectors] -> ShowS
show :: ListConnectors -> String
$cshow :: ListConnectors -> String
showsPrec :: Int -> ListConnectors -> ShowS
$cshowsPrec :: Int -> ListConnectors -> ShowS
Prelude.Show, (forall x. ListConnectors -> Rep ListConnectors x)
-> (forall x. Rep ListConnectors x -> ListConnectors)
-> Generic ListConnectors
forall x. Rep ListConnectors x -> ListConnectors
forall x. ListConnectors -> Rep ListConnectors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConnectors x -> ListConnectors
$cfrom :: forall x. ListConnectors -> Rep ListConnectors x
Prelude.Generic)
newListConnectors ::
ListConnectors
newListConnectors :: ListConnectors
newListConnectors =
ListConnectors' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListConnectors
ListConnectors'
{ $sel:connectorNamePrefix:ListConnectors' :: Maybe Text
connectorNamePrefix =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListConnectors' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListConnectors' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listConnectors_connectorNamePrefix :: Lens.Lens' ListConnectors (Prelude.Maybe Prelude.Text)
listConnectors_connectorNamePrefix :: (Maybe Text -> f (Maybe Text))
-> ListConnectors -> f ListConnectors
listConnectors_connectorNamePrefix = (ListConnectors -> Maybe Text)
-> (ListConnectors -> Maybe Text -> ListConnectors)
-> Lens ListConnectors ListConnectors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectors' {Maybe Text
connectorNamePrefix :: Maybe Text
$sel:connectorNamePrefix:ListConnectors' :: ListConnectors -> Maybe Text
connectorNamePrefix} -> Maybe Text
connectorNamePrefix) (\s :: ListConnectors
s@ListConnectors' {} Maybe Text
a -> ListConnectors
s {$sel:connectorNamePrefix:ListConnectors' :: Maybe Text
connectorNamePrefix = Maybe Text
a} :: ListConnectors)
listConnectors_nextToken :: Lens.Lens' ListConnectors (Prelude.Maybe Prelude.Text)
listConnectors_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConnectors -> f ListConnectors
listConnectors_nextToken = (ListConnectors -> Maybe Text)
-> (ListConnectors -> Maybe Text -> ListConnectors)
-> Lens ListConnectors ListConnectors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectors' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConnectors' :: ListConnectors -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConnectors
s@ListConnectors' {} Maybe Text
a -> ListConnectors
s {$sel:nextToken:ListConnectors' :: Maybe Text
nextToken = Maybe Text
a} :: ListConnectors)
listConnectors_maxResults :: Lens.Lens' ListConnectors (Prelude.Maybe Prelude.Natural)
listConnectors_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListConnectors -> f ListConnectors
listConnectors_maxResults = (ListConnectors -> Maybe Natural)
-> (ListConnectors -> Maybe Natural -> ListConnectors)
-> Lens
ListConnectors ListConnectors (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectors' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConnectors' :: ListConnectors -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConnectors
s@ListConnectors' {} Maybe Natural
a -> ListConnectors
s {$sel:maxResults:ListConnectors' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConnectors)
instance Core.AWSPager ListConnectors where
page :: ListConnectors
-> AWSResponse ListConnectors -> Maybe ListConnectors
page ListConnectors
rq AWSResponse ListConnectors
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListConnectors
ListConnectorsResponse
rs
ListConnectorsResponse
-> Getting (First Text) ListConnectorsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConnectorsResponse
-> Const (First Text) ListConnectorsResponse
Lens' ListConnectorsResponse (Maybe Text)
listConnectorsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListConnectorsResponse
-> Const (First Text) ListConnectorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConnectorsResponse 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 ListConnectors
forall a. Maybe a
Prelude.Nothing
| Maybe [ConnectorSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListConnectors
ListConnectorsResponse
rs
ListConnectorsResponse
-> Getting
(First [ConnectorSummary])
ListConnectorsResponse
[ConnectorSummary]
-> Maybe [ConnectorSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ConnectorSummary]
-> Const (First [ConnectorSummary]) (Maybe [ConnectorSummary]))
-> ListConnectorsResponse
-> Const (First [ConnectorSummary]) ListConnectorsResponse
Lens' ListConnectorsResponse (Maybe [ConnectorSummary])
listConnectorsResponse_connectors
((Maybe [ConnectorSummary]
-> Const (First [ConnectorSummary]) (Maybe [ConnectorSummary]))
-> ListConnectorsResponse
-> Const (First [ConnectorSummary]) ListConnectorsResponse)
-> (([ConnectorSummary]
-> Const (First [ConnectorSummary]) [ConnectorSummary])
-> Maybe [ConnectorSummary]
-> Const (First [ConnectorSummary]) (Maybe [ConnectorSummary]))
-> Getting
(First [ConnectorSummary])
ListConnectorsResponse
[ConnectorSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConnectorSummary]
-> Const (First [ConnectorSummary]) [ConnectorSummary])
-> Maybe [ConnectorSummary]
-> Const (First [ConnectorSummary]) (Maybe [ConnectorSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListConnectors
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListConnectors -> Maybe ListConnectors
forall a. a -> Maybe a
Prelude.Just (ListConnectors -> Maybe ListConnectors)
-> ListConnectors -> Maybe ListConnectors
forall a b. (a -> b) -> a -> b
Prelude.$
ListConnectors
rq
ListConnectors
-> (ListConnectors -> ListConnectors) -> ListConnectors
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListConnectors -> Identity ListConnectors
Lens ListConnectors ListConnectors (Maybe Text) (Maybe Text)
listConnectors_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListConnectors -> Identity ListConnectors)
-> Maybe Text -> ListConnectors -> ListConnectors
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListConnectors
ListConnectorsResponse
rs
ListConnectorsResponse
-> Getting (First Text) ListConnectorsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConnectorsResponse
-> Const (First Text) ListConnectorsResponse
Lens' ListConnectorsResponse (Maybe Text)
listConnectorsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListConnectorsResponse
-> Const (First Text) ListConnectorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConnectorsResponse 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 ListConnectors where
type
AWSResponse ListConnectors =
ListConnectorsResponse
request :: ListConnectors -> Request ListConnectors
request = Service -> ListConnectors -> Request ListConnectors
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListConnectors
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListConnectors)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListConnectors))
-> Logger
-> Service
-> Proxy ListConnectors
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListConnectors)))
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 [ConnectorSummary]
-> Maybe Text -> Int -> ListConnectorsResponse
ListConnectorsResponse'
(Maybe [ConnectorSummary]
-> Maybe Text -> Int -> ListConnectorsResponse)
-> Either String (Maybe [ConnectorSummary])
-> Either String (Maybe Text -> Int -> ListConnectorsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ConnectorSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"connectors" Either String (Maybe (Maybe [ConnectorSummary]))
-> Maybe [ConnectorSummary]
-> Either String (Maybe [ConnectorSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConnectorSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListConnectorsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListConnectorsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"nextToken")
Either String (Int -> ListConnectorsResponse)
-> Either String Int -> Either String ListConnectorsResponse
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 ListConnectors
instance Prelude.NFData ListConnectors
instance Core.ToHeaders ListConnectors where
toHeaders :: ListConnectors -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListConnectors -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListConnectors where
toPath :: ListConnectors -> ByteString
toPath = ByteString -> ListConnectors -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/connectors"
instance Core.ToQuery ListConnectors where
toQuery :: ListConnectors -> QueryString
toQuery ListConnectors' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
connectorNamePrefix :: Maybe Text
$sel:maxResults:ListConnectors' :: ListConnectors -> Maybe Natural
$sel:nextToken:ListConnectors' :: ListConnectors -> Maybe Text
$sel:connectorNamePrefix:ListConnectors' :: ListConnectors -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"connectorNamePrefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
connectorNamePrefix,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListConnectorsResponse = ListConnectorsResponse'
{
ListConnectorsResponse -> Maybe [ConnectorSummary]
connectors :: Prelude.Maybe [ConnectorSummary],
ListConnectorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListConnectorsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListConnectorsResponse -> ListConnectorsResponse -> Bool
(ListConnectorsResponse -> ListConnectorsResponse -> Bool)
-> (ListConnectorsResponse -> ListConnectorsResponse -> Bool)
-> Eq ListConnectorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConnectorsResponse -> ListConnectorsResponse -> Bool
$c/= :: ListConnectorsResponse -> ListConnectorsResponse -> Bool
== :: ListConnectorsResponse -> ListConnectorsResponse -> Bool
$c== :: ListConnectorsResponse -> ListConnectorsResponse -> Bool
Prelude.Eq, ReadPrec [ListConnectorsResponse]
ReadPrec ListConnectorsResponse
Int -> ReadS ListConnectorsResponse
ReadS [ListConnectorsResponse]
(Int -> ReadS ListConnectorsResponse)
-> ReadS [ListConnectorsResponse]
-> ReadPrec ListConnectorsResponse
-> ReadPrec [ListConnectorsResponse]
-> Read ListConnectorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConnectorsResponse]
$creadListPrec :: ReadPrec [ListConnectorsResponse]
readPrec :: ReadPrec ListConnectorsResponse
$creadPrec :: ReadPrec ListConnectorsResponse
readList :: ReadS [ListConnectorsResponse]
$creadList :: ReadS [ListConnectorsResponse]
readsPrec :: Int -> ReadS ListConnectorsResponse
$creadsPrec :: Int -> ReadS ListConnectorsResponse
Prelude.Read, Int -> ListConnectorsResponse -> ShowS
[ListConnectorsResponse] -> ShowS
ListConnectorsResponse -> String
(Int -> ListConnectorsResponse -> ShowS)
-> (ListConnectorsResponse -> String)
-> ([ListConnectorsResponse] -> ShowS)
-> Show ListConnectorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConnectorsResponse] -> ShowS
$cshowList :: [ListConnectorsResponse] -> ShowS
show :: ListConnectorsResponse -> String
$cshow :: ListConnectorsResponse -> String
showsPrec :: Int -> ListConnectorsResponse -> ShowS
$cshowsPrec :: Int -> ListConnectorsResponse -> ShowS
Prelude.Show, (forall x. ListConnectorsResponse -> Rep ListConnectorsResponse x)
-> (forall x.
Rep ListConnectorsResponse x -> ListConnectorsResponse)
-> Generic ListConnectorsResponse
forall x. Rep ListConnectorsResponse x -> ListConnectorsResponse
forall x. ListConnectorsResponse -> Rep ListConnectorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConnectorsResponse x -> ListConnectorsResponse
$cfrom :: forall x. ListConnectorsResponse -> Rep ListConnectorsResponse x
Prelude.Generic)
newListConnectorsResponse ::
Prelude.Int ->
ListConnectorsResponse
newListConnectorsResponse :: Int -> ListConnectorsResponse
newListConnectorsResponse Int
pHttpStatus_ =
ListConnectorsResponse' :: Maybe [ConnectorSummary]
-> Maybe Text -> Int -> ListConnectorsResponse
ListConnectorsResponse'
{ $sel:connectors:ListConnectorsResponse' :: Maybe [ConnectorSummary]
connectors =
Maybe [ConnectorSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListConnectorsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListConnectorsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listConnectorsResponse_connectors :: Lens.Lens' ListConnectorsResponse (Prelude.Maybe [ConnectorSummary])
listConnectorsResponse_connectors :: (Maybe [ConnectorSummary] -> f (Maybe [ConnectorSummary]))
-> ListConnectorsResponse -> f ListConnectorsResponse
listConnectorsResponse_connectors = (ListConnectorsResponse -> Maybe [ConnectorSummary])
-> (ListConnectorsResponse
-> Maybe [ConnectorSummary] -> ListConnectorsResponse)
-> Lens' ListConnectorsResponse (Maybe [ConnectorSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectorsResponse' {Maybe [ConnectorSummary]
connectors :: Maybe [ConnectorSummary]
$sel:connectors:ListConnectorsResponse' :: ListConnectorsResponse -> Maybe [ConnectorSummary]
connectors} -> Maybe [ConnectorSummary]
connectors) (\s :: ListConnectorsResponse
s@ListConnectorsResponse' {} Maybe [ConnectorSummary]
a -> ListConnectorsResponse
s {$sel:connectors:ListConnectorsResponse' :: Maybe [ConnectorSummary]
connectors = Maybe [ConnectorSummary]
a} :: ListConnectorsResponse) ((Maybe [ConnectorSummary] -> f (Maybe [ConnectorSummary]))
-> ListConnectorsResponse -> f ListConnectorsResponse)
-> ((Maybe [ConnectorSummary] -> f (Maybe [ConnectorSummary]))
-> Maybe [ConnectorSummary] -> f (Maybe [ConnectorSummary]))
-> (Maybe [ConnectorSummary] -> f (Maybe [ConnectorSummary]))
-> ListConnectorsResponse
-> f ListConnectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ConnectorSummary]
[ConnectorSummary]
[ConnectorSummary]
[ConnectorSummary]
-> Iso
(Maybe [ConnectorSummary])
(Maybe [ConnectorSummary])
(Maybe [ConnectorSummary])
(Maybe [ConnectorSummary])
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
[ConnectorSummary]
[ConnectorSummary]
[ConnectorSummary]
[ConnectorSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listConnectorsResponse_nextToken :: Lens.Lens' ListConnectorsResponse (Prelude.Maybe Prelude.Text)
listConnectorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConnectorsResponse -> f ListConnectorsResponse
listConnectorsResponse_nextToken = (ListConnectorsResponse -> Maybe Text)
-> (ListConnectorsResponse -> Maybe Text -> ListConnectorsResponse)
-> Lens' ListConnectorsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConnectorsResponse' :: ListConnectorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConnectorsResponse
s@ListConnectorsResponse' {} Maybe Text
a -> ListConnectorsResponse
s {$sel:nextToken:ListConnectorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConnectorsResponse)
listConnectorsResponse_httpStatus :: Lens.Lens' ListConnectorsResponse Prelude.Int
listConnectorsResponse_httpStatus :: (Int -> f Int)
-> ListConnectorsResponse -> f ListConnectorsResponse
listConnectorsResponse_httpStatus = (ListConnectorsResponse -> Int)
-> (ListConnectorsResponse -> Int -> ListConnectorsResponse)
-> Lens ListConnectorsResponse ListConnectorsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConnectorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListConnectorsResponse' :: ListConnectorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListConnectorsResponse
s@ListConnectorsResponse' {} Int
a -> ListConnectorsResponse
s {$sel:httpStatus:ListConnectorsResponse' :: Int
httpStatus = Int
a} :: ListConnectorsResponse)
instance Prelude.NFData ListConnectorsResponse