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

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

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

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

{-# COMPLETE
  AuditNotificationType_SNS,
  AuditNotificationType'
  #-}