{-# 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.Lightsail.Types.ContainerServiceMetricName
-- 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.Lightsail.Types.ContainerServiceMetricName
  ( ContainerServiceMetricName
      ( ..,
        ContainerServiceMetricName_CPUUtilization,
        ContainerServiceMetricName_MemoryUtilization
      ),
  )
where

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

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

pattern ContainerServiceMetricName_CPUUtilization :: ContainerServiceMetricName
pattern $bContainerServiceMetricName_CPUUtilization :: ContainerServiceMetricName
$mContainerServiceMetricName_CPUUtilization :: forall {r}.
ContainerServiceMetricName -> ((# #) -> r) -> ((# #) -> r) -> r
ContainerServiceMetricName_CPUUtilization = ContainerServiceMetricName' "CPUUtilization"

pattern ContainerServiceMetricName_MemoryUtilization :: ContainerServiceMetricName
pattern $bContainerServiceMetricName_MemoryUtilization :: ContainerServiceMetricName
$mContainerServiceMetricName_MemoryUtilization :: forall {r}.
ContainerServiceMetricName -> ((# #) -> r) -> ((# #) -> r) -> r
ContainerServiceMetricName_MemoryUtilization = ContainerServiceMetricName' "MemoryUtilization"

{-# COMPLETE
  ContainerServiceMetricName_CPUUtilization,
  ContainerServiceMetricName_MemoryUtilization,
  ContainerServiceMetricName'
  #-}