{-# 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.RobOMaker.DescribeWorldExportJob
(
DescribeWorldExportJob (..),
newDescribeWorldExportJob,
describeWorldExportJob_job,
DescribeWorldExportJobResponse (..),
newDescribeWorldExportJobResponse,
describeWorldExportJobResponse_failureReason,
describeWorldExportJobResponse_status,
describeWorldExportJobResponse_arn,
describeWorldExportJobResponse_createdAt,
describeWorldExportJobResponse_failureCode,
describeWorldExportJobResponse_outputLocation,
describeWorldExportJobResponse_clientRequestToken,
describeWorldExportJobResponse_iamRole,
describeWorldExportJobResponse_worlds,
describeWorldExportJobResponse_tags,
describeWorldExportJobResponse_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.RobOMaker.Types
data DescribeWorldExportJob = DescribeWorldExportJob'
{
DescribeWorldExportJob -> Text
job :: Prelude.Text
}
deriving (DescribeWorldExportJob -> DescribeWorldExportJob -> Bool
(DescribeWorldExportJob -> DescribeWorldExportJob -> Bool)
-> (DescribeWorldExportJob -> DescribeWorldExportJob -> Bool)
-> Eq DescribeWorldExportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorldExportJob -> DescribeWorldExportJob -> Bool
$c/= :: DescribeWorldExportJob -> DescribeWorldExportJob -> Bool
== :: DescribeWorldExportJob -> DescribeWorldExportJob -> Bool
$c== :: DescribeWorldExportJob -> DescribeWorldExportJob -> Bool
Prelude.Eq, ReadPrec [DescribeWorldExportJob]
ReadPrec DescribeWorldExportJob
Int -> ReadS DescribeWorldExportJob
ReadS [DescribeWorldExportJob]
(Int -> ReadS DescribeWorldExportJob)
-> ReadS [DescribeWorldExportJob]
-> ReadPrec DescribeWorldExportJob
-> ReadPrec [DescribeWorldExportJob]
-> Read DescribeWorldExportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorldExportJob]
$creadListPrec :: ReadPrec [DescribeWorldExportJob]
readPrec :: ReadPrec DescribeWorldExportJob
$creadPrec :: ReadPrec DescribeWorldExportJob
readList :: ReadS [DescribeWorldExportJob]
$creadList :: ReadS [DescribeWorldExportJob]
readsPrec :: Int -> ReadS DescribeWorldExportJob
$creadsPrec :: Int -> ReadS DescribeWorldExportJob
Prelude.Read, Int -> DescribeWorldExportJob -> ShowS
[DescribeWorldExportJob] -> ShowS
DescribeWorldExportJob -> String
(Int -> DescribeWorldExportJob -> ShowS)
-> (DescribeWorldExportJob -> String)
-> ([DescribeWorldExportJob] -> ShowS)
-> Show DescribeWorldExportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorldExportJob] -> ShowS
$cshowList :: [DescribeWorldExportJob] -> ShowS
show :: DescribeWorldExportJob -> String
$cshow :: DescribeWorldExportJob -> String
showsPrec :: Int -> DescribeWorldExportJob -> ShowS
$cshowsPrec :: Int -> DescribeWorldExportJob -> ShowS
Prelude.Show, (forall x. DescribeWorldExportJob -> Rep DescribeWorldExportJob x)
-> (forall x.
Rep DescribeWorldExportJob x -> DescribeWorldExportJob)
-> Generic DescribeWorldExportJob
forall x. Rep DescribeWorldExportJob x -> DescribeWorldExportJob
forall x. DescribeWorldExportJob -> Rep DescribeWorldExportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeWorldExportJob x -> DescribeWorldExportJob
$cfrom :: forall x. DescribeWorldExportJob -> Rep DescribeWorldExportJob x
Prelude.Generic)
newDescribeWorldExportJob ::
Prelude.Text ->
DescribeWorldExportJob
newDescribeWorldExportJob :: Text -> DescribeWorldExportJob
newDescribeWorldExportJob Text
pJob_ =
DescribeWorldExportJob' :: Text -> DescribeWorldExportJob
DescribeWorldExportJob' {$sel:job:DescribeWorldExportJob' :: Text
job = Text
pJob_}
describeWorldExportJob_job :: Lens.Lens' DescribeWorldExportJob Prelude.Text
describeWorldExportJob_job :: (Text -> f Text)
-> DescribeWorldExportJob -> f DescribeWorldExportJob
describeWorldExportJob_job = (DescribeWorldExportJob -> Text)
-> (DescribeWorldExportJob -> Text -> DescribeWorldExportJob)
-> Lens DescribeWorldExportJob DescribeWorldExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJob' {Text
job :: Text
$sel:job:DescribeWorldExportJob' :: DescribeWorldExportJob -> Text
job} -> Text
job) (\s :: DescribeWorldExportJob
s@DescribeWorldExportJob' {} Text
a -> DescribeWorldExportJob
s {$sel:job:DescribeWorldExportJob' :: Text
job = Text
a} :: DescribeWorldExportJob)
instance Core.AWSRequest DescribeWorldExportJob where
type
AWSResponse DescribeWorldExportJob =
DescribeWorldExportJobResponse
request :: DescribeWorldExportJob -> Request DescribeWorldExportJob
request = Service -> DescribeWorldExportJob -> Request DescribeWorldExportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorldExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorldExportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorldExportJob))
-> Logger
-> Service
-> Proxy DescribeWorldExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorldExportJob)))
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 WorldExportJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse
DescribeWorldExportJobResponse'
(Maybe Text
-> Maybe WorldExportJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe WorldExportJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
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
"failureReason")
Either
String
(Maybe WorldExportJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe WorldExportJobStatus)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe WorldExportJobStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
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 WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
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 WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe WorldExportJobErrorCode)
-> Either
String
(Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe WorldExportJobErrorCode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failureCode")
Either
String
(Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe OutputLocation)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe OutputLocation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"outputLocation")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
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
"clientRequestToken")
Either
String
(Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
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
"iamRole")
Either
String
(Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeWorldExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"worlds")
Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeWorldExportJobResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeWorldExportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeWorldExportJobResponse)
-> Either String Int
-> Either String DescribeWorldExportJobResponse
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 DescribeWorldExportJob
instance Prelude.NFData DescribeWorldExportJob
instance Core.ToHeaders DescribeWorldExportJob where
toHeaders :: DescribeWorldExportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeWorldExportJob -> 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 DescribeWorldExportJob where
toJSON :: DescribeWorldExportJob -> Value
toJSON DescribeWorldExportJob' {Text
job :: Text
$sel:job:DescribeWorldExportJob' :: DescribeWorldExportJob -> Text
..} =
[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
"job" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
job)]
)
instance Core.ToPath DescribeWorldExportJob where
toPath :: DescribeWorldExportJob -> ByteString
toPath = ByteString -> DescribeWorldExportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeWorldExportJob"
instance Core.ToQuery DescribeWorldExportJob where
toQuery :: DescribeWorldExportJob -> QueryString
toQuery = QueryString -> DescribeWorldExportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorldExportJobResponse = DescribeWorldExportJobResponse'
{
DescribeWorldExportJobResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
DescribeWorldExportJobResponse -> Maybe WorldExportJobStatus
status :: Prelude.Maybe WorldExportJobStatus,
DescribeWorldExportJobResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeWorldExportJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
DescribeWorldExportJobResponse -> Maybe WorldExportJobErrorCode
failureCode :: Prelude.Maybe WorldExportJobErrorCode,
DescribeWorldExportJobResponse -> Maybe OutputLocation
outputLocation :: Prelude.Maybe OutputLocation,
DescribeWorldExportJobResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
DescribeWorldExportJobResponse -> Maybe Text
iamRole :: Prelude.Maybe Prelude.Text,
DescribeWorldExportJobResponse -> Maybe (NonEmpty Text)
worlds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
DescribeWorldExportJobResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeWorldExportJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool
(DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool)
-> (DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool)
-> Eq DescribeWorldExportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool
$c/= :: DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool
== :: DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool
$c== :: DescribeWorldExportJobResponse
-> DescribeWorldExportJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorldExportJobResponse]
ReadPrec DescribeWorldExportJobResponse
Int -> ReadS DescribeWorldExportJobResponse
ReadS [DescribeWorldExportJobResponse]
(Int -> ReadS DescribeWorldExportJobResponse)
-> ReadS [DescribeWorldExportJobResponse]
-> ReadPrec DescribeWorldExportJobResponse
-> ReadPrec [DescribeWorldExportJobResponse]
-> Read DescribeWorldExportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorldExportJobResponse]
$creadListPrec :: ReadPrec [DescribeWorldExportJobResponse]
readPrec :: ReadPrec DescribeWorldExportJobResponse
$creadPrec :: ReadPrec DescribeWorldExportJobResponse
readList :: ReadS [DescribeWorldExportJobResponse]
$creadList :: ReadS [DescribeWorldExportJobResponse]
readsPrec :: Int -> ReadS DescribeWorldExportJobResponse
$creadsPrec :: Int -> ReadS DescribeWorldExportJobResponse
Prelude.Read, Int -> DescribeWorldExportJobResponse -> ShowS
[DescribeWorldExportJobResponse] -> ShowS
DescribeWorldExportJobResponse -> String
(Int -> DescribeWorldExportJobResponse -> ShowS)
-> (DescribeWorldExportJobResponse -> String)
-> ([DescribeWorldExportJobResponse] -> ShowS)
-> Show DescribeWorldExportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorldExportJobResponse] -> ShowS
$cshowList :: [DescribeWorldExportJobResponse] -> ShowS
show :: DescribeWorldExportJobResponse -> String
$cshow :: DescribeWorldExportJobResponse -> String
showsPrec :: Int -> DescribeWorldExportJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorldExportJobResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorldExportJobResponse
-> Rep DescribeWorldExportJobResponse x)
-> (forall x.
Rep DescribeWorldExportJobResponse x
-> DescribeWorldExportJobResponse)
-> Generic DescribeWorldExportJobResponse
forall x.
Rep DescribeWorldExportJobResponse x
-> DescribeWorldExportJobResponse
forall x.
DescribeWorldExportJobResponse
-> Rep DescribeWorldExportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorldExportJobResponse x
-> DescribeWorldExportJobResponse
$cfrom :: forall x.
DescribeWorldExportJobResponse
-> Rep DescribeWorldExportJobResponse x
Prelude.Generic)
newDescribeWorldExportJobResponse ::
Prelude.Int ->
DescribeWorldExportJobResponse
newDescribeWorldExportJobResponse :: Int -> DescribeWorldExportJobResponse
newDescribeWorldExportJobResponse Int
pHttpStatus_ =
DescribeWorldExportJobResponse' :: Maybe Text
-> Maybe WorldExportJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe WorldExportJobErrorCode
-> Maybe OutputLocation
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldExportJobResponse
DescribeWorldExportJobResponse'
{ $sel:failureReason:DescribeWorldExportJobResponse' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeWorldExportJobResponse' :: Maybe WorldExportJobStatus
status = Maybe WorldExportJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeWorldExportJobResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:DescribeWorldExportJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:failureCode:DescribeWorldExportJobResponse' :: Maybe WorldExportJobErrorCode
failureCode = Maybe WorldExportJobErrorCode
forall a. Maybe a
Prelude.Nothing,
$sel:outputLocation:DescribeWorldExportJobResponse' :: Maybe OutputLocation
outputLocation = Maybe OutputLocation
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:DescribeWorldExportJobResponse' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:iamRole:DescribeWorldExportJobResponse' :: Maybe Text
iamRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:worlds:DescribeWorldExportJobResponse' :: Maybe (NonEmpty Text)
worlds = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeWorldExportJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorldExportJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorldExportJobResponse_failureReason :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe Prelude.Text)
describeWorldExportJobResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_failureReason = (DescribeWorldExportJobResponse -> Maybe Text)
-> (DescribeWorldExportJobResponse
-> Maybe Text -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe Text
a -> DescribeWorldExportJobResponse
s {$sel:failureReason:DescribeWorldExportJobResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_status :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe WorldExportJobStatus)
describeWorldExportJobResponse_status :: (Maybe WorldExportJobStatus -> f (Maybe WorldExportJobStatus))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_status = (DescribeWorldExportJobResponse -> Maybe WorldExportJobStatus)
-> (DescribeWorldExportJobResponse
-> Maybe WorldExportJobStatus -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe WorldExportJobStatus)
(Maybe WorldExportJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe WorldExportJobStatus
status :: Maybe WorldExportJobStatus
$sel:status:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe WorldExportJobStatus
status} -> Maybe WorldExportJobStatus
status) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe WorldExportJobStatus
a -> DescribeWorldExportJobResponse
s {$sel:status:DescribeWorldExportJobResponse' :: Maybe WorldExportJobStatus
status = Maybe WorldExportJobStatus
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_arn :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe Prelude.Text)
describeWorldExportJobResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_arn = (DescribeWorldExportJobResponse -> Maybe Text)
-> (DescribeWorldExportJobResponse
-> Maybe Text -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe Text
a -> DescribeWorldExportJobResponse
s {$sel:arn:DescribeWorldExportJobResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_createdAt :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe Prelude.UTCTime)
describeWorldExportJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_createdAt = (DescribeWorldExportJobResponse -> Maybe POSIX)
-> (DescribeWorldExportJobResponse
-> Maybe POSIX -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe POSIX
a -> DescribeWorldExportJobResponse
s {$sel:createdAt:DescribeWorldExportJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeWorldExportJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
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
describeWorldExportJobResponse_failureCode :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe WorldExportJobErrorCode)
describeWorldExportJobResponse_failureCode :: (Maybe WorldExportJobErrorCode
-> f (Maybe WorldExportJobErrorCode))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_failureCode = (DescribeWorldExportJobResponse -> Maybe WorldExportJobErrorCode)
-> (DescribeWorldExportJobResponse
-> Maybe WorldExportJobErrorCode -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe WorldExportJobErrorCode)
(Maybe WorldExportJobErrorCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe WorldExportJobErrorCode
failureCode :: Maybe WorldExportJobErrorCode
$sel:failureCode:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe WorldExportJobErrorCode
failureCode} -> Maybe WorldExportJobErrorCode
failureCode) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe WorldExportJobErrorCode
a -> DescribeWorldExportJobResponse
s {$sel:failureCode:DescribeWorldExportJobResponse' :: Maybe WorldExportJobErrorCode
failureCode = Maybe WorldExportJobErrorCode
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_outputLocation :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe OutputLocation)
describeWorldExportJobResponse_outputLocation :: (Maybe OutputLocation -> f (Maybe OutputLocation))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_outputLocation = (DescribeWorldExportJobResponse -> Maybe OutputLocation)
-> (DescribeWorldExportJobResponse
-> Maybe OutputLocation -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe OutputLocation)
(Maybe OutputLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe OutputLocation
outputLocation :: Maybe OutputLocation
$sel:outputLocation:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe OutputLocation
outputLocation} -> Maybe OutputLocation
outputLocation) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe OutputLocation
a -> DescribeWorldExportJobResponse
s {$sel:outputLocation:DescribeWorldExportJobResponse' :: Maybe OutputLocation
outputLocation = Maybe OutputLocation
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_clientRequestToken :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe Prelude.Text)
describeWorldExportJobResponse_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_clientRequestToken = (DescribeWorldExportJobResponse -> Maybe Text)
-> (DescribeWorldExportJobResponse
-> Maybe Text -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe Text
a -> DescribeWorldExportJobResponse
s {$sel:clientRequestToken:DescribeWorldExportJobResponse' :: Maybe Text
clientRequestToken = Maybe Text
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_iamRole :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe Prelude.Text)
describeWorldExportJobResponse_iamRole :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_iamRole = (DescribeWorldExportJobResponse -> Maybe Text)
-> (DescribeWorldExportJobResponse
-> Maybe Text -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe Text
iamRole :: Maybe Text
$sel:iamRole:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe Text
iamRole} -> Maybe Text
iamRole) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe Text
a -> DescribeWorldExportJobResponse
s {$sel:iamRole:DescribeWorldExportJobResponse' :: Maybe Text
iamRole = Maybe Text
a} :: DescribeWorldExportJobResponse)
describeWorldExportJobResponse_worlds :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeWorldExportJobResponse_worlds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_worlds = (DescribeWorldExportJobResponse -> Maybe (NonEmpty Text))
-> (DescribeWorldExportJobResponse
-> Maybe (NonEmpty Text) -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe (NonEmpty Text)
worlds :: Maybe (NonEmpty Text)
$sel:worlds:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe (NonEmpty Text)
worlds} -> Maybe (NonEmpty Text)
worlds) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe (NonEmpty Text)
a -> DescribeWorldExportJobResponse
s {$sel:worlds:DescribeWorldExportJobResponse' :: Maybe (NonEmpty Text)
worlds = Maybe (NonEmpty Text)
a} :: DescribeWorldExportJobResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorldExportJobResponse_tags :: Lens.Lens' DescribeWorldExportJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeWorldExportJobResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_tags = (DescribeWorldExportJobResponse -> Maybe (HashMap Text Text))
-> (DescribeWorldExportJobResponse
-> Maybe (HashMap Text Text) -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeWorldExportJobResponse
s {$sel:tags:DescribeWorldExportJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeWorldExportJobResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorldExportJobResponse_httpStatus :: Lens.Lens' DescribeWorldExportJobResponse Prelude.Int
describeWorldExportJobResponse_httpStatus :: (Int -> f Int)
-> DescribeWorldExportJobResponse
-> f DescribeWorldExportJobResponse
describeWorldExportJobResponse_httpStatus = (DescribeWorldExportJobResponse -> Int)
-> (DescribeWorldExportJobResponse
-> Int -> DescribeWorldExportJobResponse)
-> Lens
DescribeWorldExportJobResponse
DescribeWorldExportJobResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldExportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorldExportJobResponse' :: DescribeWorldExportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorldExportJobResponse
s@DescribeWorldExportJobResponse' {} Int
a -> DescribeWorldExportJobResponse
s {$sel:httpStatus:DescribeWorldExportJobResponse' :: Int
httpStatus = Int
a} :: DescribeWorldExportJobResponse)
instance
Prelude.NFData
DescribeWorldExportJobResponse