{-# 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.PredefinedLoadMetricType
-- 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.PredefinedLoadMetricType
  ( PredefinedLoadMetricType
      ( ..,
        PredefinedLoadMetricType_ALBTargetGroupRequestCount,
        PredefinedLoadMetricType_ASGTotalCPUUtilization,
        PredefinedLoadMetricType_ASGTotalNetworkIn,
        PredefinedLoadMetricType_ASGTotalNetworkOut
      ),
  )
where

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

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

pattern PredefinedLoadMetricType_ALBTargetGroupRequestCount :: PredefinedLoadMetricType
pattern $bPredefinedLoadMetricType_ALBTargetGroupRequestCount :: PredefinedLoadMetricType
$mPredefinedLoadMetricType_ALBTargetGroupRequestCount :: forall r.
PredefinedLoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
PredefinedLoadMetricType_ALBTargetGroupRequestCount = PredefinedLoadMetricType' "ALBTargetGroupRequestCount"

pattern PredefinedLoadMetricType_ASGTotalCPUUtilization :: PredefinedLoadMetricType
pattern $bPredefinedLoadMetricType_ASGTotalCPUUtilization :: PredefinedLoadMetricType
$mPredefinedLoadMetricType_ASGTotalCPUUtilization :: forall r.
PredefinedLoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
PredefinedLoadMetricType_ASGTotalCPUUtilization = PredefinedLoadMetricType' "ASGTotalCPUUtilization"

pattern PredefinedLoadMetricType_ASGTotalNetworkIn :: PredefinedLoadMetricType
pattern $bPredefinedLoadMetricType_ASGTotalNetworkIn :: PredefinedLoadMetricType
$mPredefinedLoadMetricType_ASGTotalNetworkIn :: forall r.
PredefinedLoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
PredefinedLoadMetricType_ASGTotalNetworkIn = PredefinedLoadMetricType' "ASGTotalNetworkIn"

pattern PredefinedLoadMetricType_ASGTotalNetworkOut :: PredefinedLoadMetricType
pattern $bPredefinedLoadMetricType_ASGTotalNetworkOut :: PredefinedLoadMetricType
$mPredefinedLoadMetricType_ASGTotalNetworkOut :: forall r.
PredefinedLoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
PredefinedLoadMetricType_ASGTotalNetworkOut = PredefinedLoadMetricType' "ASGTotalNetworkOut"

{-# COMPLETE
  PredefinedLoadMetricType_ALBTargetGroupRequestCount,
  PredefinedLoadMetricType_ASGTotalCPUUtilization,
  PredefinedLoadMetricType_ASGTotalNetworkIn,
  PredefinedLoadMetricType_ASGTotalNetworkOut,
  PredefinedLoadMetricType'
  #-}