{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ApiGatewayV2.Types.IntegrationType
( IntegrationType
( ..,
IntegrationType_AWS,
IntegrationType_AWS_PROXY,
IntegrationType_HTTP,
IntegrationType_HTTP_PROXY,
IntegrationType_MOCK
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype IntegrationType = IntegrationType'
{ IntegrationType -> Text
fromIntegrationType ::
Core.Text
}
deriving stock
( Int -> IntegrationType -> ShowS
[IntegrationType] -> ShowS
IntegrationType -> String
(Int -> IntegrationType -> ShowS)
-> (IntegrationType -> String)
-> ([IntegrationType] -> ShowS)
-> Show IntegrationType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IntegrationType] -> ShowS
$cshowList :: [IntegrationType] -> ShowS
show :: IntegrationType -> String
$cshow :: IntegrationType -> String
showsPrec :: Int -> IntegrationType -> ShowS
$cshowsPrec :: Int -> IntegrationType -> ShowS
Prelude.Show,
ReadPrec [IntegrationType]
ReadPrec IntegrationType
Int -> ReadS IntegrationType
ReadS [IntegrationType]
(Int -> ReadS IntegrationType)
-> ReadS [IntegrationType]
-> ReadPrec IntegrationType
-> ReadPrec [IntegrationType]
-> Read IntegrationType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IntegrationType]
$creadListPrec :: ReadPrec [IntegrationType]
readPrec :: ReadPrec IntegrationType
$creadPrec :: ReadPrec IntegrationType
readList :: ReadS [IntegrationType]
$creadList :: ReadS [IntegrationType]
readsPrec :: Int -> ReadS IntegrationType
$creadsPrec :: Int -> ReadS IntegrationType
Prelude.Read,
IntegrationType -> IntegrationType -> Bool
(IntegrationType -> IntegrationType -> Bool)
-> (IntegrationType -> IntegrationType -> Bool)
-> Eq IntegrationType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IntegrationType -> IntegrationType -> Bool
$c/= :: IntegrationType -> IntegrationType -> Bool
== :: IntegrationType -> IntegrationType -> Bool
$c== :: IntegrationType -> IntegrationType -> Bool
Prelude.Eq,
Eq IntegrationType
Eq IntegrationType
-> (IntegrationType -> IntegrationType -> Ordering)
-> (IntegrationType -> IntegrationType -> Bool)
-> (IntegrationType -> IntegrationType -> Bool)
-> (IntegrationType -> IntegrationType -> Bool)
-> (IntegrationType -> IntegrationType -> Bool)
-> (IntegrationType -> IntegrationType -> IntegrationType)
-> (IntegrationType -> IntegrationType -> IntegrationType)
-> Ord IntegrationType
IntegrationType -> IntegrationType -> Bool
IntegrationType -> IntegrationType -> Ordering
IntegrationType -> IntegrationType -> IntegrationType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: IntegrationType -> IntegrationType -> IntegrationType
$cmin :: IntegrationType -> IntegrationType -> IntegrationType
max :: IntegrationType -> IntegrationType -> IntegrationType
$cmax :: IntegrationType -> IntegrationType -> IntegrationType
>= :: IntegrationType -> IntegrationType -> Bool
$c>= :: IntegrationType -> IntegrationType -> Bool
> :: IntegrationType -> IntegrationType -> Bool
$c> :: IntegrationType -> IntegrationType -> Bool
<= :: IntegrationType -> IntegrationType -> Bool
$c<= :: IntegrationType -> IntegrationType -> Bool
< :: IntegrationType -> IntegrationType -> Bool
$c< :: IntegrationType -> IntegrationType -> Bool
compare :: IntegrationType -> IntegrationType -> Ordering
$ccompare :: IntegrationType -> IntegrationType -> Ordering
$cp1Ord :: Eq IntegrationType
Prelude.Ord,
(forall x. IntegrationType -> Rep IntegrationType x)
-> (forall x. Rep IntegrationType x -> IntegrationType)
-> Generic IntegrationType
forall x. Rep IntegrationType x -> IntegrationType
forall x. IntegrationType -> Rep IntegrationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IntegrationType x -> IntegrationType
$cfrom :: forall x. IntegrationType -> Rep IntegrationType x
Prelude.Generic
)
deriving newtype
( Int -> IntegrationType -> Int
IntegrationType -> Int
(Int -> IntegrationType -> Int)
-> (IntegrationType -> Int) -> Hashable IntegrationType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: IntegrationType -> Int
$chash :: IntegrationType -> Int
hashWithSalt :: Int -> IntegrationType -> Int
$chashWithSalt :: Int -> IntegrationType -> Int
Prelude.Hashable,
IntegrationType -> ()
(IntegrationType -> ()) -> NFData IntegrationType
forall a. (a -> ()) -> NFData a
rnf :: IntegrationType -> ()
$crnf :: IntegrationType -> ()
Prelude.NFData,
Text -> Either String IntegrationType
(Text -> Either String IntegrationType) -> FromText IntegrationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IntegrationType
$cfromText :: Text -> Either String IntegrationType
Core.FromText,
IntegrationType -> Text
(IntegrationType -> Text) -> ToText IntegrationType
forall a. (a -> Text) -> ToText a
toText :: IntegrationType -> Text
$ctoText :: IntegrationType -> Text
Core.ToText,
IntegrationType -> ByteString
(IntegrationType -> ByteString) -> ToByteString IntegrationType
forall a. (a -> ByteString) -> ToByteString a
toBS :: IntegrationType -> ByteString
$ctoBS :: IntegrationType -> ByteString
Core.ToByteString,
IntegrationType -> ByteStringBuilder
(IntegrationType -> ByteStringBuilder) -> ToLog IntegrationType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IntegrationType -> ByteStringBuilder
$cbuild :: IntegrationType -> ByteStringBuilder
Core.ToLog,
HeaderName -> IntegrationType -> [Header]
(HeaderName -> IntegrationType -> [Header])
-> ToHeader IntegrationType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IntegrationType -> [Header]
$ctoHeader :: HeaderName -> IntegrationType -> [Header]
Core.ToHeader,
IntegrationType -> QueryString
(IntegrationType -> QueryString) -> ToQuery IntegrationType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IntegrationType -> QueryString
$ctoQuery :: IntegrationType -> QueryString
Core.ToQuery,
Value -> Parser [IntegrationType]
Value -> Parser IntegrationType
(Value -> Parser IntegrationType)
-> (Value -> Parser [IntegrationType]) -> FromJSON IntegrationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [IntegrationType]
$cparseJSONList :: Value -> Parser [IntegrationType]
parseJSON :: Value -> Parser IntegrationType
$cparseJSON :: Value -> Parser IntegrationType
Core.FromJSON,
FromJSONKeyFunction [IntegrationType]
FromJSONKeyFunction IntegrationType
FromJSONKeyFunction IntegrationType
-> FromJSONKeyFunction [IntegrationType]
-> FromJSONKey IntegrationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IntegrationType]
$cfromJSONKeyList :: FromJSONKeyFunction [IntegrationType]
fromJSONKey :: FromJSONKeyFunction IntegrationType
$cfromJSONKey :: FromJSONKeyFunction IntegrationType
Core.FromJSONKey,
[IntegrationType] -> Encoding
[IntegrationType] -> Value
IntegrationType -> Encoding
IntegrationType -> Value
(IntegrationType -> Value)
-> (IntegrationType -> Encoding)
-> ([IntegrationType] -> Value)
-> ([IntegrationType] -> Encoding)
-> ToJSON IntegrationType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [IntegrationType] -> Encoding
$ctoEncodingList :: [IntegrationType] -> Encoding
toJSONList :: [IntegrationType] -> Value
$ctoJSONList :: [IntegrationType] -> Value
toEncoding :: IntegrationType -> Encoding
$ctoEncoding :: IntegrationType -> Encoding
toJSON :: IntegrationType -> Value
$ctoJSON :: IntegrationType -> Value
Core.ToJSON,
ToJSONKeyFunction [IntegrationType]
ToJSONKeyFunction IntegrationType
ToJSONKeyFunction IntegrationType
-> ToJSONKeyFunction [IntegrationType] -> ToJSONKey IntegrationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IntegrationType]
$ctoJSONKeyList :: ToJSONKeyFunction [IntegrationType]
toJSONKey :: ToJSONKeyFunction IntegrationType
$ctoJSONKey :: ToJSONKeyFunction IntegrationType
Core.ToJSONKey,
[Node] -> Either String IntegrationType
([Node] -> Either String IntegrationType)
-> FromXML IntegrationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IntegrationType
$cparseXML :: [Node] -> Either String IntegrationType
Core.FromXML,
IntegrationType -> XML
(IntegrationType -> XML) -> ToXML IntegrationType
forall a. (a -> XML) -> ToXML a
toXML :: IntegrationType -> XML
$ctoXML :: IntegrationType -> XML
Core.ToXML
)
pattern IntegrationType_AWS :: IntegrationType
pattern $bIntegrationType_AWS :: IntegrationType
$mIntegrationType_AWS :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_AWS = IntegrationType' "AWS"
pattern IntegrationType_AWS_PROXY :: IntegrationType
pattern $bIntegrationType_AWS_PROXY :: IntegrationType
$mIntegrationType_AWS_PROXY :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_AWS_PROXY = IntegrationType' "AWS_PROXY"
pattern IntegrationType_HTTP :: IntegrationType
pattern $bIntegrationType_HTTP :: IntegrationType
$mIntegrationType_HTTP :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_HTTP = IntegrationType' "HTTP"
pattern IntegrationType_HTTP_PROXY :: IntegrationType
pattern $bIntegrationType_HTTP_PROXY :: IntegrationType
$mIntegrationType_HTTP_PROXY :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_HTTP_PROXY = IntegrationType' "HTTP_PROXY"
pattern IntegrationType_MOCK :: IntegrationType
pattern $bIntegrationType_MOCK :: IntegrationType
$mIntegrationType_MOCK :: forall r. IntegrationType -> (Void# -> r) -> (Void# -> r) -> r
IntegrationType_MOCK = IntegrationType' "MOCK"
{-# COMPLETE
IntegrationType_AWS,
IntegrationType_AWS_PROXY,
IntegrationType_HTTP,
IntegrationType_HTTP_PROXY,
IntegrationType_MOCK,
IntegrationType'
#-}