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

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

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

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

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

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