{-# 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.AllowsMultipleInstanceTypes
-- 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.AllowsMultipleInstanceTypes
  ( AllowsMultipleInstanceTypes
      ( ..,
        AllowsMultipleInstanceTypes_Off,
        AllowsMultipleInstanceTypes_On
      ),
  )
where

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

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

pattern AllowsMultipleInstanceTypes_Off :: AllowsMultipleInstanceTypes
pattern $bAllowsMultipleInstanceTypes_Off :: AllowsMultipleInstanceTypes
$mAllowsMultipleInstanceTypes_Off :: forall {r}.
AllowsMultipleInstanceTypes -> ((# #) -> r) -> ((# #) -> r) -> r
AllowsMultipleInstanceTypes_Off = AllowsMultipleInstanceTypes' "off"

pattern AllowsMultipleInstanceTypes_On :: AllowsMultipleInstanceTypes
pattern $bAllowsMultipleInstanceTypes_On :: AllowsMultipleInstanceTypes
$mAllowsMultipleInstanceTypes_On :: forall {r}.
AllowsMultipleInstanceTypes -> ((# #) -> r) -> ((# #) -> r) -> r
AllowsMultipleInstanceTypes_On = AllowsMultipleInstanceTypes' "on"

{-# COMPLETE
  AllowsMultipleInstanceTypes_Off,
  AllowsMultipleInstanceTypes_On,
  AllowsMultipleInstanceTypes'
  #-}