{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Backup.Types.BackupVaultEvent
( BackupVaultEvent
( ..,
BackupVaultEvent_BACKUP_JOB_COMPLETED,
BackupVaultEvent_BACKUP_JOB_EXPIRED,
BackupVaultEvent_BACKUP_JOB_FAILED,
BackupVaultEvent_BACKUP_JOB_STARTED,
BackupVaultEvent_BACKUP_JOB_SUCCESSFUL,
BackupVaultEvent_BACKUP_PLAN_CREATED,
BackupVaultEvent_BACKUP_PLAN_MODIFIED,
BackupVaultEvent_COPY_JOB_FAILED,
BackupVaultEvent_COPY_JOB_STARTED,
BackupVaultEvent_COPY_JOB_SUCCESSFUL,
BackupVaultEvent_RECOVERY_POINT_MODIFIED,
BackupVaultEvent_RESTORE_JOB_COMPLETED,
BackupVaultEvent_RESTORE_JOB_FAILED,
BackupVaultEvent_RESTORE_JOB_STARTED,
BackupVaultEvent_RESTORE_JOB_SUCCESSFUL
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BackupVaultEvent = BackupVaultEvent'
{ BackupVaultEvent -> Text
fromBackupVaultEvent ::
Core.Text
}
deriving stock
( Int -> BackupVaultEvent -> ShowS
[BackupVaultEvent] -> ShowS
BackupVaultEvent -> String
(Int -> BackupVaultEvent -> ShowS)
-> (BackupVaultEvent -> String)
-> ([BackupVaultEvent] -> ShowS)
-> Show BackupVaultEvent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BackupVaultEvent] -> ShowS
$cshowList :: [BackupVaultEvent] -> ShowS
show :: BackupVaultEvent -> String
$cshow :: BackupVaultEvent -> String
showsPrec :: Int -> BackupVaultEvent -> ShowS
$cshowsPrec :: Int -> BackupVaultEvent -> ShowS
Prelude.Show,
ReadPrec [BackupVaultEvent]
ReadPrec BackupVaultEvent
Int -> ReadS BackupVaultEvent
ReadS [BackupVaultEvent]
(Int -> ReadS BackupVaultEvent)
-> ReadS [BackupVaultEvent]
-> ReadPrec BackupVaultEvent
-> ReadPrec [BackupVaultEvent]
-> Read BackupVaultEvent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BackupVaultEvent]
$creadListPrec :: ReadPrec [BackupVaultEvent]
readPrec :: ReadPrec BackupVaultEvent
$creadPrec :: ReadPrec BackupVaultEvent
readList :: ReadS [BackupVaultEvent]
$creadList :: ReadS [BackupVaultEvent]
readsPrec :: Int -> ReadS BackupVaultEvent
$creadsPrec :: Int -> ReadS BackupVaultEvent
Prelude.Read,
BackupVaultEvent -> BackupVaultEvent -> Bool
(BackupVaultEvent -> BackupVaultEvent -> Bool)
-> (BackupVaultEvent -> BackupVaultEvent -> Bool)
-> Eq BackupVaultEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c/= :: BackupVaultEvent -> BackupVaultEvent -> Bool
== :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c== :: BackupVaultEvent -> BackupVaultEvent -> Bool
Prelude.Eq,
Eq BackupVaultEvent
Eq BackupVaultEvent
-> (BackupVaultEvent -> BackupVaultEvent -> Ordering)
-> (BackupVaultEvent -> BackupVaultEvent -> Bool)
-> (BackupVaultEvent -> BackupVaultEvent -> Bool)
-> (BackupVaultEvent -> BackupVaultEvent -> Bool)
-> (BackupVaultEvent -> BackupVaultEvent -> Bool)
-> (BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent)
-> (BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent)
-> Ord BackupVaultEvent
BackupVaultEvent -> BackupVaultEvent -> Bool
BackupVaultEvent -> BackupVaultEvent -> Ordering
BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent
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 :: BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent
$cmin :: BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent
max :: BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent
$cmax :: BackupVaultEvent -> BackupVaultEvent -> BackupVaultEvent
>= :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c>= :: BackupVaultEvent -> BackupVaultEvent -> Bool
> :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c> :: BackupVaultEvent -> BackupVaultEvent -> Bool
<= :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c<= :: BackupVaultEvent -> BackupVaultEvent -> Bool
< :: BackupVaultEvent -> BackupVaultEvent -> Bool
$c< :: BackupVaultEvent -> BackupVaultEvent -> Bool
compare :: BackupVaultEvent -> BackupVaultEvent -> Ordering
$ccompare :: BackupVaultEvent -> BackupVaultEvent -> Ordering
$cp1Ord :: Eq BackupVaultEvent
Prelude.Ord,
(forall x. BackupVaultEvent -> Rep BackupVaultEvent x)
-> (forall x. Rep BackupVaultEvent x -> BackupVaultEvent)
-> Generic BackupVaultEvent
forall x. Rep BackupVaultEvent x -> BackupVaultEvent
forall x. BackupVaultEvent -> Rep BackupVaultEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BackupVaultEvent x -> BackupVaultEvent
$cfrom :: forall x. BackupVaultEvent -> Rep BackupVaultEvent x
Prelude.Generic
)
deriving newtype
( Int -> BackupVaultEvent -> Int
BackupVaultEvent -> Int
(Int -> BackupVaultEvent -> Int)
-> (BackupVaultEvent -> Int) -> Hashable BackupVaultEvent
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BackupVaultEvent -> Int
$chash :: BackupVaultEvent -> Int
hashWithSalt :: Int -> BackupVaultEvent -> Int
$chashWithSalt :: Int -> BackupVaultEvent -> Int
Prelude.Hashable,
BackupVaultEvent -> ()
(BackupVaultEvent -> ()) -> NFData BackupVaultEvent
forall a. (a -> ()) -> NFData a
rnf :: BackupVaultEvent -> ()
$crnf :: BackupVaultEvent -> ()
Prelude.NFData,
Text -> Either String BackupVaultEvent
(Text -> Either String BackupVaultEvent)
-> FromText BackupVaultEvent
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BackupVaultEvent
$cfromText :: Text -> Either String BackupVaultEvent
Core.FromText,
BackupVaultEvent -> Text
(BackupVaultEvent -> Text) -> ToText BackupVaultEvent
forall a. (a -> Text) -> ToText a
toText :: BackupVaultEvent -> Text
$ctoText :: BackupVaultEvent -> Text
Core.ToText,
BackupVaultEvent -> ByteString
(BackupVaultEvent -> ByteString) -> ToByteString BackupVaultEvent
forall a. (a -> ByteString) -> ToByteString a
toBS :: BackupVaultEvent -> ByteString
$ctoBS :: BackupVaultEvent -> ByteString
Core.ToByteString,
BackupVaultEvent -> ByteStringBuilder
(BackupVaultEvent -> ByteStringBuilder) -> ToLog BackupVaultEvent
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BackupVaultEvent -> ByteStringBuilder
$cbuild :: BackupVaultEvent -> ByteStringBuilder
Core.ToLog,
HeaderName -> BackupVaultEvent -> [Header]
(HeaderName -> BackupVaultEvent -> [Header])
-> ToHeader BackupVaultEvent
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BackupVaultEvent -> [Header]
$ctoHeader :: HeaderName -> BackupVaultEvent -> [Header]
Core.ToHeader,
BackupVaultEvent -> QueryString
(BackupVaultEvent -> QueryString) -> ToQuery BackupVaultEvent
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BackupVaultEvent -> QueryString
$ctoQuery :: BackupVaultEvent -> QueryString
Core.ToQuery,
Value -> Parser [BackupVaultEvent]
Value -> Parser BackupVaultEvent
(Value -> Parser BackupVaultEvent)
-> (Value -> Parser [BackupVaultEvent])
-> FromJSON BackupVaultEvent
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BackupVaultEvent]
$cparseJSONList :: Value -> Parser [BackupVaultEvent]
parseJSON :: Value -> Parser BackupVaultEvent
$cparseJSON :: Value -> Parser BackupVaultEvent
Core.FromJSON,
FromJSONKeyFunction [BackupVaultEvent]
FromJSONKeyFunction BackupVaultEvent
FromJSONKeyFunction BackupVaultEvent
-> FromJSONKeyFunction [BackupVaultEvent]
-> FromJSONKey BackupVaultEvent
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BackupVaultEvent]
$cfromJSONKeyList :: FromJSONKeyFunction [BackupVaultEvent]
fromJSONKey :: FromJSONKeyFunction BackupVaultEvent
$cfromJSONKey :: FromJSONKeyFunction BackupVaultEvent
Core.FromJSONKey,
[BackupVaultEvent] -> Encoding
[BackupVaultEvent] -> Value
BackupVaultEvent -> Encoding
BackupVaultEvent -> Value
(BackupVaultEvent -> Value)
-> (BackupVaultEvent -> Encoding)
-> ([BackupVaultEvent] -> Value)
-> ([BackupVaultEvent] -> Encoding)
-> ToJSON BackupVaultEvent
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BackupVaultEvent] -> Encoding
$ctoEncodingList :: [BackupVaultEvent] -> Encoding
toJSONList :: [BackupVaultEvent] -> Value
$ctoJSONList :: [BackupVaultEvent] -> Value
toEncoding :: BackupVaultEvent -> Encoding
$ctoEncoding :: BackupVaultEvent -> Encoding
toJSON :: BackupVaultEvent -> Value
$ctoJSON :: BackupVaultEvent -> Value
Core.ToJSON,
ToJSONKeyFunction [BackupVaultEvent]
ToJSONKeyFunction BackupVaultEvent
ToJSONKeyFunction BackupVaultEvent
-> ToJSONKeyFunction [BackupVaultEvent]
-> ToJSONKey BackupVaultEvent
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BackupVaultEvent]
$ctoJSONKeyList :: ToJSONKeyFunction [BackupVaultEvent]
toJSONKey :: ToJSONKeyFunction BackupVaultEvent
$ctoJSONKey :: ToJSONKeyFunction BackupVaultEvent
Core.ToJSONKey,
[Node] -> Either String BackupVaultEvent
([Node] -> Either String BackupVaultEvent)
-> FromXML BackupVaultEvent
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BackupVaultEvent
$cparseXML :: [Node] -> Either String BackupVaultEvent
Core.FromXML,
BackupVaultEvent -> XML
(BackupVaultEvent -> XML) -> ToXML BackupVaultEvent
forall a. (a -> XML) -> ToXML a
toXML :: BackupVaultEvent -> XML
$ctoXML :: BackupVaultEvent -> XML
Core.ToXML
)
pattern BackupVaultEvent_BACKUP_JOB_COMPLETED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_JOB_COMPLETED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_JOB_COMPLETED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_JOB_COMPLETED = BackupVaultEvent' "BACKUP_JOB_COMPLETED"
pattern BackupVaultEvent_BACKUP_JOB_EXPIRED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_JOB_EXPIRED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_JOB_EXPIRED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_JOB_EXPIRED = BackupVaultEvent' "BACKUP_JOB_EXPIRED"
pattern BackupVaultEvent_BACKUP_JOB_FAILED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_JOB_FAILED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_JOB_FAILED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_JOB_FAILED = BackupVaultEvent' "BACKUP_JOB_FAILED"
pattern BackupVaultEvent_BACKUP_JOB_STARTED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_JOB_STARTED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_JOB_STARTED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_JOB_STARTED = BackupVaultEvent' "BACKUP_JOB_STARTED"
pattern BackupVaultEvent_BACKUP_JOB_SUCCESSFUL :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_JOB_SUCCESSFUL :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_JOB_SUCCESSFUL :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_JOB_SUCCESSFUL = BackupVaultEvent' "BACKUP_JOB_SUCCESSFUL"
pattern BackupVaultEvent_BACKUP_PLAN_CREATED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_PLAN_CREATED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_PLAN_CREATED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_PLAN_CREATED = BackupVaultEvent' "BACKUP_PLAN_CREATED"
pattern BackupVaultEvent_BACKUP_PLAN_MODIFIED :: BackupVaultEvent
pattern $bBackupVaultEvent_BACKUP_PLAN_MODIFIED :: BackupVaultEvent
$mBackupVaultEvent_BACKUP_PLAN_MODIFIED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_BACKUP_PLAN_MODIFIED = BackupVaultEvent' "BACKUP_PLAN_MODIFIED"
pattern BackupVaultEvent_COPY_JOB_FAILED :: BackupVaultEvent
pattern $bBackupVaultEvent_COPY_JOB_FAILED :: BackupVaultEvent
$mBackupVaultEvent_COPY_JOB_FAILED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_COPY_JOB_FAILED = BackupVaultEvent' "COPY_JOB_FAILED"
pattern BackupVaultEvent_COPY_JOB_STARTED :: BackupVaultEvent
pattern $bBackupVaultEvent_COPY_JOB_STARTED :: BackupVaultEvent
$mBackupVaultEvent_COPY_JOB_STARTED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_COPY_JOB_STARTED = BackupVaultEvent' "COPY_JOB_STARTED"
pattern BackupVaultEvent_COPY_JOB_SUCCESSFUL :: BackupVaultEvent
pattern $bBackupVaultEvent_COPY_JOB_SUCCESSFUL :: BackupVaultEvent
$mBackupVaultEvent_COPY_JOB_SUCCESSFUL :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_COPY_JOB_SUCCESSFUL = BackupVaultEvent' "COPY_JOB_SUCCESSFUL"
pattern BackupVaultEvent_RECOVERY_POINT_MODIFIED :: BackupVaultEvent
pattern $bBackupVaultEvent_RECOVERY_POINT_MODIFIED :: BackupVaultEvent
$mBackupVaultEvent_RECOVERY_POINT_MODIFIED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_RECOVERY_POINT_MODIFIED = BackupVaultEvent' "RECOVERY_POINT_MODIFIED"
pattern BackupVaultEvent_RESTORE_JOB_COMPLETED :: BackupVaultEvent
pattern $bBackupVaultEvent_RESTORE_JOB_COMPLETED :: BackupVaultEvent
$mBackupVaultEvent_RESTORE_JOB_COMPLETED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_RESTORE_JOB_COMPLETED = BackupVaultEvent' "RESTORE_JOB_COMPLETED"
pattern BackupVaultEvent_RESTORE_JOB_FAILED :: BackupVaultEvent
pattern $bBackupVaultEvent_RESTORE_JOB_FAILED :: BackupVaultEvent
$mBackupVaultEvent_RESTORE_JOB_FAILED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_RESTORE_JOB_FAILED = BackupVaultEvent' "RESTORE_JOB_FAILED"
pattern BackupVaultEvent_RESTORE_JOB_STARTED :: BackupVaultEvent
pattern $bBackupVaultEvent_RESTORE_JOB_STARTED :: BackupVaultEvent
$mBackupVaultEvent_RESTORE_JOB_STARTED :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_RESTORE_JOB_STARTED = BackupVaultEvent' "RESTORE_JOB_STARTED"
pattern BackupVaultEvent_RESTORE_JOB_SUCCESSFUL :: BackupVaultEvent
pattern $bBackupVaultEvent_RESTORE_JOB_SUCCESSFUL :: BackupVaultEvent
$mBackupVaultEvent_RESTORE_JOB_SUCCESSFUL :: forall r. BackupVaultEvent -> (Void# -> r) -> (Void# -> r) -> r
BackupVaultEvent_RESTORE_JOB_SUCCESSFUL = BackupVaultEvent' "RESTORE_JOB_SUCCESSFUL"
{-# COMPLETE
BackupVaultEvent_BACKUP_JOB_COMPLETED,
BackupVaultEvent_BACKUP_JOB_EXPIRED,
BackupVaultEvent_BACKUP_JOB_FAILED,
BackupVaultEvent_BACKUP_JOB_STARTED,
BackupVaultEvent_BACKUP_JOB_SUCCESSFUL,
BackupVaultEvent_BACKUP_PLAN_CREATED,
BackupVaultEvent_BACKUP_PLAN_MODIFIED,
BackupVaultEvent_COPY_JOB_FAILED,
BackupVaultEvent_COPY_JOB_STARTED,
BackupVaultEvent_COPY_JOB_SUCCESSFUL,
BackupVaultEvent_RECOVERY_POINT_MODIFIED,
BackupVaultEvent_RESTORE_JOB_COMPLETED,
BackupVaultEvent_RESTORE_JOB_FAILED,
BackupVaultEvent_RESTORE_JOB_STARTED,
BackupVaultEvent_RESTORE_JOB_SUCCESSFUL,
BackupVaultEvent'
#-}