{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AWSHealth.Types.Event where
import Amazonka.AWSHealth.Types.EventScopeCode
import Amazonka.AWSHealth.Types.EventStatusCode
import Amazonka.AWSHealth.Types.EventTypeCategory
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Event = Event'
{
Event -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
Event -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
Event -> Maybe Text
service :: Prelude.Maybe Prelude.Text,
Event -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
Event -> Maybe EventScopeCode
eventScopeCode :: Prelude.Maybe EventScopeCode,
Event -> Maybe Text
eventTypeCode :: Prelude.Maybe Prelude.Text,
Event -> Maybe EventTypeCategory
eventTypeCategory :: Prelude.Maybe EventTypeCategory,
Event -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
Event -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
Event -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
Event -> Maybe EventStatusCode
statusCode :: Prelude.Maybe EventStatusCode
}
deriving (Event -> Event -> Bool
(Event -> Event -> Bool) -> (Event -> Event -> Bool) -> Eq Event
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Event -> Event -> Bool
$c/= :: Event -> Event -> Bool
== :: Event -> Event -> Bool
$c== :: Event -> Event -> Bool
Prelude.Eq, ReadPrec [Event]
ReadPrec Event
Int -> ReadS Event
ReadS [Event]
(Int -> ReadS Event)
-> ReadS [Event]
-> ReadPrec Event
-> ReadPrec [Event]
-> Read Event
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Event]
$creadListPrec :: ReadPrec [Event]
readPrec :: ReadPrec Event
$creadPrec :: ReadPrec Event
readList :: ReadS [Event]
$creadList :: ReadS [Event]
readsPrec :: Int -> ReadS Event
$creadsPrec :: Int -> ReadS Event
Prelude.Read, Int -> Event -> ShowS
[Event] -> ShowS
Event -> String
(Int -> Event -> ShowS)
-> (Event -> String) -> ([Event] -> ShowS) -> Show Event
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Event] -> ShowS
$cshowList :: [Event] -> ShowS
show :: Event -> String
$cshow :: Event -> String
showsPrec :: Int -> Event -> ShowS
$cshowsPrec :: Int -> Event -> ShowS
Prelude.Show, (forall x. Event -> Rep Event x)
-> (forall x. Rep Event x -> Event) -> Generic Event
forall x. Rep Event x -> Event
forall x. Event -> Rep Event x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Event x -> Event
$cfrom :: forall x. Event -> Rep Event x
Prelude.Generic)
newEvent ::
Event
newEvent :: Event
newEvent =
Event' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event
Event'
{ $sel:lastUpdatedTime:Event' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:Event' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:service:Event' :: Maybe Text
service = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:Event' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:eventScopeCode:Event' :: Maybe EventScopeCode
eventScopeCode = Maybe EventScopeCode
forall a. Maybe a
Prelude.Nothing,
$sel:eventTypeCode:Event' :: Maybe Text
eventTypeCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eventTypeCategory:Event' :: Maybe EventTypeCategory
eventTypeCategory = Maybe EventTypeCategory
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:Event' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:Event' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:region:Event' :: Maybe Text
region = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusCode:Event' :: Maybe EventStatusCode
statusCode = Maybe EventStatusCode
forall a. Maybe a
Prelude.Nothing
}
event_lastUpdatedTime :: Lens.Lens' Event (Prelude.Maybe Prelude.UTCTime)
event_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Event -> f Event
event_lastUpdatedTime = (Event -> Maybe POSIX)
-> (Event -> Maybe POSIX -> Event)
-> Lens Event Event (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:Event' :: Event -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: Event
s@Event' {} Maybe POSIX
a -> Event
s {$sel:lastUpdatedTime:Event' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: Event) ((Maybe POSIX -> f (Maybe POSIX)) -> Event -> f Event)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Event
-> f Event
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
event_arn :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)
event_arn :: (Maybe Text -> f (Maybe Text)) -> Event -> f Event
event_arn = (Event -> Maybe Text)
-> (Event -> Maybe Text -> Event)
-> Lens Event Event (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe Text
arn :: Maybe Text
$sel:arn:Event' :: Event -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Event
s@Event' {} Maybe Text
a -> Event
s {$sel:arn:Event' :: Maybe Text
arn = Maybe Text
a} :: Event)
event_service :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)
event_service :: (Maybe Text -> f (Maybe Text)) -> Event -> f Event
event_service = (Event -> Maybe Text)
-> (Event -> Maybe Text -> Event)
-> Lens Event Event (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe Text
service :: Maybe Text
$sel:service:Event' :: Event -> Maybe Text
service} -> Maybe Text
service) (\s :: Event
s@Event' {} Maybe Text
a -> Event
s {$sel:service:Event' :: Maybe Text
service = Maybe Text
a} :: Event)
event_startTime :: Lens.Lens' Event (Prelude.Maybe Prelude.UTCTime)
event_startTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Event -> f Event
event_startTime = (Event -> Maybe POSIX)
-> (Event -> Maybe POSIX -> Event)
-> Lens Event Event (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:Event' :: Event -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: Event
s@Event' {} Maybe POSIX
a -> Event
s {$sel:startTime:Event' :: Maybe POSIX
startTime = Maybe POSIX
a} :: Event) ((Maybe POSIX -> f (Maybe POSIX)) -> Event -> f Event)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Event
-> f Event
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
event_eventScopeCode :: Lens.Lens' Event (Prelude.Maybe EventScopeCode)
event_eventScopeCode :: (Maybe EventScopeCode -> f (Maybe EventScopeCode))
-> Event -> f Event
event_eventScopeCode = (Event -> Maybe EventScopeCode)
-> (Event -> Maybe EventScopeCode -> Event)
-> Lens Event Event (Maybe EventScopeCode) (Maybe EventScopeCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe EventScopeCode
eventScopeCode :: Maybe EventScopeCode
$sel:eventScopeCode:Event' :: Event -> Maybe EventScopeCode
eventScopeCode} -> Maybe EventScopeCode
eventScopeCode) (\s :: Event
s@Event' {} Maybe EventScopeCode
a -> Event
s {$sel:eventScopeCode:Event' :: Maybe EventScopeCode
eventScopeCode = Maybe EventScopeCode
a} :: Event)
event_eventTypeCode :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)
event_eventTypeCode :: (Maybe Text -> f (Maybe Text)) -> Event -> f Event
event_eventTypeCode = (Event -> Maybe Text)
-> (Event -> Maybe Text -> Event)
-> Lens Event Event (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe Text
eventTypeCode :: Maybe Text
$sel:eventTypeCode:Event' :: Event -> Maybe Text
eventTypeCode} -> Maybe Text
eventTypeCode) (\s :: Event
s@Event' {} Maybe Text
a -> Event
s {$sel:eventTypeCode:Event' :: Maybe Text
eventTypeCode = Maybe Text
a} :: Event)
event_eventTypeCategory :: Lens.Lens' Event (Prelude.Maybe EventTypeCategory)
event_eventTypeCategory :: (Maybe EventTypeCategory -> f (Maybe EventTypeCategory))
-> Event -> f Event
event_eventTypeCategory = (Event -> Maybe EventTypeCategory)
-> (Event -> Maybe EventTypeCategory -> Event)
-> Lens
Event Event (Maybe EventTypeCategory) (Maybe EventTypeCategory)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe EventTypeCategory
eventTypeCategory :: Maybe EventTypeCategory
$sel:eventTypeCategory:Event' :: Event -> Maybe EventTypeCategory
eventTypeCategory} -> Maybe EventTypeCategory
eventTypeCategory) (\s :: Event
s@Event' {} Maybe EventTypeCategory
a -> Event
s {$sel:eventTypeCategory:Event' :: Maybe EventTypeCategory
eventTypeCategory = Maybe EventTypeCategory
a} :: Event)
event_availabilityZone :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)
event_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> Event -> f Event
event_availabilityZone = (Event -> Maybe Text)
-> (Event -> Maybe Text -> Event)
-> Lens Event Event (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:Event' :: Event -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: Event
s@Event' {} Maybe Text
a -> Event
s {$sel:availabilityZone:Event' :: Maybe Text
availabilityZone = Maybe Text
a} :: Event)
event_endTime :: Lens.Lens' Event (Prelude.Maybe Prelude.UTCTime)
event_endTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Event -> f Event
event_endTime = (Event -> Maybe POSIX)
-> (Event -> Maybe POSIX -> Event)
-> Lens Event Event (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:Event' :: Event -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: Event
s@Event' {} Maybe POSIX
a -> Event
s {$sel:endTime:Event' :: Maybe POSIX
endTime = Maybe POSIX
a} :: Event) ((Maybe POSIX -> f (Maybe POSIX)) -> Event -> f Event)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Event
-> f Event
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
event_region :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)
event_region :: (Maybe Text -> f (Maybe Text)) -> Event -> f Event
event_region = (Event -> Maybe Text)
-> (Event -> Maybe Text -> Event)
-> Lens Event Event (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe Text
region :: Maybe Text
$sel:region:Event' :: Event -> Maybe Text
region} -> Maybe Text
region) (\s :: Event
s@Event' {} Maybe Text
a -> Event
s {$sel:region:Event' :: Maybe Text
region = Maybe Text
a} :: Event)
event_statusCode :: Lens.Lens' Event (Prelude.Maybe EventStatusCode)
event_statusCode :: (Maybe EventStatusCode -> f (Maybe EventStatusCode))
-> Event -> f Event
event_statusCode = (Event -> Maybe EventStatusCode)
-> (Event -> Maybe EventStatusCode -> Event)
-> Lens Event Event (Maybe EventStatusCode) (Maybe EventStatusCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Event' {Maybe EventStatusCode
statusCode :: Maybe EventStatusCode
$sel:statusCode:Event' :: Event -> Maybe EventStatusCode
statusCode} -> Maybe EventStatusCode
statusCode) (\s :: Event
s@Event' {} Maybe EventStatusCode
a -> Event
s {$sel:statusCode:Event' :: Maybe EventStatusCode
statusCode = Maybe EventStatusCode
a} :: Event)
instance Core.FromJSON Event where
parseJSON :: Value -> Parser Event
parseJSON =
String -> (Object -> Parser Event) -> Value -> Parser Event
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Event"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event
Event'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdatedTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"arn")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"service")
Parser
(Maybe POSIX
-> Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe POSIX)
-> Parser
(Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startTime")
Parser
(Maybe EventScopeCode
-> Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe EventScopeCode)
-> Parser
(Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EventScopeCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventScopeCode")
Parser
(Maybe Text
-> Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe Text)
-> Parser
(Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventTypeCode")
Parser
(Maybe EventTypeCategory
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe EventStatusCode
-> Event)
-> Parser (Maybe EventTypeCategory)
-> Parser
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Maybe EventStatusCode -> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EventTypeCategory)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventTypeCategory")
Parser
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Maybe EventStatusCode -> Event)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX -> Maybe Text -> Maybe EventStatusCode -> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"availabilityZone")
Parser
(Maybe POSIX -> Maybe Text -> Maybe EventStatusCode -> Event)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> Maybe EventStatusCode -> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"endTime")
Parser (Maybe Text -> Maybe EventStatusCode -> Event)
-> Parser (Maybe Text) -> Parser (Maybe EventStatusCode -> Event)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"region")
Parser (Maybe EventStatusCode -> Event)
-> Parser (Maybe EventStatusCode) -> Parser Event
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EventStatusCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusCode")
)
instance Prelude.Hashable Event
instance Prelude.NFData Event