{-# 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.EC2.Types.TargetStorageTier
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EC2.Types.TargetStorageTier
  ( TargetStorageTier
      ( ..,
        TargetStorageTier_Archive
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern TargetStorageTier_Archive :: TargetStorageTier
pattern $bTargetStorageTier_Archive :: TargetStorageTier
$mTargetStorageTier_Archive :: forall {r}. TargetStorageTier -> ((# #) -> r) -> ((# #) -> r) -> r
TargetStorageTier_Archive = TargetStorageTier' "archive"

{-# COMPLETE
  TargetStorageTier_Archive,
  TargetStorageTier'
  #-}