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