{-# 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.AutoScalingPlans.Types.LoadMetricType
-- 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.AutoScalingPlans.Types.LoadMetricType
  ( LoadMetricType
      ( ..,
        LoadMetricType_ALBTargetGroupRequestCount,
        LoadMetricType_ASGTotalCPUUtilization,
        LoadMetricType_ASGTotalNetworkIn,
        LoadMetricType_ASGTotalNetworkOut
      ),
  )
where

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

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

pattern LoadMetricType_ALBTargetGroupRequestCount :: LoadMetricType
pattern $bLoadMetricType_ALBTargetGroupRequestCount :: LoadMetricType
$mLoadMetricType_ALBTargetGroupRequestCount :: forall r. LoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
LoadMetricType_ALBTargetGroupRequestCount = LoadMetricType' "ALBTargetGroupRequestCount"

pattern LoadMetricType_ASGTotalCPUUtilization :: LoadMetricType
pattern $bLoadMetricType_ASGTotalCPUUtilization :: LoadMetricType
$mLoadMetricType_ASGTotalCPUUtilization :: forall r. LoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
LoadMetricType_ASGTotalCPUUtilization = LoadMetricType' "ASGTotalCPUUtilization"

pattern LoadMetricType_ASGTotalNetworkIn :: LoadMetricType
pattern $bLoadMetricType_ASGTotalNetworkIn :: LoadMetricType
$mLoadMetricType_ASGTotalNetworkIn :: forall r. LoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
LoadMetricType_ASGTotalNetworkIn = LoadMetricType' "ASGTotalNetworkIn"

pattern LoadMetricType_ASGTotalNetworkOut :: LoadMetricType
pattern $bLoadMetricType_ASGTotalNetworkOut :: LoadMetricType
$mLoadMetricType_ASGTotalNetworkOut :: forall r. LoadMetricType -> (Void# -> r) -> (Void# -> r) -> r
LoadMetricType_ASGTotalNetworkOut = LoadMetricType' "ASGTotalNetworkOut"

{-# COMPLETE
  LoadMetricType_ALBTargetGroupRequestCount,
  LoadMetricType_ASGTotalCPUUtilization,
  LoadMetricType_ASGTotalNetworkIn,
  LoadMetricType_ASGTotalNetworkOut,
  LoadMetricType'
  #-}