{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.RobOMaker.DescribeWorldExportJob
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes a world export job.
module Amazonka.RobOMaker.DescribeWorldExportJob
  ( -- * Creating a Request
    DescribeWorldExportJob (..),
    newDescribeWorldExportJob,

    -- * Request Lenses
    describeWorldExportJob_job,

    -- * Destructuring the Response
    DescribeWorldExportJobResponse (..),
    newDescribeWorldExportJobResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newDescribeWorldExportJob' smart constructor.
data DescribeWorldExportJob = DescribeWorldExportJob'
  { -- | The Amazon Resource Name (arn) of the world export job to describe.
    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)

-- |
-- Create a value of 'DescribeWorldExportJob' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'job', 'describeWorldExportJob_job' - The Amazon Resource Name (arn) of the world export job to describe.
newDescribeWorldExportJob ::
  -- | 'job'
  Prelude.Text ->
  DescribeWorldExportJob
newDescribeWorldExportJob :: Text -> DescribeWorldExportJob
newDescribeWorldExportJob Text
pJob_ =
  DescribeWorldExportJob' :: Text -> DescribeWorldExportJob
DescribeWorldExportJob' {$sel:job:DescribeWorldExportJob' :: Text
job = Text
pJob_}

-- | The Amazon Resource Name (arn) of the world export job to describe.
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

-- | /See:/ 'newDescribeWorldExportJobResponse' smart constructor.
data DescribeWorldExportJobResponse = DescribeWorldExportJobResponse'
  { -- | The reason why the world export job failed.
    DescribeWorldExportJobResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The status of the world export job.
    --
    -- [Pending]
    --     The world export job request is pending.
    --
    -- [Running]
    --     The world export job is running.
    --
    -- [Completed]
    --     The world export job completed.
    --
    -- [Failed]
    --     The world export job failed. See @failureCode@ and @failureReason@
    --     for more information.
    --
    -- [Canceled]
    --     The world export job was cancelled.
    --
    -- [Canceling]
    --     The world export job is being cancelled.
    DescribeWorldExportJobResponse -> Maybe WorldExportJobStatus
status :: Prelude.Maybe WorldExportJobStatus,
    -- | The Amazon Resource Name (ARN) of the world export job.
    DescribeWorldExportJobResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time, in milliseconds since the epoch, when the world export job was
    -- created.
    DescribeWorldExportJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The failure code of the world export job if it failed:
    --
    -- [InternalServiceError]
    --     Internal service error.
    --
    -- [LimitExceeded]
    --     The requested resource exceeds the maximum number allowed, or the
    --     number of concurrent stream requests exceeds the maximum number
    --     allowed.
    --
    -- [ResourceNotFound]
    --     The specified resource could not be found.
    --
    -- [RequestThrottled]
    --     The request was throttled.
    --
    -- [InvalidInput]
    --     An input parameter in the request is not valid.
    DescribeWorldExportJobResponse -> Maybe WorldExportJobErrorCode
failureCode :: Prelude.Maybe WorldExportJobErrorCode,
    DescribeWorldExportJobResponse -> Maybe OutputLocation
outputLocation :: Prelude.Maybe OutputLocation,
    -- | Unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the request.
    DescribeWorldExportJobResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The IAM role that the world export process uses to access the Amazon S3
    -- bucket and put the export.
    DescribeWorldExportJobResponse -> Maybe Text
iamRole :: Prelude.Maybe Prelude.Text,
    -- | A list of Amazon Resource Names (arns) that correspond to worlds to be
    -- exported.
    DescribeWorldExportJobResponse -> Maybe (NonEmpty Text)
worlds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | A map that contains tag keys and tag values that are attached to the
    -- world export job.
    DescribeWorldExportJobResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'DescribeWorldExportJobResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'failureReason', 'describeWorldExportJobResponse_failureReason' - The reason why the world export job failed.
--
-- 'status', 'describeWorldExportJobResponse_status' - The status of the world export job.
--
-- [Pending]
--     The world export job request is pending.
--
-- [Running]
--     The world export job is running.
--
-- [Completed]
--     The world export job completed.
--
-- [Failed]
--     The world export job failed. See @failureCode@ and @failureReason@
--     for more information.
--
-- [Canceled]
--     The world export job was cancelled.
--
-- [Canceling]
--     The world export job is being cancelled.
--
-- 'arn', 'describeWorldExportJobResponse_arn' - The Amazon Resource Name (ARN) of the world export job.
--
-- 'createdAt', 'describeWorldExportJobResponse_createdAt' - The time, in milliseconds since the epoch, when the world export job was
-- created.
--
-- 'failureCode', 'describeWorldExportJobResponse_failureCode' - The failure code of the world export job if it failed:
--
-- [InternalServiceError]
--     Internal service error.
--
-- [LimitExceeded]
--     The requested resource exceeds the maximum number allowed, or the
--     number of concurrent stream requests exceeds the maximum number
--     allowed.
--
-- [ResourceNotFound]
--     The specified resource could not be found.
--
-- [RequestThrottled]
--     The request was throttled.
--
-- [InvalidInput]
--     An input parameter in the request is not valid.
--
-- 'outputLocation', 'describeWorldExportJobResponse_outputLocation' - Undocumented member.
--
-- 'clientRequestToken', 'describeWorldExportJobResponse_clientRequestToken' - Unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
--
-- 'iamRole', 'describeWorldExportJobResponse_iamRole' - The IAM role that the world export process uses to access the Amazon S3
-- bucket and put the export.
--
-- 'worlds', 'describeWorldExportJobResponse_worlds' - A list of Amazon Resource Names (arns) that correspond to worlds to be
-- exported.
--
-- 'tags', 'describeWorldExportJobResponse_tags' - A map that contains tag keys and tag values that are attached to the
-- world export job.
--
-- 'httpStatus', 'describeWorldExportJobResponse_httpStatus' - The response's http status code.
newDescribeWorldExportJobResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The reason why the world export job failed.
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)

-- | The status of the world export job.
--
-- [Pending]
--     The world export job request is pending.
--
-- [Running]
--     The world export job is running.
--
-- [Completed]
--     The world export job completed.
--
-- [Failed]
--     The world export job failed. See @failureCode@ and @failureReason@
--     for more information.
--
-- [Canceled]
--     The world export job was cancelled.
--
-- [Canceling]
--     The world export job is being cancelled.
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)

-- | The Amazon Resource Name (ARN) of the world export job.
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)

-- | The time, in milliseconds since the epoch, when the world export job was
-- created.
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

-- | The failure code of the world export job if it failed:
--
-- [InternalServiceError]
--     Internal service error.
--
-- [LimitExceeded]
--     The requested resource exceeds the maximum number allowed, or the
--     number of concurrent stream requests exceeds the maximum number
--     allowed.
--
-- [ResourceNotFound]
--     The specified resource could not be found.
--
-- [RequestThrottled]
--     The request was throttled.
--
-- [InvalidInput]
--     An input parameter in the request is not valid.
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)

-- | Undocumented member.
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)

-- | Unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request.
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)

-- | The IAM role that the world export process uses to access the Amazon S3
-- bucket and put the export.
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)

-- | A list of Amazon Resource Names (arns) that correspond to worlds to be
-- exported.
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

-- | A map that contains tag keys and tag values that are attached to the
-- world export job.
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

-- | The response's http status code.
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