{-# 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.APIGateway.Types.Integration where
import Amazonka.APIGateway.Types.ConnectionType
import Amazonka.APIGateway.Types.ContentHandlingStrategy
import Amazonka.APIGateway.Types.IntegrationResponse
import Amazonka.APIGateway.Types.IntegrationType
import Amazonka.APIGateway.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 [Text]
cacheKeyParameters :: Prelude.Maybe [Prelude.Text],
Integration -> Maybe Text
cacheNamespace :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
connectionId :: Prelude.Maybe Prelude.Text,
Integration -> Maybe ConnectionType
connectionType :: Prelude.Maybe ConnectionType,
Integration -> Maybe ContentHandlingStrategy
contentHandling :: Prelude.Maybe ContentHandlingStrategy,
Integration -> Maybe Text
credentials :: Prelude.Maybe Prelude.Text,
Integration -> Maybe Text
httpMethod :: Prelude.Maybe Prelude.Text,
Integration -> Maybe (HashMap Text IntegrationResponse)
integrationResponses :: Prelude.Maybe (Prelude.HashMap Prelude.Text IntegrationResponse),
Integration -> Maybe Text
passthroughBehavior :: 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 Int
timeoutInMillis :: Prelude.Maybe Prelude.Int,
Integration -> Maybe TlsConfig
tlsConfig :: Prelude.Maybe TlsConfig,
Integration -> Maybe IntegrationType
type' :: Prelude.Maybe IntegrationType,
Integration -> Maybe Text
uri :: Prelude.Maybe Prelude.Text
}
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:cacheKeyParameters:Integration' :: Maybe [Text]
cacheKeyParameters = forall a. Maybe a
Prelude.Nothing,
$sel:cacheNamespace:Integration' :: Maybe Text
cacheNamespace = 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:contentHandling:Integration' :: Maybe ContentHandlingStrategy
contentHandling = forall a. Maybe a
Prelude.Nothing,
$sel:credentials:Integration' :: Maybe Text
credentials = forall a. Maybe a
Prelude.Nothing,
$sel:httpMethod:Integration' :: Maybe Text
httpMethod = forall a. Maybe a
Prelude.Nothing,
$sel:integrationResponses:Integration' :: Maybe (HashMap Text IntegrationResponse)
integrationResponses = forall a. Maybe a
Prelude.Nothing,
$sel:passthroughBehavior:Integration' :: Maybe Text
passthroughBehavior = 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:timeoutInMillis:Integration' :: Maybe Int
timeoutInMillis = forall a. Maybe a
Prelude.Nothing,
$sel:tlsConfig:Integration' :: Maybe TlsConfig
tlsConfig = forall a. Maybe a
Prelude.Nothing,
$sel:type':Integration' :: Maybe IntegrationType
type' = forall a. Maybe a
Prelude.Nothing,
$sel:uri:Integration' :: Maybe Text
uri = forall a. Maybe a
Prelude.Nothing
}
integration_cacheKeyParameters :: Lens.Lens' Integration (Prelude.Maybe [Prelude.Text])
integration_cacheKeyParameters :: Lens' Integration (Maybe [Text])
integration_cacheKeyParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe [Text]
cacheKeyParameters :: Maybe [Text]
$sel:cacheKeyParameters:Integration' :: Integration -> Maybe [Text]
cacheKeyParameters} -> Maybe [Text]
cacheKeyParameters) (\s :: Integration
s@Integration' {} Maybe [Text]
a -> Integration
s {$sel:cacheKeyParameters:Integration' :: Maybe [Text]
cacheKeyParameters = Maybe [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_cacheNamespace :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_cacheNamespace :: Lens' Integration (Maybe Text)
integration_cacheNamespace = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
cacheNamespace :: Maybe Text
$sel:cacheNamespace:Integration' :: Integration -> Maybe Text
cacheNamespace} -> Maybe Text
cacheNamespace) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:cacheNamespace:Integration' :: Maybe Text
cacheNamespace = Maybe Text
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_contentHandling :: Lens.Lens' Integration (Prelude.Maybe ContentHandlingStrategy)
integration_contentHandling :: Lens' Integration (Maybe ContentHandlingStrategy)
integration_contentHandling = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe ContentHandlingStrategy
contentHandling :: Maybe ContentHandlingStrategy
$sel:contentHandling:Integration' :: Integration -> Maybe ContentHandlingStrategy
contentHandling} -> Maybe ContentHandlingStrategy
contentHandling) (\s :: Integration
s@Integration' {} Maybe ContentHandlingStrategy
a -> Integration
s {$sel:contentHandling:Integration' :: Maybe ContentHandlingStrategy
contentHandling = Maybe ContentHandlingStrategy
a} :: Integration)
integration_credentials :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_credentials :: Lens' Integration (Maybe Text)
integration_credentials = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
credentials :: Maybe Text
$sel:credentials:Integration' :: Integration -> Maybe Text
credentials} -> Maybe Text
credentials) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:credentials:Integration' :: Maybe Text
credentials = Maybe Text
a} :: Integration)
integration_httpMethod :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_httpMethod :: Lens' Integration (Maybe Text)
integration_httpMethod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
httpMethod :: Maybe Text
$sel:httpMethod:Integration' :: Integration -> Maybe Text
httpMethod} -> Maybe Text
httpMethod) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:httpMethod:Integration' :: Maybe Text
httpMethod = Maybe Text
a} :: Integration)
integration_integrationResponses :: Lens.Lens' Integration (Prelude.Maybe (Prelude.HashMap Prelude.Text IntegrationResponse))
integration_integrationResponses :: Lens' Integration (Maybe (HashMap Text IntegrationResponse))
integration_integrationResponses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe (HashMap Text IntegrationResponse)
integrationResponses :: Maybe (HashMap Text IntegrationResponse)
$sel:integrationResponses:Integration' :: Integration -> Maybe (HashMap Text IntegrationResponse)
integrationResponses} -> Maybe (HashMap Text IntegrationResponse)
integrationResponses) (\s :: Integration
s@Integration' {} Maybe (HashMap Text IntegrationResponse)
a -> Integration
s {$sel:integrationResponses:Integration' :: Maybe (HashMap Text IntegrationResponse)
integrationResponses = Maybe (HashMap Text IntegrationResponse)
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_passthroughBehavior :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_passthroughBehavior :: Lens' Integration (Maybe Text)
integration_passthroughBehavior = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
passthroughBehavior :: Maybe Text
$sel:passthroughBehavior:Integration' :: Integration -> Maybe Text
passthroughBehavior} -> Maybe Text
passthroughBehavior) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:passthroughBehavior:Integration' :: Maybe Text
passthroughBehavior = 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_timeoutInMillis :: Lens.Lens' Integration (Prelude.Maybe Prelude.Int)
integration_timeoutInMillis :: Lens' Integration (Maybe Int)
integration_timeoutInMillis = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Int
timeoutInMillis :: Maybe Int
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Int
timeoutInMillis} -> Maybe Int
timeoutInMillis) (\s :: Integration
s@Integration' {} Maybe Int
a -> Integration
s {$sel:timeoutInMillis:Integration' :: Maybe Int
timeoutInMillis = Maybe Int
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)
integration_type :: Lens.Lens' Integration (Prelude.Maybe IntegrationType)
integration_type :: Lens' Integration (Maybe IntegrationType)
integration_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe IntegrationType
type' :: Maybe IntegrationType
$sel:type':Integration' :: Integration -> Maybe IntegrationType
type'} -> Maybe IntegrationType
type') (\s :: Integration
s@Integration' {} Maybe IntegrationType
a -> Integration
s {$sel:type':Integration' :: Maybe IntegrationType
type' = Maybe IntegrationType
a} :: Integration)
integration_uri :: Lens.Lens' Integration (Prelude.Maybe Prelude.Text)
integration_uri :: Lens' Integration (Maybe Text)
integration_uri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Integration' {Maybe Text
uri :: Maybe Text
$sel:uri:Integration' :: Integration -> Maybe Text
uri} -> Maybe Text
uri) (\s :: Integration
s@Integration' {} Maybe Text
a -> Integration
s {$sel:uri:Integration' :: Maybe Text
uri = Maybe Text
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 [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ConnectionType
-> Maybe ContentHandlingStrategy
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text IntegrationResponse)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe Int
-> Maybe TlsConfig
-> Maybe IntegrationType
-> Maybe Text
-> 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
"cacheKeyParameters"
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
"cacheNamespace")
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
"contentHandling")
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
"credentials")
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
"httpMethod")
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
"integrationResponses"
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
"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
"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
"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")
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
"type")
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
"uri")
)
instance Prelude.Hashable Integration where
hashWithSalt :: Int -> Integration -> Int
hashWithSalt Int
_salt Integration' {Maybe Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text IntegrationResponse)
Maybe ConnectionType
Maybe ContentHandlingStrategy
Maybe IntegrationType
Maybe TlsConfig
uri :: Maybe Text
type' :: Maybe IntegrationType
tlsConfig :: Maybe TlsConfig
timeoutInMillis :: Maybe Int
requestTemplates :: Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
passthroughBehavior :: Maybe Text
integrationResponses :: Maybe (HashMap Text IntegrationResponse)
httpMethod :: Maybe Text
credentials :: Maybe Text
contentHandling :: Maybe ContentHandlingStrategy
connectionType :: Maybe ConnectionType
connectionId :: Maybe Text
cacheNamespace :: Maybe Text
cacheKeyParameters :: Maybe [Text]
$sel:uri:Integration' :: Integration -> Maybe Text
$sel:type':Integration' :: Integration -> Maybe IntegrationType
$sel:tlsConfig:Integration' :: Integration -> Maybe TlsConfig
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Int
$sel:requestTemplates:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:requestParameters:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:passthroughBehavior:Integration' :: Integration -> Maybe Text
$sel:integrationResponses:Integration' :: Integration -> Maybe (HashMap Text IntegrationResponse)
$sel:httpMethod:Integration' :: Integration -> Maybe Text
$sel:credentials:Integration' :: Integration -> Maybe Text
$sel:contentHandling:Integration' :: Integration -> Maybe ContentHandlingStrategy
$sel:connectionType:Integration' :: Integration -> Maybe ConnectionType
$sel:connectionId:Integration' :: Integration -> Maybe Text
$sel:cacheNamespace:Integration' :: Integration -> Maybe Text
$sel:cacheKeyParameters:Integration' :: Integration -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
cacheKeyParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
cacheNamespace
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
contentHandling
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
credentials
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
httpMethod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text IntegrationResponse)
integrationResponses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
passthroughBehavior
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 Int
timeoutInMillis
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TlsConfig
tlsConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IntegrationType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
uri
instance Prelude.NFData Integration where
rnf :: Integration -> ()
rnf Integration' {Maybe Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text IntegrationResponse)
Maybe ConnectionType
Maybe ContentHandlingStrategy
Maybe IntegrationType
Maybe TlsConfig
uri :: Maybe Text
type' :: Maybe IntegrationType
tlsConfig :: Maybe TlsConfig
timeoutInMillis :: Maybe Int
requestTemplates :: Maybe (HashMap Text Text)
requestParameters :: Maybe (HashMap Text Text)
passthroughBehavior :: Maybe Text
integrationResponses :: Maybe (HashMap Text IntegrationResponse)
httpMethod :: Maybe Text
credentials :: Maybe Text
contentHandling :: Maybe ContentHandlingStrategy
connectionType :: Maybe ConnectionType
connectionId :: Maybe Text
cacheNamespace :: Maybe Text
cacheKeyParameters :: Maybe [Text]
$sel:uri:Integration' :: Integration -> Maybe Text
$sel:type':Integration' :: Integration -> Maybe IntegrationType
$sel:tlsConfig:Integration' :: Integration -> Maybe TlsConfig
$sel:timeoutInMillis:Integration' :: Integration -> Maybe Int
$sel:requestTemplates:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:requestParameters:Integration' :: Integration -> Maybe (HashMap Text Text)
$sel:passthroughBehavior:Integration' :: Integration -> Maybe Text
$sel:integrationResponses:Integration' :: Integration -> Maybe (HashMap Text IntegrationResponse)
$sel:httpMethod:Integration' :: Integration -> Maybe Text
$sel:credentials:Integration' :: Integration -> Maybe Text
$sel:contentHandling:Integration' :: Integration -> Maybe ContentHandlingStrategy
$sel:connectionType:Integration' :: Integration -> Maybe ConnectionType
$sel:connectionId:Integration' :: Integration -> Maybe Text
$sel:cacheNamespace:Integration' :: Integration -> Maybe Text
$sel:cacheKeyParameters:Integration' :: Integration -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
cacheKeyParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
cacheNamespace
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
contentHandling
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
credentials
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
httpMethod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text IntegrationResponse)
integrationResponses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
passthroughBehavior
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 Int
timeoutInMillis
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TlsConfig
tlsConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IntegrationType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
uri