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