{-# 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.CreateEventAction
(
CreateEventAction (..),
newCreateEventAction,
createEventAction_action,
createEventAction_event,
CreateEventActionResponse (..),
newCreateEventActionResponse,
createEventActionResponse_event,
createEventActionResponse_arn,
createEventActionResponse_createdAt,
createEventActionResponse_action,
createEventActionResponse_id,
createEventActionResponse_updatedAt,
createEventActionResponse_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 CreateEventAction = CreateEventAction'
{
CreateEventAction -> Action
action :: Action,
CreateEventAction -> Event
event :: Event
}
deriving (CreateEventAction -> CreateEventAction -> Bool
(CreateEventAction -> CreateEventAction -> Bool)
-> (CreateEventAction -> CreateEventAction -> Bool)
-> Eq CreateEventAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEventAction -> CreateEventAction -> Bool
$c/= :: CreateEventAction -> CreateEventAction -> Bool
== :: CreateEventAction -> CreateEventAction -> Bool
$c== :: CreateEventAction -> CreateEventAction -> Bool
Prelude.Eq, ReadPrec [CreateEventAction]
ReadPrec CreateEventAction
Int -> ReadS CreateEventAction
ReadS [CreateEventAction]
(Int -> ReadS CreateEventAction)
-> ReadS [CreateEventAction]
-> ReadPrec CreateEventAction
-> ReadPrec [CreateEventAction]
-> Read CreateEventAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEventAction]
$creadListPrec :: ReadPrec [CreateEventAction]
readPrec :: ReadPrec CreateEventAction
$creadPrec :: ReadPrec CreateEventAction
readList :: ReadS [CreateEventAction]
$creadList :: ReadS [CreateEventAction]
readsPrec :: Int -> ReadS CreateEventAction
$creadsPrec :: Int -> ReadS CreateEventAction
Prelude.Read, Int -> CreateEventAction -> ShowS
[CreateEventAction] -> ShowS
CreateEventAction -> String
(Int -> CreateEventAction -> ShowS)
-> (CreateEventAction -> String)
-> ([CreateEventAction] -> ShowS)
-> Show CreateEventAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEventAction] -> ShowS
$cshowList :: [CreateEventAction] -> ShowS
show :: CreateEventAction -> String
$cshow :: CreateEventAction -> String
showsPrec :: Int -> CreateEventAction -> ShowS
$cshowsPrec :: Int -> CreateEventAction -> ShowS
Prelude.Show, (forall x. CreateEventAction -> Rep CreateEventAction x)
-> (forall x. Rep CreateEventAction x -> CreateEventAction)
-> Generic CreateEventAction
forall x. Rep CreateEventAction x -> CreateEventAction
forall x. CreateEventAction -> Rep CreateEventAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateEventAction x -> CreateEventAction
$cfrom :: forall x. CreateEventAction -> Rep CreateEventAction x
Prelude.Generic)
newCreateEventAction ::
Action ->
Event ->
CreateEventAction
newCreateEventAction :: Action -> Event -> CreateEventAction
newCreateEventAction Action
pAction_ Event
pEvent_ =
CreateEventAction' :: Action -> Event -> CreateEventAction
CreateEventAction'
{ $sel:action:CreateEventAction' :: Action
action = Action
pAction_,
$sel:event:CreateEventAction' :: Event
event = Event
pEvent_
}
createEventAction_action :: Lens.Lens' CreateEventAction Action
createEventAction_action :: (Action -> f Action) -> CreateEventAction -> f CreateEventAction
createEventAction_action = (CreateEventAction -> Action)
-> (CreateEventAction -> Action -> CreateEventAction)
-> Lens CreateEventAction CreateEventAction Action Action
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventAction' {Action
action :: Action
$sel:action:CreateEventAction' :: CreateEventAction -> Action
action} -> Action
action) (\s :: CreateEventAction
s@CreateEventAction' {} Action
a -> CreateEventAction
s {$sel:action:CreateEventAction' :: Action
action = Action
a} :: CreateEventAction)
createEventAction_event :: Lens.Lens' CreateEventAction Event
createEventAction_event :: (Event -> f Event) -> CreateEventAction -> f CreateEventAction
createEventAction_event = (CreateEventAction -> Event)
-> (CreateEventAction -> Event -> CreateEventAction)
-> Lens CreateEventAction CreateEventAction Event Event
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventAction' {Event
event :: Event
$sel:event:CreateEventAction' :: CreateEventAction -> Event
event} -> Event
event) (\s :: CreateEventAction
s@CreateEventAction' {} Event
a -> CreateEventAction
s {$sel:event:CreateEventAction' :: Event
event = Event
a} :: CreateEventAction)
instance Core.AWSRequest CreateEventAction where
type
AWSResponse CreateEventAction =
CreateEventActionResponse
request :: CreateEventAction -> Request CreateEventAction
request = Service -> CreateEventAction -> Request CreateEventAction
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateEventAction
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEventAction)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateEventAction))
-> Logger
-> Service
-> Proxy CreateEventAction
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEventAction)))
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
-> CreateEventActionResponse
CreateEventActionResponse'
(Maybe Event
-> Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> CreateEventActionResponse)
-> Either String (Maybe Event)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> CreateEventActionResponse)
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
-> CreateEventActionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> CreateEventActionResponse)
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
-> CreateEventActionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Action
-> Maybe Text -> Maybe POSIX -> Int -> CreateEventActionResponse)
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 -> CreateEventActionResponse)
-> Either String (Maybe Action)
-> Either
String
(Maybe Text -> Maybe POSIX -> Int -> CreateEventActionResponse)
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 -> CreateEventActionResponse)
-> Either String (Maybe Text)
-> Either String (Maybe POSIX -> Int -> CreateEventActionResponse)
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 -> CreateEventActionResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> CreateEventActionResponse)
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 -> CreateEventActionResponse)
-> Either String Int -> Either String CreateEventActionResponse
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 CreateEventAction
instance Prelude.NFData CreateEventAction
instance Core.ToHeaders CreateEventAction where
toHeaders :: CreateEventAction -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateEventAction -> 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.ToJSON CreateEventAction where
toJSON :: CreateEventAction -> Value
toJSON CreateEventAction' {Event
Action
event :: Event
action :: Action
$sel:event:CreateEventAction' :: CreateEventAction -> Event
$sel:action:CreateEventAction' :: CreateEventAction -> Action
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Action" Text -> Action -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Action
action),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Event" Text -> Event -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Event
event)
]
)
instance Core.ToPath CreateEventAction where
toPath :: CreateEventAction -> ByteString
toPath = ByteString -> CreateEventAction -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v1/event-actions"
instance Core.ToQuery CreateEventAction where
toQuery :: CreateEventAction -> QueryString
toQuery = QueryString -> CreateEventAction -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateEventActionResponse = CreateEventActionResponse'
{
CreateEventActionResponse -> Maybe Event
event :: Prelude.Maybe Event,
CreateEventActionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateEventActionResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
CreateEventActionResponse -> Maybe Action
action :: Prelude.Maybe Action,
CreateEventActionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateEventActionResponse -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
CreateEventActionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateEventActionResponse -> CreateEventActionResponse -> Bool
(CreateEventActionResponse -> CreateEventActionResponse -> Bool)
-> (CreateEventActionResponse -> CreateEventActionResponse -> Bool)
-> Eq CreateEventActionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEventActionResponse -> CreateEventActionResponse -> Bool
$c/= :: CreateEventActionResponse -> CreateEventActionResponse -> Bool
== :: CreateEventActionResponse -> CreateEventActionResponse -> Bool
$c== :: CreateEventActionResponse -> CreateEventActionResponse -> Bool
Prelude.Eq, ReadPrec [CreateEventActionResponse]
ReadPrec CreateEventActionResponse
Int -> ReadS CreateEventActionResponse
ReadS [CreateEventActionResponse]
(Int -> ReadS CreateEventActionResponse)
-> ReadS [CreateEventActionResponse]
-> ReadPrec CreateEventActionResponse
-> ReadPrec [CreateEventActionResponse]
-> Read CreateEventActionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEventActionResponse]
$creadListPrec :: ReadPrec [CreateEventActionResponse]
readPrec :: ReadPrec CreateEventActionResponse
$creadPrec :: ReadPrec CreateEventActionResponse
readList :: ReadS [CreateEventActionResponse]
$creadList :: ReadS [CreateEventActionResponse]
readsPrec :: Int -> ReadS CreateEventActionResponse
$creadsPrec :: Int -> ReadS CreateEventActionResponse
Prelude.Read, Int -> CreateEventActionResponse -> ShowS
[CreateEventActionResponse] -> ShowS
CreateEventActionResponse -> String
(Int -> CreateEventActionResponse -> ShowS)
-> (CreateEventActionResponse -> String)
-> ([CreateEventActionResponse] -> ShowS)
-> Show CreateEventActionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEventActionResponse] -> ShowS
$cshowList :: [CreateEventActionResponse] -> ShowS
show :: CreateEventActionResponse -> String
$cshow :: CreateEventActionResponse -> String
showsPrec :: Int -> CreateEventActionResponse -> ShowS
$cshowsPrec :: Int -> CreateEventActionResponse -> ShowS
Prelude.Show, (forall x.
CreateEventActionResponse -> Rep CreateEventActionResponse x)
-> (forall x.
Rep CreateEventActionResponse x -> CreateEventActionResponse)
-> Generic CreateEventActionResponse
forall x.
Rep CreateEventActionResponse x -> CreateEventActionResponse
forall x.
CreateEventActionResponse -> Rep CreateEventActionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEventActionResponse x -> CreateEventActionResponse
$cfrom :: forall x.
CreateEventActionResponse -> Rep CreateEventActionResponse x
Prelude.Generic)
newCreateEventActionResponse ::
Prelude.Int ->
CreateEventActionResponse
newCreateEventActionResponse :: Int -> CreateEventActionResponse
newCreateEventActionResponse Int
pHttpStatus_ =
CreateEventActionResponse' :: Maybe Event
-> Maybe Text
-> Maybe POSIX
-> Maybe Action
-> Maybe Text
-> Maybe POSIX
-> Int
-> CreateEventActionResponse
CreateEventActionResponse'
{ $sel:event:CreateEventActionResponse' :: Maybe Event
event = Maybe Event
forall a. Maybe a
Prelude.Nothing,
$sel:arn:CreateEventActionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:CreateEventActionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:action:CreateEventActionResponse' :: Maybe Action
action = Maybe Action
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateEventActionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:CreateEventActionResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateEventActionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createEventActionResponse_event :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Event)
createEventActionResponse_event :: (Maybe Event -> f (Maybe Event))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_event = (CreateEventActionResponse -> Maybe Event)
-> (CreateEventActionResponse
-> Maybe Event -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe Event)
(Maybe Event)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe Event
event :: Maybe Event
$sel:event:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe Event
event} -> Maybe Event
event) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe Event
a -> CreateEventActionResponse
s {$sel:event:CreateEventActionResponse' :: Maybe Event
event = Maybe Event
a} :: CreateEventActionResponse)
createEventActionResponse_arn :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Prelude.Text)
createEventActionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_arn = (CreateEventActionResponse -> Maybe Text)
-> (CreateEventActionResponse
-> Maybe Text -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe Text
a -> CreateEventActionResponse
s {$sel:arn:CreateEventActionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateEventActionResponse)
createEventActionResponse_createdAt :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Prelude.UTCTime)
createEventActionResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_createdAt = (CreateEventActionResponse -> Maybe POSIX)
-> (CreateEventActionResponse
-> Maybe POSIX -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe POSIX
a -> CreateEventActionResponse
s {$sel:createdAt:CreateEventActionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: CreateEventActionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateEventActionResponse -> f CreateEventActionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateEventActionResponse
-> f CreateEventActionResponse
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
createEventActionResponse_action :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Action)
createEventActionResponse_action :: (Maybe Action -> f (Maybe Action))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_action = (CreateEventActionResponse -> Maybe Action)
-> (CreateEventActionResponse
-> Maybe Action -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe Action)
(Maybe Action)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe Action
action :: Maybe Action
$sel:action:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe Action
action} -> Maybe Action
action) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe Action
a -> CreateEventActionResponse
s {$sel:action:CreateEventActionResponse' :: Maybe Action
action = Maybe Action
a} :: CreateEventActionResponse)
createEventActionResponse_id :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Prelude.Text)
createEventActionResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_id = (CreateEventActionResponse -> Maybe Text)
-> (CreateEventActionResponse
-> Maybe Text -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe Text
a -> CreateEventActionResponse
s {$sel:id:CreateEventActionResponse' :: Maybe Text
id = Maybe Text
a} :: CreateEventActionResponse)
createEventActionResponse_updatedAt :: Lens.Lens' CreateEventActionResponse (Prelude.Maybe Prelude.UTCTime)
createEventActionResponse_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_updatedAt = (CreateEventActionResponse -> Maybe POSIX)
-> (CreateEventActionResponse
-> Maybe POSIX -> CreateEventActionResponse)
-> Lens
CreateEventActionResponse
CreateEventActionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:CreateEventActionResponse' :: CreateEventActionResponse -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Maybe POSIX
a -> CreateEventActionResponse
s {$sel:updatedAt:CreateEventActionResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: CreateEventActionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateEventActionResponse -> f CreateEventActionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateEventActionResponse
-> f CreateEventActionResponse
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
createEventActionResponse_httpStatus :: Lens.Lens' CreateEventActionResponse Prelude.Int
createEventActionResponse_httpStatus :: (Int -> f Int)
-> CreateEventActionResponse -> f CreateEventActionResponse
createEventActionResponse_httpStatus = (CreateEventActionResponse -> Int)
-> (CreateEventActionResponse -> Int -> CreateEventActionResponse)
-> Lens CreateEventActionResponse CreateEventActionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEventActionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateEventActionResponse' :: CreateEventActionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateEventActionResponse
s@CreateEventActionResponse' {} Int
a -> CreateEventActionResponse
s {$sel:httpStatus:CreateEventActionResponse' :: Int
httpStatus = Int
a} :: CreateEventActionResponse)
instance Prelude.NFData CreateEventActionResponse