{-# 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.DescribeDeploymentJob
-- 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 deployment job.
module Amazonka.RobOMaker.DescribeDeploymentJob
  ( -- * Creating a Request
    DescribeDeploymentJob (..),
    newDescribeDeploymentJob,

    -- * Request Lenses
    describeDeploymentJob_job,

    -- * Destructuring the Response
    DescribeDeploymentJobResponse (..),
    newDescribeDeploymentJobResponse,

    -- * Response Lenses
    describeDeploymentJobResponse_failureReason,
    describeDeploymentJobResponse_status,
    describeDeploymentJobResponse_deploymentApplicationConfigs,
    describeDeploymentJobResponse_arn,
    describeDeploymentJobResponse_createdAt,
    describeDeploymentJobResponse_failureCode,
    describeDeploymentJobResponse_deploymentConfig,
    describeDeploymentJobResponse_fleet,
    describeDeploymentJobResponse_robotDeploymentSummary,
    describeDeploymentJobResponse_tags,
    describeDeploymentJobResponse_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:/ 'newDescribeDeploymentJob' smart constructor.
data DescribeDeploymentJob = DescribeDeploymentJob'
  { -- | The Amazon Resource Name (ARN) of the deployment job.
    DescribeDeploymentJob -> Text
job :: Prelude.Text
  }
  deriving (DescribeDeploymentJob -> DescribeDeploymentJob -> Bool
(DescribeDeploymentJob -> DescribeDeploymentJob -> Bool)
-> (DescribeDeploymentJob -> DescribeDeploymentJob -> Bool)
-> Eq DescribeDeploymentJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeploymentJob -> DescribeDeploymentJob -> Bool
$c/= :: DescribeDeploymentJob -> DescribeDeploymentJob -> Bool
== :: DescribeDeploymentJob -> DescribeDeploymentJob -> Bool
$c== :: DescribeDeploymentJob -> DescribeDeploymentJob -> Bool
Prelude.Eq, ReadPrec [DescribeDeploymentJob]
ReadPrec DescribeDeploymentJob
Int -> ReadS DescribeDeploymentJob
ReadS [DescribeDeploymentJob]
(Int -> ReadS DescribeDeploymentJob)
-> ReadS [DescribeDeploymentJob]
-> ReadPrec DescribeDeploymentJob
-> ReadPrec [DescribeDeploymentJob]
-> Read DescribeDeploymentJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeploymentJob]
$creadListPrec :: ReadPrec [DescribeDeploymentJob]
readPrec :: ReadPrec DescribeDeploymentJob
$creadPrec :: ReadPrec DescribeDeploymentJob
readList :: ReadS [DescribeDeploymentJob]
$creadList :: ReadS [DescribeDeploymentJob]
readsPrec :: Int -> ReadS DescribeDeploymentJob
$creadsPrec :: Int -> ReadS DescribeDeploymentJob
Prelude.Read, Int -> DescribeDeploymentJob -> ShowS
[DescribeDeploymentJob] -> ShowS
DescribeDeploymentJob -> String
(Int -> DescribeDeploymentJob -> ShowS)
-> (DescribeDeploymentJob -> String)
-> ([DescribeDeploymentJob] -> ShowS)
-> Show DescribeDeploymentJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeploymentJob] -> ShowS
$cshowList :: [DescribeDeploymentJob] -> ShowS
show :: DescribeDeploymentJob -> String
$cshow :: DescribeDeploymentJob -> String
showsPrec :: Int -> DescribeDeploymentJob -> ShowS
$cshowsPrec :: Int -> DescribeDeploymentJob -> ShowS
Prelude.Show, (forall x. DescribeDeploymentJob -> Rep DescribeDeploymentJob x)
-> (forall x. Rep DescribeDeploymentJob x -> DescribeDeploymentJob)
-> Generic DescribeDeploymentJob
forall x. Rep DescribeDeploymentJob x -> DescribeDeploymentJob
forall x. DescribeDeploymentJob -> Rep DescribeDeploymentJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDeploymentJob x -> DescribeDeploymentJob
$cfrom :: forall x. DescribeDeploymentJob -> Rep DescribeDeploymentJob x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDeploymentJob' 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', 'describeDeploymentJob_job' - The Amazon Resource Name (ARN) of the deployment job.
newDescribeDeploymentJob ::
  -- | 'job'
  Prelude.Text ->
  DescribeDeploymentJob
newDescribeDeploymentJob :: Text -> DescribeDeploymentJob
newDescribeDeploymentJob Text
pJob_ =
  DescribeDeploymentJob' :: Text -> DescribeDeploymentJob
DescribeDeploymentJob' {$sel:job:DescribeDeploymentJob' :: Text
job = Text
pJob_}

-- | The Amazon Resource Name (ARN) of the deployment job.
describeDeploymentJob_job :: Lens.Lens' DescribeDeploymentJob Prelude.Text
describeDeploymentJob_job :: (Text -> f Text)
-> DescribeDeploymentJob -> f DescribeDeploymentJob
describeDeploymentJob_job = (DescribeDeploymentJob -> Text)
-> (DescribeDeploymentJob -> Text -> DescribeDeploymentJob)
-> Lens DescribeDeploymentJob DescribeDeploymentJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJob' {Text
job :: Text
$sel:job:DescribeDeploymentJob' :: DescribeDeploymentJob -> Text
job} -> Text
job) (\s :: DescribeDeploymentJob
s@DescribeDeploymentJob' {} Text
a -> DescribeDeploymentJob
s {$sel:job:DescribeDeploymentJob' :: Text
job = Text
a} :: DescribeDeploymentJob)

instance Core.AWSRequest DescribeDeploymentJob where
  type
    AWSResponse DescribeDeploymentJob =
      DescribeDeploymentJobResponse
  request :: DescribeDeploymentJob -> Request DescribeDeploymentJob
request = Service -> DescribeDeploymentJob -> Request DescribeDeploymentJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeDeploymentJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDeploymentJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeDeploymentJob))
-> Logger
-> Service
-> Proxy DescribeDeploymentJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDeploymentJob)))
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 DeploymentStatus
-> Maybe (NonEmpty DeploymentApplicationConfig)
-> Maybe Text
-> Maybe POSIX
-> Maybe DeploymentJobErrorCode
-> Maybe DeploymentConfig
-> Maybe Text
-> Maybe [RobotDeployment]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeDeploymentJobResponse
DescribeDeploymentJobResponse'
            (Maybe Text
 -> Maybe DeploymentStatus
 -> Maybe (NonEmpty DeploymentApplicationConfig)
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe DeploymentJobErrorCode
 -> Maybe DeploymentConfig
 -> Maybe Text
 -> Maybe [RobotDeployment]
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeDeploymentJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe DeploymentStatus
      -> Maybe (NonEmpty DeploymentApplicationConfig)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentJobErrorCode
      -> Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
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 DeploymentStatus
   -> Maybe (NonEmpty DeploymentApplicationConfig)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentJobErrorCode
   -> Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe DeploymentStatus)
-> Either
     String
     (Maybe (NonEmpty DeploymentApplicationConfig)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentJobErrorCode
      -> Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeploymentStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
            Either
  String
  (Maybe (NonEmpty DeploymentApplicationConfig)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentJobErrorCode
   -> Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe (NonEmpty DeploymentApplicationConfig))
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentJobErrorCode
      -> Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (NonEmpty DeploymentApplicationConfig))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"deploymentApplicationConfigs")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentJobErrorCode
   -> Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe DeploymentJobErrorCode
      -> Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
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 DeploymentJobErrorCode
   -> Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe DeploymentJobErrorCode
      -> Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
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 DeploymentJobErrorCode
   -> Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe DeploymentJobErrorCode)
-> Either
     String
     (Maybe DeploymentConfig
      -> Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeploymentJobErrorCode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failureCode")
            Either
  String
  (Maybe DeploymentConfig
   -> Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe DeploymentConfig)
-> Either
     String
     (Maybe Text
      -> Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeploymentConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"deploymentConfig")
            Either
  String
  (Maybe Text
   -> Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [RobotDeployment]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeDeploymentJobResponse)
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
"fleet")
            Either
  String
  (Maybe [RobotDeployment]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeDeploymentJobResponse)
-> Either String (Maybe [RobotDeployment])
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> DescribeDeploymentJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [RobotDeployment]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"robotDeploymentSummary"
                            Either String (Maybe (Maybe [RobotDeployment]))
-> Maybe [RobotDeployment]
-> Either String (Maybe [RobotDeployment])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RobotDeployment]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> DescribeDeploymentJobResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeDeploymentJobResponse)
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 -> DescribeDeploymentJobResponse)
-> Either String Int -> Either String DescribeDeploymentJobResponse
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 DescribeDeploymentJob

instance Prelude.NFData DescribeDeploymentJob

instance Core.ToHeaders DescribeDeploymentJob where
  toHeaders :: DescribeDeploymentJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeDeploymentJob -> 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 DescribeDeploymentJob where
  toJSON :: DescribeDeploymentJob -> Value
toJSON DescribeDeploymentJob' {Text
job :: Text
$sel:job:DescribeDeploymentJob' :: DescribeDeploymentJob -> 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 DescribeDeploymentJob where
  toPath :: DescribeDeploymentJob -> ByteString
toPath = ByteString -> DescribeDeploymentJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeDeploymentJob"

instance Core.ToQuery DescribeDeploymentJob where
  toQuery :: DescribeDeploymentJob -> QueryString
toQuery = QueryString -> DescribeDeploymentJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeDeploymentJobResponse' smart constructor.
data DescribeDeploymentJobResponse = DescribeDeploymentJobResponse'
  { -- | A short description of the reason why the deployment job failed.
    DescribeDeploymentJobResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The status of the deployment job.
    DescribeDeploymentJobResponse -> Maybe DeploymentStatus
status :: Prelude.Maybe DeploymentStatus,
    -- | The deployment application configuration.
    DescribeDeploymentJobResponse
-> Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs :: Prelude.Maybe (Prelude.NonEmpty DeploymentApplicationConfig),
    -- | The Amazon Resource Name (ARN) of the deployment job.
    DescribeDeploymentJobResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time, in milliseconds since the epoch, when the deployment job was
    -- created.
    DescribeDeploymentJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The deployment job failure code.
    DescribeDeploymentJobResponse -> Maybe DeploymentJobErrorCode
failureCode :: Prelude.Maybe DeploymentJobErrorCode,
    -- | The deployment configuration.
    DescribeDeploymentJobResponse -> Maybe DeploymentConfig
deploymentConfig :: Prelude.Maybe DeploymentConfig,
    -- | The Amazon Resource Name (ARN) of the fleet.
    DescribeDeploymentJobResponse -> Maybe Text
fleet :: Prelude.Maybe Prelude.Text,
    -- | A list of robot deployment summaries.
    DescribeDeploymentJobResponse -> Maybe [RobotDeployment]
robotDeploymentSummary :: Prelude.Maybe [RobotDeployment],
    -- | The list of all tags added to the specified deployment job.
    DescribeDeploymentJobResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeDeploymentJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeDeploymentJobResponse
-> DescribeDeploymentJobResponse -> Bool
(DescribeDeploymentJobResponse
 -> DescribeDeploymentJobResponse -> Bool)
-> (DescribeDeploymentJobResponse
    -> DescribeDeploymentJobResponse -> Bool)
-> Eq DescribeDeploymentJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeploymentJobResponse
-> DescribeDeploymentJobResponse -> Bool
$c/= :: DescribeDeploymentJobResponse
-> DescribeDeploymentJobResponse -> Bool
== :: DescribeDeploymentJobResponse
-> DescribeDeploymentJobResponse -> Bool
$c== :: DescribeDeploymentJobResponse
-> DescribeDeploymentJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDeploymentJobResponse]
ReadPrec DescribeDeploymentJobResponse
Int -> ReadS DescribeDeploymentJobResponse
ReadS [DescribeDeploymentJobResponse]
(Int -> ReadS DescribeDeploymentJobResponse)
-> ReadS [DescribeDeploymentJobResponse]
-> ReadPrec DescribeDeploymentJobResponse
-> ReadPrec [DescribeDeploymentJobResponse]
-> Read DescribeDeploymentJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeploymentJobResponse]
$creadListPrec :: ReadPrec [DescribeDeploymentJobResponse]
readPrec :: ReadPrec DescribeDeploymentJobResponse
$creadPrec :: ReadPrec DescribeDeploymentJobResponse
readList :: ReadS [DescribeDeploymentJobResponse]
$creadList :: ReadS [DescribeDeploymentJobResponse]
readsPrec :: Int -> ReadS DescribeDeploymentJobResponse
$creadsPrec :: Int -> ReadS DescribeDeploymentJobResponse
Prelude.Read, Int -> DescribeDeploymentJobResponse -> ShowS
[DescribeDeploymentJobResponse] -> ShowS
DescribeDeploymentJobResponse -> String
(Int -> DescribeDeploymentJobResponse -> ShowS)
-> (DescribeDeploymentJobResponse -> String)
-> ([DescribeDeploymentJobResponse] -> ShowS)
-> Show DescribeDeploymentJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeploymentJobResponse] -> ShowS
$cshowList :: [DescribeDeploymentJobResponse] -> ShowS
show :: DescribeDeploymentJobResponse -> String
$cshow :: DescribeDeploymentJobResponse -> String
showsPrec :: Int -> DescribeDeploymentJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeDeploymentJobResponse -> ShowS
Prelude.Show, (forall x.
 DescribeDeploymentJobResponse
 -> Rep DescribeDeploymentJobResponse x)
-> (forall x.
    Rep DescribeDeploymentJobResponse x
    -> DescribeDeploymentJobResponse)
-> Generic DescribeDeploymentJobResponse
forall x.
Rep DescribeDeploymentJobResponse x
-> DescribeDeploymentJobResponse
forall x.
DescribeDeploymentJobResponse
-> Rep DescribeDeploymentJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDeploymentJobResponse x
-> DescribeDeploymentJobResponse
$cfrom :: forall x.
DescribeDeploymentJobResponse
-> Rep DescribeDeploymentJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDeploymentJobResponse' 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', 'describeDeploymentJobResponse_failureReason' - A short description of the reason why the deployment job failed.
--
-- 'status', 'describeDeploymentJobResponse_status' - The status of the deployment job.
--
-- 'deploymentApplicationConfigs', 'describeDeploymentJobResponse_deploymentApplicationConfigs' - The deployment application configuration.
--
-- 'arn', 'describeDeploymentJobResponse_arn' - The Amazon Resource Name (ARN) of the deployment job.
--
-- 'createdAt', 'describeDeploymentJobResponse_createdAt' - The time, in milliseconds since the epoch, when the deployment job was
-- created.
--
-- 'failureCode', 'describeDeploymentJobResponse_failureCode' - The deployment job failure code.
--
-- 'deploymentConfig', 'describeDeploymentJobResponse_deploymentConfig' - The deployment configuration.
--
-- 'fleet', 'describeDeploymentJobResponse_fleet' - The Amazon Resource Name (ARN) of the fleet.
--
-- 'robotDeploymentSummary', 'describeDeploymentJobResponse_robotDeploymentSummary' - A list of robot deployment summaries.
--
-- 'tags', 'describeDeploymentJobResponse_tags' - The list of all tags added to the specified deployment job.
--
-- 'httpStatus', 'describeDeploymentJobResponse_httpStatus' - The response's http status code.
newDescribeDeploymentJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeDeploymentJobResponse
newDescribeDeploymentJobResponse :: Int -> DescribeDeploymentJobResponse
newDescribeDeploymentJobResponse Int
pHttpStatus_ =
  DescribeDeploymentJobResponse' :: Maybe Text
-> Maybe DeploymentStatus
-> Maybe (NonEmpty DeploymentApplicationConfig)
-> Maybe Text
-> Maybe POSIX
-> Maybe DeploymentJobErrorCode
-> Maybe DeploymentConfig
-> Maybe Text
-> Maybe [RobotDeployment]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeDeploymentJobResponse
DescribeDeploymentJobResponse'
    { $sel:failureReason:DescribeDeploymentJobResponse' :: Maybe Text
failureReason =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DescribeDeploymentJobResponse' :: Maybe DeploymentStatus
status = Maybe DeploymentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentApplicationConfigs:DescribeDeploymentJobResponse' :: Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs =
        Maybe (NonEmpty DeploymentApplicationConfig)
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeDeploymentJobResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:DescribeDeploymentJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:failureCode:DescribeDeploymentJobResponse' :: Maybe DeploymentJobErrorCode
failureCode = Maybe DeploymentJobErrorCode
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentConfig:DescribeDeploymentJobResponse' :: Maybe DeploymentConfig
deploymentConfig = Maybe DeploymentConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:fleet:DescribeDeploymentJobResponse' :: Maybe Text
fleet = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:robotDeploymentSummary:DescribeDeploymentJobResponse' :: Maybe [RobotDeployment]
robotDeploymentSummary = Maybe [RobotDeployment]
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeDeploymentJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeDeploymentJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A short description of the reason why the deployment job failed.
describeDeploymentJobResponse_failureReason :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe Prelude.Text)
describeDeploymentJobResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_failureReason = (DescribeDeploymentJobResponse -> Maybe Text)
-> (DescribeDeploymentJobResponse
    -> Maybe Text -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe Text
a -> DescribeDeploymentJobResponse
s {$sel:failureReason:DescribeDeploymentJobResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeDeploymentJobResponse)

-- | The status of the deployment job.
describeDeploymentJobResponse_status :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe DeploymentStatus)
describeDeploymentJobResponse_status :: (Maybe DeploymentStatus -> f (Maybe DeploymentStatus))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_status = (DescribeDeploymentJobResponse -> Maybe DeploymentStatus)
-> (DescribeDeploymentJobResponse
    -> Maybe DeploymentStatus -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe DeploymentStatus)
     (Maybe DeploymentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe DeploymentStatus
status :: Maybe DeploymentStatus
$sel:status:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe DeploymentStatus
status} -> Maybe DeploymentStatus
status) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe DeploymentStatus
a -> DescribeDeploymentJobResponse
s {$sel:status:DescribeDeploymentJobResponse' :: Maybe DeploymentStatus
status = Maybe DeploymentStatus
a} :: DescribeDeploymentJobResponse)

-- | The deployment application configuration.
describeDeploymentJobResponse_deploymentApplicationConfigs :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe (Prelude.NonEmpty DeploymentApplicationConfig))
describeDeploymentJobResponse_deploymentApplicationConfigs :: (Maybe (NonEmpty DeploymentApplicationConfig)
 -> f (Maybe (NonEmpty DeploymentApplicationConfig)))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_deploymentApplicationConfigs = (DescribeDeploymentJobResponse
 -> Maybe (NonEmpty DeploymentApplicationConfig))
-> (DescribeDeploymentJobResponse
    -> Maybe (NonEmpty DeploymentApplicationConfig)
    -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe (NonEmpty DeploymentApplicationConfig))
     (Maybe (NonEmpty DeploymentApplicationConfig))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs :: Maybe (NonEmpty DeploymentApplicationConfig)
$sel:deploymentApplicationConfigs:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse
-> Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs} -> Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe (NonEmpty DeploymentApplicationConfig)
a -> DescribeDeploymentJobResponse
s {$sel:deploymentApplicationConfigs:DescribeDeploymentJobResponse' :: Maybe (NonEmpty DeploymentApplicationConfig)
deploymentApplicationConfigs = Maybe (NonEmpty DeploymentApplicationConfig)
a} :: DescribeDeploymentJobResponse) ((Maybe (NonEmpty DeploymentApplicationConfig)
  -> f (Maybe (NonEmpty DeploymentApplicationConfig)))
 -> DescribeDeploymentJobResponse
 -> f DescribeDeploymentJobResponse)
-> ((Maybe (NonEmpty DeploymentApplicationConfig)
     -> f (Maybe (NonEmpty DeploymentApplicationConfig)))
    -> Maybe (NonEmpty DeploymentApplicationConfig)
    -> f (Maybe (NonEmpty DeploymentApplicationConfig)))
-> (Maybe (NonEmpty DeploymentApplicationConfig)
    -> f (Maybe (NonEmpty DeploymentApplicationConfig)))
-> DescribeDeploymentJobResponse
-> f DescribeDeploymentJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
-> Iso
     (Maybe (NonEmpty DeploymentApplicationConfig))
     (Maybe (NonEmpty DeploymentApplicationConfig))
     (Maybe (NonEmpty DeploymentApplicationConfig))
     (Maybe (NonEmpty DeploymentApplicationConfig))
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 DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
  (NonEmpty DeploymentApplicationConfig)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The Amazon Resource Name (ARN) of the deployment job.
describeDeploymentJobResponse_arn :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe Prelude.Text)
describeDeploymentJobResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_arn = (DescribeDeploymentJobResponse -> Maybe Text)
-> (DescribeDeploymentJobResponse
    -> Maybe Text -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe Text
a -> DescribeDeploymentJobResponse
s {$sel:arn:DescribeDeploymentJobResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeDeploymentJobResponse)

-- | The time, in milliseconds since the epoch, when the deployment job was
-- created.
describeDeploymentJobResponse_createdAt :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe Prelude.UTCTime)
describeDeploymentJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_createdAt = (DescribeDeploymentJobResponse -> Maybe POSIX)
-> (DescribeDeploymentJobResponse
    -> Maybe POSIX -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe POSIX
a -> DescribeDeploymentJobResponse
s {$sel:createdAt:DescribeDeploymentJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeDeploymentJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeDeploymentJobResponse
 -> f DescribeDeploymentJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDeploymentJobResponse
-> f DescribeDeploymentJobResponse
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 deployment job failure code.
describeDeploymentJobResponse_failureCode :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe DeploymentJobErrorCode)
describeDeploymentJobResponse_failureCode :: (Maybe DeploymentJobErrorCode -> f (Maybe DeploymentJobErrorCode))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_failureCode = (DescribeDeploymentJobResponse -> Maybe DeploymentJobErrorCode)
-> (DescribeDeploymentJobResponse
    -> Maybe DeploymentJobErrorCode -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe DeploymentJobErrorCode)
     (Maybe DeploymentJobErrorCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe DeploymentJobErrorCode
failureCode :: Maybe DeploymentJobErrorCode
$sel:failureCode:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe DeploymentJobErrorCode
failureCode} -> Maybe DeploymentJobErrorCode
failureCode) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe DeploymentJobErrorCode
a -> DescribeDeploymentJobResponse
s {$sel:failureCode:DescribeDeploymentJobResponse' :: Maybe DeploymentJobErrorCode
failureCode = Maybe DeploymentJobErrorCode
a} :: DescribeDeploymentJobResponse)

-- | The deployment configuration.
describeDeploymentJobResponse_deploymentConfig :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe DeploymentConfig)
describeDeploymentJobResponse_deploymentConfig :: (Maybe DeploymentConfig -> f (Maybe DeploymentConfig))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_deploymentConfig = (DescribeDeploymentJobResponse -> Maybe DeploymentConfig)
-> (DescribeDeploymentJobResponse
    -> Maybe DeploymentConfig -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe DeploymentConfig)
     (Maybe DeploymentConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe DeploymentConfig
deploymentConfig :: Maybe DeploymentConfig
$sel:deploymentConfig:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe DeploymentConfig
deploymentConfig} -> Maybe DeploymentConfig
deploymentConfig) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe DeploymentConfig
a -> DescribeDeploymentJobResponse
s {$sel:deploymentConfig:DescribeDeploymentJobResponse' :: Maybe DeploymentConfig
deploymentConfig = Maybe DeploymentConfig
a} :: DescribeDeploymentJobResponse)

-- | The Amazon Resource Name (ARN) of the fleet.
describeDeploymentJobResponse_fleet :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe Prelude.Text)
describeDeploymentJobResponse_fleet :: (Maybe Text -> f (Maybe Text))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_fleet = (DescribeDeploymentJobResponse -> Maybe Text)
-> (DescribeDeploymentJobResponse
    -> Maybe Text -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe Text
fleet :: Maybe Text
$sel:fleet:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe Text
fleet} -> Maybe Text
fleet) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe Text
a -> DescribeDeploymentJobResponse
s {$sel:fleet:DescribeDeploymentJobResponse' :: Maybe Text
fleet = Maybe Text
a} :: DescribeDeploymentJobResponse)

-- | A list of robot deployment summaries.
describeDeploymentJobResponse_robotDeploymentSummary :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe [RobotDeployment])
describeDeploymentJobResponse_robotDeploymentSummary :: (Maybe [RobotDeployment] -> f (Maybe [RobotDeployment]))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_robotDeploymentSummary = (DescribeDeploymentJobResponse -> Maybe [RobotDeployment])
-> (DescribeDeploymentJobResponse
    -> Maybe [RobotDeployment] -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (Maybe [RobotDeployment])
     (Maybe [RobotDeployment])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Maybe [RobotDeployment]
robotDeploymentSummary :: Maybe [RobotDeployment]
$sel:robotDeploymentSummary:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe [RobotDeployment]
robotDeploymentSummary} -> Maybe [RobotDeployment]
robotDeploymentSummary) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe [RobotDeployment]
a -> DescribeDeploymentJobResponse
s {$sel:robotDeploymentSummary:DescribeDeploymentJobResponse' :: Maybe [RobotDeployment]
robotDeploymentSummary = Maybe [RobotDeployment]
a} :: DescribeDeploymentJobResponse) ((Maybe [RobotDeployment] -> f (Maybe [RobotDeployment]))
 -> DescribeDeploymentJobResponse
 -> f DescribeDeploymentJobResponse)
-> ((Maybe [RobotDeployment] -> f (Maybe [RobotDeployment]))
    -> Maybe [RobotDeployment] -> f (Maybe [RobotDeployment]))
-> (Maybe [RobotDeployment] -> f (Maybe [RobotDeployment]))
-> DescribeDeploymentJobResponse
-> f DescribeDeploymentJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [RobotDeployment]
  [RobotDeployment]
  [RobotDeployment]
  [RobotDeployment]
-> Iso
     (Maybe [RobotDeployment])
     (Maybe [RobotDeployment])
     (Maybe [RobotDeployment])
     (Maybe [RobotDeployment])
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
  [RobotDeployment]
  [RobotDeployment]
  [RobotDeployment]
  [RobotDeployment]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The list of all tags added to the specified deployment job.
describeDeploymentJobResponse_tags :: Lens.Lens' DescribeDeploymentJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeDeploymentJobResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_tags = (DescribeDeploymentJobResponse -> Maybe (HashMap Text Text))
-> (DescribeDeploymentJobResponse
    -> Maybe (HashMap Text Text) -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse
     DescribeDeploymentJobResponse
     (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 (\DescribeDeploymentJobResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeDeploymentJobResponse
s {$sel:tags:DescribeDeploymentJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeDeploymentJobResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeDeploymentJobResponse
 -> f DescribeDeploymentJobResponse)
-> ((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)))
-> DescribeDeploymentJobResponse
-> f DescribeDeploymentJobResponse
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.
describeDeploymentJobResponse_httpStatus :: Lens.Lens' DescribeDeploymentJobResponse Prelude.Int
describeDeploymentJobResponse_httpStatus :: (Int -> f Int)
-> DescribeDeploymentJobResponse -> f DescribeDeploymentJobResponse
describeDeploymentJobResponse_httpStatus = (DescribeDeploymentJobResponse -> Int)
-> (DescribeDeploymentJobResponse
    -> Int -> DescribeDeploymentJobResponse)
-> Lens
     DescribeDeploymentJobResponse DescribeDeploymentJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeploymentJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDeploymentJobResponse' :: DescribeDeploymentJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDeploymentJobResponse
s@DescribeDeploymentJobResponse' {} Int
a -> DescribeDeploymentJobResponse
s {$sel:httpStatus:DescribeDeploymentJobResponse' :: Int
httpStatus = Int
a} :: DescribeDeploymentJobResponse)

instance Prelude.NFData DescribeDeploymentJobResponse