{-# 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.AuditTaskType
-- 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.AuditTaskType
  ( AuditTaskType
      ( ..,
        AuditTaskType_ON_DEMAND_AUDIT_TASK,
        AuditTaskType_SCHEDULED_AUDIT_TASK
      ),
  )
where

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

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

pattern AuditTaskType_ON_DEMAND_AUDIT_TASK :: AuditTaskType
pattern $bAuditTaskType_ON_DEMAND_AUDIT_TASK :: AuditTaskType
$mAuditTaskType_ON_DEMAND_AUDIT_TASK :: forall r. AuditTaskType -> (Void# -> r) -> (Void# -> r) -> r
AuditTaskType_ON_DEMAND_AUDIT_TASK = AuditTaskType' "ON_DEMAND_AUDIT_TASK"

pattern AuditTaskType_SCHEDULED_AUDIT_TASK :: AuditTaskType
pattern $bAuditTaskType_SCHEDULED_AUDIT_TASK :: AuditTaskType
$mAuditTaskType_SCHEDULED_AUDIT_TASK :: forall r. AuditTaskType -> (Void# -> r) -> (Void# -> r) -> r
AuditTaskType_SCHEDULED_AUDIT_TASK = AuditTaskType' "SCHEDULED_AUDIT_TASK"

{-# COMPLETE
  AuditTaskType_ON_DEMAND_AUDIT_TASK,
  AuditTaskType_SCHEDULED_AUDIT_TASK,
  AuditTaskType'
  #-}