{-# 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.AppMesh.Types.EgressFilterType
-- 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.AppMesh.Types.EgressFilterType
  ( EgressFilterType
      ( ..,
        EgressFilterType_ALLOW_ALL,
        EgressFilterType_DROP_ALL
      ),
  )
where

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

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

pattern EgressFilterType_ALLOW_ALL :: EgressFilterType
pattern $bEgressFilterType_ALLOW_ALL :: EgressFilterType
$mEgressFilterType_ALLOW_ALL :: forall {r}. EgressFilterType -> ((# #) -> r) -> ((# #) -> r) -> r
EgressFilterType_ALLOW_ALL = EgressFilterType' "ALLOW_ALL"

pattern EgressFilterType_DROP_ALL :: EgressFilterType
pattern $bEgressFilterType_DROP_ALL :: EgressFilterType
$mEgressFilterType_DROP_ALL :: forall {r}. EgressFilterType -> ((# #) -> r) -> ((# #) -> r) -> r
EgressFilterType_DROP_ALL = EgressFilterType' "DROP_ALL"

{-# COMPLETE
  EgressFilterType_ALLOW_ALL,
  EgressFilterType_DROP_ALL,
  EgressFilterType'
  #-}