{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudWatchEvents.Types.ConnectionOAuthHttpMethod
( ConnectionOAuthHttpMethod
( ..,
ConnectionOAuthHttpMethod_GET,
ConnectionOAuthHttpMethod_POST,
ConnectionOAuthHttpMethod_PUT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ConnectionOAuthHttpMethod = ConnectionOAuthHttpMethod'
{ ConnectionOAuthHttpMethod -> Text
fromConnectionOAuthHttpMethod ::
Core.Text
}
deriving stock
( Int -> ConnectionOAuthHttpMethod -> ShowS
[ConnectionOAuthHttpMethod] -> ShowS
ConnectionOAuthHttpMethod -> String
(Int -> ConnectionOAuthHttpMethod -> ShowS)
-> (ConnectionOAuthHttpMethod -> String)
-> ([ConnectionOAuthHttpMethod] -> ShowS)
-> Show ConnectionOAuthHttpMethod
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConnectionOAuthHttpMethod] -> ShowS
$cshowList :: [ConnectionOAuthHttpMethod] -> ShowS
show :: ConnectionOAuthHttpMethod -> String
$cshow :: ConnectionOAuthHttpMethod -> String
showsPrec :: Int -> ConnectionOAuthHttpMethod -> ShowS
$cshowsPrec :: Int -> ConnectionOAuthHttpMethod -> ShowS
Prelude.Show,
ReadPrec [ConnectionOAuthHttpMethod]
ReadPrec ConnectionOAuthHttpMethod
Int -> ReadS ConnectionOAuthHttpMethod
ReadS [ConnectionOAuthHttpMethod]
(Int -> ReadS ConnectionOAuthHttpMethod)
-> ReadS [ConnectionOAuthHttpMethod]
-> ReadPrec ConnectionOAuthHttpMethod
-> ReadPrec [ConnectionOAuthHttpMethod]
-> Read ConnectionOAuthHttpMethod
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConnectionOAuthHttpMethod]
$creadListPrec :: ReadPrec [ConnectionOAuthHttpMethod]
readPrec :: ReadPrec ConnectionOAuthHttpMethod
$creadPrec :: ReadPrec ConnectionOAuthHttpMethod
readList :: ReadS [ConnectionOAuthHttpMethod]
$creadList :: ReadS [ConnectionOAuthHttpMethod]
readsPrec :: Int -> ReadS ConnectionOAuthHttpMethod
$creadsPrec :: Int -> ReadS ConnectionOAuthHttpMethod
Prelude.Read,
ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
(ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> (ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> Eq ConnectionOAuthHttpMethod
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c/= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
== :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c== :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
Prelude.Eq,
Eq ConnectionOAuthHttpMethod
Eq ConnectionOAuthHttpMethod
-> (ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> Ordering)
-> (ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> (ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> (ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> (ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool)
-> (ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod)
-> (ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod)
-> Ord ConnectionOAuthHttpMethod
ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Ordering
ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod
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 :: ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod
$cmin :: ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod
max :: ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod
$cmax :: ConnectionOAuthHttpMethod
-> ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod
>= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c>= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
> :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c> :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
<= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c<= :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
< :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
$c< :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Bool
compare :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Ordering
$ccompare :: ConnectionOAuthHttpMethod -> ConnectionOAuthHttpMethod -> Ordering
$cp1Ord :: Eq ConnectionOAuthHttpMethod
Prelude.Ord,
(forall x.
ConnectionOAuthHttpMethod -> Rep ConnectionOAuthHttpMethod x)
-> (forall x.
Rep ConnectionOAuthHttpMethod x -> ConnectionOAuthHttpMethod)
-> Generic ConnectionOAuthHttpMethod
forall x.
Rep ConnectionOAuthHttpMethod x -> ConnectionOAuthHttpMethod
forall x.
ConnectionOAuthHttpMethod -> Rep ConnectionOAuthHttpMethod x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ConnectionOAuthHttpMethod x -> ConnectionOAuthHttpMethod
$cfrom :: forall x.
ConnectionOAuthHttpMethod -> Rep ConnectionOAuthHttpMethod x
Prelude.Generic
)
deriving newtype
( Int -> ConnectionOAuthHttpMethod -> Int
ConnectionOAuthHttpMethod -> Int
(Int -> ConnectionOAuthHttpMethod -> Int)
-> (ConnectionOAuthHttpMethod -> Int)
-> Hashable ConnectionOAuthHttpMethod
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ConnectionOAuthHttpMethod -> Int
$chash :: ConnectionOAuthHttpMethod -> Int
hashWithSalt :: Int -> ConnectionOAuthHttpMethod -> Int
$chashWithSalt :: Int -> ConnectionOAuthHttpMethod -> Int
Prelude.Hashable,
ConnectionOAuthHttpMethod -> ()
(ConnectionOAuthHttpMethod -> ())
-> NFData ConnectionOAuthHttpMethod
forall a. (a -> ()) -> NFData a
rnf :: ConnectionOAuthHttpMethod -> ()
$crnf :: ConnectionOAuthHttpMethod -> ()
Prelude.NFData,
Text -> Either String ConnectionOAuthHttpMethod
(Text -> Either String ConnectionOAuthHttpMethod)
-> FromText ConnectionOAuthHttpMethod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConnectionOAuthHttpMethod
$cfromText :: Text -> Either String ConnectionOAuthHttpMethod
Core.FromText,
ConnectionOAuthHttpMethod -> Text
(ConnectionOAuthHttpMethod -> Text)
-> ToText ConnectionOAuthHttpMethod
forall a. (a -> Text) -> ToText a
toText :: ConnectionOAuthHttpMethod -> Text
$ctoText :: ConnectionOAuthHttpMethod -> Text
Core.ToText,
ConnectionOAuthHttpMethod -> ByteString
(ConnectionOAuthHttpMethod -> ByteString)
-> ToByteString ConnectionOAuthHttpMethod
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConnectionOAuthHttpMethod -> ByteString
$ctoBS :: ConnectionOAuthHttpMethod -> ByteString
Core.ToByteString,
ConnectionOAuthHttpMethod -> ByteStringBuilder
(ConnectionOAuthHttpMethod -> ByteStringBuilder)
-> ToLog ConnectionOAuthHttpMethod
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConnectionOAuthHttpMethod -> ByteStringBuilder
$cbuild :: ConnectionOAuthHttpMethod -> ByteStringBuilder
Core.ToLog,
HeaderName -> ConnectionOAuthHttpMethod -> [Header]
(HeaderName -> ConnectionOAuthHttpMethod -> [Header])
-> ToHeader ConnectionOAuthHttpMethod
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConnectionOAuthHttpMethod -> [Header]
$ctoHeader :: HeaderName -> ConnectionOAuthHttpMethod -> [Header]
Core.ToHeader,
ConnectionOAuthHttpMethod -> QueryString
(ConnectionOAuthHttpMethod -> QueryString)
-> ToQuery ConnectionOAuthHttpMethod
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConnectionOAuthHttpMethod -> QueryString
$ctoQuery :: ConnectionOAuthHttpMethod -> QueryString
Core.ToQuery,
Value -> Parser [ConnectionOAuthHttpMethod]
Value -> Parser ConnectionOAuthHttpMethod
(Value -> Parser ConnectionOAuthHttpMethod)
-> (Value -> Parser [ConnectionOAuthHttpMethod])
-> FromJSON ConnectionOAuthHttpMethod
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ConnectionOAuthHttpMethod]
$cparseJSONList :: Value -> Parser [ConnectionOAuthHttpMethod]
parseJSON :: Value -> Parser ConnectionOAuthHttpMethod
$cparseJSON :: Value -> Parser ConnectionOAuthHttpMethod
Core.FromJSON,
FromJSONKeyFunction [ConnectionOAuthHttpMethod]
FromJSONKeyFunction ConnectionOAuthHttpMethod
FromJSONKeyFunction ConnectionOAuthHttpMethod
-> FromJSONKeyFunction [ConnectionOAuthHttpMethod]
-> FromJSONKey ConnectionOAuthHttpMethod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConnectionOAuthHttpMethod]
$cfromJSONKeyList :: FromJSONKeyFunction [ConnectionOAuthHttpMethod]
fromJSONKey :: FromJSONKeyFunction ConnectionOAuthHttpMethod
$cfromJSONKey :: FromJSONKeyFunction ConnectionOAuthHttpMethod
Core.FromJSONKey,
[ConnectionOAuthHttpMethod] -> Encoding
[ConnectionOAuthHttpMethod] -> Value
ConnectionOAuthHttpMethod -> Encoding
ConnectionOAuthHttpMethod -> Value
(ConnectionOAuthHttpMethod -> Value)
-> (ConnectionOAuthHttpMethod -> Encoding)
-> ([ConnectionOAuthHttpMethod] -> Value)
-> ([ConnectionOAuthHttpMethod] -> Encoding)
-> ToJSON ConnectionOAuthHttpMethod
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ConnectionOAuthHttpMethod] -> Encoding
$ctoEncodingList :: [ConnectionOAuthHttpMethod] -> Encoding
toJSONList :: [ConnectionOAuthHttpMethod] -> Value
$ctoJSONList :: [ConnectionOAuthHttpMethod] -> Value
toEncoding :: ConnectionOAuthHttpMethod -> Encoding
$ctoEncoding :: ConnectionOAuthHttpMethod -> Encoding
toJSON :: ConnectionOAuthHttpMethod -> Value
$ctoJSON :: ConnectionOAuthHttpMethod -> Value
Core.ToJSON,
ToJSONKeyFunction [ConnectionOAuthHttpMethod]
ToJSONKeyFunction ConnectionOAuthHttpMethod
ToJSONKeyFunction ConnectionOAuthHttpMethod
-> ToJSONKeyFunction [ConnectionOAuthHttpMethod]
-> ToJSONKey ConnectionOAuthHttpMethod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConnectionOAuthHttpMethod]
$ctoJSONKeyList :: ToJSONKeyFunction [ConnectionOAuthHttpMethod]
toJSONKey :: ToJSONKeyFunction ConnectionOAuthHttpMethod
$ctoJSONKey :: ToJSONKeyFunction ConnectionOAuthHttpMethod
Core.ToJSONKey,
[Node] -> Either String ConnectionOAuthHttpMethod
([Node] -> Either String ConnectionOAuthHttpMethod)
-> FromXML ConnectionOAuthHttpMethod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConnectionOAuthHttpMethod
$cparseXML :: [Node] -> Either String ConnectionOAuthHttpMethod
Core.FromXML,
ConnectionOAuthHttpMethod -> XML
(ConnectionOAuthHttpMethod -> XML)
-> ToXML ConnectionOAuthHttpMethod
forall a. (a -> XML) -> ToXML a
toXML :: ConnectionOAuthHttpMethod -> XML
$ctoXML :: ConnectionOAuthHttpMethod -> XML
Core.ToXML
)
pattern ConnectionOAuthHttpMethod_GET :: ConnectionOAuthHttpMethod
pattern $bConnectionOAuthHttpMethod_GET :: ConnectionOAuthHttpMethod
$mConnectionOAuthHttpMethod_GET :: forall r.
ConnectionOAuthHttpMethod -> (Void# -> r) -> (Void# -> r) -> r
ConnectionOAuthHttpMethod_GET = ConnectionOAuthHttpMethod' "GET"
pattern ConnectionOAuthHttpMethod_POST :: ConnectionOAuthHttpMethod
pattern $bConnectionOAuthHttpMethod_POST :: ConnectionOAuthHttpMethod
$mConnectionOAuthHttpMethod_POST :: forall r.
ConnectionOAuthHttpMethod -> (Void# -> r) -> (Void# -> r) -> r
ConnectionOAuthHttpMethod_POST = ConnectionOAuthHttpMethod' "POST"
pattern ConnectionOAuthHttpMethod_PUT :: ConnectionOAuthHttpMethod
pattern $bConnectionOAuthHttpMethod_PUT :: ConnectionOAuthHttpMethod
$mConnectionOAuthHttpMethod_PUT :: forall r.
ConnectionOAuthHttpMethod -> (Void# -> r) -> (Void# -> r) -> r
ConnectionOAuthHttpMethod_PUT = ConnectionOAuthHttpMethod' "PUT"
{-# COMPLETE
ConnectionOAuthHttpMethod_GET,
ConnectionOAuthHttpMethod_POST,
ConnectionOAuthHttpMethod_PUT,
ConnectionOAuthHttpMethod'
#-}