{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.ListCrawlers
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the names of all crawler resources in this Amazon Web Services
-- account, or the resources with the specified tag. This operation allows
-- you to see which resources are available in your account, and their
-- names.
--
-- This operation takes the optional @Tags@ field, which you can use as a
-- filter on the response so that tagged resources can be retrieved as a
-- group. If you choose to use tags filtering, only resources with the tag
-- are retrieved.
module Amazonka.Glue.ListCrawlers
  ( -- * Creating a Request
    ListCrawlers (..),
    newListCrawlers,

    -- * Request Lenses
    listCrawlers_nextToken,
    listCrawlers_maxResults,
    listCrawlers_tags,

    -- * Destructuring the Response
    ListCrawlersResponse (..),
    newListCrawlersResponse,

    -- * Response Lenses
    listCrawlersResponse_nextToken,
    listCrawlersResponse_crawlerNames,
    listCrawlersResponse_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

-- | /See:/ 'newListCrawlers' smart constructor.
data ListCrawlers = ListCrawlers'
  { -- | A continuation token, if this is a continuation request.
    ListCrawlers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum size of a list to return.
    ListCrawlers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Specifies to return only these tagged resources.
    ListCrawlers -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ListCrawlers -> ListCrawlers -> Bool
(ListCrawlers -> ListCrawlers -> Bool)
-> (ListCrawlers -> ListCrawlers -> Bool) -> Eq ListCrawlers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCrawlers -> ListCrawlers -> Bool
$c/= :: ListCrawlers -> ListCrawlers -> Bool
== :: ListCrawlers -> ListCrawlers -> Bool
$c== :: ListCrawlers -> ListCrawlers -> Bool
Prelude.Eq, ReadPrec [ListCrawlers]
ReadPrec ListCrawlers
Int -> ReadS ListCrawlers
ReadS [ListCrawlers]
(Int -> ReadS ListCrawlers)
-> ReadS [ListCrawlers]
-> ReadPrec ListCrawlers
-> ReadPrec [ListCrawlers]
-> Read ListCrawlers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCrawlers]
$creadListPrec :: ReadPrec [ListCrawlers]
readPrec :: ReadPrec ListCrawlers
$creadPrec :: ReadPrec ListCrawlers
readList :: ReadS [ListCrawlers]
$creadList :: ReadS [ListCrawlers]
readsPrec :: Int -> ReadS ListCrawlers
$creadsPrec :: Int -> ReadS ListCrawlers
Prelude.Read, Int -> ListCrawlers -> ShowS
[ListCrawlers] -> ShowS
ListCrawlers -> String
(Int -> ListCrawlers -> ShowS)
-> (ListCrawlers -> String)
-> ([ListCrawlers] -> ShowS)
-> Show ListCrawlers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCrawlers] -> ShowS
$cshowList :: [ListCrawlers] -> ShowS
show :: ListCrawlers -> String
$cshow :: ListCrawlers -> String
showsPrec :: Int -> ListCrawlers -> ShowS
$cshowsPrec :: Int -> ListCrawlers -> ShowS
Prelude.Show, (forall x. ListCrawlers -> Rep ListCrawlers x)
-> (forall x. Rep ListCrawlers x -> ListCrawlers)
-> Generic ListCrawlers
forall x. Rep ListCrawlers x -> ListCrawlers
forall x. ListCrawlers -> Rep ListCrawlers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCrawlers x -> ListCrawlers
$cfrom :: forall x. ListCrawlers -> Rep ListCrawlers x
Prelude.Generic)

-- |
-- Create a value of 'ListCrawlers' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listCrawlers_nextToken' - A continuation token, if this is a continuation request.
--
-- 'maxResults', 'listCrawlers_maxResults' - The maximum size of a list to return.
--
-- 'tags', 'listCrawlers_tags' - Specifies to return only these tagged resources.
newListCrawlers ::
  ListCrawlers
newListCrawlers :: ListCrawlers
newListCrawlers =
  ListCrawlers' :: Maybe Text
-> Maybe Natural -> Maybe (HashMap Text Text) -> ListCrawlers
ListCrawlers'
    { $sel:nextToken:ListCrawlers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListCrawlers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ListCrawlers' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | A continuation token, if this is a continuation request.
listCrawlers_nextToken :: Lens.Lens' ListCrawlers (Prelude.Maybe Prelude.Text)
listCrawlers_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListCrawlers -> f ListCrawlers
listCrawlers_nextToken = (ListCrawlers -> Maybe Text)
-> (ListCrawlers -> Maybe Text -> ListCrawlers)
-> Lens ListCrawlers ListCrawlers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCrawlers' :: ListCrawlers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCrawlers
s@ListCrawlers' {} Maybe Text
a -> ListCrawlers
s {$sel:nextToken:ListCrawlers' :: Maybe Text
nextToken = Maybe Text
a} :: ListCrawlers)

-- | The maximum size of a list to return.
listCrawlers_maxResults :: Lens.Lens' ListCrawlers (Prelude.Maybe Prelude.Natural)
listCrawlers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListCrawlers -> f ListCrawlers
listCrawlers_maxResults = (ListCrawlers -> Maybe Natural)
-> (ListCrawlers -> Maybe Natural -> ListCrawlers)
-> Lens ListCrawlers ListCrawlers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListCrawlers' :: ListCrawlers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListCrawlers
s@ListCrawlers' {} Maybe Natural
a -> ListCrawlers
s {$sel:maxResults:ListCrawlers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListCrawlers)

-- | Specifies to return only these tagged resources.
listCrawlers_tags :: Lens.Lens' ListCrawlers (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listCrawlers_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListCrawlers -> f ListCrawlers
listCrawlers_tags = (ListCrawlers -> Maybe (HashMap Text Text))
-> (ListCrawlers -> Maybe (HashMap Text Text) -> ListCrawlers)
-> Lens
     ListCrawlers
     ListCrawlers
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlers' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListCrawlers' :: ListCrawlers -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListCrawlers
s@ListCrawlers' {} Maybe (HashMap Text Text)
a -> ListCrawlers
s {$sel:tags:ListCrawlers' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListCrawlers) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ListCrawlers -> f ListCrawlers)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListCrawlers
-> f ListCrawlers
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest ListCrawlers where
  type AWSResponse ListCrawlers = ListCrawlersResponse
  request :: ListCrawlers -> Request ListCrawlers
request = Service -> ListCrawlers -> Request ListCrawlers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCrawlers)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListCrawlers))
-> Logger
-> Service
-> Proxy ListCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCrawlers)))
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 [Text] -> Int -> ListCrawlersResponse
ListCrawlersResponse'
            (Maybe Text -> Maybe [Text] -> Int -> ListCrawlersResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Text] -> Int -> ListCrawlersResponse)
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 [Text] -> Int -> ListCrawlersResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListCrawlersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CrawlerNames" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> ListCrawlersResponse)
-> Either String Int -> Either String ListCrawlersResponse
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 ListCrawlers

instance Prelude.NFData ListCrawlers

instance Core.ToHeaders ListCrawlers where
  toHeaders :: ListCrawlers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListCrawlers -> 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.ListCrawlers" :: 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 ListCrawlers where
  toJSON :: ListCrawlers -> Value
toJSON ListCrawlers' {Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:tags:ListCrawlers' :: ListCrawlers -> Maybe (HashMap Text Text)
$sel:maxResults:ListCrawlers' :: ListCrawlers -> Maybe Natural
$sel:nextToken:ListCrawlers' :: ListCrawlers -> 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,
            (Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags
          ]
      )

instance Core.ToPath ListCrawlers where
  toPath :: ListCrawlers -> ByteString
toPath = ByteString -> ListCrawlers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListCrawlers where
  toQuery :: ListCrawlers -> QueryString
toQuery = QueryString -> ListCrawlers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListCrawlersResponse' smart constructor.
data ListCrawlersResponse = ListCrawlersResponse'
  { -- | A continuation token, if the returned list does not contain the last
    -- metric available.
    ListCrawlersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The names of all crawlers in the account, or the crawlers with the
    -- specified tags.
    ListCrawlersResponse -> Maybe [Text]
crawlerNames :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    ListCrawlersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListCrawlersResponse -> ListCrawlersResponse -> Bool
(ListCrawlersResponse -> ListCrawlersResponse -> Bool)
-> (ListCrawlersResponse -> ListCrawlersResponse -> Bool)
-> Eq ListCrawlersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCrawlersResponse -> ListCrawlersResponse -> Bool
$c/= :: ListCrawlersResponse -> ListCrawlersResponse -> Bool
== :: ListCrawlersResponse -> ListCrawlersResponse -> Bool
$c== :: ListCrawlersResponse -> ListCrawlersResponse -> Bool
Prelude.Eq, ReadPrec [ListCrawlersResponse]
ReadPrec ListCrawlersResponse
Int -> ReadS ListCrawlersResponse
ReadS [ListCrawlersResponse]
(Int -> ReadS ListCrawlersResponse)
-> ReadS [ListCrawlersResponse]
-> ReadPrec ListCrawlersResponse
-> ReadPrec [ListCrawlersResponse]
-> Read ListCrawlersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCrawlersResponse]
$creadListPrec :: ReadPrec [ListCrawlersResponse]
readPrec :: ReadPrec ListCrawlersResponse
$creadPrec :: ReadPrec ListCrawlersResponse
readList :: ReadS [ListCrawlersResponse]
$creadList :: ReadS [ListCrawlersResponse]
readsPrec :: Int -> ReadS ListCrawlersResponse
$creadsPrec :: Int -> ReadS ListCrawlersResponse
Prelude.Read, Int -> ListCrawlersResponse -> ShowS
[ListCrawlersResponse] -> ShowS
ListCrawlersResponse -> String
(Int -> ListCrawlersResponse -> ShowS)
-> (ListCrawlersResponse -> String)
-> ([ListCrawlersResponse] -> ShowS)
-> Show ListCrawlersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCrawlersResponse] -> ShowS
$cshowList :: [ListCrawlersResponse] -> ShowS
show :: ListCrawlersResponse -> String
$cshow :: ListCrawlersResponse -> String
showsPrec :: Int -> ListCrawlersResponse -> ShowS
$cshowsPrec :: Int -> ListCrawlersResponse -> ShowS
Prelude.Show, (forall x. ListCrawlersResponse -> Rep ListCrawlersResponse x)
-> (forall x. Rep ListCrawlersResponse x -> ListCrawlersResponse)
-> Generic ListCrawlersResponse
forall x. Rep ListCrawlersResponse x -> ListCrawlersResponse
forall x. ListCrawlersResponse -> Rep ListCrawlersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCrawlersResponse x -> ListCrawlersResponse
$cfrom :: forall x. ListCrawlersResponse -> Rep ListCrawlersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListCrawlersResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listCrawlersResponse_nextToken' - A continuation token, if the returned list does not contain the last
-- metric available.
--
-- 'crawlerNames', 'listCrawlersResponse_crawlerNames' - The names of all crawlers in the account, or the crawlers with the
-- specified tags.
--
-- 'httpStatus', 'listCrawlersResponse_httpStatus' - The response's http status code.
newListCrawlersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListCrawlersResponse
newListCrawlersResponse :: Int -> ListCrawlersResponse
newListCrawlersResponse Int
pHttpStatus_ =
  ListCrawlersResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListCrawlersResponse
ListCrawlersResponse'
    { $sel:nextToken:ListCrawlersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:crawlerNames:ListCrawlersResponse' :: Maybe [Text]
crawlerNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListCrawlersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A continuation token, if the returned list does not contain the last
-- metric available.
listCrawlersResponse_nextToken :: Lens.Lens' ListCrawlersResponse (Prelude.Maybe Prelude.Text)
listCrawlersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCrawlersResponse -> f ListCrawlersResponse
listCrawlersResponse_nextToken = (ListCrawlersResponse -> Maybe Text)
-> (ListCrawlersResponse -> Maybe Text -> ListCrawlersResponse)
-> Lens
     ListCrawlersResponse ListCrawlersResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCrawlersResponse' :: ListCrawlersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCrawlersResponse
s@ListCrawlersResponse' {} Maybe Text
a -> ListCrawlersResponse
s {$sel:nextToken:ListCrawlersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCrawlersResponse)

-- | The names of all crawlers in the account, or the crawlers with the
-- specified tags.
listCrawlersResponse_crawlerNames :: Lens.Lens' ListCrawlersResponse (Prelude.Maybe [Prelude.Text])
listCrawlersResponse_crawlerNames :: (Maybe [Text] -> f (Maybe [Text]))
-> ListCrawlersResponse -> f ListCrawlersResponse
listCrawlersResponse_crawlerNames = (ListCrawlersResponse -> Maybe [Text])
-> (ListCrawlersResponse -> Maybe [Text] -> ListCrawlersResponse)
-> Lens
     ListCrawlersResponse
     ListCrawlersResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlersResponse' {Maybe [Text]
crawlerNames :: Maybe [Text]
$sel:crawlerNames:ListCrawlersResponse' :: ListCrawlersResponse -> Maybe [Text]
crawlerNames} -> Maybe [Text]
crawlerNames) (\s :: ListCrawlersResponse
s@ListCrawlersResponse' {} Maybe [Text]
a -> ListCrawlersResponse
s {$sel:crawlerNames:ListCrawlersResponse' :: Maybe [Text]
crawlerNames = Maybe [Text]
a} :: ListCrawlersResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListCrawlersResponse -> f ListCrawlersResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListCrawlersResponse
-> f ListCrawlersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listCrawlersResponse_httpStatus :: Lens.Lens' ListCrawlersResponse Prelude.Int
listCrawlersResponse_httpStatus :: (Int -> f Int) -> ListCrawlersResponse -> f ListCrawlersResponse
listCrawlersResponse_httpStatus = (ListCrawlersResponse -> Int)
-> (ListCrawlersResponse -> Int -> ListCrawlersResponse)
-> Lens ListCrawlersResponse ListCrawlersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCrawlersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCrawlersResponse' :: ListCrawlersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCrawlersResponse
s@ListCrawlersResponse' {} Int
a -> ListCrawlersResponse
s {$sel:httpStatus:ListCrawlersResponse' :: Int
httpStatus = Int
a} :: ListCrawlersResponse)

instance Prelude.NFData ListCrawlersResponse