{-# 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.SSM.Types.ParameterTier
-- 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.SSM.Types.ParameterTier
  ( ParameterTier
      ( ..,
        ParameterTier_Advanced,
        ParameterTier_Intelligent_Tiering,
        ParameterTier_Standard
      ),
  )
where

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

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

pattern ParameterTier_Advanced :: ParameterTier
pattern $bParameterTier_Advanced :: ParameterTier
$mParameterTier_Advanced :: forall r. ParameterTier -> (Void# -> r) -> (Void# -> r) -> r
ParameterTier_Advanced = ParameterTier' "Advanced"

pattern ParameterTier_Intelligent_Tiering :: ParameterTier
pattern $bParameterTier_Intelligent_Tiering :: ParameterTier
$mParameterTier_Intelligent_Tiering :: forall r. ParameterTier -> (Void# -> r) -> (Void# -> r) -> r
ParameterTier_Intelligent_Tiering = ParameterTier' "Intelligent-Tiering"

pattern ParameterTier_Standard :: ParameterTier
pattern $bParameterTier_Standard :: ParameterTier
$mParameterTier_Standard :: forall r. ParameterTier -> (Void# -> r) -> (Void# -> r) -> r
ParameterTier_Standard = ParameterTier' "Standard"

{-# COMPLETE
  ParameterTier_Advanced,
  ParameterTier_Intelligent_Tiering,
  ParameterTier_Standard,
  ParameterTier'
  #-}