{-# 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.IoT.Types.AuditNotificationType
-- 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.IoT.Types.AuditNotificationType
  ( AuditNotificationType
      ( ..,
        AuditNotificationType_SNS
      ),
  )
where

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

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

pattern AuditNotificationType_SNS :: AuditNotificationType
pattern $bAuditNotificationType_SNS :: AuditNotificationType
$mAuditNotificationType_SNS :: forall {r}.
AuditNotificationType -> ((# #) -> r) -> ((# #) -> r) -> r
AuditNotificationType_SNS = AuditNotificationType' "SNS"

{-# COMPLETE
  AuditNotificationType_SNS,
  AuditNotificationType'
  #-}