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