{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ELBV2.Types.ActionTypeEnum
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Prelude as Prelude

newtype ActionTypeEnum = ActionTypeEnum'
  { ActionTypeEnum -> Text
fromActionTypeEnum ::
      Core.Text
  }
  deriving stock
    ( Int -> ActionTypeEnum -> ShowS
[ActionTypeEnum] -> ShowS
ActionTypeEnum -> String
(Int -> ActionTypeEnum -> ShowS)
-> (ActionTypeEnum -> String)
-> ([ActionTypeEnum] -> ShowS)
-> Show ActionTypeEnum
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]
(Int -> ReadS ActionTypeEnum)
-> ReadS [ActionTypeEnum]
-> ReadPrec ActionTypeEnum
-> ReadPrec [ActionTypeEnum]
-> Read 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
(ActionTypeEnum -> ActionTypeEnum -> Bool)
-> (ActionTypeEnum -> ActionTypeEnum -> Bool) -> Eq ActionTypeEnum
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
Eq ActionTypeEnum
-> (ActionTypeEnum -> ActionTypeEnum -> Ordering)
-> (ActionTypeEnum -> ActionTypeEnum -> Bool)
-> (ActionTypeEnum -> ActionTypeEnum -> Bool)
-> (ActionTypeEnum -> ActionTypeEnum -> Bool)
-> (ActionTypeEnum -> ActionTypeEnum -> Bool)
-> (ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum)
-> (ActionTypeEnum -> ActionTypeEnum -> ActionTypeEnum)
-> Ord 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
$cp1Ord :: Eq ActionTypeEnum
Prelude.Ord,
      (forall x. ActionTypeEnum -> Rep ActionTypeEnum x)
-> (forall x. Rep ActionTypeEnum x -> ActionTypeEnum)
-> Generic ActionTypeEnum
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
    ( Int -> ActionTypeEnum -> Int
ActionTypeEnum -> Int
(Int -> ActionTypeEnum -> Int)
-> (ActionTypeEnum -> Int) -> Hashable ActionTypeEnum
forall 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 -> ()
(ActionTypeEnum -> ()) -> NFData ActionTypeEnum
forall a. (a -> ()) -> NFData a
rnf :: ActionTypeEnum -> ()
$crnf :: ActionTypeEnum -> ()
Prelude.NFData,
      Text -> Either String ActionTypeEnum
(Text -> Either String ActionTypeEnum) -> FromText ActionTypeEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionTypeEnum
$cfromText :: Text -> Either String ActionTypeEnum
Core.FromText,
      ActionTypeEnum -> Text
(ActionTypeEnum -> Text) -> ToText ActionTypeEnum
forall a. (a -> Text) -> ToText a
toText :: ActionTypeEnum -> Text
$ctoText :: ActionTypeEnum -> Text
Core.ToText,
      ActionTypeEnum -> ByteString
(ActionTypeEnum -> ByteString) -> ToByteString ActionTypeEnum
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionTypeEnum -> ByteString
$ctoBS :: ActionTypeEnum -> ByteString
Core.ToByteString,
      ActionTypeEnum -> ByteStringBuilder
(ActionTypeEnum -> ByteStringBuilder) -> ToLog ActionTypeEnum
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionTypeEnum -> ByteStringBuilder
$cbuild :: ActionTypeEnum -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ActionTypeEnum -> [Header]
(HeaderName -> ActionTypeEnum -> [Header])
-> ToHeader ActionTypeEnum
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionTypeEnum -> [Header]
$ctoHeader :: HeaderName -> ActionTypeEnum -> [Header]
Core.ToHeader,
      ActionTypeEnum -> QueryString
(ActionTypeEnum -> QueryString) -> ToQuery ActionTypeEnum
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionTypeEnum -> QueryString
$ctoQuery :: ActionTypeEnum -> QueryString
Core.ToQuery,
      Value -> Parser [ActionTypeEnum]
Value -> Parser ActionTypeEnum
(Value -> Parser ActionTypeEnum)
-> (Value -> Parser [ActionTypeEnum]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ActionTypeEnum]
FromJSONKeyFunction ActionTypeEnum
FromJSONKeyFunction ActionTypeEnum
-> FromJSONKeyFunction [ActionTypeEnum]
-> FromJSONKey ActionTypeEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionTypeEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionTypeEnum]
fromJSONKey :: FromJSONKeyFunction ActionTypeEnum
$cfromJSONKey :: FromJSONKeyFunction ActionTypeEnum
Core.FromJSONKey,
      [ActionTypeEnum] -> Encoding
[ActionTypeEnum] -> Value
ActionTypeEnum -> Encoding
ActionTypeEnum -> Value
(ActionTypeEnum -> Value)
-> (ActionTypeEnum -> Encoding)
-> ([ActionTypeEnum] -> Value)
-> ([ActionTypeEnum] -> Encoding)
-> ToJSON ActionTypeEnum
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
Core.ToJSON,
      ToJSONKeyFunction [ActionTypeEnum]
ToJSONKeyFunction ActionTypeEnum
ToJSONKeyFunction ActionTypeEnum
-> ToJSONKeyFunction [ActionTypeEnum] -> ToJSONKey ActionTypeEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionTypeEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionTypeEnum]
toJSONKey :: ToJSONKeyFunction ActionTypeEnum
$ctoJSONKey :: ToJSONKeyFunction ActionTypeEnum
Core.ToJSONKey,
      [Node] -> Either String ActionTypeEnum
([Node] -> Either String ActionTypeEnum) -> FromXML ActionTypeEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionTypeEnum
$cparseXML :: [Node] -> Either String ActionTypeEnum
Core.FromXML,
      ActionTypeEnum -> XML
(ActionTypeEnum -> XML) -> ToXML ActionTypeEnum
forall a. (a -> XML) -> ToXML a
toXML :: ActionTypeEnum -> XML
$ctoXML :: ActionTypeEnum -> XML
Core.ToXML
    )

pattern ActionTypeEnum_Authenticate_cognito :: ActionTypeEnum
pattern $bActionTypeEnum_Authenticate_cognito :: ActionTypeEnum
$mActionTypeEnum_Authenticate_cognito :: forall r. ActionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionTypeEnum_Authenticate_cognito = ActionTypeEnum' "authenticate-cognito"

pattern ActionTypeEnum_Authenticate_oidc :: ActionTypeEnum
pattern $bActionTypeEnum_Authenticate_oidc :: ActionTypeEnum
$mActionTypeEnum_Authenticate_oidc :: forall r. ActionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionTypeEnum_Authenticate_oidc = ActionTypeEnum' "authenticate-oidc"

pattern ActionTypeEnum_Fixed_response :: ActionTypeEnum
pattern $bActionTypeEnum_Fixed_response :: ActionTypeEnum
$mActionTypeEnum_Fixed_response :: forall r. ActionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionTypeEnum_Fixed_response = ActionTypeEnum' "fixed-response"

pattern ActionTypeEnum_Forward :: ActionTypeEnum
pattern $bActionTypeEnum_Forward :: ActionTypeEnum
$mActionTypeEnum_Forward :: forall r. ActionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionTypeEnum_Forward = ActionTypeEnum' "forward"

pattern ActionTypeEnum_Redirect :: ActionTypeEnum
pattern $bActionTypeEnum_Redirect :: ActionTypeEnum
$mActionTypeEnum_Redirect :: forall r. ActionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ActionTypeEnum_Redirect = ActionTypeEnum' "redirect"

{-# COMPLETE
  ActionTypeEnum_Authenticate_cognito,
  ActionTypeEnum_Authenticate_oidc,
  ActionTypeEnum_Fixed_response,
  ActionTypeEnum_Forward,
  ActionTypeEnum_Redirect,
  ActionTypeEnum'
  #-}