{-# 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.OpsWorks.Types.Architecture
-- 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.OpsWorks.Types.Architecture
  ( Architecture
      ( ..,
        Architecture_I386,
        Architecture_X86_64
      ),
  )
where

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

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

pattern Architecture_I386 :: Architecture
pattern $bArchitecture_I386 :: Architecture
$mArchitecture_I386 :: forall r. Architecture -> (Void# -> r) -> (Void# -> r) -> r
Architecture_I386 = Architecture' "i386"

pattern Architecture_X86_64 :: Architecture
pattern $bArchitecture_X86_64 :: Architecture
$mArchitecture_X86_64 :: forall r. Architecture -> (Void# -> r) -> (Void# -> r) -> r
Architecture_X86_64 = Architecture' "x86_64"

{-# COMPLETE
  Architecture_I386,
  Architecture_X86_64,
  Architecture'
  #-}