{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lambda.Types.StateReasonCode
( StateReasonCode
( ..,
StateReasonCode_Creating,
StateReasonCode_DisabledKMSKey,
StateReasonCode_EFSIOError,
StateReasonCode_EFSMountConnectivityError,
StateReasonCode_EFSMountFailure,
StateReasonCode_EFSMountTimeout,
StateReasonCode_EniLimitExceeded,
StateReasonCode_FunctionError,
StateReasonCode_Idle,
StateReasonCode_ImageAccessDenied,
StateReasonCode_ImageDeleted,
StateReasonCode_InsufficientRolePermissions,
StateReasonCode_InternalError,
StateReasonCode_InvalidConfiguration,
StateReasonCode_InvalidImage,
StateReasonCode_InvalidRuntime,
StateReasonCode_InvalidSecurityGroup,
StateReasonCode_InvalidStateKMSKey,
StateReasonCode_InvalidSubnet,
StateReasonCode_InvalidZipFileException,
StateReasonCode_KMSKeyAccessDenied,
StateReasonCode_KMSKeyNotFound,
StateReasonCode_Restoring,
StateReasonCode_SubnetOutOfIPAddresses
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype StateReasonCode = StateReasonCode'
{ StateReasonCode -> Text
fromStateReasonCode ::
Data.Text
}
deriving stock
( Int -> StateReasonCode -> ShowS
[StateReasonCode] -> ShowS
StateReasonCode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StateReasonCode] -> ShowS
$cshowList :: [StateReasonCode] -> ShowS
show :: StateReasonCode -> String
$cshow :: StateReasonCode -> String
showsPrec :: Int -> StateReasonCode -> ShowS
$cshowsPrec :: Int -> StateReasonCode -> ShowS
Prelude.Show,
ReadPrec [StateReasonCode]
ReadPrec StateReasonCode
Int -> ReadS StateReasonCode
ReadS [StateReasonCode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StateReasonCode]
$creadListPrec :: ReadPrec [StateReasonCode]
readPrec :: ReadPrec StateReasonCode
$creadPrec :: ReadPrec StateReasonCode
readList :: ReadS [StateReasonCode]
$creadList :: ReadS [StateReasonCode]
readsPrec :: Int -> ReadS StateReasonCode
$creadsPrec :: Int -> ReadS StateReasonCode
Prelude.Read,
StateReasonCode -> StateReasonCode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StateReasonCode -> StateReasonCode -> Bool
$c/= :: StateReasonCode -> StateReasonCode -> Bool
== :: StateReasonCode -> StateReasonCode -> Bool
$c== :: StateReasonCode -> StateReasonCode -> Bool
Prelude.Eq,
Eq StateReasonCode
StateReasonCode -> StateReasonCode -> Bool
StateReasonCode -> StateReasonCode -> Ordering
StateReasonCode -> StateReasonCode -> StateReasonCode
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 :: StateReasonCode -> StateReasonCode -> StateReasonCode
$cmin :: StateReasonCode -> StateReasonCode -> StateReasonCode
max :: StateReasonCode -> StateReasonCode -> StateReasonCode
$cmax :: StateReasonCode -> StateReasonCode -> StateReasonCode
>= :: StateReasonCode -> StateReasonCode -> Bool
$c>= :: StateReasonCode -> StateReasonCode -> Bool
> :: StateReasonCode -> StateReasonCode -> Bool
$c> :: StateReasonCode -> StateReasonCode -> Bool
<= :: StateReasonCode -> StateReasonCode -> Bool
$c<= :: StateReasonCode -> StateReasonCode -> Bool
< :: StateReasonCode -> StateReasonCode -> Bool
$c< :: StateReasonCode -> StateReasonCode -> Bool
compare :: StateReasonCode -> StateReasonCode -> Ordering
$ccompare :: StateReasonCode -> StateReasonCode -> Ordering
Prelude.Ord,
forall x. Rep StateReasonCode x -> StateReasonCode
forall x. StateReasonCode -> Rep StateReasonCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StateReasonCode x -> StateReasonCode
$cfrom :: forall x. StateReasonCode -> Rep StateReasonCode x
Prelude.Generic
)
deriving newtype
( Eq StateReasonCode
Int -> StateReasonCode -> Int
StateReasonCode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StateReasonCode -> Int
$chash :: StateReasonCode -> Int
hashWithSalt :: Int -> StateReasonCode -> Int
$chashWithSalt :: Int -> StateReasonCode -> Int
Prelude.Hashable,
StateReasonCode -> ()
forall a. (a -> ()) -> NFData a
rnf :: StateReasonCode -> ()
$crnf :: StateReasonCode -> ()
Prelude.NFData,
Text -> Either String StateReasonCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StateReasonCode
$cfromText :: Text -> Either String StateReasonCode
Data.FromText,
StateReasonCode -> Text
forall a. (a -> Text) -> ToText a
toText :: StateReasonCode -> Text
$ctoText :: StateReasonCode -> Text
Data.ToText,
StateReasonCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StateReasonCode -> ByteString
$ctoBS :: StateReasonCode -> ByteString
Data.ToByteString,
StateReasonCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StateReasonCode -> ByteStringBuilder
$cbuild :: StateReasonCode -> ByteStringBuilder
Data.ToLog,
HeaderName -> StateReasonCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StateReasonCode -> [Header]
$ctoHeader :: HeaderName -> StateReasonCode -> [Header]
Data.ToHeader,
StateReasonCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StateReasonCode -> QueryString
$ctoQuery :: StateReasonCode -> QueryString
Data.ToQuery,
Value -> Parser [StateReasonCode]
Value -> Parser StateReasonCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StateReasonCode]
$cparseJSONList :: Value -> Parser [StateReasonCode]
parseJSON :: Value -> Parser StateReasonCode
$cparseJSON :: Value -> Parser StateReasonCode
Data.FromJSON,
FromJSONKeyFunction [StateReasonCode]
FromJSONKeyFunction StateReasonCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StateReasonCode]
$cfromJSONKeyList :: FromJSONKeyFunction [StateReasonCode]
fromJSONKey :: FromJSONKeyFunction StateReasonCode
$cfromJSONKey :: FromJSONKeyFunction StateReasonCode
Data.FromJSONKey,
[StateReasonCode] -> Encoding
[StateReasonCode] -> Value
StateReasonCode -> Encoding
StateReasonCode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StateReasonCode] -> Encoding
$ctoEncodingList :: [StateReasonCode] -> Encoding
toJSONList :: [StateReasonCode] -> Value
$ctoJSONList :: [StateReasonCode] -> Value
toEncoding :: StateReasonCode -> Encoding
$ctoEncoding :: StateReasonCode -> Encoding
toJSON :: StateReasonCode -> Value
$ctoJSON :: StateReasonCode -> Value
Data.ToJSON,
ToJSONKeyFunction [StateReasonCode]
ToJSONKeyFunction StateReasonCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StateReasonCode]
$ctoJSONKeyList :: ToJSONKeyFunction [StateReasonCode]
toJSONKey :: ToJSONKeyFunction StateReasonCode
$ctoJSONKey :: ToJSONKeyFunction StateReasonCode
Data.ToJSONKey,
[Node] -> Either String StateReasonCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StateReasonCode
$cparseXML :: [Node] -> Either String StateReasonCode
Data.FromXML,
StateReasonCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StateReasonCode -> XML
$ctoXML :: StateReasonCode -> XML
Data.ToXML
)
pattern StateReasonCode_Creating :: StateReasonCode
pattern $bStateReasonCode_Creating :: StateReasonCode
$mStateReasonCode_Creating :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_Creating = StateReasonCode' "Creating"
pattern StateReasonCode_DisabledKMSKey :: StateReasonCode
pattern $bStateReasonCode_DisabledKMSKey :: StateReasonCode
$mStateReasonCode_DisabledKMSKey :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_DisabledKMSKey = StateReasonCode' "DisabledKMSKey"
pattern StateReasonCode_EFSIOError :: StateReasonCode
pattern $bStateReasonCode_EFSIOError :: StateReasonCode
$mStateReasonCode_EFSIOError :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_EFSIOError = StateReasonCode' "EFSIOError"
pattern StateReasonCode_EFSMountConnectivityError :: StateReasonCode
pattern $bStateReasonCode_EFSMountConnectivityError :: StateReasonCode
$mStateReasonCode_EFSMountConnectivityError :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_EFSMountConnectivityError = StateReasonCode' "EFSMountConnectivityError"
pattern StateReasonCode_EFSMountFailure :: StateReasonCode
pattern $bStateReasonCode_EFSMountFailure :: StateReasonCode
$mStateReasonCode_EFSMountFailure :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_EFSMountFailure = StateReasonCode' "EFSMountFailure"
pattern StateReasonCode_EFSMountTimeout :: StateReasonCode
pattern $bStateReasonCode_EFSMountTimeout :: StateReasonCode
$mStateReasonCode_EFSMountTimeout :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_EFSMountTimeout = StateReasonCode' "EFSMountTimeout"
pattern StateReasonCode_EniLimitExceeded :: StateReasonCode
pattern $bStateReasonCode_EniLimitExceeded :: StateReasonCode
$mStateReasonCode_EniLimitExceeded :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_EniLimitExceeded = StateReasonCode' "EniLimitExceeded"
pattern StateReasonCode_FunctionError :: StateReasonCode
pattern $bStateReasonCode_FunctionError :: StateReasonCode
$mStateReasonCode_FunctionError :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_FunctionError = StateReasonCode' "FunctionError"
pattern StateReasonCode_Idle :: StateReasonCode
pattern $bStateReasonCode_Idle :: StateReasonCode
$mStateReasonCode_Idle :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_Idle = StateReasonCode' "Idle"
pattern StateReasonCode_ImageAccessDenied :: StateReasonCode
pattern $bStateReasonCode_ImageAccessDenied :: StateReasonCode
$mStateReasonCode_ImageAccessDenied :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_ImageAccessDenied = StateReasonCode' "ImageAccessDenied"
pattern StateReasonCode_ImageDeleted :: StateReasonCode
pattern $bStateReasonCode_ImageDeleted :: StateReasonCode
$mStateReasonCode_ImageDeleted :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_ImageDeleted = StateReasonCode' "ImageDeleted"
pattern StateReasonCode_InsufficientRolePermissions :: StateReasonCode
pattern $bStateReasonCode_InsufficientRolePermissions :: StateReasonCode
$mStateReasonCode_InsufficientRolePermissions :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InsufficientRolePermissions = StateReasonCode' "InsufficientRolePermissions"
pattern StateReasonCode_InternalError :: StateReasonCode
pattern $bStateReasonCode_InternalError :: StateReasonCode
$mStateReasonCode_InternalError :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InternalError = StateReasonCode' "InternalError"
pattern StateReasonCode_InvalidConfiguration :: StateReasonCode
pattern $bStateReasonCode_InvalidConfiguration :: StateReasonCode
$mStateReasonCode_InvalidConfiguration :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidConfiguration = StateReasonCode' "InvalidConfiguration"
pattern StateReasonCode_InvalidImage :: StateReasonCode
pattern $bStateReasonCode_InvalidImage :: StateReasonCode
$mStateReasonCode_InvalidImage :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidImage = StateReasonCode' "InvalidImage"
pattern StateReasonCode_InvalidRuntime :: StateReasonCode
pattern $bStateReasonCode_InvalidRuntime :: StateReasonCode
$mStateReasonCode_InvalidRuntime :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidRuntime = StateReasonCode' "InvalidRuntime"
pattern StateReasonCode_InvalidSecurityGroup :: StateReasonCode
pattern $bStateReasonCode_InvalidSecurityGroup :: StateReasonCode
$mStateReasonCode_InvalidSecurityGroup :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidSecurityGroup = StateReasonCode' "InvalidSecurityGroup"
pattern StateReasonCode_InvalidStateKMSKey :: StateReasonCode
pattern $bStateReasonCode_InvalidStateKMSKey :: StateReasonCode
$mStateReasonCode_InvalidStateKMSKey :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidStateKMSKey = StateReasonCode' "InvalidStateKMSKey"
pattern StateReasonCode_InvalidSubnet :: StateReasonCode
pattern $bStateReasonCode_InvalidSubnet :: StateReasonCode
$mStateReasonCode_InvalidSubnet :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidSubnet = StateReasonCode' "InvalidSubnet"
pattern StateReasonCode_InvalidZipFileException :: StateReasonCode
pattern $bStateReasonCode_InvalidZipFileException :: StateReasonCode
$mStateReasonCode_InvalidZipFileException :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_InvalidZipFileException = StateReasonCode' "InvalidZipFileException"
pattern StateReasonCode_KMSKeyAccessDenied :: StateReasonCode
pattern $bStateReasonCode_KMSKeyAccessDenied :: StateReasonCode
$mStateReasonCode_KMSKeyAccessDenied :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_KMSKeyAccessDenied = StateReasonCode' "KMSKeyAccessDenied"
pattern StateReasonCode_KMSKeyNotFound :: StateReasonCode
pattern $bStateReasonCode_KMSKeyNotFound :: StateReasonCode
$mStateReasonCode_KMSKeyNotFound :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_KMSKeyNotFound = StateReasonCode' "KMSKeyNotFound"
pattern StateReasonCode_Restoring :: StateReasonCode
pattern $bStateReasonCode_Restoring :: StateReasonCode
$mStateReasonCode_Restoring :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_Restoring = StateReasonCode' "Restoring"
pattern StateReasonCode_SubnetOutOfIPAddresses :: StateReasonCode
pattern $bStateReasonCode_SubnetOutOfIPAddresses :: StateReasonCode
$mStateReasonCode_SubnetOutOfIPAddresses :: forall {r}. StateReasonCode -> ((# #) -> r) -> ((# #) -> r) -> r
StateReasonCode_SubnetOutOfIPAddresses = StateReasonCode' "SubnetOutOfIPAddresses"
{-# COMPLETE
StateReasonCode_Creating,
StateReasonCode_DisabledKMSKey,
StateReasonCode_EFSIOError,
StateReasonCode_EFSMountConnectivityError,
StateReasonCode_EFSMountFailure,
StateReasonCode_EFSMountTimeout,
StateReasonCode_EniLimitExceeded,
StateReasonCode_FunctionError,
StateReasonCode_Idle,
StateReasonCode_ImageAccessDenied,
StateReasonCode_ImageDeleted,
StateReasonCode_InsufficientRolePermissions,
StateReasonCode_InternalError,
StateReasonCode_InvalidConfiguration,
StateReasonCode_InvalidImage,
StateReasonCode_InvalidRuntime,
StateReasonCode_InvalidSecurityGroup,
StateReasonCode_InvalidStateKMSKey,
StateReasonCode_InvalidSubnet,
StateReasonCode_InvalidZipFileException,
StateReasonCode_KMSKeyAccessDenied,
StateReasonCode_KMSKeyNotFound,
StateReasonCode_Restoring,
StateReasonCode_SubnetOutOfIPAddresses,
StateReasonCode'
#-}