{-# 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.BatchGetCrawlers
-- 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)
--
-- Returns a list of resource metadata for a given list of crawler names.
-- After calling the @ListCrawlers@ operation, you can call this operation
-- to access the data to which you have been granted permissions. This
-- operation supports all IAM permissions, including permission conditions
-- that uses tags.
module Amazonka.Glue.BatchGetCrawlers
  ( -- * Creating a Request
    BatchGetCrawlers (..),
    newBatchGetCrawlers,

    -- * Request Lenses
    batchGetCrawlers_crawlerNames,

    -- * Destructuring the Response
    BatchGetCrawlersResponse (..),
    newBatchGetCrawlersResponse,

    -- * Response Lenses
    batchGetCrawlersResponse_crawlersNotFound,
    batchGetCrawlersResponse_crawlers,
    batchGetCrawlersResponse_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:/ 'newBatchGetCrawlers' smart constructor.
data BatchGetCrawlers = BatchGetCrawlers'
  { -- | A list of crawler names, which might be the names returned from the
    -- @ListCrawlers@ operation.
    BatchGetCrawlers -> [Text]
crawlerNames :: [Prelude.Text]
  }
  deriving (BatchGetCrawlers -> BatchGetCrawlers -> Bool
(BatchGetCrawlers -> BatchGetCrawlers -> Bool)
-> (BatchGetCrawlers -> BatchGetCrawlers -> Bool)
-> Eq BatchGetCrawlers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetCrawlers -> BatchGetCrawlers -> Bool
$c/= :: BatchGetCrawlers -> BatchGetCrawlers -> Bool
== :: BatchGetCrawlers -> BatchGetCrawlers -> Bool
$c== :: BatchGetCrawlers -> BatchGetCrawlers -> Bool
Prelude.Eq, ReadPrec [BatchGetCrawlers]
ReadPrec BatchGetCrawlers
Int -> ReadS BatchGetCrawlers
ReadS [BatchGetCrawlers]
(Int -> ReadS BatchGetCrawlers)
-> ReadS [BatchGetCrawlers]
-> ReadPrec BatchGetCrawlers
-> ReadPrec [BatchGetCrawlers]
-> Read BatchGetCrawlers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetCrawlers]
$creadListPrec :: ReadPrec [BatchGetCrawlers]
readPrec :: ReadPrec BatchGetCrawlers
$creadPrec :: ReadPrec BatchGetCrawlers
readList :: ReadS [BatchGetCrawlers]
$creadList :: ReadS [BatchGetCrawlers]
readsPrec :: Int -> ReadS BatchGetCrawlers
$creadsPrec :: Int -> ReadS BatchGetCrawlers
Prelude.Read, Int -> BatchGetCrawlers -> ShowS
[BatchGetCrawlers] -> ShowS
BatchGetCrawlers -> String
(Int -> BatchGetCrawlers -> ShowS)
-> (BatchGetCrawlers -> String)
-> ([BatchGetCrawlers] -> ShowS)
-> Show BatchGetCrawlers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetCrawlers] -> ShowS
$cshowList :: [BatchGetCrawlers] -> ShowS
show :: BatchGetCrawlers -> String
$cshow :: BatchGetCrawlers -> String
showsPrec :: Int -> BatchGetCrawlers -> ShowS
$cshowsPrec :: Int -> BatchGetCrawlers -> ShowS
Prelude.Show, (forall x. BatchGetCrawlers -> Rep BatchGetCrawlers x)
-> (forall x. Rep BatchGetCrawlers x -> BatchGetCrawlers)
-> Generic BatchGetCrawlers
forall x. Rep BatchGetCrawlers x -> BatchGetCrawlers
forall x. BatchGetCrawlers -> Rep BatchGetCrawlers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetCrawlers x -> BatchGetCrawlers
$cfrom :: forall x. BatchGetCrawlers -> Rep BatchGetCrawlers x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetCrawlers' 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:
--
-- 'crawlerNames', 'batchGetCrawlers_crawlerNames' - A list of crawler names, which might be the names returned from the
-- @ListCrawlers@ operation.
newBatchGetCrawlers ::
  BatchGetCrawlers
newBatchGetCrawlers :: BatchGetCrawlers
newBatchGetCrawlers =
  BatchGetCrawlers' :: [Text] -> BatchGetCrawlers
BatchGetCrawlers' {$sel:crawlerNames:BatchGetCrawlers' :: [Text]
crawlerNames = [Text]
forall a. Monoid a => a
Prelude.mempty}

-- | A list of crawler names, which might be the names returned from the
-- @ListCrawlers@ operation.
batchGetCrawlers_crawlerNames :: Lens.Lens' BatchGetCrawlers [Prelude.Text]
batchGetCrawlers_crawlerNames :: ([Text] -> f [Text]) -> BatchGetCrawlers -> f BatchGetCrawlers
batchGetCrawlers_crawlerNames = (BatchGetCrawlers -> [Text])
-> (BatchGetCrawlers -> [Text] -> BatchGetCrawlers)
-> Lens BatchGetCrawlers BatchGetCrawlers [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCrawlers' {[Text]
crawlerNames :: [Text]
$sel:crawlerNames:BatchGetCrawlers' :: BatchGetCrawlers -> [Text]
crawlerNames} -> [Text]
crawlerNames) (\s :: BatchGetCrawlers
s@BatchGetCrawlers' {} [Text]
a -> BatchGetCrawlers
s {$sel:crawlerNames:BatchGetCrawlers' :: [Text]
crawlerNames = [Text]
a} :: BatchGetCrawlers) (([Text] -> f [Text]) -> BatchGetCrawlers -> f BatchGetCrawlers)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchGetCrawlers
-> f BatchGetCrawlers
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest BatchGetCrawlers where
  type
    AWSResponse BatchGetCrawlers =
      BatchGetCrawlersResponse
  request :: BatchGetCrawlers -> Request BatchGetCrawlers
request = Service -> BatchGetCrawlers -> Request BatchGetCrawlers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchGetCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetCrawlers)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchGetCrawlers))
-> Logger
-> Service
-> Proxy BatchGetCrawlers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetCrawlers)))
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 -> BatchGetCrawlersResponse
BatchGetCrawlersResponse'
            (Maybe [Text]
 -> Maybe [Crawler] -> Int -> BatchGetCrawlersResponse)
-> Either String (Maybe [Text])
-> Either
     String (Maybe [Crawler] -> Int -> BatchGetCrawlersResponse)
forall (f :: * -> *) a b. Functor 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
"CrawlersNotFound"
                            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 (Maybe [Crawler] -> Int -> BatchGetCrawlersResponse)
-> Either String (Maybe [Crawler])
-> Either String (Int -> BatchGetCrawlersResponse)
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 -> BatchGetCrawlersResponse)
-> Either String Int -> Either String BatchGetCrawlersResponse
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 BatchGetCrawlers

instance Prelude.NFData BatchGetCrawlers

instance Core.ToHeaders BatchGetCrawlers where
  toHeaders :: BatchGetCrawlers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchGetCrawlers -> 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.BatchGetCrawlers" :: 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 BatchGetCrawlers where
  toJSON :: BatchGetCrawlers -> Value
toJSON BatchGetCrawlers' {[Text]
crawlerNames :: [Text]
$sel:crawlerNames:BatchGetCrawlers' :: BatchGetCrawlers -> [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"CrawlerNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
crawlerNames)]
      )

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

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

-- | /See:/ 'newBatchGetCrawlersResponse' smart constructor.
data BatchGetCrawlersResponse = BatchGetCrawlersResponse'
  { -- | A list of names of crawlers that were not found.
    BatchGetCrawlersResponse -> Maybe [Text]
crawlersNotFound :: Prelude.Maybe [Prelude.Text],
    -- | A list of crawler definitions.
    BatchGetCrawlersResponse -> Maybe [Crawler]
crawlers :: Prelude.Maybe [Crawler],
    -- | The response's http status code.
    BatchGetCrawlersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool
(BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool)
-> (BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool)
-> Eq BatchGetCrawlersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool
$c/= :: BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool
== :: BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool
$c== :: BatchGetCrawlersResponse -> BatchGetCrawlersResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetCrawlersResponse]
ReadPrec BatchGetCrawlersResponse
Int -> ReadS BatchGetCrawlersResponse
ReadS [BatchGetCrawlersResponse]
(Int -> ReadS BatchGetCrawlersResponse)
-> ReadS [BatchGetCrawlersResponse]
-> ReadPrec BatchGetCrawlersResponse
-> ReadPrec [BatchGetCrawlersResponse]
-> Read BatchGetCrawlersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetCrawlersResponse]
$creadListPrec :: ReadPrec [BatchGetCrawlersResponse]
readPrec :: ReadPrec BatchGetCrawlersResponse
$creadPrec :: ReadPrec BatchGetCrawlersResponse
readList :: ReadS [BatchGetCrawlersResponse]
$creadList :: ReadS [BatchGetCrawlersResponse]
readsPrec :: Int -> ReadS BatchGetCrawlersResponse
$creadsPrec :: Int -> ReadS BatchGetCrawlersResponse
Prelude.Read, Int -> BatchGetCrawlersResponse -> ShowS
[BatchGetCrawlersResponse] -> ShowS
BatchGetCrawlersResponse -> String
(Int -> BatchGetCrawlersResponse -> ShowS)
-> (BatchGetCrawlersResponse -> String)
-> ([BatchGetCrawlersResponse] -> ShowS)
-> Show BatchGetCrawlersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetCrawlersResponse] -> ShowS
$cshowList :: [BatchGetCrawlersResponse] -> ShowS
show :: BatchGetCrawlersResponse -> String
$cshow :: BatchGetCrawlersResponse -> String
showsPrec :: Int -> BatchGetCrawlersResponse -> ShowS
$cshowsPrec :: Int -> BatchGetCrawlersResponse -> ShowS
Prelude.Show, (forall x.
 BatchGetCrawlersResponse -> Rep BatchGetCrawlersResponse x)
-> (forall x.
    Rep BatchGetCrawlersResponse x -> BatchGetCrawlersResponse)
-> Generic BatchGetCrawlersResponse
forall x.
Rep BatchGetCrawlersResponse x -> BatchGetCrawlersResponse
forall x.
BatchGetCrawlersResponse -> Rep BatchGetCrawlersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetCrawlersResponse x -> BatchGetCrawlersResponse
$cfrom :: forall x.
BatchGetCrawlersResponse -> Rep BatchGetCrawlersResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetCrawlersResponse' 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:
--
-- 'crawlersNotFound', 'batchGetCrawlersResponse_crawlersNotFound' - A list of names of crawlers that were not found.
--
-- 'crawlers', 'batchGetCrawlersResponse_crawlers' - A list of crawler definitions.
--
-- 'httpStatus', 'batchGetCrawlersResponse_httpStatus' - The response's http status code.
newBatchGetCrawlersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetCrawlersResponse
newBatchGetCrawlersResponse :: Int -> BatchGetCrawlersResponse
newBatchGetCrawlersResponse Int
pHttpStatus_ =
  BatchGetCrawlersResponse' :: Maybe [Text] -> Maybe [Crawler] -> Int -> BatchGetCrawlersResponse
BatchGetCrawlersResponse'
    { $sel:crawlersNotFound:BatchGetCrawlersResponse' :: Maybe [Text]
crawlersNotFound =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:crawlers:BatchGetCrawlersResponse' :: Maybe [Crawler]
crawlers = Maybe [Crawler]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetCrawlersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of names of crawlers that were not found.
batchGetCrawlersResponse_crawlersNotFound :: Lens.Lens' BatchGetCrawlersResponse (Prelude.Maybe [Prelude.Text])
batchGetCrawlersResponse_crawlersNotFound :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCrawlersResponse -> f BatchGetCrawlersResponse
batchGetCrawlersResponse_crawlersNotFound = (BatchGetCrawlersResponse -> Maybe [Text])
-> (BatchGetCrawlersResponse
    -> Maybe [Text] -> BatchGetCrawlersResponse)
-> Lens
     BatchGetCrawlersResponse
     BatchGetCrawlersResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCrawlersResponse' {Maybe [Text]
crawlersNotFound :: Maybe [Text]
$sel:crawlersNotFound:BatchGetCrawlersResponse' :: BatchGetCrawlersResponse -> Maybe [Text]
crawlersNotFound} -> Maybe [Text]
crawlersNotFound) (\s :: BatchGetCrawlersResponse
s@BatchGetCrawlersResponse' {} Maybe [Text]
a -> BatchGetCrawlersResponse
s {$sel:crawlersNotFound:BatchGetCrawlersResponse' :: Maybe [Text]
crawlersNotFound = Maybe [Text]
a} :: BatchGetCrawlersResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> BatchGetCrawlersResponse -> f BatchGetCrawlersResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetCrawlersResponse
-> f BatchGetCrawlersResponse
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

-- | A list of crawler definitions.
batchGetCrawlersResponse_crawlers :: Lens.Lens' BatchGetCrawlersResponse (Prelude.Maybe [Crawler])
batchGetCrawlersResponse_crawlers :: (Maybe [Crawler] -> f (Maybe [Crawler]))
-> BatchGetCrawlersResponse -> f BatchGetCrawlersResponse
batchGetCrawlersResponse_crawlers = (BatchGetCrawlersResponse -> Maybe [Crawler])
-> (BatchGetCrawlersResponse
    -> Maybe [Crawler] -> BatchGetCrawlersResponse)
-> Lens
     BatchGetCrawlersResponse
     BatchGetCrawlersResponse
     (Maybe [Crawler])
     (Maybe [Crawler])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetCrawlersResponse' {Maybe [Crawler]
crawlers :: Maybe [Crawler]
$sel:crawlers:BatchGetCrawlersResponse' :: BatchGetCrawlersResponse -> Maybe [Crawler]
crawlers} -> Maybe [Crawler]
crawlers) (\s :: BatchGetCrawlersResponse
s@BatchGetCrawlersResponse' {} Maybe [Crawler]
a -> BatchGetCrawlersResponse
s {$sel:crawlers:BatchGetCrawlersResponse' :: Maybe [Crawler]
crawlers = Maybe [Crawler]
a} :: BatchGetCrawlersResponse) ((Maybe [Crawler] -> f (Maybe [Crawler]))
 -> BatchGetCrawlersResponse -> f BatchGetCrawlersResponse)
-> ((Maybe [Crawler] -> f (Maybe [Crawler]))
    -> Maybe [Crawler] -> f (Maybe [Crawler]))
-> (Maybe [Crawler] -> f (Maybe [Crawler]))
-> BatchGetCrawlersResponse
-> f BatchGetCrawlersResponse
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

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

instance Prelude.NFData BatchGetCrawlersResponse