{-# 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.SnowDeviceManagement.DescribeExecution
(
DescribeExecution (..),
newDescribeExecution,
describeExecution_managedDeviceId,
describeExecution_taskId,
DescribeExecutionResponse (..),
newDescribeExecutionResponse,
describeExecutionResponse_executionId,
describeExecutionResponse_state,
describeExecutionResponse_lastUpdatedAt,
describeExecutionResponse_taskId,
describeExecutionResponse_startedAt,
describeExecutionResponse_managedDeviceId,
describeExecutionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SnowDeviceManagement.Types
data DescribeExecution = DescribeExecution'
{
DescribeExecution -> Text
managedDeviceId :: Prelude.Text,
DescribeExecution -> Text
taskId :: Prelude.Text
}
deriving (DescribeExecution -> DescribeExecution -> Bool
(DescribeExecution -> DescribeExecution -> Bool)
-> (DescribeExecution -> DescribeExecution -> Bool)
-> Eq DescribeExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExecution -> DescribeExecution -> Bool
$c/= :: DescribeExecution -> DescribeExecution -> Bool
== :: DescribeExecution -> DescribeExecution -> Bool
$c== :: DescribeExecution -> DescribeExecution -> Bool
Prelude.Eq, ReadPrec [DescribeExecution]
ReadPrec DescribeExecution
Int -> ReadS DescribeExecution
ReadS [DescribeExecution]
(Int -> ReadS DescribeExecution)
-> ReadS [DescribeExecution]
-> ReadPrec DescribeExecution
-> ReadPrec [DescribeExecution]
-> Read DescribeExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeExecution]
$creadListPrec :: ReadPrec [DescribeExecution]
readPrec :: ReadPrec DescribeExecution
$creadPrec :: ReadPrec DescribeExecution
readList :: ReadS [DescribeExecution]
$creadList :: ReadS [DescribeExecution]
readsPrec :: Int -> ReadS DescribeExecution
$creadsPrec :: Int -> ReadS DescribeExecution
Prelude.Read, Int -> DescribeExecution -> ShowS
[DescribeExecution] -> ShowS
DescribeExecution -> String
(Int -> DescribeExecution -> ShowS)
-> (DescribeExecution -> String)
-> ([DescribeExecution] -> ShowS)
-> Show DescribeExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExecution] -> ShowS
$cshowList :: [DescribeExecution] -> ShowS
show :: DescribeExecution -> String
$cshow :: DescribeExecution -> String
showsPrec :: Int -> DescribeExecution -> ShowS
$cshowsPrec :: Int -> DescribeExecution -> ShowS
Prelude.Show, (forall x. DescribeExecution -> Rep DescribeExecution x)
-> (forall x. Rep DescribeExecution x -> DescribeExecution)
-> Generic DescribeExecution
forall x. Rep DescribeExecution x -> DescribeExecution
forall x. DescribeExecution -> Rep DescribeExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeExecution x -> DescribeExecution
$cfrom :: forall x. DescribeExecution -> Rep DescribeExecution x
Prelude.Generic)
newDescribeExecution ::
Prelude.Text ->
Prelude.Text ->
DescribeExecution
newDescribeExecution :: Text -> Text -> DescribeExecution
newDescribeExecution Text
pManagedDeviceId_ Text
pTaskId_ =
DescribeExecution' :: Text -> Text -> DescribeExecution
DescribeExecution'
{ $sel:managedDeviceId:DescribeExecution' :: Text
managedDeviceId =
Text
pManagedDeviceId_,
$sel:taskId:DescribeExecution' :: Text
taskId = Text
pTaskId_
}
describeExecution_managedDeviceId :: Lens.Lens' DescribeExecution Prelude.Text
describeExecution_managedDeviceId :: (Text -> f Text) -> DescribeExecution -> f DescribeExecution
describeExecution_managedDeviceId = (DescribeExecution -> Text)
-> (DescribeExecution -> Text -> DescribeExecution)
-> Lens DescribeExecution DescribeExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecution' {Text
managedDeviceId :: Text
$sel:managedDeviceId:DescribeExecution' :: DescribeExecution -> Text
managedDeviceId} -> Text
managedDeviceId) (\s :: DescribeExecution
s@DescribeExecution' {} Text
a -> DescribeExecution
s {$sel:managedDeviceId:DescribeExecution' :: Text
managedDeviceId = Text
a} :: DescribeExecution)
describeExecution_taskId :: Lens.Lens' DescribeExecution Prelude.Text
describeExecution_taskId :: (Text -> f Text) -> DescribeExecution -> f DescribeExecution
describeExecution_taskId = (DescribeExecution -> Text)
-> (DescribeExecution -> Text -> DescribeExecution)
-> Lens DescribeExecution DescribeExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecution' {Text
taskId :: Text
$sel:taskId:DescribeExecution' :: DescribeExecution -> Text
taskId} -> Text
taskId) (\s :: DescribeExecution
s@DescribeExecution' {} Text
a -> DescribeExecution
s {$sel:taskId:DescribeExecution' :: Text
taskId = Text
a} :: DescribeExecution)
instance Core.AWSRequest DescribeExecution where
type
AWSResponse DescribeExecution =
DescribeExecutionResponse
request :: DescribeExecution -> Request DescribeExecution
request = Service -> DescribeExecution -> Request DescribeExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeExecution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeExecution))
-> Logger
-> Service
-> Proxy DescribeExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeExecution)))
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 Text
-> Maybe ExecutionState
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse
DescribeExecutionResponse'
(Maybe Text
-> Maybe ExecutionState
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ExecutionState
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Functor 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
"executionId")
Either
String
(Maybe ExecutionState
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse)
-> Either String (Maybe ExecutionState)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ExecutionState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"state")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Int -> DescribeExecutionResponse)
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
"lastUpdatedAt")
Either
String
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Int -> DescribeExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeExecutionResponse)
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
"taskId")
Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeExecutionResponse)
-> Either String (Maybe POSIX)
-> Either String (Maybe Text -> Int -> DescribeExecutionResponse)
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
"startedAt")
Either String (Maybe Text -> Int -> DescribeExecutionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeExecutionResponse)
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
"managedDeviceId")
Either String (Int -> DescribeExecutionResponse)
-> Either String Int -> Either String DescribeExecutionResponse
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 DescribeExecution
instance Prelude.NFData DescribeExecution
instance Core.ToHeaders DescribeExecution where
toHeaders :: DescribeExecution -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeExecution -> 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 DescribeExecution where
toJSON :: DescribeExecution -> Value
toJSON = Value -> DescribeExecution -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath DescribeExecution where
toPath :: DescribeExecution -> ByteString
toPath DescribeExecution' {Text
taskId :: Text
managedDeviceId :: Text
$sel:taskId:DescribeExecution' :: DescribeExecution -> Text
$sel:managedDeviceId:DescribeExecution' :: DescribeExecution -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/task/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
taskId,
ByteString
"/execution/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
managedDeviceId
]
instance Core.ToQuery DescribeExecution where
toQuery :: DescribeExecution -> QueryString
toQuery = QueryString -> DescribeExecution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeExecutionResponse = DescribeExecutionResponse'
{
DescribeExecutionResponse -> Maybe Text
executionId :: Prelude.Maybe Prelude.Text,
DescribeExecutionResponse -> Maybe ExecutionState
state :: Prelude.Maybe ExecutionState,
DescribeExecutionResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
DescribeExecutionResponse -> Maybe Text
taskId :: Prelude.Maybe Prelude.Text,
DescribeExecutionResponse -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
DescribeExecutionResponse -> Maybe Text
managedDeviceId :: Prelude.Maybe Prelude.Text,
DescribeExecutionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
(DescribeExecutionResponse -> DescribeExecutionResponse -> Bool)
-> (DescribeExecutionResponse -> DescribeExecutionResponse -> Bool)
-> Eq DescribeExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
$c/= :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
== :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
$c== :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeExecutionResponse]
ReadPrec DescribeExecutionResponse
Int -> ReadS DescribeExecutionResponse
ReadS [DescribeExecutionResponse]
(Int -> ReadS DescribeExecutionResponse)
-> ReadS [DescribeExecutionResponse]
-> ReadPrec DescribeExecutionResponse
-> ReadPrec [DescribeExecutionResponse]
-> Read DescribeExecutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeExecutionResponse]
$creadListPrec :: ReadPrec [DescribeExecutionResponse]
readPrec :: ReadPrec DescribeExecutionResponse
$creadPrec :: ReadPrec DescribeExecutionResponse
readList :: ReadS [DescribeExecutionResponse]
$creadList :: ReadS [DescribeExecutionResponse]
readsPrec :: Int -> ReadS DescribeExecutionResponse
$creadsPrec :: Int -> ReadS DescribeExecutionResponse
Prelude.Read, Int -> DescribeExecutionResponse -> ShowS
[DescribeExecutionResponse] -> ShowS
DescribeExecutionResponse -> String
(Int -> DescribeExecutionResponse -> ShowS)
-> (DescribeExecutionResponse -> String)
-> ([DescribeExecutionResponse] -> ShowS)
-> Show DescribeExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExecutionResponse] -> ShowS
$cshowList :: [DescribeExecutionResponse] -> ShowS
show :: DescribeExecutionResponse -> String
$cshow :: DescribeExecutionResponse -> String
showsPrec :: Int -> DescribeExecutionResponse -> ShowS
$cshowsPrec :: Int -> DescribeExecutionResponse -> ShowS
Prelude.Show, (forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x)
-> (forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse)
-> Generic DescribeExecutionResponse
forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse
forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse
$cfrom :: forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x
Prelude.Generic)
newDescribeExecutionResponse ::
Prelude.Int ->
DescribeExecutionResponse
newDescribeExecutionResponse :: Int -> DescribeExecutionResponse
newDescribeExecutionResponse Int
pHttpStatus_ =
DescribeExecutionResponse' :: Maybe Text
-> Maybe ExecutionState
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeExecutionResponse
DescribeExecutionResponse'
{ $sel:executionId:DescribeExecutionResponse' :: Maybe Text
executionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:DescribeExecutionResponse' :: Maybe ExecutionState
state = Maybe ExecutionState
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedAt:DescribeExecutionResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:taskId:DescribeExecutionResponse' :: Maybe Text
taskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:DescribeExecutionResponse' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:managedDeviceId:DescribeExecutionResponse' :: Maybe Text
managedDeviceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeExecutionResponse_executionId :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_executionId :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_executionId = (DescribeExecutionResponse -> Maybe Text)
-> (DescribeExecutionResponse
-> Maybe Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe Text
executionId :: Maybe Text
$sel:executionId:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe Text
executionId} -> Maybe Text
executionId) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe Text
a -> DescribeExecutionResponse
s {$sel:executionId:DescribeExecutionResponse' :: Maybe Text
executionId = Maybe Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_state :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe ExecutionState)
describeExecutionResponse_state :: (Maybe ExecutionState -> f (Maybe ExecutionState))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_state = (DescribeExecutionResponse -> Maybe ExecutionState)
-> (DescribeExecutionResponse
-> Maybe ExecutionState -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe ExecutionState)
(Maybe ExecutionState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe ExecutionState
state :: Maybe ExecutionState
$sel:state:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe ExecutionState
state} -> Maybe ExecutionState
state) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe ExecutionState
a -> DescribeExecutionResponse
s {$sel:state:DescribeExecutionResponse' :: Maybe ExecutionState
state = Maybe ExecutionState
a} :: DescribeExecutionResponse)
describeExecutionResponse_lastUpdatedAt :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.UTCTime)
describeExecutionResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_lastUpdatedAt = (DescribeExecutionResponse -> Maybe POSIX)
-> (DescribeExecutionResponse
-> Maybe POSIX -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe POSIX
a -> DescribeExecutionResponse
s {$sel:lastUpdatedAt:DescribeExecutionResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: DescribeExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
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
describeExecutionResponse_taskId :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_taskId :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_taskId = (DescribeExecutionResponse -> Maybe Text)
-> (DescribeExecutionResponse
-> Maybe Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe Text
taskId :: Maybe Text
$sel:taskId:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe Text
taskId} -> Maybe Text
taskId) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe Text
a -> DescribeExecutionResponse
s {$sel:taskId:DescribeExecutionResponse' :: Maybe Text
taskId = Maybe Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_startedAt :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.UTCTime)
describeExecutionResponse_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_startedAt = (DescribeExecutionResponse -> Maybe POSIX)
-> (DescribeExecutionResponse
-> Maybe POSIX -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe POSIX
a -> DescribeExecutionResponse
s {$sel:startedAt:DescribeExecutionResponse' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: DescribeExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
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
describeExecutionResponse_managedDeviceId :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_managedDeviceId :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_managedDeviceId = (DescribeExecutionResponse -> Maybe Text)
-> (DescribeExecutionResponse
-> Maybe Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe Text
managedDeviceId :: Maybe Text
$sel:managedDeviceId:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe Text
managedDeviceId} -> Maybe Text
managedDeviceId) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe Text
a -> DescribeExecutionResponse
s {$sel:managedDeviceId:DescribeExecutionResponse' :: Maybe Text
managedDeviceId = Maybe Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_httpStatus :: Lens.Lens' DescribeExecutionResponse Prelude.Int
describeExecutionResponse_httpStatus :: (Int -> f Int)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_httpStatus = (DescribeExecutionResponse -> Int)
-> (DescribeExecutionResponse -> Int -> DescribeExecutionResponse)
-> Lens DescribeExecutionResponse DescribeExecutionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeExecutionResponse' :: DescribeExecutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Int
a -> DescribeExecutionResponse
s {$sel:httpStatus:DescribeExecutionResponse' :: Int
httpStatus = Int
a} :: DescribeExecutionResponse)
instance Prelude.NFData DescribeExecutionResponse