{-# 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.AutoScaling.Types.PredefinedScalingMetricType
-- 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.AutoScaling.Types.PredefinedScalingMetricType
  ( PredefinedScalingMetricType
      ( ..,
        PredefinedScalingMetricType_ALBRequestCountPerTarget,
        PredefinedScalingMetricType_ASGAverageCPUUtilization,
        PredefinedScalingMetricType_ASGAverageNetworkIn,
        PredefinedScalingMetricType_ASGAverageNetworkOut
      ),
  )
where

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

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

pattern PredefinedScalingMetricType_ALBRequestCountPerTarget :: PredefinedScalingMetricType
pattern $bPredefinedScalingMetricType_ALBRequestCountPerTarget :: PredefinedScalingMetricType
$mPredefinedScalingMetricType_ALBRequestCountPerTarget :: forall {r}.
PredefinedScalingMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedScalingMetricType_ALBRequestCountPerTarget = PredefinedScalingMetricType' "ALBRequestCountPerTarget"

pattern PredefinedScalingMetricType_ASGAverageCPUUtilization :: PredefinedScalingMetricType
pattern $bPredefinedScalingMetricType_ASGAverageCPUUtilization :: PredefinedScalingMetricType
$mPredefinedScalingMetricType_ASGAverageCPUUtilization :: forall {r}.
PredefinedScalingMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedScalingMetricType_ASGAverageCPUUtilization = PredefinedScalingMetricType' "ASGAverageCPUUtilization"

pattern PredefinedScalingMetricType_ASGAverageNetworkIn :: PredefinedScalingMetricType
pattern $bPredefinedScalingMetricType_ASGAverageNetworkIn :: PredefinedScalingMetricType
$mPredefinedScalingMetricType_ASGAverageNetworkIn :: forall {r}.
PredefinedScalingMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedScalingMetricType_ASGAverageNetworkIn = PredefinedScalingMetricType' "ASGAverageNetworkIn"

pattern PredefinedScalingMetricType_ASGAverageNetworkOut :: PredefinedScalingMetricType
pattern $bPredefinedScalingMetricType_ASGAverageNetworkOut :: PredefinedScalingMetricType
$mPredefinedScalingMetricType_ASGAverageNetworkOut :: forall {r}.
PredefinedScalingMetricType -> ((# #) -> r) -> ((# #) -> r) -> r
PredefinedScalingMetricType_ASGAverageNetworkOut = PredefinedScalingMetricType' "ASGAverageNetworkOut"

{-# COMPLETE
  PredefinedScalingMetricType_ALBRequestCountPerTarget,
  PredefinedScalingMetricType_ASGAverageCPUUtilization,
  PredefinedScalingMetricType_ASGAverageNetworkIn,
  PredefinedScalingMetricType_ASGAverageNetworkOut,
  PredefinedScalingMetricType'
  #-}