{-# 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.WindowsAccessAuditLogLevel
-- 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.WindowsAccessAuditLogLevel
  ( WindowsAccessAuditLogLevel
      ( ..,
        WindowsAccessAuditLogLevel_DISABLED,
        WindowsAccessAuditLogLevel_FAILURE_ONLY,
        WindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE,
        WindowsAccessAuditLogLevel_SUCCESS_ONLY
      ),
  )
where

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

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

pattern WindowsAccessAuditLogLevel_DISABLED :: WindowsAccessAuditLogLevel
pattern $bWindowsAccessAuditLogLevel_DISABLED :: WindowsAccessAuditLogLevel
$mWindowsAccessAuditLogLevel_DISABLED :: forall {r}.
WindowsAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsAccessAuditLogLevel_DISABLED = WindowsAccessAuditLogLevel' "DISABLED"

pattern WindowsAccessAuditLogLevel_FAILURE_ONLY :: WindowsAccessAuditLogLevel
pattern $bWindowsAccessAuditLogLevel_FAILURE_ONLY :: WindowsAccessAuditLogLevel
$mWindowsAccessAuditLogLevel_FAILURE_ONLY :: forall {r}.
WindowsAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsAccessAuditLogLevel_FAILURE_ONLY = WindowsAccessAuditLogLevel' "FAILURE_ONLY"

pattern WindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE :: WindowsAccessAuditLogLevel
pattern $bWindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE :: WindowsAccessAuditLogLevel
$mWindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE :: forall {r}.
WindowsAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE = WindowsAccessAuditLogLevel' "SUCCESS_AND_FAILURE"

pattern WindowsAccessAuditLogLevel_SUCCESS_ONLY :: WindowsAccessAuditLogLevel
pattern $bWindowsAccessAuditLogLevel_SUCCESS_ONLY :: WindowsAccessAuditLogLevel
$mWindowsAccessAuditLogLevel_SUCCESS_ONLY :: forall {r}.
WindowsAccessAuditLogLevel -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsAccessAuditLogLevel_SUCCESS_ONLY = WindowsAccessAuditLogLevel' "SUCCESS_ONLY"

{-# COMPLETE
  WindowsAccessAuditLogLevel_DISABLED,
  WindowsAccessAuditLogLevel_FAILURE_ONLY,
  WindowsAccessAuditLogLevel_SUCCESS_AND_FAILURE,
  WindowsAccessAuditLogLevel_SUCCESS_ONLY,
  WindowsAccessAuditLogLevel'
  #-}