{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DataExchange.GetEventAction
(
GetEventAction (..),
newGetEventAction,
getEventAction_eventActionId,
GetEventActionResponse (..),
newGetEventActionResponse,
getEventActionResponse_event,
getEventActionResponse_arn,
getEventActionResponse_createdAt,
getEventActionResponse_action,
getEventActionResponse_id,
getEventActionResponse_updatedAt,
getEventActionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataExchange.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetEventAction = GetEventAction'
{
GetEventAction -> Text
eventActionId :: Prelude.Text
}
deriving (GetEventAction -> GetEventAction -> Bool
(GetEventAction -> GetEventAction -> Bool)
-> (GetEventAction -> GetEventAction -> Bool) -> Eq GetEventAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventAction -> GetEventAction -> Bool
$c/= :: GetEventAction -> GetEventAction -> Bool
== :: GetEventAction -> GetEventAction -> Bool
$c== :: GetEventAction -> GetEventAction -> Bool
Prelude.Eq, ReadPrec [GetEventAction]
ReadPrec GetEventAction
Int -> ReadS GetEventAction
ReadS [GetEventAction]
(Int -> ReadS GetEventAction)
-> ReadS [GetEventAction]
-> ReadPrec GetEventAction
-> ReadPrec [GetEventAction]
-> Read GetEventAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventAction]
$creadListPrec :: ReadPrec [GetEventAction]
readPrec :: ReadPrec GetEventAction
$creadPrec :: ReadPrec GetEventAction
readList :: ReadS [GetEventAction]
$creadList :: ReadS [GetEventAction]
readsPrec :: Int -> ReadS GetEventAction
$creadsPrec :: Int -> ReadS GetEventAction
Prelude.Read, Int -> GetEventAction -> ShowS
[GetEventAction] -> ShowS
GetEventAction -> String
(Int -> GetEventAction -> ShowS)
-> (GetEventAction -> String)
-> ([GetEventAction] -> ShowS)
-> Show GetEventAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventAction] -> ShowS
$cshowList :: [GetEventAction] -> ShowS
show :: GetEventAction -> String
$cshow :: GetEventAction -> String
showsPrec :: Int -> GetEventAction -> ShowS
$cshowsPrec :: Int -> GetEventAction -> ShowS
Prelude.Show, (forall x. GetEventAction -> Rep GetEventAction x)
-> (forall x. Rep GetEventAction x -> GetEventAction)
-> Generic GetEventAction
forall x. Rep GetEventAction x -> GetEventAction
forall x. GetEventAction -> Rep GetEventAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEventAction x -> GetEventAction
$cfrom :: forall x. GetEventAction -> Rep GetEventAction x
Prelude.Generic)
newGetEventAction ::
Prelude.Text ->
GetEventAction
newGetEventAction :: Text -> GetEventAction
newGetEventAction Text
pEventActionId_ =
GetEventAction' :: Text -> GetEventAction
GetEventAction' {$sel:eventActionId:GetEventAction' :: Text
eventActionId = Text
pEventActionId_}
getEventAction_eventActionId :: Lens.Lens' GetEventAction Prelude.Text
getEventAction_eventActionId :: (Text -> f Text) -> GetEventAction -> f GetEventAction
getEventAction_eventActionId = (GetEventAction -> Text)
-> (GetEventAction -> Text -> GetEventAction)
-> Lens GetEventAction GetEventAction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventAction' {Text
eventActionId :: Text
$sel:eventActionId:GetEventAction' :: GetEventAction -> Text
eventActionId} -> Text
eventActionId) (\s :: GetEventAction
s@GetEventAction' {} Text
a -> GetEventAction
s {$sel:eventActionId:GetEventAction' :: Text
eventActionId = Text
a} :: GetEventAction)
instance Core.AWSRequest GetEventAction where
type
AWSResponse GetEventAction =
GetEventActionResponse
request :: GetEventAction -> Request GetEventAction
request = Service -> GetEventAction -> Request GetEventAction
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetEventAction
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetEventAction)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetEventAction))
-> Logger
-> Service
-> Proxy GetEventAction
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetEventAction)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Event
-> Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse
GetEventActionResponse'
(Maybe Event
-> Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse)
-> Either String (Maybe Event)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Event)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Event")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Arn")
Either
String
(Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Action
-> Maybe Text -> Maybe POSIX -> Int -> GetEventActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedAt")
Either
String
(Maybe Action
-> Maybe Text -> Maybe POSIX -> Int -> GetEventActionResponse)
-> Either String (Maybe Action)
-> Either
String (Maybe Text -> Maybe POSIX -> Int -> GetEventActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Action)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Action")
Either
String (Maybe Text -> Maybe POSIX -> Int -> GetEventActionResponse)
-> Either String (Maybe Text)
-> Either String (Maybe POSIX -> Int -> GetEventActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Id")
Either String (Maybe POSIX -> Int -> GetEventActionResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> GetEventActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UpdatedAt")
Either String (Int -> GetEventActionResponse)
-> Either String Int -> Either String GetEventActionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetEventAction
instance Prelude.NFData GetEventAction
instance Core.ToHeaders GetEventAction where
toHeaders :: GetEventAction -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetEventAction -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath GetEventAction where
toPath :: GetEventAction -> ByteString
toPath GetEventAction' {Text
eventActionId :: Text
$sel:eventActionId:GetEventAction' :: GetEventAction -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v1/event-actions/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
eventActionId]
instance Core.ToQuery GetEventAction where
toQuery :: GetEventAction -> QueryString
toQuery = QueryString -> GetEventAction -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetEventActionResponse = GetEventActionResponse'
{
GetEventActionResponse -> Maybe Event
event :: Prelude.Maybe Event,
GetEventActionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetEventActionResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
GetEventActionResponse -> Maybe Action
action :: Prelude.Maybe Action,
GetEventActionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetEventActionResponse -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
GetEventActionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetEventActionResponse -> GetEventActionResponse -> Bool
(GetEventActionResponse -> GetEventActionResponse -> Bool)
-> (GetEventActionResponse -> GetEventActionResponse -> Bool)
-> Eq GetEventActionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventActionResponse -> GetEventActionResponse -> Bool
$c/= :: GetEventActionResponse -> GetEventActionResponse -> Bool
== :: GetEventActionResponse -> GetEventActionResponse -> Bool
$c== :: GetEventActionResponse -> GetEventActionResponse -> Bool
Prelude.Eq, ReadPrec [GetEventActionResponse]
ReadPrec GetEventActionResponse
Int -> ReadS GetEventActionResponse
ReadS [GetEventActionResponse]
(Int -> ReadS GetEventActionResponse)
-> ReadS [GetEventActionResponse]
-> ReadPrec GetEventActionResponse
-> ReadPrec [GetEventActionResponse]
-> Read GetEventActionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventActionResponse]
$creadListPrec :: ReadPrec [GetEventActionResponse]
readPrec :: ReadPrec GetEventActionResponse
$creadPrec :: ReadPrec GetEventActionResponse
readList :: ReadS [GetEventActionResponse]
$creadList :: ReadS [GetEventActionResponse]
readsPrec :: Int -> ReadS GetEventActionResponse
$creadsPrec :: Int -> ReadS GetEventActionResponse
Prelude.Read, Int -> GetEventActionResponse -> ShowS
[GetEventActionResponse] -> ShowS
GetEventActionResponse -> String
(Int -> GetEventActionResponse -> ShowS)
-> (GetEventActionResponse -> String)
-> ([GetEventActionResponse] -> ShowS)
-> Show GetEventActionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventActionResponse] -> ShowS
$cshowList :: [GetEventActionResponse] -> ShowS
show :: GetEventActionResponse -> String
$cshow :: GetEventActionResponse -> String
showsPrec :: Int -> GetEventActionResponse -> ShowS
$cshowsPrec :: Int -> GetEventActionResponse -> ShowS
Prelude.Show, (forall x. GetEventActionResponse -> Rep GetEventActionResponse x)
-> (forall x.
Rep GetEventActionResponse x -> GetEventActionResponse)
-> Generic GetEventActionResponse
forall x. Rep GetEventActionResponse x -> GetEventActionResponse
forall x. GetEventActionResponse -> Rep GetEventActionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEventActionResponse x -> GetEventActionResponse
$cfrom :: forall x. GetEventActionResponse -> Rep GetEventActionResponse x
Prelude.Generic)
newGetEventActionResponse ::
Prelude.Int ->
GetEventActionResponse
newGetEventActionResponse :: Int -> GetEventActionResponse
newGetEventActionResponse Int
pHttpStatus_ =
GetEventActionResponse' :: Maybe Event
-> Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetEventActionResponse
GetEventActionResponse'
{ $sel:event:GetEventActionResponse' :: Maybe Event
event = Maybe Event
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetEventActionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:GetEventActionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:action:GetEventActionResponse' :: Maybe Action
action = Maybe Action
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetEventActionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:GetEventActionResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetEventActionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getEventActionResponse_event :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Event)
getEventActionResponse_event :: (Maybe Event -> f (Maybe Event))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_event = (GetEventActionResponse -> Maybe Event)
-> (GetEventActionResponse
-> Maybe Event -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe Event)
(Maybe Event)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe Event
event :: Maybe Event
$sel:event:GetEventActionResponse' :: GetEventActionResponse -> Maybe Event
event} -> Maybe Event
event) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe Event
a -> GetEventActionResponse
s {$sel:event:GetEventActionResponse' :: Maybe Event
event = Maybe Event
a} :: GetEventActionResponse)
getEventActionResponse_arn :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Prelude.Text)
getEventActionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_arn = (GetEventActionResponse -> Maybe Text)
-> (GetEventActionResponse -> Maybe Text -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetEventActionResponse' :: GetEventActionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe Text
a -> GetEventActionResponse
s {$sel:arn:GetEventActionResponse' :: Maybe Text
arn = Maybe Text
a} :: GetEventActionResponse)
getEventActionResponse_createdAt :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Prelude.UTCTime)
getEventActionResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_createdAt = (GetEventActionResponse -> Maybe POSIX)
-> (GetEventActionResponse
-> Maybe POSIX -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetEventActionResponse' :: GetEventActionResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe POSIX
a -> GetEventActionResponse
s {$sel:createdAt:GetEventActionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetEventActionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetEventActionResponse -> f GetEventActionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetEventActionResponse
-> f GetEventActionResponse
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
getEventActionResponse_action :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Action)
getEventActionResponse_action :: (Maybe Action -> f (Maybe Action))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_action = (GetEventActionResponse -> Maybe Action)
-> (GetEventActionResponse
-> Maybe Action -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe Action)
(Maybe Action)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe Action
action :: Maybe Action
$sel:action:GetEventActionResponse' :: GetEventActionResponse -> Maybe Action
action} -> Maybe Action
action) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe Action
a -> GetEventActionResponse
s {$sel:action:GetEventActionResponse' :: Maybe Action
action = Maybe Action
a} :: GetEventActionResponse)
getEventActionResponse_id :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Prelude.Text)
getEventActionResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_id = (GetEventActionResponse -> Maybe Text)
-> (GetEventActionResponse -> Maybe Text -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetEventActionResponse' :: GetEventActionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe Text
a -> GetEventActionResponse
s {$sel:id:GetEventActionResponse' :: Maybe Text
id = Maybe Text
a} :: GetEventActionResponse)
getEventActionResponse_updatedAt :: Lens.Lens' GetEventActionResponse (Prelude.Maybe Prelude.UTCTime)
getEventActionResponse_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_updatedAt = (GetEventActionResponse -> Maybe POSIX)
-> (GetEventActionResponse
-> Maybe POSIX -> GetEventActionResponse)
-> Lens
GetEventActionResponse
GetEventActionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:GetEventActionResponse' :: GetEventActionResponse -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Maybe POSIX
a -> GetEventActionResponse
s {$sel:updatedAt:GetEventActionResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: GetEventActionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetEventActionResponse -> f GetEventActionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetEventActionResponse
-> f GetEventActionResponse
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
getEventActionResponse_httpStatus :: Lens.Lens' GetEventActionResponse Prelude.Int
getEventActionResponse_httpStatus :: (Int -> f Int)
-> GetEventActionResponse -> f GetEventActionResponse
getEventActionResponse_httpStatus = (GetEventActionResponse -> Int)
-> (GetEventActionResponse -> Int -> GetEventActionResponse)
-> Lens GetEventActionResponse GetEventActionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventActionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetEventActionResponse' :: GetEventActionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetEventActionResponse
s@GetEventActionResponse' {} Int
a -> GetEventActionResponse
s {$sel:httpStatus:GetEventActionResponse' :: Int
httpStatus = Int
a} :: GetEventActionResponse)
instance Prelude.NFData GetEventActionResponse