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