{-# 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.Glue.GetCrawlers
(
GetCrawlers (..),
newGetCrawlers,
getCrawlers_nextToken,
getCrawlers_maxResults,
GetCrawlersResponse (..),
newGetCrawlersResponse,
getCrawlersResponse_nextToken,
getCrawlersResponse_crawlers,
getCrawlersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.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 GetCrawlers = GetCrawlers'
{
GetCrawlers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCrawlers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetCrawlers -> GetCrawlers -> Bool
(GetCrawlers -> GetCrawlers -> Bool)
-> (GetCrawlers -> GetCrawlers -> Bool) -> Eq GetCrawlers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCrawlers -> GetCrawlers -> Bool
$c/= :: GetCrawlers -> GetCrawlers -> Bool
== :: GetCrawlers -> GetCrawlers -> Bool
$c== :: GetCrawlers -> GetCrawlers -> Bool
Prelude.Eq, ReadPrec [GetCrawlers]
ReadPrec GetCrawlers
Int -> ReadS GetCrawlers
ReadS [GetCrawlers]
(Int -> ReadS GetCrawlers)
-> ReadS [GetCrawlers]
-> ReadPrec GetCrawlers
-> ReadPrec [GetCrawlers]
-> Read GetCrawlers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCrawlers]
$creadListPrec :: ReadPrec [GetCrawlers]
readPrec :: ReadPrec GetCrawlers
$creadPrec :: ReadPrec GetCrawlers
readList :: ReadS [GetCrawlers]
$creadList :: ReadS [GetCrawlers]
readsPrec :: Int -> ReadS GetCrawlers
$creadsPrec :: Int -> ReadS GetCrawlers
Prelude.Read, Int -> GetCrawlers -> ShowS
[GetCrawlers] -> ShowS
GetCrawlers -> String
(Int -> GetCrawlers -> ShowS)
-> (GetCrawlers -> String)
-> ([GetCrawlers] -> ShowS)
-> Show GetCrawlers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCrawlers] -> ShowS
$cshowList :: [GetCrawlers] -> ShowS
show :: GetCrawlers -> String
$cshow :: GetCrawlers -> String
showsPrec :: Int -> GetCrawlers -> ShowS
$cshowsPrec :: Int -> GetCrawlers -> ShowS
Prelude.Show, (forall x. GetCrawlers -> Rep GetCrawlers x)
-> (forall x. Rep GetCrawlers x -> GetCrawlers)
-> Generic GetCrawlers
forall x. Rep GetCrawlers x -> GetCrawlers
forall x. GetCrawlers -> Rep GetCrawlers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCrawlers x -> GetCrawlers
$cfrom :: forall x. GetCrawlers -> Rep GetCrawlers x
Prelude.Generic)
newGetCrawlers ::
GetCrawlers
newGetCrawlers :: GetCrawlers
newGetCrawlers =
GetCrawlers' :: Maybe Text -> Maybe Natural -> GetCrawlers
GetCrawlers'
{ $sel:nextToken:GetCrawlers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetCrawlers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getCrawlers_nextToken :: Lens.Lens' GetCrawlers (Prelude.Maybe Prelude.Text)
getCrawlers_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetCrawlers -> f GetCrawlers
getCrawlers_nextToken = (GetCrawlers -> Maybe Text)
-> (GetCrawlers -> Maybe Text -> GetCrawlers)
-> Lens GetCrawlers GetCrawlers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCrawlers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetCrawlers' :: GetCrawlers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetCrawlers
s@GetCrawlers' {} Maybe Text
a -> GetCrawlers
s {$sel:nextToken:GetCrawlers' :: Maybe Text
nextToken = Maybe Text
a} :: GetCrawlers)
getCrawlers_maxResults :: Lens.Lens' GetCrawlers (Prelude.Maybe Prelude.Natural)
getCrawlers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetCrawlers -> f GetCrawlers
getCrawlers_maxResults = (GetCrawlers -> Maybe Natural)
-> (GetCrawlers -> Maybe Natural -> GetCrawlers)
-> Lens GetCrawlers GetCrawlers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCrawlers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetCrawlers' :: GetCrawlers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetCrawlers
s@GetCrawlers' {} Maybe Natural
a -> GetCrawlers
s {$sel:maxResults:GetCrawlers' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetCrawlers)
instance Core.AWSPager GetCrawlers where
page :: GetCrawlers -> AWSResponse GetCrawlers -> Maybe GetCrawlers
page GetCrawlers
rq AWSResponse GetCrawlers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetCrawlers
GetCrawlersResponse
rs
GetCrawlersResponse
-> Getting (First Text) GetCrawlersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetCrawlersResponse -> Const (First Text) GetCrawlersResponse
Lens' GetCrawlersResponse (Maybe Text)
getCrawlersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetCrawlersResponse -> Const (First Text) GetCrawlersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetCrawlersResponse 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 GetCrawlers
forall a. Maybe a
Prelude.Nothing
| Maybe [Crawler] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetCrawlers
GetCrawlersResponse
rs
GetCrawlersResponse
-> Getting (First [Crawler]) GetCrawlersResponse [Crawler]
-> Maybe [Crawler]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Crawler] -> Const (First [Crawler]) (Maybe [Crawler]))
-> GetCrawlersResponse
-> Const (First [Crawler]) GetCrawlersResponse
Lens' GetCrawlersResponse (Maybe [Crawler])
getCrawlersResponse_crawlers ((Maybe [Crawler] -> Const (First [Crawler]) (Maybe [Crawler]))
-> GetCrawlersResponse
-> Const (First [Crawler]) GetCrawlersResponse)
-> (([Crawler] -> Const (First [Crawler]) [Crawler])
-> Maybe [Crawler] -> Const (First [Crawler]) (Maybe [Crawler]))
-> Getting (First [Crawler]) GetCrawlersResponse [Crawler]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Crawler] -> Const (First [Crawler]) [Crawler])
-> Maybe [Crawler] -> Const (First [Crawler]) (Maybe [Crawler])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetCrawlers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetCrawlers -> Maybe GetCrawlers
forall a. a -> Maybe a
Prelude.Just (GetCrawlers -> Maybe GetCrawlers)
-> GetCrawlers -> Maybe GetCrawlers
forall a b. (a -> b) -> a -> b
Prelude.$
GetCrawlers
rq
GetCrawlers -> (GetCrawlers -> GetCrawlers) -> GetCrawlers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetCrawlers -> Identity GetCrawlers
Lens GetCrawlers GetCrawlers (Maybe Text) (Maybe Text)
getCrawlers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetCrawlers -> Identity GetCrawlers)
-> Maybe Text -> GetCrawlers -> GetCrawlers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetCrawlers
GetCrawlersResponse
rs
GetCrawlersResponse
-> Getting (First Text) GetCrawlersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetCrawlersResponse -> Const (First Text) GetCrawlersResponse
Lens' GetCrawlersResponse (Maybe Text)
getCrawlersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetCrawlersResponse -> Const (First Text) GetCrawlersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetCrawlersResponse 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 GetCrawlers where
type AWSResponse GetCrawlers = GetCrawlersResponse
request :: GetCrawlers -> Request GetCrawlers
request = Service -> GetCrawlers -> Request GetCrawlers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetCrawlers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetCrawlers))
-> Logger
-> Service
-> Proxy GetCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetCrawlers)))
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 [Crawler] -> Int -> GetCrawlersResponse
GetCrawlersResponse'
(Maybe Text -> Maybe [Crawler] -> Int -> GetCrawlersResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Crawler] -> Int -> GetCrawlersResponse)
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
"NextToken")
Either String (Maybe [Crawler] -> Int -> GetCrawlersResponse)
-> Either String (Maybe [Crawler])
-> Either String (Int -> GetCrawlersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Crawler]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Crawlers" Either String (Maybe (Maybe [Crawler]))
-> Maybe [Crawler] -> Either String (Maybe [Crawler])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Crawler]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetCrawlersResponse)
-> Either String Int -> Either String GetCrawlersResponse
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 GetCrawlers
instance Prelude.NFData GetCrawlers
instance Core.ToHeaders GetCrawlers where
toHeaders :: GetCrawlers -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetCrawlers -> 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
"AWSGlue.GetCrawlers" :: 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 GetCrawlers where
toJSON :: GetCrawlers -> Value
toJSON GetCrawlers' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:GetCrawlers' :: GetCrawlers -> Maybe Natural
$sel:nextToken:GetCrawlers' :: GetCrawlers -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath GetCrawlers where
toPath :: GetCrawlers -> ByteString
toPath = ByteString -> GetCrawlers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetCrawlers where
toQuery :: GetCrawlers -> QueryString
toQuery = QueryString -> GetCrawlers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetCrawlersResponse = GetCrawlersResponse'
{
GetCrawlersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetCrawlersResponse -> Maybe [Crawler]
crawlers :: Prelude.Maybe [Crawler],
GetCrawlersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetCrawlersResponse -> GetCrawlersResponse -> Bool
(GetCrawlersResponse -> GetCrawlersResponse -> Bool)
-> (GetCrawlersResponse -> GetCrawlersResponse -> Bool)
-> Eq GetCrawlersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCrawlersResponse -> GetCrawlersResponse -> Bool
$c/= :: GetCrawlersResponse -> GetCrawlersResponse -> Bool
== :: GetCrawlersResponse -> GetCrawlersResponse -> Bool
$c== :: GetCrawlersResponse -> GetCrawlersResponse -> Bool
Prelude.Eq, ReadPrec [GetCrawlersResponse]
ReadPrec GetCrawlersResponse
Int -> ReadS GetCrawlersResponse
ReadS [GetCrawlersResponse]
(Int -> ReadS GetCrawlersResponse)
-> ReadS [GetCrawlersResponse]
-> ReadPrec GetCrawlersResponse
-> ReadPrec [GetCrawlersResponse]
-> Read GetCrawlersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCrawlersResponse]
$creadListPrec :: ReadPrec [GetCrawlersResponse]
readPrec :: ReadPrec GetCrawlersResponse
$creadPrec :: ReadPrec GetCrawlersResponse
readList :: ReadS [GetCrawlersResponse]
$creadList :: ReadS [GetCrawlersResponse]
readsPrec :: Int -> ReadS GetCrawlersResponse
$creadsPrec :: Int -> ReadS GetCrawlersResponse
Prelude.Read, Int -> GetCrawlersResponse -> ShowS
[GetCrawlersResponse] -> ShowS
GetCrawlersResponse -> String
(Int -> GetCrawlersResponse -> ShowS)
-> (GetCrawlersResponse -> String)
-> ([GetCrawlersResponse] -> ShowS)
-> Show GetCrawlersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCrawlersResponse] -> ShowS
$cshowList :: [GetCrawlersResponse] -> ShowS
show :: GetCrawlersResponse -> String
$cshow :: GetCrawlersResponse -> String
showsPrec :: Int -> GetCrawlersResponse -> ShowS
$cshowsPrec :: Int -> GetCrawlersResponse -> ShowS
Prelude.Show, (forall x. GetCrawlersResponse -> Rep GetCrawlersResponse x)
-> (forall x. Rep GetCrawlersResponse x -> GetCrawlersResponse)
-> Generic GetCrawlersResponse
forall x. Rep GetCrawlersResponse x -> GetCrawlersResponse
forall x. GetCrawlersResponse -> Rep GetCrawlersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCrawlersResponse x -> GetCrawlersResponse
$cfrom :: forall x. GetCrawlersResponse -> Rep GetCrawlersResponse x
Prelude.Generic)
newGetCrawlersResponse ::
Prelude.Int ->
GetCrawlersResponse
newGetCrawlersResponse :: Int -> GetCrawlersResponse
newGetCrawlersResponse Int
pHttpStatus_ =
GetCrawlersResponse' :: Maybe Text -> Maybe [Crawler] -> Int -> GetCrawlersResponse
GetCrawlersResponse'
{ $sel:nextToken:GetCrawlersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:crawlers:GetCrawlersResponse' :: Maybe [Crawler]
crawlers = Maybe [Crawler]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetCrawlersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getCrawlersResponse_nextToken :: Lens.Lens' GetCrawlersResponse (Prelude.Maybe Prelude.Text)
getCrawlersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetCrawlersResponse -> f GetCrawlersResponse
getCrawlersResponse_nextToken = (GetCrawlersResponse -> Maybe Text)
-> (GetCrawlersResponse -> Maybe Text -> GetCrawlersResponse)
-> Lens' GetCrawlersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCrawlersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetCrawlersResponse' :: GetCrawlersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetCrawlersResponse
s@GetCrawlersResponse' {} Maybe Text
a -> GetCrawlersResponse
s {$sel:nextToken:GetCrawlersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetCrawlersResponse)
getCrawlersResponse_crawlers :: Lens.Lens' GetCrawlersResponse (Prelude.Maybe [Crawler])
getCrawlersResponse_crawlers :: (Maybe [Crawler] -> f (Maybe [Crawler]))
-> GetCrawlersResponse -> f GetCrawlersResponse
getCrawlersResponse_crawlers = (GetCrawlersResponse -> Maybe [Crawler])
-> (GetCrawlersResponse -> Maybe [Crawler] -> GetCrawlersResponse)
-> Lens' GetCrawlersResponse (Maybe [Crawler])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCrawlersResponse' {Maybe [Crawler]
crawlers :: Maybe [Crawler]
$sel:crawlers:GetCrawlersResponse' :: GetCrawlersResponse -> Maybe [Crawler]
crawlers} -> Maybe [Crawler]
crawlers) (\s :: GetCrawlersResponse
s@GetCrawlersResponse' {} Maybe [Crawler]
a -> GetCrawlersResponse
s {$sel:crawlers:GetCrawlersResponse' :: Maybe [Crawler]
crawlers = Maybe [Crawler]
a} :: GetCrawlersResponse) ((Maybe [Crawler] -> f (Maybe [Crawler]))
-> GetCrawlersResponse -> f GetCrawlersResponse)
-> ((Maybe [Crawler] -> f (Maybe [Crawler]))
-> Maybe [Crawler] -> f (Maybe [Crawler]))
-> (Maybe [Crawler] -> f (Maybe [Crawler]))
-> GetCrawlersResponse
-> f GetCrawlersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Crawler] [Crawler] [Crawler] [Crawler]
-> Iso
(Maybe [Crawler])
(Maybe [Crawler])
(Maybe [Crawler])
(Maybe [Crawler])
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 [Crawler] [Crawler] [Crawler] [Crawler]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getCrawlersResponse_httpStatus :: Lens.Lens' GetCrawlersResponse Prelude.Int
getCrawlersResponse_httpStatus :: (Int -> f Int) -> GetCrawlersResponse -> f GetCrawlersResponse
getCrawlersResponse_httpStatus = (GetCrawlersResponse -> Int)
-> (GetCrawlersResponse -> Int -> GetCrawlersResponse)
-> Lens GetCrawlersResponse GetCrawlersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCrawlersResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetCrawlersResponse' :: GetCrawlersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetCrawlersResponse
s@GetCrawlersResponse' {} Int
a -> GetCrawlersResponse
s {$sel:httpStatus:GetCrawlersResponse' :: Int
httpStatus = Int
a} :: GetCrawlersResponse)
instance Prelude.NFData GetCrawlersResponse