{-# 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.DeviceType
-- 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.DeviceType
  ( DeviceType
      ( ..,
        DeviceType_Ebs,
        DeviceType_Instance_store
      ),
  )
where

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

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

pattern DeviceType_Ebs :: DeviceType
pattern $bDeviceType_Ebs :: DeviceType
$mDeviceType_Ebs :: forall {r}. DeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceType_Ebs = DeviceType' "ebs"

pattern DeviceType_Instance_store :: DeviceType
pattern $bDeviceType_Instance_store :: DeviceType
$mDeviceType_Instance_store :: forall {r}. DeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceType_Instance_store = DeviceType' "instance-store"

{-# COMPLETE
  DeviceType_Ebs,
  DeviceType_Instance_store,
  DeviceType'
  #-}