{-# 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.AuditFrequency
-- 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.AuditFrequency
  ( AuditFrequency
      ( ..,
        AuditFrequency_BIWEEKLY,
        AuditFrequency_DAILY,
        AuditFrequency_MONTHLY,
        AuditFrequency_WEEKLY
      ),
  )
where

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

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

pattern AuditFrequency_BIWEEKLY :: AuditFrequency
pattern $bAuditFrequency_BIWEEKLY :: AuditFrequency
$mAuditFrequency_BIWEEKLY :: forall r. AuditFrequency -> (Void# -> r) -> (Void# -> r) -> r
AuditFrequency_BIWEEKLY = AuditFrequency' "BIWEEKLY"

pattern AuditFrequency_DAILY :: AuditFrequency
pattern $bAuditFrequency_DAILY :: AuditFrequency
$mAuditFrequency_DAILY :: forall r. AuditFrequency -> (Void# -> r) -> (Void# -> r) -> r
AuditFrequency_DAILY = AuditFrequency' "DAILY"

pattern AuditFrequency_MONTHLY :: AuditFrequency
pattern $bAuditFrequency_MONTHLY :: AuditFrequency
$mAuditFrequency_MONTHLY :: forall r. AuditFrequency -> (Void# -> r) -> (Void# -> r) -> r
AuditFrequency_MONTHLY = AuditFrequency' "MONTHLY"

pattern AuditFrequency_WEEKLY :: AuditFrequency
pattern $bAuditFrequency_WEEKLY :: AuditFrequency
$mAuditFrequency_WEEKLY :: forall r. AuditFrequency -> (Void# -> r) -> (Void# -> r) -> r
AuditFrequency_WEEKLY = AuditFrequency' "WEEKLY"

{-# COMPLETE
  AuditFrequency_BIWEEKLY,
  AuditFrequency_DAILY,
  AuditFrequency_MONTHLY,
  AuditFrequency_WEEKLY,
  AuditFrequency'
  #-}