{-# 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.DefaultTargetCapacityType
-- 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.DefaultTargetCapacityType
  ( DefaultTargetCapacityType
      ( ..,
        DefaultTargetCapacityType_On_demand,
        DefaultTargetCapacityType_Spot
      ),
  )
where

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

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

pattern DefaultTargetCapacityType_On_demand :: DefaultTargetCapacityType
pattern $bDefaultTargetCapacityType_On_demand :: DefaultTargetCapacityType
$mDefaultTargetCapacityType_On_demand :: forall {r}.
DefaultTargetCapacityType -> ((# #) -> r) -> ((# #) -> r) -> r
DefaultTargetCapacityType_On_demand = DefaultTargetCapacityType' "on-demand"

pattern DefaultTargetCapacityType_Spot :: DefaultTargetCapacityType
pattern $bDefaultTargetCapacityType_Spot :: DefaultTargetCapacityType
$mDefaultTargetCapacityType_Spot :: forall {r}.
DefaultTargetCapacityType -> ((# #) -> r) -> ((# #) -> r) -> r
DefaultTargetCapacityType_Spot = DefaultTargetCapacityType' "spot"

{-# COMPLETE
  DefaultTargetCapacityType_On_demand,
  DefaultTargetCapacityType_Spot,
  DefaultTargetCapacityType'
  #-}