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