{-# 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.FSx.Types.LustreAccessAuditLogLevel
-- 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.FSx.Types.LustreAccessAuditLogLevel
  ( LustreAccessAuditLogLevel
      ( ..,
        LustreAccessAuditLogLevel_DISABLED,
        LustreAccessAuditLogLevel_ERROR_ONLY,
        LustreAccessAuditLogLevel_WARN_ERROR,
        LustreAccessAuditLogLevel_WARN_ONLY
      ),
  )
where

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

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

pattern LustreAccessAuditLogLevel_DISABLED :: LustreAccessAuditLogLevel
pattern $bLustreAccessAuditLogLevel_DISABLED :: LustreAccessAuditLogLevel
$mLustreAccessAuditLogLevel_DISABLED :: forall {r}.
LustreAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
LustreAccessAuditLogLevel_DISABLED = LustreAccessAuditLogLevel' "DISABLED"

pattern LustreAccessAuditLogLevel_ERROR_ONLY :: LustreAccessAuditLogLevel
pattern $bLustreAccessAuditLogLevel_ERROR_ONLY :: LustreAccessAuditLogLevel
$mLustreAccessAuditLogLevel_ERROR_ONLY :: forall {r}.
LustreAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
LustreAccessAuditLogLevel_ERROR_ONLY = LustreAccessAuditLogLevel' "ERROR_ONLY"

pattern LustreAccessAuditLogLevel_WARN_ERROR :: LustreAccessAuditLogLevel
pattern $bLustreAccessAuditLogLevel_WARN_ERROR :: LustreAccessAuditLogLevel
$mLustreAccessAuditLogLevel_WARN_ERROR :: forall {r}.
LustreAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
LustreAccessAuditLogLevel_WARN_ERROR = LustreAccessAuditLogLevel' "WARN_ERROR"

pattern LustreAccessAuditLogLevel_WARN_ONLY :: LustreAccessAuditLogLevel
pattern $bLustreAccessAuditLogLevel_WARN_ONLY :: LustreAccessAuditLogLevel
$mLustreAccessAuditLogLevel_WARN_ONLY :: forall {r}.
LustreAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
LustreAccessAuditLogLevel_WARN_ONLY = LustreAccessAuditLogLevel' "WARN_ONLY"

{-# COMPLETE
  LustreAccessAuditLogLevel_DISABLED,
  LustreAccessAuditLogLevel_ERROR_ONLY,
  LustreAccessAuditLogLevel_WARN_ERROR,
  LustreAccessAuditLogLevel_WARN_ONLY,
  LustreAccessAuditLogLevel'
  #-}