{-# 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.TargetCapacityUnitType
-- 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.TargetCapacityUnitType
  ( TargetCapacityUnitType
      ( ..,
        TargetCapacityUnitType_Memory_mib,
        TargetCapacityUnitType_Units,
        TargetCapacityUnitType_Vcpu
      ),
  )
where

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

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

pattern TargetCapacityUnitType_Memory_mib :: TargetCapacityUnitType
pattern $bTargetCapacityUnitType_Memory_mib :: TargetCapacityUnitType
$mTargetCapacityUnitType_Memory_mib :: forall {r}.
TargetCapacityUnitType -> ((# #) -> r) -> ((# #) -> r) -> r
TargetCapacityUnitType_Memory_mib = TargetCapacityUnitType' "memory-mib"

pattern TargetCapacityUnitType_Units :: TargetCapacityUnitType
pattern $bTargetCapacityUnitType_Units :: TargetCapacityUnitType
$mTargetCapacityUnitType_Units :: forall {r}.
TargetCapacityUnitType -> ((# #) -> r) -> ((# #) -> r) -> r
TargetCapacityUnitType_Units = TargetCapacityUnitType' "units"

pattern TargetCapacityUnitType_Vcpu :: TargetCapacityUnitType
pattern $bTargetCapacityUnitType_Vcpu :: TargetCapacityUnitType
$mTargetCapacityUnitType_Vcpu :: forall {r}.
TargetCapacityUnitType -> ((# #) -> r) -> ((# #) -> r) -> r
TargetCapacityUnitType_Vcpu = TargetCapacityUnitType' "vcpu"

{-# COMPLETE
  TargetCapacityUnitType_Memory_mib,
  TargetCapacityUnitType_Units,
  TargetCapacityUnitType_Vcpu,
  TargetCapacityUnitType'
  #-}