{-# 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.GeneratedRulesType
-- 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.GeneratedRulesType
  ( GeneratedRulesType
      ( ..,
        GeneratedRulesType_ALLOWLIST,
        GeneratedRulesType_DENYLIST
      ),
  )
where

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

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

pattern GeneratedRulesType_ALLOWLIST :: GeneratedRulesType
pattern $bGeneratedRulesType_ALLOWLIST :: GeneratedRulesType
$mGeneratedRulesType_ALLOWLIST :: forall {r}. GeneratedRulesType -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedRulesType_ALLOWLIST = GeneratedRulesType' "ALLOWLIST"

pattern GeneratedRulesType_DENYLIST :: GeneratedRulesType
pattern $bGeneratedRulesType_DENYLIST :: GeneratedRulesType
$mGeneratedRulesType_DENYLIST :: forall {r}. GeneratedRulesType -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedRulesType_DENYLIST = GeneratedRulesType' "DENYLIST"

{-# COMPLETE
  GeneratedRulesType_ALLOWLIST,
  GeneratedRulesType_DENYLIST,
  GeneratedRulesType'
  #-}