{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ApiGatewayV2.Types.Integration where
import Amazonka.ApiGatewayV2.Types.ConnectionType
import Amazonka.ApiGatewayV2.Types.ContentHandlingStrategy
import Amazonka.ApiGatewayV2.Types.IntegrationType
import Amazonka.ApiGatewayV2.Types.PassthroughBehavior
import Amazonka.ApiGatewayV2.Types.TlsConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data Integration = Integration'
{
Integration -> Maybe Bool
apiGatewayManaged :: Prelude.Maybe Prelude.Bool,
Integration -> Maybe Text
connectionId :: Prelude.Maybe Prelude.Text,
Integration -> Maybe ConnectionType
connectionType :: Prelude.Maybe ConnectionType,
Integration -> Maybe ContentHandlingStrategy
contentHandlingStrategy :: Prelude.Maybe ContentHandlingStrategy,
Integration -> Maybe Text
credentialsArn :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
integrationId :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
integrationMethod :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
integrationResponseSelectionExpression :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
integrationSubtype :: Prelude.Maybe Prelude.Text,
Integration -> Maybe IntegrationType
integrationType :: Prelude.Maybe IntegrationType,
Integration -> Maybe Text
integrationUri :: Prelude.Maybe Prelude.Text,
Integration -> Maybe PassthroughBehavior
passthroughBehavior :: Prelude.Maybe PassthroughBehavior,
Integration -> Maybe Text
payloadFormatVersion :: Prelude.Maybe Prelude.Text,
Integration -> Maybe (HashMap Text Text)
requestParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Integration -> Maybe (HashMap Text Text)
requestTemplates :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Integration -> Maybe (HashMap Text (HashMap Text Text))
responseParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.HashMap Prelude.Text Prelude.Text)),
Integration -> Maybe Text
templateSelectionExpression :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Natural
timeoutInMillis :: Prelude.Maybe Prelude.Natural,
Integration -> Maybe TlsConfig
tlsConfig :: Prelude.Maybe TlsConfig
}
deriving (Integration -> Integration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Integration -> Integration -> Bool
$c/= :: Integration -> Integration -> Bool
== :: Integration -> Integration -> Bool
$c== :: Integration -> Integration -> Bool
Prelude.Eq, ReadPrec [Integration]
ReadPrec Integration
Int -> ReadS Integration
ReadS [Integration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Integration]
$creadListPrec :: ReadPrec [Integration]
readPrec :: ReadPrec Integration
$creadPrec :: ReadPrec Integration
readList :: ReadS [Integration]
$creadList :: ReadS [Integration]
readsPrec :: Int -> ReadS Integration
$creadsPrec :: Int -> ReadS Integration
Prelude.Read, Int -> Integration -> ShowS
[Integration] -> ShowS
Integration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Integration] -> ShowS
$cshowList :: [Integration] -> ShowS
show :: Integration -> String
$cshow :: Integration -> String
showsPrec :: Int -> Integration -> ShowS
$cshowsPrec :: Int -> Integration -> ShowS
Prelude.Show, forall x. Rep Integration x -> Integration
forall x. Integration -> Rep Integration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Integration x -> Integration
$cfrom :: forall x. Integration -> Rep Integration x
Prelude.Generic)
newIntegration ::
Integration
newIntegration :: Integration
newIntegration =
Integration'
{ $sel:apiGatewayManaged:Integration' :: Maybe Bool
apiGatewayManaged = forall a. Maybe a
Prelude.Nothing,
$sel:connectionId:Integration' :: Maybe Text
connectionId = forall a. Maybe a
Prelude.Nothing,
$sel:connectionType:Integration' :: Maybe ConnectionType
connectionType = forall a. Maybe a
Prelude.Nothing,
$sel:contentHandlingStrategy:Integration' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = forall a. Maybe a
Prelude.Nothing,
$sel:credentialsArn:Integration' :: Maybe Text
credentialsArn = forall a. Maybe a
Prelude.Nothing,
$sel:description:Integration' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:integrationId:Integration' :: Maybe Text
integrationId = forall a. Maybe a
Prelude.Nothing,
$sel:integrationMethod:Integration' :: Maybe Text
integrationMethod = forall a. Maybe a
Prelude.Nothing,
$sel:integrationResponseSelectionExpression:Integration' :: Maybe Text
integrationResponseSelectionExpression =
forall a. Maybe a
Prelude.Nothing,
$sel:integrationSubtype:Integration' :: Maybe Text
integrationSubtype = forall a. Maybe a
Prelude.Nothing,
$sel:integrationType:Integration' :: Maybe IntegrationType
integrationType = forall a. Maybe a
Prelude.Nothing,
$sel:integrationUri:Integration' :: Maybe Text
integrationUri = forall a. Maybe a
Prelude.Nothing,
$sel:passthroughBehavior:Integration' :: Maybe PassthroughBehavior
passthroughBehavior = forall a. Maybe a
Prelude.Nothing,
$sel:payloadFormatVersion:Integration' :: Maybe Text
payloadFormatVersion = forall a. Maybe a
Prelude.Nothing,
$sel:requestParameters:Integration' :: Maybe (HashMap Text Text)
requestParameters = forall a. Maybe a
Prelude.Nothing,
$sel:requestTemplates:Integration' :: Maybe (HashMap Text Text)
requestTemplates = forall a. Maybe a
Prelude.Nothing,
$sel:responseParameters:Integration' :: Maybe (HashMap Text (HashMap Text Text))
responseParameters = forall a. Maybe a
Prelude.Nothing,
$sel:templateSelectionExpression:Integration' :: Maybe Text
templateSelectionExpression = forall a. Maybe a
Prelude.Nothing,
$sel:timeoutInMillis:Integration' :: Maybe Natural
timeoutInMillis = forall a. Maybe a
Prelude.Nothing,
$sel:tlsConfig:Integration' :: Maybe TlsConfig
tlsConfig = forall a. Maybe a
Prelude.Nothing
}
integration_apiGatewayManaged :: Lens.Lens' Integration (Prelude.Maybe Prelude.Bool)
integration_apiGatewayManaged :: Lens' Integration (Maybe Bool)
integration_apiGatewayManaged = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Bool
apiGatewayManaged :: Maybe Bool
$sel:apiGatewayManaged:Integration' :: Integration -> Maybe Bool
apiGatewayManaged} -> Maybe Bool
apiGatewayManaged) (\s :: Integration
s@Integration' {} Maybe Bool
a -> Integration
s {$sel:apiGatewayManaged:Integration' :: Maybe Bool
apiGatewayManaged = Maybe Bool
a} :: Integration)
integration_connectionId :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_connectionId :: Lens' Integration (Maybe Text)
integration_connectionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
connectionId :: Maybe Text
$sel:connectionId:Integration' :: Integration -> Maybe Text
connectionId} -> Maybe Text
connectionId) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:connectionId:Integration' :: Maybe Text
connectionId = Maybe Text
a} :: Integration)
integration_connectionType :: Lens.Lens' Integration (Prelude.Maybe ConnectionType)
integration_connectionType :: Lens' Integration (Maybe ConnectionType)
integration_connectionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe ConnectionType
connectionType :: Maybe ConnectionType
$sel:connectionType:Integration' :: Integration -> Maybe ConnectionType
connectionType} -> Maybe ConnectionType
connectionType) (\s :: Integration
s@Integration' {} Maybe ConnectionType
a -> Integration
s {$sel:connectionType:Integration' :: Maybe ConnectionType
connectionType = Maybe ConnectionType
a} :: Integration)
integration_contentHandlingStrategy :: Lens.Lens' Integration (Prelude.Maybe ContentHandlingStrategy)
integration_contentHandlingStrategy :: Lens' Integration (Maybe ContentHandlingStrategy)
integration_contentHandlingStrategy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe ContentHandlingStrategy
contentHandlingStrategy :: Maybe ContentHandlingStrategy
$sel:contentHandlingStrategy:Integration' :: Integration -> Maybe ContentHandlingStrategy
contentHandlingStrategy} -> Maybe ContentHandlingStrategy
contentHandlingStrategy) (\s :: Integration
s@Integration' {} Maybe ContentHandlingStrategy
a -> Integration
s {$sel:contentHandlingStrategy:Integration' :: Maybe ContentHandlingStrategy
contentHandlingStrategy = Maybe ContentHandlingStrategy
a} :: Integration)
integration_credentialsArn :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_credentialsArn :: Lens' Integration (Maybe Text)
integration_credentialsArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
credentialsArn :: Maybe Text
$sel:credentialsArn:Integration' :: Integration -> Maybe Text
credentialsArn} -> Maybe Text
credentialsArn) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:credentialsArn:Integration' :: Maybe Text
credentialsArn = Maybe Text
a} :: Integration)
integration_description :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_description :: Lens' Integration (Maybe Text)
integration_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
description :: Maybe Text
$sel:description:Integration' :: Integration -> Maybe Text
description} -> Maybe Text
description) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:description:Integration' :: Maybe Text
description = Maybe Text
a} :: Integration)
integration_integrationId :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_integrationId :: Lens' Integration (Maybe Text)
integration_integrationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
integrationId :: Maybe Text
$sel:integrationId:Integration' :: Integration -> Maybe Text
integrationId} -> Maybe Text
integrationId) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:integrationId:Integration' :: Maybe Text
integrationId = Maybe Text
a} :: Integration)
integration_integrationMethod :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_integrationMethod :: Lens' Integration (Maybe Text)
integration_integrationMethod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
integrationMethod :: Maybe Text
$sel:integrationMethod:Integration' :: Integration -> Maybe Text
integrationMethod} -> Maybe Text
integrationMethod) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:integrationMethod:Integration' :: Maybe Text
integrationMethod = Maybe Text
a} :: Integration)
integration_integrationResponseSelectionExpression :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_integrationResponseSelectionExpression :: Lens' Integration (Maybe Text)
integration_integrationResponseSelectionExpression = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
integrationResponseSelectionExpression :: Maybe Text
$sel:integrationResponseSelectionExpression:Integration' :: Integration -> Maybe Text
integrationResponseSelectionExpression} -> Maybe Text
integrationResponseSelectionExpression) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:integrationResponseSelectionExpression:Integration' :: Maybe Text
integrationResponseSelectionExpression = Maybe Text
a} :: Integration)
integration_integrationSubtype :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_integrationSubtype :: Lens' Integration (Maybe Text)
integration_integrationSubtype = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
integrationSubtype :: Maybe Text
$sel:integrationSubtype:Integration' :: Integration -> Maybe Text
integrationSubtype} -> Maybe Text
integrationSubtype) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:integrationSubtype:Integration' :: Maybe Text
integrationSubtype = Maybe Text
a} :: Integration)
integration_integrationType :: Lens.Lens' Integration (Prelude.Maybe IntegrationType)
integration_integrationType :: Lens' Integration (Maybe IntegrationType)
integration_integrationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe IntegrationType
integrationType :: Maybe IntegrationType
$sel:integrationType:Integration' :: Integration -> Maybe IntegrationType
integrationType} -> Maybe IntegrationType
integrationType) (\s :: Integration
s@Integration' {} Maybe IntegrationType
a -> Integration
s {$sel:integrationType:Integration' :: Maybe IntegrationType
integrationType = Maybe IntegrationType
a} :: Integration)
integration_integrationUri :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_integrationUri :: Lens' Integration (Maybe Text)
integration_integrationUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
integrationUri :: Maybe Text
$sel:integrationUri:Integration' :: Integration -> Maybe Text
integrationUri} -> Maybe Text
integrationUri) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:integrationUri:Integration' :: Maybe Text
integrationUri = Maybe Text
a} :: Integration)
integration_passthroughBehavior :: Lens.Lens' Integration (Prelude.Maybe PassthroughBehavior)
integration_passthroughBehavior :: Lens' Integration (Maybe PassthroughBehavior)
integration_passthroughBehavior = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe PassthroughBehavior
passthroughBehavior :: Maybe PassthroughBehavior
$sel:passthroughBehavior:Integration' :: Integration -> Maybe PassthroughBehavior
passthroughBehavior} -> Maybe PassthroughBehavior
passthroughBehavior) (\s :: Integration
s@Integration' {} Maybe PassthroughBehavior
a -> Integration
s {$sel:passthroughBehavior:Integration' :: Maybe PassthroughBehavior
passthroughBehavior = Maybe PassthroughBehavior
a} :: Integration)
integration_payloadFormatVersion :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_payloadFormatVersion :: Lens' Integration (Maybe Text)
integration_payloadFormatVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
payloadFormatVersion :: Maybe Text
$sel:payloadFormatVersion:Integration' :: Integration -> Maybe Text
payloadFormatVersion} -> Maybe Text
payloadFormatVersion) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:payloadFormatVersion:Integration' :: Maybe Text
payloadFormatVersion = Maybe Text
a} :: Integration)
integration_requestParameters :: Lens.Lens' Integration (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
integration_requestParameters :: Lens' Integration (Maybe (HashMap Text Text))
integration_requestParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
$sel:requestParameters:Integration' :: Integration -> Maybe (HashMap Text Text)
requestParameters} -> Maybe (HashMap Text Text)
requestParameters) (\s :: Integration
s@Integration' {} Maybe (HashMap Text Text)
a -> Integration
s {$sel:requestParameters:Integration' :: Maybe (HashMap Text Text)
requestParameters = Maybe (HashMap Text Text)
a} :: Integration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
integration_requestTemplates :: Lens.Lens' Integration (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
integration_requestTemplates :: Lens' Integration (Maybe (HashMap Text Text))
integration_requestTemplates = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe (HashMap Text Text)
requestTemplates :: Maybe (HashMap Text Text)
$sel:requestTemplates:Integration' :: Integration -> Maybe (HashMap Text Text)
requestTemplates} -> Maybe (HashMap Text Text)
requestTemplates) (\s :: Integration
s@Integration' {} Maybe (HashMap Text Text)
a -> Integration
s {$sel:requestTemplates:Integration' :: Maybe (HashMap Text Text)
requestTemplates = Maybe (HashMap Text Text)
a} :: Integration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
integration_responseParameters :: Lens.Lens' Integration (Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.HashMap Prelude.Text Prelude.Text)))
integration_responseParameters :: Lens' Integration (Maybe (HashMap Text (HashMap Text Text)))
integration_responseParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe (HashMap Text (HashMap Text Text))
responseParameters :: Maybe (HashMap Text (HashMap Text Text))
$sel:responseParameters:Integration' :: Integration -> Maybe (HashMap Text (HashMap Text Text))
responseParameters} -> Maybe (HashMap Text (HashMap Text Text))
responseParameters) (\s :: Integration
s@Integration' {} Maybe (HashMap Text (HashMap Text Text))
a -> Integration
s {$sel:responseParameters:Integration' :: Maybe (HashMap Text (HashMap Text Text))
responseParameters = Maybe (HashMap Text (HashMap Text Text))
a} :: Integration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
integration_templateSelectionExpression :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_templateSelectionExpression :: Lens' Integration (Maybe Text)
integration_templateSelectionExpression = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
templateSelectionExpression :: Maybe Text
$sel:templateSelectionExpression:Integration' :: Integration -> Maybe Text
templateSelectionExpression} -> Maybe Text
templateSelectionExpression) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:templateSelectionExpression:Integration' :: Maybe Text
templateSelectionExpression = Maybe Text
a} :: Integration)
integration_timeoutInMillis :: Lens.Lens' Integration (Prelude.Maybe Prelude.Natural)
integration_timeoutInMillis :: Lens' Integration (Maybe Natural)
integration_timeoutInMillis = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Natural
timeoutInMillis :: Maybe Natural
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Natural
timeoutInMillis} -> Maybe Natural
timeoutInMillis) (\s :: Integration
s@Integration' {} Maybe Natural
a -> Integration
s {$sel:timeoutInMillis:Integration' :: Maybe Natural
timeoutInMillis = Maybe Natural
a} :: Integration)
integration_tlsConfig :: Lens.Lens' Integration (Prelude.Maybe TlsConfig)
integration_tlsConfig :: Lens' Integration (Maybe TlsConfig)
integration_tlsConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe TlsConfig
tlsConfig :: Maybe TlsConfig
$sel:tlsConfig:Integration' :: Integration -> Maybe TlsConfig
tlsConfig} -> Maybe TlsConfig
tlsConfig) (\s :: Integration
s@Integration' {} Maybe TlsConfig
a -> Integration
s {$sel:tlsConfig:Integration' :: Maybe TlsConfig
tlsConfig = Maybe TlsConfig
a} :: Integration)
instance Data.FromJSON Integration where
parseJSON :: Value -> Parser Integration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Integration"
( \Object
x ->
Maybe Bool
-> Maybe Text
-> Maybe ConnectionType
-> Maybe ContentHandlingStrategy
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> Maybe Text
-> Maybe PassthroughBehavior
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text (HashMap Text Text))
-> Maybe Text
-> Maybe Natural
-> Maybe TlsConfig
-> Integration
Integration'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"apiGatewayManaged")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"connectionId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"connectionType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"contentHandlingStrategy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"credentialsArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationMethod")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationResponseSelectionExpression")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationSubtype")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"integrationUri")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"passthroughBehavior")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"payloadFormatVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"requestParameters"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"requestTemplates"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"responseParameters"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"templateSelectionExpression")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timeoutInMillis")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tlsConfig")
)
instance Prelude.Hashable Integration where
hashWithSalt :: Int -> Integration -> Int
hashWithSalt Int
_salt Integration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text (HashMap Text Text))
Maybe ConnectionType
Maybe ContentHandlingStrategy
Maybe IntegrationType
Maybe PassthroughBehavior
Maybe TlsConfig
tlsConfig :: Maybe TlsConfig
timeoutInMillis :: Maybe Natural
templateSelectionExpression :: Maybe Text
responseParameters :: Maybe (HashMap Text (HashMap Text Text))
requestTemplates :: Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
payloadFormatVersion :: Maybe Text
passthroughBehavior :: Maybe PassthroughBehavior
integrationUri :: Maybe Text
integrationType :: Maybe IntegrationType
integrationSubtype :: Maybe Text
integrationResponseSelectionExpression :: Maybe Text
integrationMethod :: Maybe Text
integrationId :: Maybe Text
description :: Maybe Text
credentialsArn :: Maybe Text
contentHandlingStrategy :: Maybe ContentHandlingStrategy
connectionType :: Maybe ConnectionType
connectionId :: Maybe Text
apiGatewayManaged :: Maybe Bool
$sel:tlsConfig:Integration' :: Integration -> Maybe TlsConfig
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Natural
$sel:templateSelectionExpression:Integration' :: Integration -> Maybe Text
$sel:responseParameters:Integration' :: Integration -> Maybe (HashMap Text (HashMap Text Text))
$sel:requestTemplates:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:requestParameters:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:payloadFormatVersion:Integration' :: Integration -> Maybe Text
$sel:passthroughBehavior:Integration' :: Integration -> Maybe PassthroughBehavior
$sel:integrationUri:Integration' :: Integration -> Maybe Text
$sel:integrationType:Integration' :: Integration -> Maybe IntegrationType
$sel:integrationSubtype:Integration' :: Integration -> Maybe Text
$sel:integrationResponseSelectionExpression:Integration' :: Integration -> Maybe Text
$sel:integrationMethod:Integration' :: Integration -> Maybe Text
$sel:integrationId:Integration' :: Integration -> Maybe Text
$sel:description:Integration' :: Integration -> Maybe Text
$sel:credentialsArn:Integration' :: Integration -> Maybe Text
$sel:contentHandlingStrategy:Integration' :: Integration -> Maybe ContentHandlingStrategy
$sel:connectionType:Integration' :: Integration -> Maybe ConnectionType
$sel:connectionId:Integration' :: Integration -> Maybe Text
$sel:apiGatewayManaged:Integration' :: Integration -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
apiGatewayManaged
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
connectionId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionType
connectionType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ContentHandlingStrategy
contentHandlingStrategy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
credentialsArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
integrationId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
integrationMethod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
integrationResponseSelectionExpression
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
integrationSubtype
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IntegrationType
integrationType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
integrationUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PassthroughBehavior
passthroughBehavior
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
payloadFormatVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
requestParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
requestTemplates
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text (HashMap Text Text))
responseParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
templateSelectionExpression
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
timeoutInMillis
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TlsConfig
tlsConfig
instance Prelude.NFData Integration where
rnf :: Integration -> ()
rnf Integration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text (HashMap Text Text))
Maybe ConnectionType
Maybe ContentHandlingStrategy
Maybe IntegrationType
Maybe PassthroughBehavior
Maybe TlsConfig
tlsConfig :: Maybe TlsConfig
timeoutInMillis :: Maybe Natural
templateSelectionExpression :: Maybe Text
responseParameters :: Maybe (HashMap Text (HashMap Text Text))
requestTemplates :: Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
payloadFormatVersion :: Maybe Text
passthroughBehavior :: Maybe PassthroughBehavior
integrationUri :: Maybe Text
integrationType :: Maybe IntegrationType
integrationSubtype :: Maybe Text
integrationResponseSelectionExpression :: Maybe Text
integrationMethod :: Maybe Text
integrationId :: Maybe Text
description :: Maybe Text
credentialsArn :: Maybe Text
contentHandlingStrategy :: Maybe ContentHandlingStrategy
connectionType :: Maybe ConnectionType
connectionId :: Maybe Text
apiGatewayManaged :: Maybe Bool
$sel:tlsConfig:Integration' :: Integration -> Maybe TlsConfig
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Natural
$sel:templateSelectionExpression:Integration' :: Integration -> Maybe Text
$sel:responseParameters:Integration' :: Integration -> Maybe (HashMap Text (HashMap Text Text))
$sel:requestTemplates:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:requestParameters:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:payloadFormatVersion:Integration' :: Integration -> Maybe Text
$sel:passthroughBehavior:Integration' :: Integration -> Maybe PassthroughBehavior
$sel:integrationUri:Integration' :: Integration -> Maybe Text
$sel:integrationType:Integration' :: Integration -> Maybe IntegrationType
$sel:integrationSubtype:Integration' :: Integration -> Maybe Text
$sel:integrationResponseSelectionExpression:Integration' :: Integration -> Maybe Text
$sel:integrationMethod:Integration' :: Integration -> Maybe Text
$sel:integrationId:Integration' :: Integration -> Maybe Text
$sel:description:Integration' :: Integration -> Maybe Text
$sel:credentialsArn:Integration' :: Integration -> Maybe Text
$sel:contentHandlingStrategy:Integration' :: Integration -> Maybe ContentHandlingStrategy
$sel:connectionType:Integration' :: Integration -> Maybe ConnectionType
$sel:connectionId:Integration' :: Integration -> Maybe Text
$sel:apiGatewayManaged:Integration' :: Integration -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
apiGatewayManaged
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
connectionId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionType
connectionType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ContentHandlingStrategy
contentHandlingStrategy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
credentialsArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
integrationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
integrationMethod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
integrationResponseSelectionExpression
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
integrationSubtype
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IntegrationType
integrationType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
integrationUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PassthroughBehavior
passthroughBehavior
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
payloadFormatVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
requestParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
requestTemplates
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text (HashMap Text Text))
responseParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Text
templateSelectionExpression
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
timeoutInMillis
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TlsConfig
tlsConfig