{-# 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.ArchitectureType
-- 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.ArchitectureType
  ( ArchitectureType
      ( ..,
        ArchitectureType_Arm64,
        ArchitectureType_Arm64_mac,
        ArchitectureType_I386,
        ArchitectureType_X86_64,
        ArchitectureType_X86_64_mac
      ),
  )
where

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

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

pattern ArchitectureType_Arm64 :: ArchitectureType
pattern $bArchitectureType_Arm64 :: ArchitectureType
$mArchitectureType_Arm64 :: forall {r}. ArchitectureType -> ((# #) -> r) -> ((# #) -> r) -> r
ArchitectureType_Arm64 = ArchitectureType' "arm64"

pattern ArchitectureType_Arm64_mac :: ArchitectureType
pattern $bArchitectureType_Arm64_mac :: ArchitectureType
$mArchitectureType_Arm64_mac :: forall {r}. ArchitectureType -> ((# #) -> r) -> ((# #) -> r) -> r
ArchitectureType_Arm64_mac = ArchitectureType' "arm64_mac"

pattern ArchitectureType_I386 :: ArchitectureType
pattern $bArchitectureType_I386 :: ArchitectureType
$mArchitectureType_I386 :: forall {r}. ArchitectureType -> ((# #) -> r) -> ((# #) -> r) -> r
ArchitectureType_I386 = ArchitectureType' "i386"

pattern ArchitectureType_X86_64 :: ArchitectureType
pattern $bArchitectureType_X86_64 :: ArchitectureType
$mArchitectureType_X86_64 :: forall {r}. ArchitectureType -> ((# #) -> r) -> ((# #) -> r) -> r
ArchitectureType_X86_64 = ArchitectureType' "x86_64"

pattern ArchitectureType_X86_64_mac :: ArchitectureType
pattern $bArchitectureType_X86_64_mac :: ArchitectureType
$mArchitectureType_X86_64_mac :: forall {r}. ArchitectureType -> ((# #) -> r) -> ((# #) -> r) -> r
ArchitectureType_X86_64_mac = ArchitectureType' "x86_64_mac"

{-# COMPLETE
  ArchitectureType_Arm64,
  ArchitectureType_Arm64_mac,
  ArchitectureType_I386,
  ArchitectureType_X86_64,
  ArchitectureType_X86_64_mac,
  ArchitectureType'
  #-}