{-# 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.ComputeOptimizer.Types.ECSServiceMetricName
-- 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.ComputeOptimizer.Types.ECSServiceMetricName
  ( ECSServiceMetricName
      ( ..,
        ECSServiceMetricName_Cpu,
        ECSServiceMetricName_Memory
      ),
  )
where

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

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

pattern ECSServiceMetricName_Cpu :: ECSServiceMetricName
pattern $bECSServiceMetricName_Cpu :: ECSServiceMetricName
$mECSServiceMetricName_Cpu :: forall {r}.
ECSServiceMetricName -> ((# #) -> r) -> ((# #) -> r) -> r
ECSServiceMetricName_Cpu = ECSServiceMetricName' "Cpu"

pattern ECSServiceMetricName_Memory :: ECSServiceMetricName
pattern $bECSServiceMetricName_Memory :: ECSServiceMetricName
$mECSServiceMetricName_Memory :: forall {r}.
ECSServiceMetricName -> ((# #) -> r) -> ((# #) -> r) -> r
ECSServiceMetricName_Memory = ECSServiceMetricName' "Memory"

{-# COMPLETE
  ECSServiceMetricName_Cpu,
  ECSServiceMetricName_Memory,
  ECSServiceMetricName'
  #-}