{-# 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.ElasticBeanstalk.Types.ComputeType
-- 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.ElasticBeanstalk.Types.ComputeType
  ( ComputeType
      ( ..,
        ComputeType_BUILD_GENERAL1_LARGE,
        ComputeType_BUILD_GENERAL1_MEDIUM,
        ComputeType_BUILD_GENERAL1_SMALL
      ),
  )
where

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

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

pattern ComputeType_BUILD_GENERAL1_LARGE :: ComputeType
pattern $bComputeType_BUILD_GENERAL1_LARGE :: ComputeType
$mComputeType_BUILD_GENERAL1_LARGE :: forall r. ComputeType -> (Void# -> r) -> (Void# -> r) -> r
ComputeType_BUILD_GENERAL1_LARGE = ComputeType' "BUILD_GENERAL1_LARGE"

pattern ComputeType_BUILD_GENERAL1_MEDIUM :: ComputeType
pattern $bComputeType_BUILD_GENERAL1_MEDIUM :: ComputeType
$mComputeType_BUILD_GENERAL1_MEDIUM :: forall r. ComputeType -> (Void# -> r) -> (Void# -> r) -> r
ComputeType_BUILD_GENERAL1_MEDIUM = ComputeType' "BUILD_GENERAL1_MEDIUM"

pattern ComputeType_BUILD_GENERAL1_SMALL :: ComputeType
pattern $bComputeType_BUILD_GENERAL1_SMALL :: ComputeType
$mComputeType_BUILD_GENERAL1_SMALL :: forall r. ComputeType -> (Void# -> r) -> (Void# -> r) -> r
ComputeType_BUILD_GENERAL1_SMALL = ComputeType' "BUILD_GENERAL1_SMALL"

{-# COMPLETE
  ComputeType_BUILD_GENERAL1_LARGE,
  ComputeType_BUILD_GENERAL1_MEDIUM,
  ComputeType_BUILD_GENERAL1_SMALL,
  ComputeType'
  #-}