{-# 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.ImageBuilder.Types.EbsVolumeType
-- 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.ImageBuilder.Types.EbsVolumeType
  ( EbsVolumeType
      ( ..,
        EbsVolumeType_Gp2,
        EbsVolumeType_Gp3,
        EbsVolumeType_Io1,
        EbsVolumeType_Io2,
        EbsVolumeType_Sc1,
        EbsVolumeType_St1,
        EbsVolumeType_Standard
      ),
  )
where

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

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

pattern EbsVolumeType_Gp2 :: EbsVolumeType
pattern $bEbsVolumeType_Gp2 :: EbsVolumeType
$mEbsVolumeType_Gp2 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Gp2 = EbsVolumeType' "gp2"

pattern EbsVolumeType_Gp3 :: EbsVolumeType
pattern $bEbsVolumeType_Gp3 :: EbsVolumeType
$mEbsVolumeType_Gp3 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Gp3 = EbsVolumeType' "gp3"

pattern EbsVolumeType_Io1 :: EbsVolumeType
pattern $bEbsVolumeType_Io1 :: EbsVolumeType
$mEbsVolumeType_Io1 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Io1 = EbsVolumeType' "io1"

pattern EbsVolumeType_Io2 :: EbsVolumeType
pattern $bEbsVolumeType_Io2 :: EbsVolumeType
$mEbsVolumeType_Io2 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Io2 = EbsVolumeType' "io2"

pattern EbsVolumeType_Sc1 :: EbsVolumeType
pattern $bEbsVolumeType_Sc1 :: EbsVolumeType
$mEbsVolumeType_Sc1 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Sc1 = EbsVolumeType' "sc1"

pattern EbsVolumeType_St1 :: EbsVolumeType
pattern $bEbsVolumeType_St1 :: EbsVolumeType
$mEbsVolumeType_St1 :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_St1 = EbsVolumeType' "st1"

pattern EbsVolumeType_Standard :: EbsVolumeType
pattern $bEbsVolumeType_Standard :: EbsVolumeType
$mEbsVolumeType_Standard :: forall r. EbsVolumeType -> (Void# -> r) -> (Void# -> r) -> r
EbsVolumeType_Standard = EbsVolumeType' "standard"

{-# COMPLETE
  EbsVolumeType_Gp2,
  EbsVolumeType_Gp3,
  EbsVolumeType_Io1,
  EbsVolumeType_Io2,
  EbsVolumeType_Sc1,
  EbsVolumeType_St1,
  EbsVolumeType_Standard,
  EbsVolumeType'
  #-}