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