{-# 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.BatchGetTriggers
-- 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 trigger names.
-- After calling the @ListTriggers@ 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.BatchGetTriggers
  ( -- * Creating a Request
    BatchGetTriggers (..),
    newBatchGetTriggers,

    -- * Request Lenses
    batchGetTriggers_triggerNames,

    -- * Destructuring the Response
    BatchGetTriggersResponse (..),
    newBatchGetTriggersResponse,

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

-- |
-- Create a value of 'BatchGetTriggers' 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:
--
-- 'triggerNames', 'batchGetTriggers_triggerNames' - A list of trigger names, which may be the names returned from the
-- @ListTriggers@ operation.
newBatchGetTriggers ::
  BatchGetTriggers
newBatchGetTriggers :: BatchGetTriggers
newBatchGetTriggers =
  BatchGetTriggers' :: [Text] -> BatchGetTriggers
BatchGetTriggers' {$sel:triggerNames:BatchGetTriggers' :: [Text]
triggerNames = [Text]
forall a. Monoid a => a
Prelude.mempty}

-- | A list of trigger names, which may be the names returned from the
-- @ListTriggers@ operation.
batchGetTriggers_triggerNames :: Lens.Lens' BatchGetTriggers [Prelude.Text]
batchGetTriggers_triggerNames :: ([Text] -> f [Text]) -> BatchGetTriggers -> f BatchGetTriggers
batchGetTriggers_triggerNames = (BatchGetTriggers -> [Text])
-> (BatchGetTriggers -> [Text] -> BatchGetTriggers)
-> Lens BatchGetTriggers BatchGetTriggers [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetTriggers' {[Text]
triggerNames :: [Text]
$sel:triggerNames:BatchGetTriggers' :: BatchGetTriggers -> [Text]
triggerNames} -> [Text]
triggerNames) (\s :: BatchGetTriggers
s@BatchGetTriggers' {} [Text]
a -> BatchGetTriggers
s {$sel:triggerNames:BatchGetTriggers' :: [Text]
triggerNames = [Text]
a} :: BatchGetTriggers) (([Text] -> f [Text]) -> BatchGetTriggers -> f BatchGetTriggers)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchGetTriggers
-> f BatchGetTriggers
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 BatchGetTriggers where
  type
    AWSResponse BatchGetTriggers =
      BatchGetTriggersResponse
  request :: BatchGetTriggers -> Request BatchGetTriggers
request = Service -> BatchGetTriggers -> Request BatchGetTriggers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchGetTriggers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetTriggers)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchGetTriggers))
-> Logger
-> Service
-> Proxy BatchGetTriggers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchGetTriggers)))
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 [Trigger] -> Int -> BatchGetTriggersResponse
BatchGetTriggersResponse'
            (Maybe [Text]
 -> Maybe [Trigger] -> Int -> BatchGetTriggersResponse)
-> Either String (Maybe [Text])
-> Either
     String (Maybe [Trigger] -> Int -> BatchGetTriggersResponse)
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
"TriggersNotFound"
                            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 [Trigger] -> Int -> BatchGetTriggersResponse)
-> Either String (Maybe [Trigger])
-> Either String (Int -> BatchGetTriggersResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Trigger]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Triggers" Either String (Maybe (Maybe [Trigger]))
-> Maybe [Trigger] -> Either String (Maybe [Trigger])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Trigger]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> BatchGetTriggersResponse)
-> Either String Int -> Either String BatchGetTriggersResponse
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 BatchGetTriggers

instance Prelude.NFData BatchGetTriggers

instance Core.ToHeaders BatchGetTriggers where
  toHeaders :: BatchGetTriggers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchGetTriggers -> 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.BatchGetTriggers" :: 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 BatchGetTriggers where
  toJSON :: BatchGetTriggers -> Value
toJSON BatchGetTriggers' {[Text]
triggerNames :: [Text]
$sel:triggerNames:BatchGetTriggers' :: BatchGetTriggers -> [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
"TriggerNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
triggerNames)]
      )

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

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

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

-- |
-- Create a value of 'BatchGetTriggersResponse' 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:
--
-- 'triggersNotFound', 'batchGetTriggersResponse_triggersNotFound' - A list of names of triggers not found.
--
-- 'triggers', 'batchGetTriggersResponse_triggers' - A list of trigger definitions.
--
-- 'httpStatus', 'batchGetTriggersResponse_httpStatus' - The response's http status code.
newBatchGetTriggersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetTriggersResponse
newBatchGetTriggersResponse :: Int -> BatchGetTriggersResponse
newBatchGetTriggersResponse Int
pHttpStatus_ =
  BatchGetTriggersResponse' :: Maybe [Text] -> Maybe [Trigger] -> Int -> BatchGetTriggersResponse
BatchGetTriggersResponse'
    { $sel:triggersNotFound:BatchGetTriggersResponse' :: Maybe [Text]
triggersNotFound =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:triggers:BatchGetTriggersResponse' :: Maybe [Trigger]
triggers = Maybe [Trigger]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetTriggersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of names of triggers not found.
batchGetTriggersResponse_triggersNotFound :: Lens.Lens' BatchGetTriggersResponse (Prelude.Maybe [Prelude.Text])
batchGetTriggersResponse_triggersNotFound :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetTriggersResponse -> f BatchGetTriggersResponse
batchGetTriggersResponse_triggersNotFound = (BatchGetTriggersResponse -> Maybe [Text])
-> (BatchGetTriggersResponse
    -> Maybe [Text] -> BatchGetTriggersResponse)
-> Lens
     BatchGetTriggersResponse
     BatchGetTriggersResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetTriggersResponse' {Maybe [Text]
triggersNotFound :: Maybe [Text]
$sel:triggersNotFound:BatchGetTriggersResponse' :: BatchGetTriggersResponse -> Maybe [Text]
triggersNotFound} -> Maybe [Text]
triggersNotFound) (\s :: BatchGetTriggersResponse
s@BatchGetTriggersResponse' {} Maybe [Text]
a -> BatchGetTriggersResponse
s {$sel:triggersNotFound:BatchGetTriggersResponse' :: Maybe [Text]
triggersNotFound = Maybe [Text]
a} :: BatchGetTriggersResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> BatchGetTriggersResponse -> f BatchGetTriggersResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchGetTriggersResponse
-> f BatchGetTriggersResponse
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 trigger definitions.
batchGetTriggersResponse_triggers :: Lens.Lens' BatchGetTriggersResponse (Prelude.Maybe [Trigger])
batchGetTriggersResponse_triggers :: (Maybe [Trigger] -> f (Maybe [Trigger]))
-> BatchGetTriggersResponse -> f BatchGetTriggersResponse
batchGetTriggersResponse_triggers = (BatchGetTriggersResponse -> Maybe [Trigger])
-> (BatchGetTriggersResponse
    -> Maybe [Trigger] -> BatchGetTriggersResponse)
-> Lens
     BatchGetTriggersResponse
     BatchGetTriggersResponse
     (Maybe [Trigger])
     (Maybe [Trigger])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetTriggersResponse' {Maybe [Trigger]
triggers :: Maybe [Trigger]
$sel:triggers:BatchGetTriggersResponse' :: BatchGetTriggersResponse -> Maybe [Trigger]
triggers} -> Maybe [Trigger]
triggers) (\s :: BatchGetTriggersResponse
s@BatchGetTriggersResponse' {} Maybe [Trigger]
a -> BatchGetTriggersResponse
s {$sel:triggers:BatchGetTriggersResponse' :: Maybe [Trigger]
triggers = Maybe [Trigger]
a} :: BatchGetTriggersResponse) ((Maybe [Trigger] -> f (Maybe [Trigger]))
 -> BatchGetTriggersResponse -> f BatchGetTriggersResponse)
-> ((Maybe [Trigger] -> f (Maybe [Trigger]))
    -> Maybe [Trigger] -> f (Maybe [Trigger]))
-> (Maybe [Trigger] -> f (Maybe [Trigger]))
-> BatchGetTriggersResponse
-> f BatchGetTriggersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Trigger] [Trigger] [Trigger] [Trigger]
-> Iso
     (Maybe [Trigger])
     (Maybe [Trigger])
     (Maybe [Trigger])
     (Maybe [Trigger])
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 [Trigger] [Trigger] [Trigger] [Trigger]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchGetTriggersResponse