{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MGN.Types.TargetInstanceTypeRightSizingMethod
( TargetInstanceTypeRightSizingMethod
( ..,
TargetInstanceTypeRightSizingMethod_BASIC,
TargetInstanceTypeRightSizingMethod_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetInstanceTypeRightSizingMethod = TargetInstanceTypeRightSizingMethod'
{ TargetInstanceTypeRightSizingMethod -> Text
fromTargetInstanceTypeRightSizingMethod ::
Core.Text
}
deriving stock
( Int -> TargetInstanceTypeRightSizingMethod -> ShowS
[TargetInstanceTypeRightSizingMethod] -> ShowS
TargetInstanceTypeRightSizingMethod -> String
(Int -> TargetInstanceTypeRightSizingMethod -> ShowS)
-> (TargetInstanceTypeRightSizingMethod -> String)
-> ([TargetInstanceTypeRightSizingMethod] -> ShowS)
-> Show TargetInstanceTypeRightSizingMethod
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetInstanceTypeRightSizingMethod] -> ShowS
$cshowList :: [TargetInstanceTypeRightSizingMethod] -> ShowS
show :: TargetInstanceTypeRightSizingMethod -> String
$cshow :: TargetInstanceTypeRightSizingMethod -> String
showsPrec :: Int -> TargetInstanceTypeRightSizingMethod -> ShowS
$cshowsPrec :: Int -> TargetInstanceTypeRightSizingMethod -> ShowS
Prelude.Show,
ReadPrec [TargetInstanceTypeRightSizingMethod]
ReadPrec TargetInstanceTypeRightSizingMethod
Int -> ReadS TargetInstanceTypeRightSizingMethod
ReadS [TargetInstanceTypeRightSizingMethod]
(Int -> ReadS TargetInstanceTypeRightSizingMethod)
-> ReadS [TargetInstanceTypeRightSizingMethod]
-> ReadPrec TargetInstanceTypeRightSizingMethod
-> ReadPrec [TargetInstanceTypeRightSizingMethod]
-> Read TargetInstanceTypeRightSizingMethod
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetInstanceTypeRightSizingMethod]
$creadListPrec :: ReadPrec [TargetInstanceTypeRightSizingMethod]
readPrec :: ReadPrec TargetInstanceTypeRightSizingMethod
$creadPrec :: ReadPrec TargetInstanceTypeRightSizingMethod
readList :: ReadS [TargetInstanceTypeRightSizingMethod]
$creadList :: ReadS [TargetInstanceTypeRightSizingMethod]
readsPrec :: Int -> ReadS TargetInstanceTypeRightSizingMethod
$creadsPrec :: Int -> ReadS TargetInstanceTypeRightSizingMethod
Prelude.Read,
TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
(TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> Eq TargetInstanceTypeRightSizingMethod
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c/= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
== :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c== :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
Prelude.Eq,
Eq TargetInstanceTypeRightSizingMethod
Eq TargetInstanceTypeRightSizingMethod
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Ordering)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod)
-> (TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod)
-> Ord TargetInstanceTypeRightSizingMethod
TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Ordering
TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
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 :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
$cmin :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
max :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
$cmax :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod
>= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c>= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
> :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c> :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
<= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c<= :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
< :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
$c< :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Bool
compare :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Ordering
$ccompare :: TargetInstanceTypeRightSizingMethod
-> TargetInstanceTypeRightSizingMethod -> Ordering
$cp1Ord :: Eq TargetInstanceTypeRightSizingMethod
Prelude.Ord,
(forall x.
TargetInstanceTypeRightSizingMethod
-> Rep TargetInstanceTypeRightSizingMethod x)
-> (forall x.
Rep TargetInstanceTypeRightSizingMethod x
-> TargetInstanceTypeRightSizingMethod)
-> Generic TargetInstanceTypeRightSizingMethod
forall x.
Rep TargetInstanceTypeRightSizingMethod x
-> TargetInstanceTypeRightSizingMethod
forall x.
TargetInstanceTypeRightSizingMethod
-> Rep TargetInstanceTypeRightSizingMethod x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TargetInstanceTypeRightSizingMethod x
-> TargetInstanceTypeRightSizingMethod
$cfrom :: forall x.
TargetInstanceTypeRightSizingMethod
-> Rep TargetInstanceTypeRightSizingMethod x
Prelude.Generic
)
deriving newtype
( Int -> TargetInstanceTypeRightSizingMethod -> Int
TargetInstanceTypeRightSizingMethod -> Int
(Int -> TargetInstanceTypeRightSizingMethod -> Int)
-> (TargetInstanceTypeRightSizingMethod -> Int)
-> Hashable TargetInstanceTypeRightSizingMethod
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetInstanceTypeRightSizingMethod -> Int
$chash :: TargetInstanceTypeRightSizingMethod -> Int
hashWithSalt :: Int -> TargetInstanceTypeRightSizingMethod -> Int
$chashWithSalt :: Int -> TargetInstanceTypeRightSizingMethod -> Int
Prelude.Hashable,
TargetInstanceTypeRightSizingMethod -> ()
(TargetInstanceTypeRightSizingMethod -> ())
-> NFData TargetInstanceTypeRightSizingMethod
forall a. (a -> ()) -> NFData a
rnf :: TargetInstanceTypeRightSizingMethod -> ()
$crnf :: TargetInstanceTypeRightSizingMethod -> ()
Prelude.NFData,
Text -> Either String TargetInstanceTypeRightSizingMethod
(Text -> Either String TargetInstanceTypeRightSizingMethod)
-> FromText TargetInstanceTypeRightSizingMethod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetInstanceTypeRightSizingMethod
$cfromText :: Text -> Either String TargetInstanceTypeRightSizingMethod
Core.FromText,
TargetInstanceTypeRightSizingMethod -> Text
(TargetInstanceTypeRightSizingMethod -> Text)
-> ToText TargetInstanceTypeRightSizingMethod
forall a. (a -> Text) -> ToText a
toText :: TargetInstanceTypeRightSizingMethod -> Text
$ctoText :: TargetInstanceTypeRightSizingMethod -> Text
Core.ToText,
TargetInstanceTypeRightSizingMethod -> ByteString
(TargetInstanceTypeRightSizingMethod -> ByteString)
-> ToByteString TargetInstanceTypeRightSizingMethod
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetInstanceTypeRightSizingMethod -> ByteString
$ctoBS :: TargetInstanceTypeRightSizingMethod -> ByteString
Core.ToByteString,
TargetInstanceTypeRightSizingMethod -> ByteStringBuilder
(TargetInstanceTypeRightSizingMethod -> ByteStringBuilder)
-> ToLog TargetInstanceTypeRightSizingMethod
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetInstanceTypeRightSizingMethod -> ByteStringBuilder
$cbuild :: TargetInstanceTypeRightSizingMethod -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetInstanceTypeRightSizingMethod -> [Header]
(HeaderName -> TargetInstanceTypeRightSizingMethod -> [Header])
-> ToHeader TargetInstanceTypeRightSizingMethod
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetInstanceTypeRightSizingMethod -> [Header]
$ctoHeader :: HeaderName -> TargetInstanceTypeRightSizingMethod -> [Header]
Core.ToHeader,
TargetInstanceTypeRightSizingMethod -> QueryString
(TargetInstanceTypeRightSizingMethod -> QueryString)
-> ToQuery TargetInstanceTypeRightSizingMethod
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetInstanceTypeRightSizingMethod -> QueryString
$ctoQuery :: TargetInstanceTypeRightSizingMethod -> QueryString
Core.ToQuery,
Value -> Parser [TargetInstanceTypeRightSizingMethod]
Value -> Parser TargetInstanceTypeRightSizingMethod
(Value -> Parser TargetInstanceTypeRightSizingMethod)
-> (Value -> Parser [TargetInstanceTypeRightSizingMethod])
-> FromJSON TargetInstanceTypeRightSizingMethod
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetInstanceTypeRightSizingMethod]
$cparseJSONList :: Value -> Parser [TargetInstanceTypeRightSizingMethod]
parseJSON :: Value -> Parser TargetInstanceTypeRightSizingMethod
$cparseJSON :: Value -> Parser TargetInstanceTypeRightSizingMethod
Core.FromJSON,
FromJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
FromJSONKeyFunction TargetInstanceTypeRightSizingMethod
FromJSONKeyFunction TargetInstanceTypeRightSizingMethod
-> FromJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
-> FromJSONKey TargetInstanceTypeRightSizingMethod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
fromJSONKey :: FromJSONKeyFunction TargetInstanceTypeRightSizingMethod
$cfromJSONKey :: FromJSONKeyFunction TargetInstanceTypeRightSizingMethod
Core.FromJSONKey,
[TargetInstanceTypeRightSizingMethod] -> Encoding
[TargetInstanceTypeRightSizingMethod] -> Value
TargetInstanceTypeRightSizingMethod -> Encoding
TargetInstanceTypeRightSizingMethod -> Value
(TargetInstanceTypeRightSizingMethod -> Value)
-> (TargetInstanceTypeRightSizingMethod -> Encoding)
-> ([TargetInstanceTypeRightSizingMethod] -> Value)
-> ([TargetInstanceTypeRightSizingMethod] -> Encoding)
-> ToJSON TargetInstanceTypeRightSizingMethod
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetInstanceTypeRightSizingMethod] -> Encoding
$ctoEncodingList :: [TargetInstanceTypeRightSizingMethod] -> Encoding
toJSONList :: [TargetInstanceTypeRightSizingMethod] -> Value
$ctoJSONList :: [TargetInstanceTypeRightSizingMethod] -> Value
toEncoding :: TargetInstanceTypeRightSizingMethod -> Encoding
$ctoEncoding :: TargetInstanceTypeRightSizingMethod -> Encoding
toJSON :: TargetInstanceTypeRightSizingMethod -> Value
$ctoJSON :: TargetInstanceTypeRightSizingMethod -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
ToJSONKeyFunction TargetInstanceTypeRightSizingMethod
ToJSONKeyFunction TargetInstanceTypeRightSizingMethod
-> ToJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
-> ToJSONKey TargetInstanceTypeRightSizingMethod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetInstanceTypeRightSizingMethod]
toJSONKey :: ToJSONKeyFunction TargetInstanceTypeRightSizingMethod
$ctoJSONKey :: ToJSONKeyFunction TargetInstanceTypeRightSizingMethod
Core.ToJSONKey,
[Node] -> Either String TargetInstanceTypeRightSizingMethod
([Node] -> Either String TargetInstanceTypeRightSizingMethod)
-> FromXML TargetInstanceTypeRightSizingMethod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetInstanceTypeRightSizingMethod
$cparseXML :: [Node] -> Either String TargetInstanceTypeRightSizingMethod
Core.FromXML,
TargetInstanceTypeRightSizingMethod -> XML
(TargetInstanceTypeRightSizingMethod -> XML)
-> ToXML TargetInstanceTypeRightSizingMethod
forall a. (a -> XML) -> ToXML a
toXML :: TargetInstanceTypeRightSizingMethod -> XML
$ctoXML :: TargetInstanceTypeRightSizingMethod -> XML
Core.ToXML
)
pattern TargetInstanceTypeRightSizingMethod_BASIC :: TargetInstanceTypeRightSizingMethod
pattern $bTargetInstanceTypeRightSizingMethod_BASIC :: TargetInstanceTypeRightSizingMethod
$mTargetInstanceTypeRightSizingMethod_BASIC :: forall r.
TargetInstanceTypeRightSizingMethod
-> (Void# -> r) -> (Void# -> r) -> r
TargetInstanceTypeRightSizingMethod_BASIC = TargetInstanceTypeRightSizingMethod' "BASIC"
pattern TargetInstanceTypeRightSizingMethod_NONE :: TargetInstanceTypeRightSizingMethod
pattern $bTargetInstanceTypeRightSizingMethod_NONE :: TargetInstanceTypeRightSizingMethod
$mTargetInstanceTypeRightSizingMethod_NONE :: forall r.
TargetInstanceTypeRightSizingMethod
-> (Void# -> r) -> (Void# -> r) -> r
TargetInstanceTypeRightSizingMethod_NONE = TargetInstanceTypeRightSizingMethod' "NONE"
{-# COMPLETE
TargetInstanceTypeRightSizingMethod_BASIC,
TargetInstanceTypeRightSizingMethod_NONE,
TargetInstanceTypeRightSizingMethod'
#-}