{-# 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.ApiGatewayV2.GetIntegration
-- 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)
--
-- Gets an Integration.
module Amazonka.ApiGatewayV2.GetIntegration
  ( -- * Creating a Request
    GetIntegration (..),
    newGetIntegration,

    -- * Request Lenses
    getIntegration_apiId,
    getIntegration_integrationId,

    -- * Destructuring the Response
    GetIntegrationResponse' (..),
    newGetIntegrationResponse',

    -- * Response Lenses
    getIntegrationResponse'_integrationResponseSelectionExpression,
    getIntegrationResponse'_requestTemplates,
    getIntegrationResponse'_integrationSubtype,
    getIntegrationResponse'_credentialsArn,
    getIntegrationResponse'_integrationUri,
    getIntegrationResponse'_integrationId,
    getIntegrationResponse'_requestParameters,
    getIntegrationResponse'_connectionId,
    getIntegrationResponse'_passthroughBehavior,
    getIntegrationResponse'_integrationMethod,
    getIntegrationResponse'_tlsConfig,
    getIntegrationResponse'_payloadFormatVersion,
    getIntegrationResponse'_templateSelectionExpression,
    getIntegrationResponse'_timeoutInMillis,
    getIntegrationResponse'_apiGatewayManaged,
    getIntegrationResponse'_contentHandlingStrategy,
    getIntegrationResponse'_integrationType,
    getIntegrationResponse'_description,
    getIntegrationResponse'_connectionType,
    getIntegrationResponse'_responseParameters,
    getIntegrationResponse'_httpStatus,
  )
where

import Amazonka.ApiGatewayV2.Types
import qualified Amazonka.Core as Core
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:/ 'newGetIntegration' smart constructor.
data GetIntegration = GetIntegration'
  { -- | The API identifier.
    GetIntegration -> Text
apiId :: Prelude.Text,
    -- | The integration ID.
    GetIntegration -> Text
integrationId :: Prelude.Text
  }
  deriving (GetIntegration -> GetIntegration -> Bool
(GetIntegration -> GetIntegration -> Bool)
-> (GetIntegration -> GetIntegration -> Bool) -> Eq GetIntegration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegration -> GetIntegration -> Bool
$c/= :: GetIntegration -> GetIntegration -> Bool
== :: GetIntegration -> GetIntegration -> Bool
$c== :: GetIntegration -> GetIntegration -> Bool
Prelude.Eq, ReadPrec [GetIntegration]
ReadPrec GetIntegration
Int -> ReadS GetIntegration
ReadS [GetIntegration]
(Int -> ReadS GetIntegration)
-> ReadS [GetIntegration]
-> ReadPrec GetIntegration
-> ReadPrec [GetIntegration]
-> Read GetIntegration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegration]
$creadListPrec :: ReadPrec [GetIntegration]
readPrec :: ReadPrec GetIntegration
$creadPrec :: ReadPrec GetIntegration
readList :: ReadS [GetIntegration]
$creadList :: ReadS [GetIntegration]
readsPrec :: Int -> ReadS GetIntegration
$creadsPrec :: Int -> ReadS GetIntegration
Prelude.Read, Int -> GetIntegration -> ShowS
[GetIntegration] -> ShowS
GetIntegration -> String
(Int -> GetIntegration -> ShowS)
-> (GetIntegration -> String)
-> ([GetIntegration] -> ShowS)
-> Show GetIntegration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegration] -> ShowS
$cshowList :: [GetIntegration] -> ShowS
show :: GetIntegration -> String
$cshow :: GetIntegration -> String
showsPrec :: Int -> GetIntegration -> ShowS
$cshowsPrec :: Int -> GetIntegration -> ShowS
Prelude.Show, (forall x. GetIntegration -> Rep GetIntegration x)
-> (forall x. Rep GetIntegration x -> GetIntegration)
-> Generic GetIntegration
forall x. Rep GetIntegration x -> GetIntegration
forall x. GetIntegration -> Rep GetIntegration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegration x -> GetIntegration
$cfrom :: forall x. GetIntegration -> Rep GetIntegration x
Prelude.Generic)

-- |
-- Create a value of 'GetIntegration' 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:
--
-- 'apiId', 'getIntegration_apiId' - The API identifier.
--
-- 'integrationId', 'getIntegration_integrationId' - The integration ID.
newGetIntegration ::
  -- | 'apiId'
  Prelude.Text ->
  -- | 'integrationId'
  Prelude.Text ->
  GetIntegration
newGetIntegration :: Text -> Text -> GetIntegration
newGetIntegration Text
pApiId_ Text
pIntegrationId_ =
  GetIntegration' :: Text -> Text -> GetIntegration
GetIntegration'
    { $sel:apiId:GetIntegration' :: Text
apiId = Text
pApiId_,
      $sel:integrationId:GetIntegration' :: Text
integrationId = Text
pIntegrationId_
    }

-- | The API identifier.
getIntegration_apiId :: Lens.Lens' GetIntegration Prelude.Text
getIntegration_apiId :: (Text -> f Text) -> GetIntegration -> f GetIntegration
getIntegration_apiId = (GetIntegration -> Text)
-> (GetIntegration -> Text -> GetIntegration)
-> Lens GetIntegration GetIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegration' {Text
apiId :: Text
$sel:apiId:GetIntegration' :: GetIntegration -> Text
apiId} -> Text
apiId) (\s :: GetIntegration
s@GetIntegration' {} Text
a -> GetIntegration
s {$sel:apiId:GetIntegration' :: Text
apiId = Text
a} :: GetIntegration)

-- | The integration ID.
getIntegration_integrationId :: Lens.Lens' GetIntegration Prelude.Text
getIntegration_integrationId :: (Text -> f Text) -> GetIntegration -> f GetIntegration
getIntegration_integrationId = (GetIntegration -> Text)
-> (GetIntegration -> Text -> GetIntegration)
-> Lens GetIntegration GetIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegration' {Text
integrationId :: Text
$sel:integrationId:GetIntegration' :: GetIntegration -> Text
integrationId} -> Text
integrationId) (\s :: GetIntegration
s@GetIntegration' {} Text
a -> GetIntegration
s {$sel:integrationId:GetIntegration' :: Text
integrationId = Text
a} :: GetIntegration)

instance Core.AWSRequest GetIntegration where
  type
    AWSResponse GetIntegration =
      GetIntegrationResponse'
  request :: GetIntegration -> Request GetIntegration
request = Service -> GetIntegration -> Request GetIntegration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetIntegration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetIntegration))
-> Logger
-> Service
-> Proxy GetIntegration
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegration)))
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 (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe PassthroughBehavior
-> Maybe Text
-> Maybe TlsConfig
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Bool
-> Maybe ContentHandlingStrategy
-> Maybe IntegrationType
-> Maybe Text
-> Maybe ConnectionType
-> Maybe (HashMap Text (HashMap Text Text))
-> Int
-> GetIntegrationResponse'
GetIntegrationResponse''
            (Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe PassthroughBehavior
 -> Maybe Text
 -> Maybe TlsConfig
 -> Maybe Text
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Bool
 -> Maybe ContentHandlingStrategy
 -> Maybe IntegrationType
 -> Maybe Text
 -> Maybe ConnectionType
 -> Maybe (HashMap Text (HashMap Text Text))
 -> Int
 -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
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
"integrationResponseSelectionExpression")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"requestTemplates"
                            Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"integrationSubtype")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"credentialsArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"integrationUri")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"integrationId")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Maybe Text
      -> Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"requestParameters"
                            Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe PassthroughBehavior
      -> Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"connectionId")
            Either
  String
  (Maybe PassthroughBehavior
   -> Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe PassthroughBehavior)
-> Either
     String
     (Maybe Text
      -> Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe PassthroughBehavior)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"passthroughBehavior")
            Either
  String
  (Maybe Text
   -> Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe TlsConfig
      -> Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"integrationMethod")
            Either
  String
  (Maybe TlsConfig
   -> Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe TlsConfig)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe TlsConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tlsConfig")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"payloadFormatVersion")
            Either
  String
  (Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Natural
      -> Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"templateSelectionExpression")
            Either
  String
  (Maybe Natural
   -> Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Bool
      -> Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"timeoutInMillis")
            Either
  String
  (Maybe Bool
   -> Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe ContentHandlingStrategy
      -> Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"apiGatewayManaged")
            Either
  String
  (Maybe ContentHandlingStrategy
   -> Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe ContentHandlingStrategy)
-> Either
     String
     (Maybe IntegrationType
      -> Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ContentHandlingStrategy)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"contentHandlingStrategy")
            Either
  String
  (Maybe IntegrationType
   -> Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe IntegrationType)
-> Either
     String
     (Maybe Text
      -> Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe IntegrationType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"integrationType")
            Either
  String
  (Maybe Text
   -> Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ConnectionType
      -> Maybe (HashMap Text (HashMap Text Text))
      -> Int
      -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => 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
"description")
            Either
  String
  (Maybe ConnectionType
   -> Maybe (HashMap Text (HashMap Text Text))
   -> Int
   -> GetIntegrationResponse')
-> Either String (Maybe ConnectionType)
-> Either
     String
     (Maybe (HashMap Text (HashMap Text Text))
      -> Int -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ConnectionType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"connectionType")
            Either
  String
  (Maybe (HashMap Text (HashMap Text Text))
   -> Int -> GetIntegrationResponse')
-> Either String (Maybe (HashMap Text (HashMap Text Text)))
-> Either String (Int -> GetIntegrationResponse')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe (HashMap Text (HashMap Text Text))))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"responseParameters"
                            Either String (Maybe (Maybe (HashMap Text (HashMap Text Text))))
-> Maybe (HashMap Text (HashMap Text Text))
-> Either String (Maybe (HashMap Text (HashMap Text Text)))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text (HashMap Text Text))
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> GetIntegrationResponse')
-> Either String Int -> Either String GetIntegrationResponse'
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 GetIntegration

instance Prelude.NFData GetIntegration

instance Core.ToHeaders GetIntegration where
  toHeaders :: GetIntegration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetIntegration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath GetIntegration where
  toPath :: GetIntegration -> ByteString
toPath GetIntegration' {Text
integrationId :: Text
apiId :: Text
$sel:integrationId:GetIntegration' :: GetIntegration -> Text
$sel:apiId:GetIntegration' :: GetIntegration -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v2/apis/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId,
        ByteString
"/integrations/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
integrationId
      ]

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

-- | /See:/ 'newGetIntegrationResponse'' smart constructor.
data GetIntegrationResponse' = GetIntegrationResponse''
  { -- | The integration response selection expression for the integration.
    -- Supported only for WebSocket APIs. See
    -- <https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-integration-response-selection-expressions Integration Response Selection Expressions>.
    GetIntegrationResponse' -> Maybe Text
integrationResponseSelectionExpression :: Prelude.Maybe Prelude.Text,
    -- | Represents a map of Velocity templates that are applied on the request
    -- payload based on the value of the Content-Type header sent by the
    -- client. The content type value is the key in this map, and the template
    -- (as a String) is the value. Supported only for WebSocket APIs.
    GetIntegrationResponse' -> Maybe (HashMap Text Text)
requestTemplates :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS
    -- service action to invoke. To learn more, see
    -- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services-reference.html Integration subtype reference>.
    GetIntegrationResponse' -> Maybe Text
integrationSubtype :: Prelude.Maybe Prelude.Text,
    -- | Specifies the credentials required for the integration, if any. For AWS
    -- integrations, three options are available. To specify an IAM Role for
    -- API Gateway to assume, use the role\'s Amazon Resource Name (ARN). To
    -- require that the caller\'s identity be passed through from the request,
    -- specify the string arn:aws:iam::*:user\/*. To use resource-based
    -- permissions on supported AWS services, specify null.
    GetIntegrationResponse' -> Maybe Text
credentialsArn :: Prelude.Maybe Prelude.Text,
    -- | For a Lambda integration, specify the URI of a Lambda function.
    --
    -- For an HTTP integration, specify a fully-qualified URL.
    --
    -- For an HTTP API private integration, specify the ARN of an Application
    -- Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map
    -- service. If you specify the ARN of an AWS Cloud Map service, API Gateway
    -- uses DiscoverInstances to identify resources. You can use query
    -- parameters to target specific resources. To learn more, see
    -- <https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html DiscoverInstances>.
    -- For private integrations, all resources must be owned by the same AWS
    -- account.
    GetIntegrationResponse' -> Maybe Text
integrationUri :: Prelude.Maybe Prelude.Text,
    -- | Represents the identifier of an integration.
    GetIntegrationResponse' -> Maybe Text
integrationId :: Prelude.Maybe Prelude.Text,
    -- | For WebSocket APIs, a key-value map specifying request parameters that
    -- are passed from the method request to the backend. The key is an
    -- integration request parameter name and the associated value is a method
    -- request parameter value or static value that must be enclosed within
    -- single quotes and pre-encoded as required by the backend. The method
    -- request parameter value must match the pattern of
    -- method.request.{location}.{name} , where {location} is querystring,
    -- path, or header; and {name} must be a valid and unique method request
    -- parameter name.
    --
    -- For HTTP API integrations with a specified integrationSubtype, request
    -- parameters are a key-value map specifying parameters that are passed to
    -- AWS_PROXY integrations. You can provide static values, or map request
    -- data, stage variables, or context variables that are evaluated at
    -- runtime. To learn more, see
    -- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html Working with AWS service integrations for HTTP APIs>.
    --
    -- For HTTP API itegrations, without a specified integrationSubtype request
    -- parameters are a key-value map specifying how to transform HTTP requests
    -- before sending them to backend integrations. The key should follow the
    -- pattern \<action>:\<header|querystring|path>.\<location>. The action can
    -- be append, overwrite or remove. For values, you can provide static
    -- values, or map request data, stage variables, or context variables that
    -- are evaluated at runtime. To learn more, see
    -- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
    GetIntegrationResponse' -> Maybe (HashMap Text Text)
requestParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The ID of the VPC link for a private integration. Supported only for
    -- HTTP APIs.
    GetIntegrationResponse' -> Maybe Text
connectionId :: Prelude.Maybe Prelude.Text,
    -- | Specifies the pass-through behavior for incoming requests based on the
    -- Content-Type header in the request, and the available mapping templates
    -- specified as the requestTemplates property on the Integration resource.
    -- There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and
    -- NEVER. Supported only for WebSocket APIs.
    --
    -- WHEN_NO_MATCH passes the request body for unmapped content types through
    -- to the integration backend without transformation.
    --
    -- NEVER rejects unmapped content types with an HTTP 415 Unsupported Media
    -- Type response.
    --
    -- WHEN_NO_TEMPLATES allows pass-through when the integration has no
    -- content types mapped to templates. However, if there is at least one
    -- content type defined, unmapped content types will be rejected with the
    -- same HTTP 415 Unsupported Media Type response.
    GetIntegrationResponse' -> Maybe PassthroughBehavior
passthroughBehavior :: Prelude.Maybe PassthroughBehavior,
    -- | Specifies the integration\'s HTTP method type.
    GetIntegrationResponse' -> Maybe Text
integrationMethod :: Prelude.Maybe Prelude.Text,
    -- | The TLS configuration for a private integration. If you specify a TLS
    -- configuration, private integration traffic uses the HTTPS protocol.
    -- Supported only for HTTP APIs.
    GetIntegrationResponse' -> Maybe TlsConfig
tlsConfig :: Prelude.Maybe TlsConfig,
    -- | Specifies the format of the payload sent to an integration. Required for
    -- HTTP APIs.
    GetIntegrationResponse' -> Maybe Text
payloadFormatVersion :: Prelude.Maybe Prelude.Text,
    -- | The template selection expression for the integration. Supported only
    -- for WebSocket APIs.
    GetIntegrationResponse' -> Maybe Text
templateSelectionExpression :: Prelude.Maybe Prelude.Text,
    -- | Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and
    -- between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is
    -- 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.
    GetIntegrationResponse' -> Maybe Natural
timeoutInMillis :: Prelude.Maybe Prelude.Natural,
    -- | Specifies whether an integration is managed by API Gateway. If you
    -- created an API using using quick create, the resulting integration is
    -- managed by API Gateway. You can update a managed integration, but you
    -- can\'t delete it.
    GetIntegrationResponse' -> Maybe Bool
apiGatewayManaged :: Prelude.Maybe Prelude.Bool,
    -- | Supported only for WebSocket APIs. Specifies how to handle response
    -- payload content type conversions. Supported values are CONVERT_TO_BINARY
    -- and CONVERT_TO_TEXT, with the following behaviors:
    --
    -- CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded
    -- string to the corresponding binary blob.
    --
    -- CONVERT_TO_TEXT: Converts a response payload from a binary blob to a
    -- Base64-encoded string.
    --
    -- If this property is not defined, the response payload will be passed
    -- through from the integration response to the route response or method
    -- response without modification.
    GetIntegrationResponse' -> Maybe ContentHandlingStrategy
contentHandlingStrategy :: Prelude.Maybe ContentHandlingStrategy,
    -- | The integration type of an integration. One of the following:
    --
    -- AWS: for integrating the route or method request with an AWS service
    -- action, including the Lambda function-invoking action. With the Lambda
    -- function-invoking action, this is referred to as the Lambda custom
    -- integration. With any other AWS service action, this is known as AWS
    -- integration. Supported only for WebSocket APIs.
    --
    -- AWS_PROXY: for integrating the route or method request with a Lambda
    -- function or other AWS service action. This integration is also referred
    -- to as a Lambda proxy integration.
    --
    -- HTTP: for integrating the route or method request with an HTTP endpoint.
    -- This integration is also referred to as the HTTP custom integration.
    -- Supported only for WebSocket APIs.
    --
    -- HTTP_PROXY: for integrating the route or method request with an HTTP
    -- endpoint, with the client request passed through as-is. This is also
    -- referred to as HTTP proxy integration.
    --
    -- MOCK: for integrating the route or method request with API Gateway as a
    -- \"loopback\" endpoint without invoking any backend. Supported only for
    -- WebSocket APIs.
    GetIntegrationResponse' -> Maybe IntegrationType
integrationType :: Prelude.Maybe IntegrationType,
    -- | Represents the description of an integration.
    GetIntegrationResponse' -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The type of the network connection to the integration endpoint. Specify
    -- INTERNET for connections through the public routable internet or
    -- VPC_LINK for private connections between API Gateway and resources in a
    -- VPC. The default value is INTERNET.
    GetIntegrationResponse' -> Maybe ConnectionType
connectionType :: Prelude.Maybe ConnectionType,
    -- | Supported only for HTTP APIs. You use response parameters to transform
    -- the HTTP response from a backend integration before returning the
    -- response to clients. Specify a key-value map from a selection key to
    -- response parameters. The selection key must be a valid HTTP status code
    -- within the range of 200-599. Response parameters are a key-value map.
    -- The key must match pattern \<action>:\<header>.\<location> or
    -- overwrite.statuscode. The action can be append, overwrite or remove. The
    -- value can be a static value, or map to response data, stage variables,
    -- or context variables that are evaluated at runtime. To learn more, see
    -- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
    GetIntegrationResponse' -> Maybe (HashMap Text (HashMap Text Text))
responseParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | The response's http status code.
    GetIntegrationResponse' -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetIntegrationResponse' -> GetIntegrationResponse' -> Bool
(GetIntegrationResponse' -> GetIntegrationResponse' -> Bool)
-> (GetIntegrationResponse' -> GetIntegrationResponse' -> Bool)
-> Eq GetIntegrationResponse'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationResponse' -> GetIntegrationResponse' -> Bool
$c/= :: GetIntegrationResponse' -> GetIntegrationResponse' -> Bool
== :: GetIntegrationResponse' -> GetIntegrationResponse' -> Bool
$c== :: GetIntegrationResponse' -> GetIntegrationResponse' -> Bool
Prelude.Eq, ReadPrec [GetIntegrationResponse']
ReadPrec GetIntegrationResponse'
Int -> ReadS GetIntegrationResponse'
ReadS [GetIntegrationResponse']
(Int -> ReadS GetIntegrationResponse')
-> ReadS [GetIntegrationResponse']
-> ReadPrec GetIntegrationResponse'
-> ReadPrec [GetIntegrationResponse']
-> Read GetIntegrationResponse'
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationResponse']
$creadListPrec :: ReadPrec [GetIntegrationResponse']
readPrec :: ReadPrec GetIntegrationResponse'
$creadPrec :: ReadPrec GetIntegrationResponse'
readList :: ReadS [GetIntegrationResponse']
$creadList :: ReadS [GetIntegrationResponse']
readsPrec :: Int -> ReadS GetIntegrationResponse'
$creadsPrec :: Int -> ReadS GetIntegrationResponse'
Prelude.Read, Int -> GetIntegrationResponse' -> ShowS
[GetIntegrationResponse'] -> ShowS
GetIntegrationResponse' -> String
(Int -> GetIntegrationResponse' -> ShowS)
-> (GetIntegrationResponse' -> String)
-> ([GetIntegrationResponse'] -> ShowS)
-> Show GetIntegrationResponse'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationResponse'] -> ShowS
$cshowList :: [GetIntegrationResponse'] -> ShowS
show :: GetIntegrationResponse' -> String
$cshow :: GetIntegrationResponse' -> String
showsPrec :: Int -> GetIntegrationResponse' -> ShowS
$cshowsPrec :: Int -> GetIntegrationResponse' -> ShowS
Prelude.Show, (forall x.
 GetIntegrationResponse' -> Rep GetIntegrationResponse' x)
-> (forall x.
    Rep GetIntegrationResponse' x -> GetIntegrationResponse')
-> Generic GetIntegrationResponse'
forall x. Rep GetIntegrationResponse' x -> GetIntegrationResponse'
forall x. GetIntegrationResponse' -> Rep GetIntegrationResponse' x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegrationResponse' x -> GetIntegrationResponse'
$cfrom :: forall x. GetIntegrationResponse' -> Rep GetIntegrationResponse' x
Prelude.Generic)

-- |
-- Create a value of 'GetIntegrationResponse'' 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:
--
-- 'integrationResponseSelectionExpression', 'getIntegrationResponse'_integrationResponseSelectionExpression' - The integration response selection expression for the integration.
-- Supported only for WebSocket APIs. See
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-integration-response-selection-expressions Integration Response Selection Expressions>.
--
-- 'requestTemplates', 'getIntegrationResponse'_requestTemplates' - Represents a map of Velocity templates that are applied on the request
-- payload based on the value of the Content-Type header sent by the
-- client. The content type value is the key in this map, and the template
-- (as a String) is the value. Supported only for WebSocket APIs.
--
-- 'integrationSubtype', 'getIntegrationResponse'_integrationSubtype' - Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS
-- service action to invoke. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services-reference.html Integration subtype reference>.
--
-- 'credentialsArn', 'getIntegrationResponse'_credentialsArn' - Specifies the credentials required for the integration, if any. For AWS
-- integrations, three options are available. To specify an IAM Role for
-- API Gateway to assume, use the role\'s Amazon Resource Name (ARN). To
-- require that the caller\'s identity be passed through from the request,
-- specify the string arn:aws:iam::*:user\/*. To use resource-based
-- permissions on supported AWS services, specify null.
--
-- 'integrationUri', 'getIntegrationResponse'_integrationUri' - For a Lambda integration, specify the URI of a Lambda function.
--
-- For an HTTP integration, specify a fully-qualified URL.
--
-- For an HTTP API private integration, specify the ARN of an Application
-- Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map
-- service. If you specify the ARN of an AWS Cloud Map service, API Gateway
-- uses DiscoverInstances to identify resources. You can use query
-- parameters to target specific resources. To learn more, see
-- <https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html DiscoverInstances>.
-- For private integrations, all resources must be owned by the same AWS
-- account.
--
-- 'integrationId', 'getIntegrationResponse'_integrationId' - Represents the identifier of an integration.
--
-- 'requestParameters', 'getIntegrationResponse'_requestParameters' - For WebSocket APIs, a key-value map specifying request parameters that
-- are passed from the method request to the backend. The key is an
-- integration request parameter name and the associated value is a method
-- request parameter value or static value that must be enclosed within
-- single quotes and pre-encoded as required by the backend. The method
-- request parameter value must match the pattern of
-- method.request.{location}.{name} , where {location} is querystring,
-- path, or header; and {name} must be a valid and unique method request
-- parameter name.
--
-- For HTTP API integrations with a specified integrationSubtype, request
-- parameters are a key-value map specifying parameters that are passed to
-- AWS_PROXY integrations. You can provide static values, or map request
-- data, stage variables, or context variables that are evaluated at
-- runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html Working with AWS service integrations for HTTP APIs>.
--
-- For HTTP API itegrations, without a specified integrationSubtype request
-- parameters are a key-value map specifying how to transform HTTP requests
-- before sending them to backend integrations. The key should follow the
-- pattern \<action>:\<header|querystring|path>.\<location>. The action can
-- be append, overwrite or remove. For values, you can provide static
-- values, or map request data, stage variables, or context variables that
-- are evaluated at runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
--
-- 'connectionId', 'getIntegrationResponse'_connectionId' - The ID of the VPC link for a private integration. Supported only for
-- HTTP APIs.
--
-- 'passthroughBehavior', 'getIntegrationResponse'_passthroughBehavior' - Specifies the pass-through behavior for incoming requests based on the
-- Content-Type header in the request, and the available mapping templates
-- specified as the requestTemplates property on the Integration resource.
-- There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and
-- NEVER. Supported only for WebSocket APIs.
--
-- WHEN_NO_MATCH passes the request body for unmapped content types through
-- to the integration backend without transformation.
--
-- NEVER rejects unmapped content types with an HTTP 415 Unsupported Media
-- Type response.
--
-- WHEN_NO_TEMPLATES allows pass-through when the integration has no
-- content types mapped to templates. However, if there is at least one
-- content type defined, unmapped content types will be rejected with the
-- same HTTP 415 Unsupported Media Type response.
--
-- 'integrationMethod', 'getIntegrationResponse'_integrationMethod' - Specifies the integration\'s HTTP method type.
--
-- 'tlsConfig', 'getIntegrationResponse'_tlsConfig' - The TLS configuration for a private integration. If you specify a TLS
-- configuration, private integration traffic uses the HTTPS protocol.
-- Supported only for HTTP APIs.
--
-- 'payloadFormatVersion', 'getIntegrationResponse'_payloadFormatVersion' - Specifies the format of the payload sent to an integration. Required for
-- HTTP APIs.
--
-- 'templateSelectionExpression', 'getIntegrationResponse'_templateSelectionExpression' - The template selection expression for the integration. Supported only
-- for WebSocket APIs.
--
-- 'timeoutInMillis', 'getIntegrationResponse'_timeoutInMillis' - Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and
-- between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is
-- 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.
--
-- 'apiGatewayManaged', 'getIntegrationResponse'_apiGatewayManaged' - Specifies whether an integration is managed by API Gateway. If you
-- created an API using using quick create, the resulting integration is
-- managed by API Gateway. You can update a managed integration, but you
-- can\'t delete it.
--
-- 'contentHandlingStrategy', 'getIntegrationResponse'_contentHandlingStrategy' - Supported only for WebSocket APIs. Specifies how to handle response
-- payload content type conversions. Supported values are CONVERT_TO_BINARY
-- and CONVERT_TO_TEXT, with the following behaviors:
--
-- CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded
-- string to the corresponding binary blob.
--
-- CONVERT_TO_TEXT: Converts a response payload from a binary blob to a
-- Base64-encoded string.
--
-- If this property is not defined, the response payload will be passed
-- through from the integration response to the route response or method
-- response without modification.
--
-- 'integrationType', 'getIntegrationResponse'_integrationType' - The integration type of an integration. One of the following:
--
-- AWS: for integrating the route or method request with an AWS service
-- action, including the Lambda function-invoking action. With the Lambda
-- function-invoking action, this is referred to as the Lambda custom
-- integration. With any other AWS service action, this is known as AWS
-- integration. Supported only for WebSocket APIs.
--
-- AWS_PROXY: for integrating the route or method request with a Lambda
-- function or other AWS service action. This integration is also referred
-- to as a Lambda proxy integration.
--
-- HTTP: for integrating the route or method request with an HTTP endpoint.
-- This integration is also referred to as the HTTP custom integration.
-- Supported only for WebSocket APIs.
--
-- HTTP_PROXY: for integrating the route or method request with an HTTP
-- endpoint, with the client request passed through as-is. This is also
-- referred to as HTTP proxy integration.
--
-- MOCK: for integrating the route or method request with API Gateway as a
-- \"loopback\" endpoint without invoking any backend. Supported only for
-- WebSocket APIs.
--
-- 'description', 'getIntegrationResponse'_description' - Represents the description of an integration.
--
-- 'connectionType', 'getIntegrationResponse'_connectionType' - The type of the network connection to the integration endpoint. Specify
-- INTERNET for connections through the public routable internet or
-- VPC_LINK for private connections between API Gateway and resources in a
-- VPC. The default value is INTERNET.
--
-- 'responseParameters', 'getIntegrationResponse'_responseParameters' - Supported only for HTTP APIs. You use response parameters to transform
-- the HTTP response from a backend integration before returning the
-- response to clients. Specify a key-value map from a selection key to
-- response parameters. The selection key must be a valid HTTP status code
-- within the range of 200-599. Response parameters are a key-value map.
-- The key must match pattern \<action>:\<header>.\<location> or
-- overwrite.statuscode. The action can be append, overwrite or remove. The
-- value can be a static value, or map to response data, stage variables,
-- or context variables that are evaluated at runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
--
-- 'httpStatus', 'getIntegrationResponse'_httpStatus' - The response's http status code.
newGetIntegrationResponse' ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetIntegrationResponse'
newGetIntegrationResponse' :: Int -> GetIntegrationResponse'
newGetIntegrationResponse' Int
pHttpStatus_ =
  GetIntegrationResponse'' :: Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe PassthroughBehavior
-> Maybe Text
-> Maybe TlsConfig
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Bool
-> Maybe ContentHandlingStrategy
-> Maybe IntegrationType
-> Maybe Text
-> Maybe ConnectionType
-> Maybe (HashMap Text (HashMap Text Text))
-> Int
-> GetIntegrationResponse'
GetIntegrationResponse''
    { $sel:integrationResponseSelectionExpression:GetIntegrationResponse'' :: Maybe Text
integrationResponseSelectionExpression =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:requestTemplates:GetIntegrationResponse'' :: Maybe (HashMap Text Text)
requestTemplates = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:integrationSubtype:GetIntegrationResponse'' :: Maybe Text
integrationSubtype = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:credentialsArn:GetIntegrationResponse'' :: Maybe Text
credentialsArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:integrationUri:GetIntegrationResponse'' :: Maybe Text
integrationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:integrationId:GetIntegrationResponse'' :: Maybe Text
integrationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:requestParameters:GetIntegrationResponse'' :: Maybe (HashMap Text Text)
requestParameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:connectionId:GetIntegrationResponse'' :: Maybe Text
connectionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:passthroughBehavior:GetIntegrationResponse'' :: Maybe PassthroughBehavior
passthroughBehavior = Maybe PassthroughBehavior
forall a. Maybe a
Prelude.Nothing,
      $sel:integrationMethod:GetIntegrationResponse'' :: Maybe Text
integrationMethod = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tlsConfig:GetIntegrationResponse'' :: Maybe TlsConfig
tlsConfig = Maybe TlsConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:payloadFormatVersion:GetIntegrationResponse'' :: Maybe Text
payloadFormatVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:templateSelectionExpression:GetIntegrationResponse'' :: Maybe Text
templateSelectionExpression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:timeoutInMillis:GetIntegrationResponse'' :: Maybe Natural
timeoutInMillis = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:apiGatewayManaged:GetIntegrationResponse'' :: Maybe Bool
apiGatewayManaged = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:contentHandlingStrategy:GetIntegrationResponse'' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = Maybe ContentHandlingStrategy
forall a. Maybe a
Prelude.Nothing,
      $sel:integrationType:GetIntegrationResponse'' :: Maybe IntegrationType
integrationType = Maybe IntegrationType
forall a. Maybe a
Prelude.Nothing,
      $sel:description:GetIntegrationResponse'' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:connectionType:GetIntegrationResponse'' :: Maybe ConnectionType
connectionType = Maybe ConnectionType
forall a. Maybe a
Prelude.Nothing,
      $sel:responseParameters:GetIntegrationResponse'' :: Maybe (HashMap Text (HashMap Text Text))
responseParameters = Maybe (HashMap Text (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetIntegrationResponse'' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The integration response selection expression for the integration.
-- Supported only for WebSocket APIs. See
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-integration-response-selection-expressions Integration Response Selection Expressions>.
getIntegrationResponse'_integrationResponseSelectionExpression :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_integrationResponseSelectionExpression :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationResponseSelectionExpression = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
integrationResponseSelectionExpression :: Maybe Text
$sel:integrationResponseSelectionExpression:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
integrationResponseSelectionExpression} -> Maybe Text
integrationResponseSelectionExpression) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:integrationResponseSelectionExpression:GetIntegrationResponse'' :: Maybe Text
integrationResponseSelectionExpression = Maybe Text
a} :: GetIntegrationResponse')

-- | Represents a map of Velocity templates that are applied on the request
-- payload based on the value of the Content-Type header sent by the
-- client. The content type value is the key in this map, and the template
-- (as a String) is the value. Supported only for WebSocket APIs.
getIntegrationResponse'_requestTemplates :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getIntegrationResponse'_requestTemplates :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_requestTemplates = (GetIntegrationResponse' -> Maybe (HashMap Text Text))
-> (GetIntegrationResponse'
    -> Maybe (HashMap Text Text) -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (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 (\GetIntegrationResponse'' {Maybe (HashMap Text Text)
requestTemplates :: Maybe (HashMap Text Text)
$sel:requestTemplates:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe (HashMap Text Text)
requestTemplates} -> Maybe (HashMap Text Text)
requestTemplates) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe (HashMap Text Text)
a -> GetIntegrationResponse'
s {$sel:requestTemplates:GetIntegrationResponse'' :: Maybe (HashMap Text Text)
requestTemplates = Maybe (HashMap Text Text)
a} :: GetIntegrationResponse') ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetIntegrationResponse' -> f GetIntegrationResponse')
-> ((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)))
-> GetIntegrationResponse'
-> f GetIntegrationResponse'
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

-- | Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS
-- service action to invoke. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services-reference.html Integration subtype reference>.
getIntegrationResponse'_integrationSubtype :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_integrationSubtype :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationSubtype = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
integrationSubtype :: Maybe Text
$sel:integrationSubtype:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
integrationSubtype} -> Maybe Text
integrationSubtype) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:integrationSubtype:GetIntegrationResponse'' :: Maybe Text
integrationSubtype = Maybe Text
a} :: GetIntegrationResponse')

-- | Specifies the credentials required for the integration, if any. For AWS
-- integrations, three options are available. To specify an IAM Role for
-- API Gateway to assume, use the role\'s Amazon Resource Name (ARN). To
-- require that the caller\'s identity be passed through from the request,
-- specify the string arn:aws:iam::*:user\/*. To use resource-based
-- permissions on supported AWS services, specify null.
getIntegrationResponse'_credentialsArn :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_credentialsArn :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_credentialsArn = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
credentialsArn :: Maybe Text
$sel:credentialsArn:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
credentialsArn} -> Maybe Text
credentialsArn) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:credentialsArn:GetIntegrationResponse'' :: Maybe Text
credentialsArn = Maybe Text
a} :: GetIntegrationResponse')

-- | For a Lambda integration, specify the URI of a Lambda function.
--
-- For an HTTP integration, specify a fully-qualified URL.
--
-- For an HTTP API private integration, specify the ARN of an Application
-- Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map
-- service. If you specify the ARN of an AWS Cloud Map service, API Gateway
-- uses DiscoverInstances to identify resources. You can use query
-- parameters to target specific resources. To learn more, see
-- <https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html DiscoverInstances>.
-- For private integrations, all resources must be owned by the same AWS
-- account.
getIntegrationResponse'_integrationUri :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_integrationUri :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationUri = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
integrationUri :: Maybe Text
$sel:integrationUri:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
integrationUri} -> Maybe Text
integrationUri) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:integrationUri:GetIntegrationResponse'' :: Maybe Text
integrationUri = Maybe Text
a} :: GetIntegrationResponse')

-- | Represents the identifier of an integration.
getIntegrationResponse'_integrationId :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_integrationId :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationId = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
integrationId :: Maybe Text
$sel:integrationId:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
integrationId} -> Maybe Text
integrationId) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:integrationId:GetIntegrationResponse'' :: Maybe Text
integrationId = Maybe Text
a} :: GetIntegrationResponse')

-- | For WebSocket APIs, a key-value map specifying request parameters that
-- are passed from the method request to the backend. The key is an
-- integration request parameter name and the associated value is a method
-- request parameter value or static value that must be enclosed within
-- single quotes and pre-encoded as required by the backend. The method
-- request parameter value must match the pattern of
-- method.request.{location}.{name} , where {location} is querystring,
-- path, or header; and {name} must be a valid and unique method request
-- parameter name.
--
-- For HTTP API integrations with a specified integrationSubtype, request
-- parameters are a key-value map specifying parameters that are passed to
-- AWS_PROXY integrations. You can provide static values, or map request
-- data, stage variables, or context variables that are evaluated at
-- runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-aws-services.html Working with AWS service integrations for HTTP APIs>.
--
-- For HTTP API itegrations, without a specified integrationSubtype request
-- parameters are a key-value map specifying how to transform HTTP requests
-- before sending them to backend integrations. The key should follow the
-- pattern \<action>:\<header|querystring|path>.\<location>. The action can
-- be append, overwrite or remove. For values, you can provide static
-- values, or map request data, stage variables, or context variables that
-- are evaluated at runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
getIntegrationResponse'_requestParameters :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getIntegrationResponse'_requestParameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_requestParameters = (GetIntegrationResponse' -> Maybe (HashMap Text Text))
-> (GetIntegrationResponse'
    -> Maybe (HashMap Text Text) -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (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 (\GetIntegrationResponse'' {Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
$sel:requestParameters:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe (HashMap Text Text)
requestParameters} -> Maybe (HashMap Text Text)
requestParameters) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe (HashMap Text Text)
a -> GetIntegrationResponse'
s {$sel:requestParameters:GetIntegrationResponse'' :: Maybe (HashMap Text Text)
requestParameters = Maybe (HashMap Text Text)
a} :: GetIntegrationResponse') ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetIntegrationResponse' -> f GetIntegrationResponse')
-> ((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)))
-> GetIntegrationResponse'
-> f GetIntegrationResponse'
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

-- | The ID of the VPC link for a private integration. Supported only for
-- HTTP APIs.
getIntegrationResponse'_connectionId :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_connectionId :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_connectionId = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
connectionId :: Maybe Text
$sel:connectionId:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
connectionId} -> Maybe Text
connectionId) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:connectionId:GetIntegrationResponse'' :: Maybe Text
connectionId = Maybe Text
a} :: GetIntegrationResponse')

-- | Specifies the pass-through behavior for incoming requests based on the
-- Content-Type header in the request, and the available mapping templates
-- specified as the requestTemplates property on the Integration resource.
-- There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and
-- NEVER. Supported only for WebSocket APIs.
--
-- WHEN_NO_MATCH passes the request body for unmapped content types through
-- to the integration backend without transformation.
--
-- NEVER rejects unmapped content types with an HTTP 415 Unsupported Media
-- Type response.
--
-- WHEN_NO_TEMPLATES allows pass-through when the integration has no
-- content types mapped to templates. However, if there is at least one
-- content type defined, unmapped content types will be rejected with the
-- same HTTP 415 Unsupported Media Type response.
getIntegrationResponse'_passthroughBehavior :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe PassthroughBehavior)
getIntegrationResponse'_passthroughBehavior :: (Maybe PassthroughBehavior -> f (Maybe PassthroughBehavior))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_passthroughBehavior = (GetIntegrationResponse' -> Maybe PassthroughBehavior)
-> (GetIntegrationResponse'
    -> Maybe PassthroughBehavior -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe PassthroughBehavior)
     (Maybe PassthroughBehavior)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe PassthroughBehavior
passthroughBehavior :: Maybe PassthroughBehavior
$sel:passthroughBehavior:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe PassthroughBehavior
passthroughBehavior} -> Maybe PassthroughBehavior
passthroughBehavior) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe PassthroughBehavior
a -> GetIntegrationResponse'
s {$sel:passthroughBehavior:GetIntegrationResponse'' :: Maybe PassthroughBehavior
passthroughBehavior = Maybe PassthroughBehavior
a} :: GetIntegrationResponse')

-- | Specifies the integration\'s HTTP method type.
getIntegrationResponse'_integrationMethod :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_integrationMethod :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationMethod = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
integrationMethod :: Maybe Text
$sel:integrationMethod:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
integrationMethod} -> Maybe Text
integrationMethod) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:integrationMethod:GetIntegrationResponse'' :: Maybe Text
integrationMethod = Maybe Text
a} :: GetIntegrationResponse')

-- | The TLS configuration for a private integration. If you specify a TLS
-- configuration, private integration traffic uses the HTTPS protocol.
-- Supported only for HTTP APIs.
getIntegrationResponse'_tlsConfig :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe TlsConfig)
getIntegrationResponse'_tlsConfig :: (Maybe TlsConfig -> f (Maybe TlsConfig))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_tlsConfig = (GetIntegrationResponse' -> Maybe TlsConfig)
-> (GetIntegrationResponse'
    -> Maybe TlsConfig -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe TlsConfig)
     (Maybe TlsConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe TlsConfig
tlsConfig :: Maybe TlsConfig
$sel:tlsConfig:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe TlsConfig
tlsConfig} -> Maybe TlsConfig
tlsConfig) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe TlsConfig
a -> GetIntegrationResponse'
s {$sel:tlsConfig:GetIntegrationResponse'' :: Maybe TlsConfig
tlsConfig = Maybe TlsConfig
a} :: GetIntegrationResponse')

-- | Specifies the format of the payload sent to an integration. Required for
-- HTTP APIs.
getIntegrationResponse'_payloadFormatVersion :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_payloadFormatVersion :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_payloadFormatVersion = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
payloadFormatVersion :: Maybe Text
$sel:payloadFormatVersion:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
payloadFormatVersion} -> Maybe Text
payloadFormatVersion) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:payloadFormatVersion:GetIntegrationResponse'' :: Maybe Text
payloadFormatVersion = Maybe Text
a} :: GetIntegrationResponse')

-- | The template selection expression for the integration. Supported only
-- for WebSocket APIs.
getIntegrationResponse'_templateSelectionExpression :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_templateSelectionExpression :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_templateSelectionExpression = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
templateSelectionExpression :: Maybe Text
$sel:templateSelectionExpression:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
templateSelectionExpression} -> Maybe Text
templateSelectionExpression) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:templateSelectionExpression:GetIntegrationResponse'' :: Maybe Text
templateSelectionExpression = Maybe Text
a} :: GetIntegrationResponse')

-- | Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and
-- between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is
-- 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.
getIntegrationResponse'_timeoutInMillis :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Natural)
getIntegrationResponse'_timeoutInMillis :: (Maybe Natural -> f (Maybe Natural))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_timeoutInMillis = (GetIntegrationResponse' -> Maybe Natural)
-> (GetIntegrationResponse'
    -> Maybe Natural -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Natural
timeoutInMillis :: Maybe Natural
$sel:timeoutInMillis:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Natural
timeoutInMillis} -> Maybe Natural
timeoutInMillis) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Natural
a -> GetIntegrationResponse'
s {$sel:timeoutInMillis:GetIntegrationResponse'' :: Maybe Natural
timeoutInMillis = Maybe Natural
a} :: GetIntegrationResponse')

-- | Specifies whether an integration is managed by API Gateway. If you
-- created an API using using quick create, the resulting integration is
-- managed by API Gateway. You can update a managed integration, but you
-- can\'t delete it.
getIntegrationResponse'_apiGatewayManaged :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Bool)
getIntegrationResponse'_apiGatewayManaged :: (Maybe Bool -> f (Maybe Bool))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_apiGatewayManaged = (GetIntegrationResponse' -> Maybe Bool)
-> (GetIntegrationResponse'
    -> Maybe Bool -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Bool
apiGatewayManaged :: Maybe Bool
$sel:apiGatewayManaged:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Bool
apiGatewayManaged} -> Maybe Bool
apiGatewayManaged) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Bool
a -> GetIntegrationResponse'
s {$sel:apiGatewayManaged:GetIntegrationResponse'' :: Maybe Bool
apiGatewayManaged = Maybe Bool
a} :: GetIntegrationResponse')

-- | Supported only for WebSocket APIs. Specifies how to handle response
-- payload content type conversions. Supported values are CONVERT_TO_BINARY
-- and CONVERT_TO_TEXT, with the following behaviors:
--
-- CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded
-- string to the corresponding binary blob.
--
-- CONVERT_TO_TEXT: Converts a response payload from a binary blob to a
-- Base64-encoded string.
--
-- If this property is not defined, the response payload will be passed
-- through from the integration response to the route response or method
-- response without modification.
getIntegrationResponse'_contentHandlingStrategy :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe ContentHandlingStrategy)
getIntegrationResponse'_contentHandlingStrategy :: (Maybe ContentHandlingStrategy
 -> f (Maybe ContentHandlingStrategy))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_contentHandlingStrategy = (GetIntegrationResponse' -> Maybe ContentHandlingStrategy)
-> (GetIntegrationResponse'
    -> Maybe ContentHandlingStrategy -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe ContentHandlingStrategy)
     (Maybe ContentHandlingStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe ContentHandlingStrategy
contentHandlingStrategy :: Maybe ContentHandlingStrategy
$sel:contentHandlingStrategy:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe ContentHandlingStrategy
contentHandlingStrategy} -> Maybe ContentHandlingStrategy
contentHandlingStrategy) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe ContentHandlingStrategy
a -> GetIntegrationResponse'
s {$sel:contentHandlingStrategy:GetIntegrationResponse'' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = Maybe ContentHandlingStrategy
a} :: GetIntegrationResponse')

-- | The integration type of an integration. One of the following:
--
-- AWS: for integrating the route or method request with an AWS service
-- action, including the Lambda function-invoking action. With the Lambda
-- function-invoking action, this is referred to as the Lambda custom
-- integration. With any other AWS service action, this is known as AWS
-- integration. Supported only for WebSocket APIs.
--
-- AWS_PROXY: for integrating the route or method request with a Lambda
-- function or other AWS service action. This integration is also referred
-- to as a Lambda proxy integration.
--
-- HTTP: for integrating the route or method request with an HTTP endpoint.
-- This integration is also referred to as the HTTP custom integration.
-- Supported only for WebSocket APIs.
--
-- HTTP_PROXY: for integrating the route or method request with an HTTP
-- endpoint, with the client request passed through as-is. This is also
-- referred to as HTTP proxy integration.
--
-- MOCK: for integrating the route or method request with API Gateway as a
-- \"loopback\" endpoint without invoking any backend. Supported only for
-- WebSocket APIs.
getIntegrationResponse'_integrationType :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe IntegrationType)
getIntegrationResponse'_integrationType :: (Maybe IntegrationType -> f (Maybe IntegrationType))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_integrationType = (GetIntegrationResponse' -> Maybe IntegrationType)
-> (GetIntegrationResponse'
    -> Maybe IntegrationType -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe IntegrationType)
     (Maybe IntegrationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe IntegrationType
integrationType :: Maybe IntegrationType
$sel:integrationType:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe IntegrationType
integrationType} -> Maybe IntegrationType
integrationType) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe IntegrationType
a -> GetIntegrationResponse'
s {$sel:integrationType:GetIntegrationResponse'' :: Maybe IntegrationType
integrationType = Maybe IntegrationType
a} :: GetIntegrationResponse')

-- | Represents the description of an integration.
getIntegrationResponse'_description :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe Prelude.Text)
getIntegrationResponse'_description :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_description = (GetIntegrationResponse' -> Maybe Text)
-> (GetIntegrationResponse'
    -> Maybe Text -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe Text
description :: Maybe Text
$sel:description:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe Text
description} -> Maybe Text
description) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe Text
a -> GetIntegrationResponse'
s {$sel:description:GetIntegrationResponse'' :: Maybe Text
description = Maybe Text
a} :: GetIntegrationResponse')

-- | The type of the network connection to the integration endpoint. Specify
-- INTERNET for connections through the public routable internet or
-- VPC_LINK for private connections between API Gateway and resources in a
-- VPC. The default value is INTERNET.
getIntegrationResponse'_connectionType :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe ConnectionType)
getIntegrationResponse'_connectionType :: (Maybe ConnectionType -> f (Maybe ConnectionType))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_connectionType = (GetIntegrationResponse' -> Maybe ConnectionType)
-> (GetIntegrationResponse'
    -> Maybe ConnectionType -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe ConnectionType)
     (Maybe ConnectionType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe ConnectionType
connectionType :: Maybe ConnectionType
$sel:connectionType:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe ConnectionType
connectionType} -> Maybe ConnectionType
connectionType) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe ConnectionType
a -> GetIntegrationResponse'
s {$sel:connectionType:GetIntegrationResponse'' :: Maybe ConnectionType
connectionType = Maybe ConnectionType
a} :: GetIntegrationResponse')

-- | Supported only for HTTP APIs. You use response parameters to transform
-- the HTTP response from a backend integration before returning the
-- response to clients. Specify a key-value map from a selection key to
-- response parameters. The selection key must be a valid HTTP status code
-- within the range of 200-599. Response parameters are a key-value map.
-- The key must match pattern \<action>:\<header>.\<location> or
-- overwrite.statuscode. The action can be append, overwrite or remove. The
-- value can be a static value, or map to response data, stage variables,
-- or context variables that are evaluated at runtime. To learn more, see
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html Transforming API requests and responses>.
getIntegrationResponse'_responseParameters :: Lens.Lens' GetIntegrationResponse' (Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.HashMap Prelude.Text Prelude.Text)))
getIntegrationResponse'_responseParameters :: (Maybe (HashMap Text (HashMap Text Text))
 -> f (Maybe (HashMap Text (HashMap Text Text))))
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_responseParameters = (GetIntegrationResponse'
 -> Maybe (HashMap Text (HashMap Text Text)))
-> (GetIntegrationResponse'
    -> Maybe (HashMap Text (HashMap Text Text))
    -> GetIntegrationResponse')
-> Lens
     GetIntegrationResponse'
     GetIntegrationResponse'
     (Maybe (HashMap Text (HashMap Text Text)))
     (Maybe (HashMap Text (HashMap Text Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Maybe (HashMap Text (HashMap Text Text))
responseParameters :: Maybe (HashMap Text (HashMap Text Text))
$sel:responseParameters:GetIntegrationResponse'' :: GetIntegrationResponse' -> Maybe (HashMap Text (HashMap Text Text))
responseParameters} -> Maybe (HashMap Text (HashMap Text Text))
responseParameters) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Maybe (HashMap Text (HashMap Text Text))
a -> GetIntegrationResponse'
s {$sel:responseParameters:GetIntegrationResponse'' :: Maybe (HashMap Text (HashMap Text Text))
responseParameters = Maybe (HashMap Text (HashMap Text Text))
a} :: GetIntegrationResponse') ((Maybe (HashMap Text (HashMap Text Text))
  -> f (Maybe (HashMap Text (HashMap Text Text))))
 -> GetIntegrationResponse' -> f GetIntegrationResponse')
-> ((Maybe (HashMap Text (HashMap Text Text))
     -> f (Maybe (HashMap Text (HashMap Text Text))))
    -> Maybe (HashMap Text (HashMap Text Text))
    -> f (Maybe (HashMap Text (HashMap Text Text))))
-> (Maybe (HashMap Text (HashMap Text Text))
    -> f (Maybe (HashMap Text (HashMap Text Text))))
-> GetIntegrationResponse'
-> f GetIntegrationResponse'
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text (HashMap Text Text))
  (HashMap Text (HashMap Text Text))
  (HashMap Text (HashMap Text Text))
  (HashMap Text (HashMap Text Text))
-> Iso
     (Maybe (HashMap Text (HashMap Text Text)))
     (Maybe (HashMap Text (HashMap Text Text)))
     (Maybe (HashMap Text (HashMap Text Text)))
     (Maybe (HashMap Text (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 (HashMap Text Text))
  (HashMap Text (HashMap Text Text))
  (HashMap Text (HashMap Text Text))
  (HashMap Text (HashMap 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.
getIntegrationResponse'_httpStatus :: Lens.Lens' GetIntegrationResponse' Prelude.Int
getIntegrationResponse'_httpStatus :: (Int -> f Int)
-> GetIntegrationResponse' -> f GetIntegrationResponse'
getIntegrationResponse'_httpStatus = (GetIntegrationResponse' -> Int)
-> (GetIntegrationResponse' -> Int -> GetIntegrationResponse')
-> Lens GetIntegrationResponse' GetIntegrationResponse' Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationResponse'' {Int
httpStatus :: Int
$sel:httpStatus:GetIntegrationResponse'' :: GetIntegrationResponse' -> Int
httpStatus} -> Int
httpStatus) (\s :: GetIntegrationResponse'
s@GetIntegrationResponse'' {} Int
a -> GetIntegrationResponse'
s {$sel:httpStatus:GetIntegrationResponse'' :: Int
httpStatus = Int
a} :: GetIntegrationResponse')

instance Prelude.NFData GetIntegrationResponse'