{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ELBV2.Types.ActionTypeEnum
( ActionTypeEnum
( ..,
ActionTypeEnum_Authenticate_cognito,
ActionTypeEnum_Authenticate_oidc,
ActionTypeEnum_Fixed_response,
ActionTypeEnum_Forward,
ActionTypeEnum_Redirect
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ActionTypeEnum = ActionTypeEnum'
{ ActionTypeEnum -> Text
fromActionTypeEnum ::
Data.Text
}
deriving stock
( Int -> ActionTypeEnum -> ShowS
[ActionTypeEnum] -> ShowS
ActionTypeEnum -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionTypeEnum] -> ShowS
$cshowList :: [ActionTypeEnum] -> ShowS
show :: ActionTypeEnum -> String
$cshow :: ActionTypeEnum -> String
showsPrec :: Int -> ActionTypeEnum -> ShowS
$cshowsPrec :: Int -> ActionTypeEnum -> ShowS
Prelude.Show,
ReadPrec [ActionTypeEnum]
ReadPrec ActionTypeEnum
Int -> ReadS ActionTypeEnum
ReadS [ActionTypeEnum]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionTypeEnum]
$creadListPrec :: ReadPrec [ActionTypeEnum]
readPrec :: ReadPrec ActionTypeEnum
$creadPrec :: ReadPrec ActionTypeEnum
readList :: ReadS [ActionTypeEnum]
$creadList :: ReadS [ActionTypeEnum]
readsPrec :: Int -> ReadS ActionTypeEnum
$creadsPrec :: Int -> ReadS ActionTypeEnum
Prelude.Read,
ActionTypeEnum -> ActionTypeEnum -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c/= :: ActionTypeEnum -> ActionTypeEnum -> Bool
== :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c== :: ActionTypeEnum -> ActionTypeEnum -> Bool
Prelude.Eq,
Eq ActionTypeEnum
ActionTypeEnum -> ActionTypeEnum -> Bool
ActionTypeEnum -> ActionTypeEnum -> Ordering
ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum
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 :: ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum
$cmin :: ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum
max :: ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum
$cmax :: ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum
>= :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c>= :: ActionTypeEnum -> ActionTypeEnum -> Bool
> :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c> :: ActionTypeEnum -> ActionTypeEnum -> Bool
<= :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c<= :: ActionTypeEnum -> ActionTypeEnum -> Bool
< :: ActionTypeEnum -> ActionTypeEnum -> Bool
$c< :: ActionTypeEnum -> ActionTypeEnum -> Bool
compare :: ActionTypeEnum -> ActionTypeEnum -> Ordering
$ccompare :: ActionTypeEnum -> ActionTypeEnum -> Ordering
Prelude.Ord,
forall x. Rep ActionTypeEnum x -> ActionTypeEnum
forall x. ActionTypeEnum -> Rep ActionTypeEnum x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionTypeEnum x -> ActionTypeEnum
$cfrom :: forall x. ActionTypeEnum -> Rep ActionTypeEnum x
Prelude.Generic
)
deriving newtype
( Eq ActionTypeEnum
Int -> ActionTypeEnum -> Int
ActionTypeEnum -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ActionTypeEnum -> Int
$chash :: ActionTypeEnum -> Int
hashWithSalt :: Int -> ActionTypeEnum -> Int
$chashWithSalt :: Int -> ActionTypeEnum -> Int
Prelude.Hashable,
ActionTypeEnum -> ()
forall a. (a -> ()) -> NFData a
rnf :: ActionTypeEnum -> ()
$crnf :: ActionTypeEnum -> ()
Prelude.NFData,
Text -> Either String ActionTypeEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionTypeEnum
$cfromText :: Text -> Either String ActionTypeEnum
Data.FromText,
ActionTypeEnum -> Text
forall a. (a -> Text) -> ToText a
toText :: ActionTypeEnum -> Text
$ctoText :: ActionTypeEnum -> Text
Data.ToText,
ActionTypeEnum -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionTypeEnum -> ByteString
$ctoBS :: ActionTypeEnum -> ByteString
Data.ToByteString,
ActionTypeEnum -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionTypeEnum -> ByteStringBuilder
$cbuild :: ActionTypeEnum -> ByteStringBuilder
Data.ToLog,
HeaderName -> ActionTypeEnum -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionTypeEnum -> [Header]
$ctoHeader :: HeaderName -> ActionTypeEnum -> [Header]
Data.ToHeader,
ActionTypeEnum -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionTypeEnum -> QueryString
$ctoQuery :: ActionTypeEnum -> QueryString
Data.ToQuery,
Value -> Parser [ActionTypeEnum]
Value -> Parser ActionTypeEnum
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ActionTypeEnum]
$cparseJSONList :: Value -> Parser [ActionTypeEnum]
parseJSON :: Value -> Parser ActionTypeEnum
$cparseJSON :: Value -> Parser ActionTypeEnum
Data.FromJSON,
FromJSONKeyFunction [ActionTypeEnum]
FromJSONKeyFunction ActionTypeEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionTypeEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionTypeEnum]
fromJSONKey :: FromJSONKeyFunction ActionTypeEnum
$cfromJSONKey :: FromJSONKeyFunction ActionTypeEnum
Data.FromJSONKey,
[ActionTypeEnum] -> Encoding
[ActionTypeEnum] -> Value
ActionTypeEnum -> Encoding
ActionTypeEnum -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ActionTypeEnum] -> Encoding
$ctoEncodingList :: [ActionTypeEnum] -> Encoding
toJSONList :: [ActionTypeEnum] -> Value
$ctoJSONList :: [ActionTypeEnum] -> Value
toEncoding :: ActionTypeEnum -> Encoding
$ctoEncoding :: ActionTypeEnum -> Encoding
toJSON :: ActionTypeEnum -> Value
$ctoJSON :: ActionTypeEnum -> Value
Data.ToJSON,
ToJSONKeyFunction [ActionTypeEnum]
ToJSONKeyFunction ActionTypeEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionTypeEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionTypeEnum]
toJSONKey :: ToJSONKeyFunction ActionTypeEnum
$ctoJSONKey :: ToJSONKeyFunction ActionTypeEnum
Data.ToJSONKey,
[Node] -> Either String ActionTypeEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionTypeEnum
$cparseXML :: [Node] -> Either String ActionTypeEnum
Data.FromXML,
ActionTypeEnum -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ActionTypeEnum -> XML
$ctoXML :: ActionTypeEnum -> XML
Data.ToXML
)
pattern ActionTypeEnum_Authenticate_cognito :: ActionTypeEnum
pattern $bActionTypeEnum_Authenticate_cognito :: ActionTypeEnum
$mActionTypeEnum_Authenticate_cognito :: forall {r}. ActionTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ActionTypeEnum_Authenticate_cognito = ActionTypeEnum' "authenticate-cognito"
pattern ActionTypeEnum_Authenticate_oidc :: ActionTypeEnum
pattern $bActionTypeEnum_Authenticate_oidc :: ActionTypeEnum
$mActionTypeEnum_Authenticate_oidc :: forall {r}. ActionTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ActionTypeEnum_Authenticate_oidc = ActionTypeEnum' "authenticate-oidc"
pattern ActionTypeEnum_Fixed_response :: ActionTypeEnum
pattern $bActionTypeEnum_Fixed_response :: ActionTypeEnum
$mActionTypeEnum_Fixed_response :: forall {r}. ActionTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ActionTypeEnum_Fixed_response = ActionTypeEnum' "fixed-response"
pattern ActionTypeEnum_Forward :: ActionTypeEnum
pattern $bActionTypeEnum_Forward :: ActionTypeEnum
$mActionTypeEnum_Forward :: forall {r}. ActionTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ActionTypeEnum_Forward = ActionTypeEnum' "forward"
pattern ActionTypeEnum_Redirect :: ActionTypeEnum
pattern $bActionTypeEnum_Redirect :: ActionTypeEnum
$mActionTypeEnum_Redirect :: forall {r}. ActionTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ActionTypeEnum_Redirect = ActionTypeEnum' "redirect"
{-# COMPLETE
ActionTypeEnum_Authenticate_cognito,
ActionTypeEnum_Authenticate_oidc,
ActionTypeEnum_Fixed_response,
ActionTypeEnum_Forward,
ActionTypeEnum_Redirect,
ActionTypeEnum'
#-}