{-# 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.Config.Types.MaximumExecutionFrequency
-- 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.Config.Types.MaximumExecutionFrequency
  ( MaximumExecutionFrequency
      ( ..,
        MaximumExecutionFrequency_One_Hour,
        MaximumExecutionFrequency_Six_Hours,
        MaximumExecutionFrequency_Three_Hours,
        MaximumExecutionFrequency_Twelve_Hours,
        MaximumExecutionFrequency_TwentyFour_Hours
      ),
  )
where

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

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

pattern MaximumExecutionFrequency_One_Hour :: MaximumExecutionFrequency
pattern $bMaximumExecutionFrequency_One_Hour :: MaximumExecutionFrequency
$mMaximumExecutionFrequency_One_Hour :: forall r.
MaximumExecutionFrequency -> (Void# -> r) -> (Void# -> r) -> r
MaximumExecutionFrequency_One_Hour = MaximumExecutionFrequency' "One_Hour"

pattern MaximumExecutionFrequency_Six_Hours :: MaximumExecutionFrequency
pattern $bMaximumExecutionFrequency_Six_Hours :: MaximumExecutionFrequency
$mMaximumExecutionFrequency_Six_Hours :: forall r.
MaximumExecutionFrequency -> (Void# -> r) -> (Void# -> r) -> r
MaximumExecutionFrequency_Six_Hours = MaximumExecutionFrequency' "Six_Hours"

pattern MaximumExecutionFrequency_Three_Hours :: MaximumExecutionFrequency
pattern $bMaximumExecutionFrequency_Three_Hours :: MaximumExecutionFrequency
$mMaximumExecutionFrequency_Three_Hours :: forall r.
MaximumExecutionFrequency -> (Void# -> r) -> (Void# -> r) -> r
MaximumExecutionFrequency_Three_Hours = MaximumExecutionFrequency' "Three_Hours"

pattern MaximumExecutionFrequency_Twelve_Hours :: MaximumExecutionFrequency
pattern $bMaximumExecutionFrequency_Twelve_Hours :: MaximumExecutionFrequency
$mMaximumExecutionFrequency_Twelve_Hours :: forall r.
MaximumExecutionFrequency -> (Void# -> r) -> (Void# -> r) -> r
MaximumExecutionFrequency_Twelve_Hours = MaximumExecutionFrequency' "Twelve_Hours"

pattern MaximumExecutionFrequency_TwentyFour_Hours :: MaximumExecutionFrequency
pattern $bMaximumExecutionFrequency_TwentyFour_Hours :: MaximumExecutionFrequency
$mMaximumExecutionFrequency_TwentyFour_Hours :: forall r.
MaximumExecutionFrequency -> (Void# -> r) -> (Void# -> r) -> r
MaximumExecutionFrequency_TwentyFour_Hours = MaximumExecutionFrequency' "TwentyFour_Hours"

{-# COMPLETE
  MaximumExecutionFrequency_One_Hour,
  MaximumExecutionFrequency_Six_Hours,
  MaximumExecutionFrequency_Three_Hours,
  MaximumExecutionFrequency_Twelve_Hours,
  MaximumExecutionFrequency_TwentyFour_Hours,
  MaximumExecutionFrequency'
  #-}