{-# 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.BatchDeleteTable
-- 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)
--
-- Deletes multiple tables at once.
--
-- After completing this operation, you no longer have access to the table
-- versions and partitions that belong to the deleted table. Glue deletes
-- these \"orphaned\" resources asynchronously in a timely manner, at the
-- discretion of the service.
--
-- To ensure the immediate deletion of all related resources, before
-- calling @BatchDeleteTable@, use @DeleteTableVersion@ or
-- @BatchDeleteTableVersion@, and @DeletePartition@ or
-- @BatchDeletePartition@, to delete any resources that belong to the
-- table.
module Amazonka.Glue.BatchDeleteTable
  ( -- * Creating a Request
    BatchDeleteTable (..),
    newBatchDeleteTable,

    -- * Request Lenses
    batchDeleteTable_catalogId,
    batchDeleteTable_databaseName,
    batchDeleteTable_tablesToDelete,

    -- * Destructuring the Response
    BatchDeleteTableResponse (..),
    newBatchDeleteTableResponse,

    -- * Response Lenses
    batchDeleteTableResponse_errors,
    batchDeleteTableResponse_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:/ 'newBatchDeleteTable' smart constructor.
data BatchDeleteTable = BatchDeleteTable'
  { -- | The ID of the Data Catalog where the table resides. If none is provided,
    -- the Amazon Web Services account ID is used by default.
    BatchDeleteTable -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
    -- | The name of the catalog database in which the tables to delete reside.
    -- For Hive compatibility, this name is entirely lowercase.
    BatchDeleteTable -> Text
databaseName :: Prelude.Text,
    -- | A list of the table to delete.
    BatchDeleteTable -> [Text]
tablesToDelete :: [Prelude.Text]
  }
  deriving (BatchDeleteTable -> BatchDeleteTable -> Bool
(BatchDeleteTable -> BatchDeleteTable -> Bool)
-> (BatchDeleteTable -> BatchDeleteTable -> Bool)
-> Eq BatchDeleteTable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteTable -> BatchDeleteTable -> Bool
$c/= :: BatchDeleteTable -> BatchDeleteTable -> Bool
== :: BatchDeleteTable -> BatchDeleteTable -> Bool
$c== :: BatchDeleteTable -> BatchDeleteTable -> Bool
Prelude.Eq, ReadPrec [BatchDeleteTable]
ReadPrec BatchDeleteTable
Int -> ReadS BatchDeleteTable
ReadS [BatchDeleteTable]
(Int -> ReadS BatchDeleteTable)
-> ReadS [BatchDeleteTable]
-> ReadPrec BatchDeleteTable
-> ReadPrec [BatchDeleteTable]
-> Read BatchDeleteTable
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteTable]
$creadListPrec :: ReadPrec [BatchDeleteTable]
readPrec :: ReadPrec BatchDeleteTable
$creadPrec :: ReadPrec BatchDeleteTable
readList :: ReadS [BatchDeleteTable]
$creadList :: ReadS [BatchDeleteTable]
readsPrec :: Int -> ReadS BatchDeleteTable
$creadsPrec :: Int -> ReadS BatchDeleteTable
Prelude.Read, Int -> BatchDeleteTable -> ShowS
[BatchDeleteTable] -> ShowS
BatchDeleteTable -> String
(Int -> BatchDeleteTable -> ShowS)
-> (BatchDeleteTable -> String)
-> ([BatchDeleteTable] -> ShowS)
-> Show BatchDeleteTable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteTable] -> ShowS
$cshowList :: [BatchDeleteTable] -> ShowS
show :: BatchDeleteTable -> String
$cshow :: BatchDeleteTable -> String
showsPrec :: Int -> BatchDeleteTable -> ShowS
$cshowsPrec :: Int -> BatchDeleteTable -> ShowS
Prelude.Show, (forall x. BatchDeleteTable -> Rep BatchDeleteTable x)
-> (forall x. Rep BatchDeleteTable x -> BatchDeleteTable)
-> Generic BatchDeleteTable
forall x. Rep BatchDeleteTable x -> BatchDeleteTable
forall x. BatchDeleteTable -> Rep BatchDeleteTable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchDeleteTable x -> BatchDeleteTable
$cfrom :: forall x. BatchDeleteTable -> Rep BatchDeleteTable x
Prelude.Generic)

-- |
-- Create a value of 'BatchDeleteTable' 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:
--
-- 'catalogId', 'batchDeleteTable_catalogId' - The ID of the Data Catalog where the table resides. If none is provided,
-- the Amazon Web Services account ID is used by default.
--
-- 'databaseName', 'batchDeleteTable_databaseName' - The name of the catalog database in which the tables to delete reside.
-- For Hive compatibility, this name is entirely lowercase.
--
-- 'tablesToDelete', 'batchDeleteTable_tablesToDelete' - A list of the table to delete.
newBatchDeleteTable ::
  -- | 'databaseName'
  Prelude.Text ->
  BatchDeleteTable
newBatchDeleteTable :: Text -> BatchDeleteTable
newBatchDeleteTable Text
pDatabaseName_ =
  BatchDeleteTable' :: Maybe Text -> Text -> [Text] -> BatchDeleteTable
BatchDeleteTable'
    { $sel:catalogId:BatchDeleteTable' :: Maybe Text
catalogId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:databaseName:BatchDeleteTable' :: Text
databaseName = Text
pDatabaseName_,
      $sel:tablesToDelete:BatchDeleteTable' :: [Text]
tablesToDelete = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The ID of the Data Catalog where the table resides. If none is provided,
-- the Amazon Web Services account ID is used by default.
batchDeleteTable_catalogId :: Lens.Lens' BatchDeleteTable (Prelude.Maybe Prelude.Text)
batchDeleteTable_catalogId :: (Maybe Text -> f (Maybe Text))
-> BatchDeleteTable -> f BatchDeleteTable
batchDeleteTable_catalogId = (BatchDeleteTable -> Maybe Text)
-> (BatchDeleteTable -> Maybe Text -> BatchDeleteTable)
-> Lens BatchDeleteTable BatchDeleteTable (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTable' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:BatchDeleteTable' :: BatchDeleteTable -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: BatchDeleteTable
s@BatchDeleteTable' {} Maybe Text
a -> BatchDeleteTable
s {$sel:catalogId:BatchDeleteTable' :: Maybe Text
catalogId = Maybe Text
a} :: BatchDeleteTable)

-- | The name of the catalog database in which the tables to delete reside.
-- For Hive compatibility, this name is entirely lowercase.
batchDeleteTable_databaseName :: Lens.Lens' BatchDeleteTable Prelude.Text
batchDeleteTable_databaseName :: (Text -> f Text) -> BatchDeleteTable -> f BatchDeleteTable
batchDeleteTable_databaseName = (BatchDeleteTable -> Text)
-> (BatchDeleteTable -> Text -> BatchDeleteTable)
-> Lens BatchDeleteTable BatchDeleteTable Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTable' {Text
databaseName :: Text
$sel:databaseName:BatchDeleteTable' :: BatchDeleteTable -> Text
databaseName} -> Text
databaseName) (\s :: BatchDeleteTable
s@BatchDeleteTable' {} Text
a -> BatchDeleteTable
s {$sel:databaseName:BatchDeleteTable' :: Text
databaseName = Text
a} :: BatchDeleteTable)

-- | A list of the table to delete.
batchDeleteTable_tablesToDelete :: Lens.Lens' BatchDeleteTable [Prelude.Text]
batchDeleteTable_tablesToDelete :: ([Text] -> f [Text]) -> BatchDeleteTable -> f BatchDeleteTable
batchDeleteTable_tablesToDelete = (BatchDeleteTable -> [Text])
-> (BatchDeleteTable -> [Text] -> BatchDeleteTable)
-> Lens BatchDeleteTable BatchDeleteTable [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTable' {[Text]
tablesToDelete :: [Text]
$sel:tablesToDelete:BatchDeleteTable' :: BatchDeleteTable -> [Text]
tablesToDelete} -> [Text]
tablesToDelete) (\s :: BatchDeleteTable
s@BatchDeleteTable' {} [Text]
a -> BatchDeleteTable
s {$sel:tablesToDelete:BatchDeleteTable' :: [Text]
tablesToDelete = [Text]
a} :: BatchDeleteTable) (([Text] -> f [Text]) -> BatchDeleteTable -> f BatchDeleteTable)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchDeleteTable
-> f BatchDeleteTable
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 BatchDeleteTable where
  type
    AWSResponse BatchDeleteTable =
      BatchDeleteTableResponse
  request :: BatchDeleteTable -> Request BatchDeleteTable
request = Service -> BatchDeleteTable -> Request BatchDeleteTable
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchDeleteTable
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchDeleteTable)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchDeleteTable))
-> Logger
-> Service
-> Proxy BatchDeleteTable
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchDeleteTable)))
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 [TableError] -> Int -> BatchDeleteTableResponse
BatchDeleteTableResponse'
            (Maybe [TableError] -> Int -> BatchDeleteTableResponse)
-> Either String (Maybe [TableError])
-> Either String (Int -> BatchDeleteTableResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [TableError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [TableError]))
-> Maybe [TableError] -> Either String (Maybe [TableError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TableError]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> BatchDeleteTableResponse)
-> Either String Int -> Either String BatchDeleteTableResponse
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 BatchDeleteTable

instance Prelude.NFData BatchDeleteTable

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

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

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

-- | /See:/ 'newBatchDeleteTableResponse' smart constructor.
data BatchDeleteTableResponse = BatchDeleteTableResponse'
  { -- | A list of errors encountered in attempting to delete the specified
    -- tables.
    BatchDeleteTableResponse -> Maybe [TableError]
errors :: Prelude.Maybe [TableError],
    -- | The response's http status code.
    BatchDeleteTableResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool
(BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool)
-> (BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool)
-> Eq BatchDeleteTableResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool
$c/= :: BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool
== :: BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool
$c== :: BatchDeleteTableResponse -> BatchDeleteTableResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteTableResponse]
ReadPrec BatchDeleteTableResponse
Int -> ReadS BatchDeleteTableResponse
ReadS [BatchDeleteTableResponse]
(Int -> ReadS BatchDeleteTableResponse)
-> ReadS [BatchDeleteTableResponse]
-> ReadPrec BatchDeleteTableResponse
-> ReadPrec [BatchDeleteTableResponse]
-> Read BatchDeleteTableResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteTableResponse]
$creadListPrec :: ReadPrec [BatchDeleteTableResponse]
readPrec :: ReadPrec BatchDeleteTableResponse
$creadPrec :: ReadPrec BatchDeleteTableResponse
readList :: ReadS [BatchDeleteTableResponse]
$creadList :: ReadS [BatchDeleteTableResponse]
readsPrec :: Int -> ReadS BatchDeleteTableResponse
$creadsPrec :: Int -> ReadS BatchDeleteTableResponse
Prelude.Read, Int -> BatchDeleteTableResponse -> ShowS
[BatchDeleteTableResponse] -> ShowS
BatchDeleteTableResponse -> String
(Int -> BatchDeleteTableResponse -> ShowS)
-> (BatchDeleteTableResponse -> String)
-> ([BatchDeleteTableResponse] -> ShowS)
-> Show BatchDeleteTableResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteTableResponse] -> ShowS
$cshowList :: [BatchDeleteTableResponse] -> ShowS
show :: BatchDeleteTableResponse -> String
$cshow :: BatchDeleteTableResponse -> String
showsPrec :: Int -> BatchDeleteTableResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteTableResponse -> ShowS
Prelude.Show, (forall x.
 BatchDeleteTableResponse -> Rep BatchDeleteTableResponse x)
-> (forall x.
    Rep BatchDeleteTableResponse x -> BatchDeleteTableResponse)
-> Generic BatchDeleteTableResponse
forall x.
Rep BatchDeleteTableResponse x -> BatchDeleteTableResponse
forall x.
BatchDeleteTableResponse -> Rep BatchDeleteTableResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteTableResponse x -> BatchDeleteTableResponse
$cfrom :: forall x.
BatchDeleteTableResponse -> Rep BatchDeleteTableResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchDeleteTableResponse' 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:
--
-- 'errors', 'batchDeleteTableResponse_errors' - A list of errors encountered in attempting to delete the specified
-- tables.
--
-- 'httpStatus', 'batchDeleteTableResponse_httpStatus' - The response's http status code.
newBatchDeleteTableResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchDeleteTableResponse
newBatchDeleteTableResponse :: Int -> BatchDeleteTableResponse
newBatchDeleteTableResponse Int
pHttpStatus_ =
  BatchDeleteTableResponse' :: Maybe [TableError] -> Int -> BatchDeleteTableResponse
BatchDeleteTableResponse'
    { $sel:errors:BatchDeleteTableResponse' :: Maybe [TableError]
errors = Maybe [TableError]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchDeleteTableResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of errors encountered in attempting to delete the specified
-- tables.
batchDeleteTableResponse_errors :: Lens.Lens' BatchDeleteTableResponse (Prelude.Maybe [TableError])
batchDeleteTableResponse_errors :: (Maybe [TableError] -> f (Maybe [TableError]))
-> BatchDeleteTableResponse -> f BatchDeleteTableResponse
batchDeleteTableResponse_errors = (BatchDeleteTableResponse -> Maybe [TableError])
-> (BatchDeleteTableResponse
    -> Maybe [TableError] -> BatchDeleteTableResponse)
-> Lens
     BatchDeleteTableResponse
     BatchDeleteTableResponse
     (Maybe [TableError])
     (Maybe [TableError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableResponse' {Maybe [TableError]
errors :: Maybe [TableError]
$sel:errors:BatchDeleteTableResponse' :: BatchDeleteTableResponse -> Maybe [TableError]
errors} -> Maybe [TableError]
errors) (\s :: BatchDeleteTableResponse
s@BatchDeleteTableResponse' {} Maybe [TableError]
a -> BatchDeleteTableResponse
s {$sel:errors:BatchDeleteTableResponse' :: Maybe [TableError]
errors = Maybe [TableError]
a} :: BatchDeleteTableResponse) ((Maybe [TableError] -> f (Maybe [TableError]))
 -> BatchDeleteTableResponse -> f BatchDeleteTableResponse)
-> ((Maybe [TableError] -> f (Maybe [TableError]))
    -> Maybe [TableError] -> f (Maybe [TableError]))
-> (Maybe [TableError] -> f (Maybe [TableError]))
-> BatchDeleteTableResponse
-> f BatchDeleteTableResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [TableError] [TableError] [TableError] [TableError]
-> Iso
     (Maybe [TableError])
     (Maybe [TableError])
     (Maybe [TableError])
     (Maybe [TableError])
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 [TableError] [TableError] [TableError] [TableError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchDeleteTableResponse