{-# 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.ApplicationAutoScaling.Types.MetricType
-- 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.ApplicationAutoScaling.Types.MetricType
  ( MetricType
      ( ..,
        MetricType_ALBRequestCountPerTarget,
        MetricType_AppStreamAverageCapacityUtilization,
        MetricType_CassandraReadCapacityUtilization,
        MetricType_CassandraWriteCapacityUtilization,
        MetricType_ComprehendInferenceUtilization,
        MetricType_DynamoDBReadCapacityUtilization,
        MetricType_DynamoDBWriteCapacityUtilization,
        MetricType_EC2SpotFleetRequestAverageCPUUtilization,
        MetricType_EC2SpotFleetRequestAverageNetworkIn,
        MetricType_EC2SpotFleetRequestAverageNetworkOut,
        MetricType_ECSServiceAverageCPUUtilization,
        MetricType_ECSServiceAverageMemoryUtilization,
        MetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage,
        MetricType_ElastiCachePrimaryEngineCPUUtilization,
        MetricType_ElastiCacheReplicaEngineCPUUtilization,
        MetricType_KafkaBrokerStorageUtilization,
        MetricType_LambdaProvisionedConcurrencyUtilization,
        MetricType_NeptuneReaderAverageCPUUtilization,
        MetricType_RDSReaderAverageCPUUtilization,
        MetricType_RDSReaderAverageDatabaseConnections,
        MetricType_SageMakerVariantInvocationsPerInstance
      ),
  )
where

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

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

pattern MetricType_ALBRequestCountPerTarget :: MetricType
pattern $bMetricType_ALBRequestCountPerTarget :: MetricType
$mMetricType_ALBRequestCountPerTarget :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ALBRequestCountPerTarget = MetricType' "ALBRequestCountPerTarget"

pattern MetricType_AppStreamAverageCapacityUtilization :: MetricType
pattern $bMetricType_AppStreamAverageCapacityUtilization :: MetricType
$mMetricType_AppStreamAverageCapacityUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_AppStreamAverageCapacityUtilization = MetricType' "AppStreamAverageCapacityUtilization"

pattern MetricType_CassandraReadCapacityUtilization :: MetricType
pattern $bMetricType_CassandraReadCapacityUtilization :: MetricType
$mMetricType_CassandraReadCapacityUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_CassandraReadCapacityUtilization = MetricType' "CassandraReadCapacityUtilization"

pattern MetricType_CassandraWriteCapacityUtilization :: MetricType
pattern $bMetricType_CassandraWriteCapacityUtilization :: MetricType
$mMetricType_CassandraWriteCapacityUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_CassandraWriteCapacityUtilization = MetricType' "CassandraWriteCapacityUtilization"

pattern MetricType_ComprehendInferenceUtilization :: MetricType
pattern $bMetricType_ComprehendInferenceUtilization :: MetricType
$mMetricType_ComprehendInferenceUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ComprehendInferenceUtilization = MetricType' "ComprehendInferenceUtilization"

pattern MetricType_DynamoDBReadCapacityUtilization :: MetricType
pattern $bMetricType_DynamoDBReadCapacityUtilization :: MetricType
$mMetricType_DynamoDBReadCapacityUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_DynamoDBReadCapacityUtilization = MetricType' "DynamoDBReadCapacityUtilization"

pattern MetricType_DynamoDBWriteCapacityUtilization :: MetricType
pattern $bMetricType_DynamoDBWriteCapacityUtilization :: MetricType
$mMetricType_DynamoDBWriteCapacityUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_DynamoDBWriteCapacityUtilization = MetricType' "DynamoDBWriteCapacityUtilization"

pattern MetricType_EC2SpotFleetRequestAverageCPUUtilization :: MetricType
pattern $bMetricType_EC2SpotFleetRequestAverageCPUUtilization :: MetricType
$mMetricType_EC2SpotFleetRequestAverageCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_EC2SpotFleetRequestAverageCPUUtilization = MetricType' "EC2SpotFleetRequestAverageCPUUtilization"

pattern MetricType_EC2SpotFleetRequestAverageNetworkIn :: MetricType
pattern $bMetricType_EC2SpotFleetRequestAverageNetworkIn :: MetricType
$mMetricType_EC2SpotFleetRequestAverageNetworkIn :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_EC2SpotFleetRequestAverageNetworkIn = MetricType' "EC2SpotFleetRequestAverageNetworkIn"

pattern MetricType_EC2SpotFleetRequestAverageNetworkOut :: MetricType
pattern $bMetricType_EC2SpotFleetRequestAverageNetworkOut :: MetricType
$mMetricType_EC2SpotFleetRequestAverageNetworkOut :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_EC2SpotFleetRequestAverageNetworkOut = MetricType' "EC2SpotFleetRequestAverageNetworkOut"

pattern MetricType_ECSServiceAverageCPUUtilization :: MetricType
pattern $bMetricType_ECSServiceAverageCPUUtilization :: MetricType
$mMetricType_ECSServiceAverageCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ECSServiceAverageCPUUtilization = MetricType' "ECSServiceAverageCPUUtilization"

pattern MetricType_ECSServiceAverageMemoryUtilization :: MetricType
pattern $bMetricType_ECSServiceAverageMemoryUtilization :: MetricType
$mMetricType_ECSServiceAverageMemoryUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ECSServiceAverageMemoryUtilization = MetricType' "ECSServiceAverageMemoryUtilization"

pattern MetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage :: MetricType
pattern $bMetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage :: MetricType
$mMetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage = MetricType' "ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage"

pattern MetricType_ElastiCachePrimaryEngineCPUUtilization :: MetricType
pattern $bMetricType_ElastiCachePrimaryEngineCPUUtilization :: MetricType
$mMetricType_ElastiCachePrimaryEngineCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ElastiCachePrimaryEngineCPUUtilization = MetricType' "ElastiCachePrimaryEngineCPUUtilization"

pattern MetricType_ElastiCacheReplicaEngineCPUUtilization :: MetricType
pattern $bMetricType_ElastiCacheReplicaEngineCPUUtilization :: MetricType
$mMetricType_ElastiCacheReplicaEngineCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_ElastiCacheReplicaEngineCPUUtilization = MetricType' "ElastiCacheReplicaEngineCPUUtilization"

pattern MetricType_KafkaBrokerStorageUtilization :: MetricType
pattern $bMetricType_KafkaBrokerStorageUtilization :: MetricType
$mMetricType_KafkaBrokerStorageUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_KafkaBrokerStorageUtilization = MetricType' "KafkaBrokerStorageUtilization"

pattern MetricType_LambdaProvisionedConcurrencyUtilization :: MetricType
pattern $bMetricType_LambdaProvisionedConcurrencyUtilization :: MetricType
$mMetricType_LambdaProvisionedConcurrencyUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_LambdaProvisionedConcurrencyUtilization = MetricType' "LambdaProvisionedConcurrencyUtilization"

pattern MetricType_NeptuneReaderAverageCPUUtilization :: MetricType
pattern $bMetricType_NeptuneReaderAverageCPUUtilization :: MetricType
$mMetricType_NeptuneReaderAverageCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_NeptuneReaderAverageCPUUtilization = MetricType' "NeptuneReaderAverageCPUUtilization"

pattern MetricType_RDSReaderAverageCPUUtilization :: MetricType
pattern $bMetricType_RDSReaderAverageCPUUtilization :: MetricType
$mMetricType_RDSReaderAverageCPUUtilization :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_RDSReaderAverageCPUUtilization = MetricType' "RDSReaderAverageCPUUtilization"

pattern MetricType_RDSReaderAverageDatabaseConnections :: MetricType
pattern $bMetricType_RDSReaderAverageDatabaseConnections :: MetricType
$mMetricType_RDSReaderAverageDatabaseConnections :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_RDSReaderAverageDatabaseConnections = MetricType' "RDSReaderAverageDatabaseConnections"

pattern MetricType_SageMakerVariantInvocationsPerInstance :: MetricType
pattern $bMetricType_SageMakerVariantInvocationsPerInstance :: MetricType
$mMetricType_SageMakerVariantInvocationsPerInstance :: forall r. MetricType -> (Void# -> r) -> (Void# -> r) -> r
MetricType_SageMakerVariantInvocationsPerInstance = MetricType' "SageMakerVariantInvocationsPerInstance"

{-# COMPLETE
  MetricType_ALBRequestCountPerTarget,
  MetricType_AppStreamAverageCapacityUtilization,
  MetricType_CassandraReadCapacityUtilization,
  MetricType_CassandraWriteCapacityUtilization,
  MetricType_ComprehendInferenceUtilization,
  MetricType_DynamoDBReadCapacityUtilization,
  MetricType_DynamoDBWriteCapacityUtilization,
  MetricType_EC2SpotFleetRequestAverageCPUUtilization,
  MetricType_EC2SpotFleetRequestAverageNetworkIn,
  MetricType_EC2SpotFleetRequestAverageNetworkOut,
  MetricType_ECSServiceAverageCPUUtilization,
  MetricType_ECSServiceAverageMemoryUtilization,
  MetricType_ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage,
  MetricType_ElastiCachePrimaryEngineCPUUtilization,
  MetricType_ElastiCacheReplicaEngineCPUUtilization,
  MetricType_KafkaBrokerStorageUtilization,
  MetricType_LambdaProvisionedConcurrencyUtilization,
  MetricType_NeptuneReaderAverageCPUUtilization,
  MetricType_RDSReaderAverageCPUUtilization,
  MetricType_RDSReaderAverageDatabaseConnections,
  MetricType_SageMakerVariantInvocationsPerInstance,
  MetricType'
  #-}