{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype PredefinedScalingMetricType = PredefinedScalingMetricType'
  { PredefinedScalingMetricType -> Text
fromPredefinedScalingMetricType ::
      Core.Text
  }
  deriving stock
    ( Int -> PredefinedScalingMetricType -> ShowS
[PredefinedScalingMetricType] -> ShowS
PredefinedScalingMetricType -> String
(Int -> PredefinedScalingMetricType -> ShowS)
-> (PredefinedScalingMetricType -> String)
-> ([PredefinedScalingMetricType] -> ShowS)
-> Show PredefinedScalingMetricType
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]
(Int -> ReadS PredefinedScalingMetricType)
-> ReadS [PredefinedScalingMetricType]
-> ReadPrec PredefinedScalingMetricType
-> ReadPrec [PredefinedScalingMetricType]
-> Read 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
(PredefinedScalingMetricType
 -> PredefinedScalingMetricType -> Bool)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Bool)
-> Eq PredefinedScalingMetricType
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
Eq PredefinedScalingMetricType
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Ordering)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Bool)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Bool)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Bool)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> Bool)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> PredefinedScalingMetricType)
-> (PredefinedScalingMetricType
    -> PredefinedScalingMetricType -> PredefinedScalingMetricType)
-> Ord 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
$cp1Ord :: Eq PredefinedScalingMetricType
Prelude.Ord,
      (forall x.
 PredefinedScalingMetricType -> Rep PredefinedScalingMetricType x)
-> (forall x.
    Rep PredefinedScalingMetricType x -> PredefinedScalingMetricType)
-> Generic PredefinedScalingMetricType
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
    ( Int -> PredefinedScalingMetricType -> Int
PredefinedScalingMetricType -> Int
(Int -> PredefinedScalingMetricType -> Int)
-> (PredefinedScalingMetricType -> Int)
-> Hashable PredefinedScalingMetricType
forall 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 -> ()
(PredefinedScalingMetricType -> ())
-> NFData PredefinedScalingMetricType
forall a. (a -> ()) -> NFData a
rnf :: PredefinedScalingMetricType -> ()
$crnf :: PredefinedScalingMetricType -> ()
Prelude.NFData,
      Text -> Either String PredefinedScalingMetricType
(Text -> Either String PredefinedScalingMetricType)
-> FromText PredefinedScalingMetricType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PredefinedScalingMetricType
$cfromText :: Text -> Either String PredefinedScalingMetricType
Core.FromText,
      PredefinedScalingMetricType -> Text
(PredefinedScalingMetricType -> Text)
-> ToText PredefinedScalingMetricType
forall a. (a -> Text) -> ToText a
toText :: PredefinedScalingMetricType -> Text
$ctoText :: PredefinedScalingMetricType -> Text
Core.ToText,
      PredefinedScalingMetricType -> ByteString
(PredefinedScalingMetricType -> ByteString)
-> ToByteString PredefinedScalingMetricType
forall a. (a -> ByteString) -> ToByteString a
toBS :: PredefinedScalingMetricType -> ByteString
$ctoBS :: PredefinedScalingMetricType -> ByteString
Core.ToByteString,
      PredefinedScalingMetricType -> ByteStringBuilder
(PredefinedScalingMetricType -> ByteStringBuilder)
-> ToLog PredefinedScalingMetricType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PredefinedScalingMetricType -> ByteStringBuilder
$cbuild :: PredefinedScalingMetricType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> PredefinedScalingMetricType -> [Header]
(HeaderName -> PredefinedScalingMetricType -> [Header])
-> ToHeader PredefinedScalingMetricType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PredefinedScalingMetricType -> [Header]
$ctoHeader :: HeaderName -> PredefinedScalingMetricType -> [Header]
Core.ToHeader,
      PredefinedScalingMetricType -> QueryString
(PredefinedScalingMetricType -> QueryString)
-> ToQuery PredefinedScalingMetricType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PredefinedScalingMetricType -> QueryString
$ctoQuery :: PredefinedScalingMetricType -> QueryString
Core.ToQuery,
      Value -> Parser [PredefinedScalingMetricType]
Value -> Parser PredefinedScalingMetricType
(Value -> Parser PredefinedScalingMetricType)
-> (Value -> Parser [PredefinedScalingMetricType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [PredefinedScalingMetricType]
FromJSONKeyFunction PredefinedScalingMetricType
FromJSONKeyFunction PredefinedScalingMetricType
-> FromJSONKeyFunction [PredefinedScalingMetricType]
-> FromJSONKey PredefinedScalingMetricType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PredefinedScalingMetricType]
$cfromJSONKeyList :: FromJSONKeyFunction [PredefinedScalingMetricType]
fromJSONKey :: FromJSONKeyFunction PredefinedScalingMetricType
$cfromJSONKey :: FromJSONKeyFunction PredefinedScalingMetricType
Core.FromJSONKey,
      [PredefinedScalingMetricType] -> Encoding
[PredefinedScalingMetricType] -> Value
PredefinedScalingMetricType -> Encoding
PredefinedScalingMetricType -> Value
(PredefinedScalingMetricType -> Value)
-> (PredefinedScalingMetricType -> Encoding)
-> ([PredefinedScalingMetricType] -> Value)
-> ([PredefinedScalingMetricType] -> Encoding)
-> ToJSON PredefinedScalingMetricType
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
Core.ToJSON,
      ToJSONKeyFunction [PredefinedScalingMetricType]
ToJSONKeyFunction PredefinedScalingMetricType
ToJSONKeyFunction PredefinedScalingMetricType
-> ToJSONKeyFunction [PredefinedScalingMetricType]
-> ToJSONKey PredefinedScalingMetricType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PredefinedScalingMetricType]
$ctoJSONKeyList :: ToJSONKeyFunction [PredefinedScalingMetricType]
toJSONKey :: ToJSONKeyFunction PredefinedScalingMetricType
$ctoJSONKey :: ToJSONKeyFunction PredefinedScalingMetricType
Core.ToJSONKey,
      [Node] -> Either String PredefinedScalingMetricType
([Node] -> Either String PredefinedScalingMetricType)
-> FromXML PredefinedScalingMetricType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PredefinedScalingMetricType
$cparseXML :: [Node] -> Either String PredefinedScalingMetricType
Core.FromXML,
      PredefinedScalingMetricType -> XML
(PredefinedScalingMetricType -> XML)
-> ToXML PredefinedScalingMetricType
forall a. (a -> XML) -> ToXML a
toXML :: PredefinedScalingMetricType -> XML
$ctoXML :: PredefinedScalingMetricType -> XML
Core.ToXML
    )

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

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

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

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

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