{-# 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.NetworkFirewall.Types.OverrideAction
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.NetworkFirewall.Types.OverrideAction
  ( OverrideAction
      ( ..,
        OverrideAction_DROP_TO_ALERT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype OverrideAction = OverrideAction'
  { OverrideAction -> Text
fromOverrideAction ::
      Data.Text
  }
  deriving stock
    ( Int -> OverrideAction -> ShowS
[OverrideAction] -> ShowS
OverrideAction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OverrideAction] -> ShowS
$cshowList :: [OverrideAction] -> ShowS
show :: OverrideAction -> String
$cshow :: OverrideAction -> String
showsPrec :: Int -> OverrideAction -> ShowS
$cshowsPrec :: Int -> OverrideAction -> ShowS
Prelude.Show,
      ReadPrec [OverrideAction]
ReadPrec OverrideAction
Int -> ReadS OverrideAction
ReadS [OverrideAction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OverrideAction]
$creadListPrec :: ReadPrec [OverrideAction]
readPrec :: ReadPrec OverrideAction
$creadPrec :: ReadPrec OverrideAction
readList :: ReadS [OverrideAction]
$creadList :: ReadS [OverrideAction]
readsPrec :: Int -> ReadS OverrideAction
$creadsPrec :: Int -> ReadS OverrideAction
Prelude.Read,
      OverrideAction -> OverrideAction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OverrideAction -> OverrideAction -> Bool
$c/= :: OverrideAction -> OverrideAction -> Bool
== :: OverrideAction -> OverrideAction -> Bool
$c== :: OverrideAction -> OverrideAction -> Bool
Prelude.Eq,
      Eq OverrideAction
OverrideAction -> OverrideAction -> Bool
OverrideAction -> OverrideAction -> Ordering
OverrideAction -> OverrideAction -> OverrideAction
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 :: OverrideAction -> OverrideAction -> OverrideAction
$cmin :: OverrideAction -> OverrideAction -> OverrideAction
max :: OverrideAction -> OverrideAction -> OverrideAction
$cmax :: OverrideAction -> OverrideAction -> OverrideAction
>= :: OverrideAction -> OverrideAction -> Bool
$c>= :: OverrideAction -> OverrideAction -> Bool
> :: OverrideAction -> OverrideAction -> Bool
$c> :: OverrideAction -> OverrideAction -> Bool
<= :: OverrideAction -> OverrideAction -> Bool
$c<= :: OverrideAction -> OverrideAction -> Bool
< :: OverrideAction -> OverrideAction -> Bool
$c< :: OverrideAction -> OverrideAction -> Bool
compare :: OverrideAction -> OverrideAction -> Ordering
$ccompare :: OverrideAction -> OverrideAction -> Ordering
Prelude.Ord,
      forall x. Rep OverrideAction x -> OverrideAction
forall x. OverrideAction -> Rep OverrideAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OverrideAction x -> OverrideAction
$cfrom :: forall x. OverrideAction -> Rep OverrideAction x
Prelude.Generic
    )
  deriving newtype
    ( Eq OverrideAction
Int -> OverrideAction -> Int
OverrideAction -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OverrideAction -> Int
$chash :: OverrideAction -> Int
hashWithSalt :: Int -> OverrideAction -> Int
$chashWithSalt :: Int -> OverrideAction -> Int
Prelude.Hashable,
      OverrideAction -> ()
forall a. (a -> ()) -> NFData a
rnf :: OverrideAction -> ()
$crnf :: OverrideAction -> ()
Prelude.NFData,
      Text -> Either String OverrideAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OverrideAction
$cfromText :: Text -> Either String OverrideAction
Data.FromText,
      OverrideAction -> Text
forall a. (a -> Text) -> ToText a
toText :: OverrideAction -> Text
$ctoText :: OverrideAction -> Text
Data.ToText,
      OverrideAction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: OverrideAction -> ByteString
$ctoBS :: OverrideAction -> ByteString
Data.ToByteString,
      OverrideAction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OverrideAction -> ByteStringBuilder
$cbuild :: OverrideAction -> ByteStringBuilder
Data.ToLog,
      HeaderName -> OverrideAction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OverrideAction -> [Header]
$ctoHeader :: HeaderName -> OverrideAction -> [Header]
Data.ToHeader,
      OverrideAction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OverrideAction -> QueryString
$ctoQuery :: OverrideAction -> QueryString
Data.ToQuery,
      Value -> Parser [OverrideAction]
Value -> Parser OverrideAction
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OverrideAction]
$cparseJSONList :: Value -> Parser [OverrideAction]
parseJSON :: Value -> Parser OverrideAction
$cparseJSON :: Value -> Parser OverrideAction
Data.FromJSON,
      FromJSONKeyFunction [OverrideAction]
FromJSONKeyFunction OverrideAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OverrideAction]
$cfromJSONKeyList :: FromJSONKeyFunction [OverrideAction]
fromJSONKey :: FromJSONKeyFunction OverrideAction
$cfromJSONKey :: FromJSONKeyFunction OverrideAction
Data.FromJSONKey,
      [OverrideAction] -> Encoding
[OverrideAction] -> Value
OverrideAction -> Encoding
OverrideAction -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OverrideAction] -> Encoding
$ctoEncodingList :: [OverrideAction] -> Encoding
toJSONList :: [OverrideAction] -> Value
$ctoJSONList :: [OverrideAction] -> Value
toEncoding :: OverrideAction -> Encoding
$ctoEncoding :: OverrideAction -> Encoding
toJSON :: OverrideAction -> Value
$ctoJSON :: OverrideAction -> Value
Data.ToJSON,
      ToJSONKeyFunction [OverrideAction]
ToJSONKeyFunction OverrideAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OverrideAction]
$ctoJSONKeyList :: ToJSONKeyFunction [OverrideAction]
toJSONKey :: ToJSONKeyFunction OverrideAction
$ctoJSONKey :: ToJSONKeyFunction OverrideAction
Data.ToJSONKey,
      [Node] -> Either String OverrideAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OverrideAction
$cparseXML :: [Node] -> Either String OverrideAction
Data.FromXML,
      OverrideAction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: OverrideAction -> XML
$ctoXML :: OverrideAction -> XML
Data.ToXML
    )

pattern OverrideAction_DROP_TO_ALERT :: OverrideAction
pattern $bOverrideAction_DROP_TO_ALERT :: OverrideAction
$mOverrideAction_DROP_TO_ALERT :: forall {r}. OverrideAction -> ((# #) -> r) -> ((# #) -> r) -> r
OverrideAction_DROP_TO_ALERT = OverrideAction' "DROP_TO_ALERT"

{-# COMPLETE
  OverrideAction_DROP_TO_ALERT,
  OverrideAction'
  #-}