{-# 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.Signer.DescribeSigningJob
-- 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)
--
-- Returns information about a specific code signing job. You specify the
-- job by using the @jobId@ value that is returned by the StartSigningJob
-- operation.
module Amazonka.Signer.DescribeSigningJob
  ( -- * Creating a Request
    DescribeSigningJob (..),
    newDescribeSigningJob,

    -- * Request Lenses
    describeSigningJob_jobId,

    -- * Destructuring the Response
    DescribeSigningJobResponse (..),
    newDescribeSigningJobResponse,

    -- * Response Lenses
    describeSigningJobResponse_status,
    describeSigningJobResponse_overrides,
    describeSigningJobResponse_platformDisplayName,
    describeSigningJobResponse_jobId,
    describeSigningJobResponse_createdAt,
    describeSigningJobResponse_signingMaterial,
    describeSigningJobResponse_requestedBy,
    describeSigningJobResponse_signatureExpiresAt,
    describeSigningJobResponse_profileVersion,
    describeSigningJobResponse_profileName,
    describeSigningJobResponse_signedObject,
    describeSigningJobResponse_platformId,
    describeSigningJobResponse_source,
    describeSigningJobResponse_revocationRecord,
    describeSigningJobResponse_jobInvoker,
    describeSigningJobResponse_completedAt,
    describeSigningJobResponse_statusReason,
    describeSigningJobResponse_jobOwner,
    describeSigningJobResponse_signingParameters,
    describeSigningJobResponse_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.Signer.Types

-- | /See:/ 'newDescribeSigningJob' smart constructor.
data DescribeSigningJob = DescribeSigningJob'
  { -- | The ID of the signing job on input.
    DescribeSigningJob -> Text
jobId :: Prelude.Text
  }
  deriving (DescribeSigningJob -> DescribeSigningJob -> Bool
(DescribeSigningJob -> DescribeSigningJob -> Bool)
-> (DescribeSigningJob -> DescribeSigningJob -> Bool)
-> Eq DescribeSigningJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSigningJob -> DescribeSigningJob -> Bool
$c/= :: DescribeSigningJob -> DescribeSigningJob -> Bool
== :: DescribeSigningJob -> DescribeSigningJob -> Bool
$c== :: DescribeSigningJob -> DescribeSigningJob -> Bool
Prelude.Eq, ReadPrec [DescribeSigningJob]
ReadPrec DescribeSigningJob
Int -> ReadS DescribeSigningJob
ReadS [DescribeSigningJob]
(Int -> ReadS DescribeSigningJob)
-> ReadS [DescribeSigningJob]
-> ReadPrec DescribeSigningJob
-> ReadPrec [DescribeSigningJob]
-> Read DescribeSigningJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSigningJob]
$creadListPrec :: ReadPrec [DescribeSigningJob]
readPrec :: ReadPrec DescribeSigningJob
$creadPrec :: ReadPrec DescribeSigningJob
readList :: ReadS [DescribeSigningJob]
$creadList :: ReadS [DescribeSigningJob]
readsPrec :: Int -> ReadS DescribeSigningJob
$creadsPrec :: Int -> ReadS DescribeSigningJob
Prelude.Read, Int -> DescribeSigningJob -> ShowS
[DescribeSigningJob] -> ShowS
DescribeSigningJob -> String
(Int -> DescribeSigningJob -> ShowS)
-> (DescribeSigningJob -> String)
-> ([DescribeSigningJob] -> ShowS)
-> Show DescribeSigningJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSigningJob] -> ShowS
$cshowList :: [DescribeSigningJob] -> ShowS
show :: DescribeSigningJob -> String
$cshow :: DescribeSigningJob -> String
showsPrec :: Int -> DescribeSigningJob -> ShowS
$cshowsPrec :: Int -> DescribeSigningJob -> ShowS
Prelude.Show, (forall x. DescribeSigningJob -> Rep DescribeSigningJob x)
-> (forall x. Rep DescribeSigningJob x -> DescribeSigningJob)
-> Generic DescribeSigningJob
forall x. Rep DescribeSigningJob x -> DescribeSigningJob
forall x. DescribeSigningJob -> Rep DescribeSigningJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSigningJob x -> DescribeSigningJob
$cfrom :: forall x. DescribeSigningJob -> Rep DescribeSigningJob x
Prelude.Generic)

-- |
-- Create a value of 'DescribeSigningJob' 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:
--
-- 'jobId', 'describeSigningJob_jobId' - The ID of the signing job on input.
newDescribeSigningJob ::
  -- | 'jobId'
  Prelude.Text ->
  DescribeSigningJob
newDescribeSigningJob :: Text -> DescribeSigningJob
newDescribeSigningJob Text
pJobId_ =
  DescribeSigningJob' :: Text -> DescribeSigningJob
DescribeSigningJob' {$sel:jobId:DescribeSigningJob' :: Text
jobId = Text
pJobId_}

-- | The ID of the signing job on input.
describeSigningJob_jobId :: Lens.Lens' DescribeSigningJob Prelude.Text
describeSigningJob_jobId :: (Text -> f Text) -> DescribeSigningJob -> f DescribeSigningJob
describeSigningJob_jobId = (DescribeSigningJob -> Text)
-> (DescribeSigningJob -> Text -> DescribeSigningJob)
-> Lens DescribeSigningJob DescribeSigningJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJob' {Text
jobId :: Text
$sel:jobId:DescribeSigningJob' :: DescribeSigningJob -> Text
jobId} -> Text
jobId) (\s :: DescribeSigningJob
s@DescribeSigningJob' {} Text
a -> DescribeSigningJob
s {$sel:jobId:DescribeSigningJob' :: Text
jobId = Text
a} :: DescribeSigningJob)

instance Core.AWSRequest DescribeSigningJob where
  type
    AWSResponse DescribeSigningJob =
      DescribeSigningJobResponse
  request :: DescribeSigningJob -> Request DescribeSigningJob
request = Service -> DescribeSigningJob -> Request DescribeSigningJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeSigningJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeSigningJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeSigningJob))
-> Logger
-> Service
-> Proxy DescribeSigningJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeSigningJob)))
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 SigningStatus
-> Maybe SigningPlatformOverrides
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe SigningMaterial
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe SignedObject
-> Maybe Text
-> Maybe Source
-> Maybe SigningJobRevocationRecord
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSigningJobResponse
DescribeSigningJobResponse'
            (Maybe SigningStatus
 -> Maybe SigningPlatformOverrides
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe SigningMaterial
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe SignedObject
 -> Maybe Text
 -> Maybe Source
 -> Maybe SigningJobRevocationRecord
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeSigningJobResponse)
-> Either String (Maybe SigningStatus)
-> Either
     String
     (Maybe SigningPlatformOverrides
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe SigningMaterial
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe SigningStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
            Either
  String
  (Maybe SigningPlatformOverrides
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe SigningMaterial
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe SigningPlatformOverrides)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe SigningMaterial
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SigningPlatformOverrides)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"overrides")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe SigningMaterial
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe SigningMaterial
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"platformDisplayName")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe SigningMaterial
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe SigningMaterial
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"jobId")
            Either
  String
  (Maybe POSIX
   -> Maybe SigningMaterial
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe SigningMaterial
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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 SigningMaterial
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe SigningMaterial)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SigningMaterial)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"signingMaterial")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"requestedBy")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"signatureExpiresAt")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"profileVersion")
            Either
  String
  (Maybe Text
   -> Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe SignedObject
      -> Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"profileName")
            Either
  String
  (Maybe SignedObject
   -> Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe SignedObject)
-> Either
     String
     (Maybe Text
      -> Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SignedObject)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"signedObject")
            Either
  String
  (Maybe Text
   -> Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Source
      -> Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"platformId")
            Either
  String
  (Maybe Source
   -> Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Source)
-> Either
     String
     (Maybe SigningJobRevocationRecord
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Source)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"source")
            Either
  String
  (Maybe SigningJobRevocationRecord
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe SigningJobRevocationRecord)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SigningJobRevocationRecord)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"revocationRecord")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"jobInvoker")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeSigningJobResponse)
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
"completedAt")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> DescribeSigningJobResponse)
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
"statusReason")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> DescribeSigningJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> DescribeSigningJobResponse)
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
"jobOwner")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> DescribeSigningJobResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeSigningJobResponse)
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
"signingParameters"
                            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 -> DescribeSigningJobResponse)
-> Either String Int -> Either String DescribeSigningJobResponse
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 DescribeSigningJob

instance Prelude.NFData DescribeSigningJob

instance Core.ToHeaders DescribeSigningJob where
  toHeaders :: DescribeSigningJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeSigningJob -> 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.ToPath DescribeSigningJob where
  toPath :: DescribeSigningJob -> ByteString
toPath DescribeSigningJob' {Text
jobId :: Text
$sel:jobId:DescribeSigningJob' :: DescribeSigningJob -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/signing-jobs/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId]

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

-- | /See:/ 'newDescribeSigningJobResponse' smart constructor.
data DescribeSigningJobResponse = DescribeSigningJobResponse'
  { -- | Status of the signing job.
    DescribeSigningJobResponse -> Maybe SigningStatus
status :: Prelude.Maybe SigningStatus,
    -- | A list of any overrides that were applied to the signing operation.
    DescribeSigningJobResponse -> Maybe SigningPlatformOverrides
overrides :: Prelude.Maybe SigningPlatformOverrides,
    -- | A human-readable name for the signing platform associated with the
    -- signing job.
    DescribeSigningJobResponse -> Maybe Text
platformDisplayName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the signing job on output.
    DescribeSigningJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | Date and time that the signing job was created.
    DescribeSigningJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of your code signing certificate.
    DescribeSigningJobResponse -> Maybe SigningMaterial
signingMaterial :: Prelude.Maybe SigningMaterial,
    -- | The IAM principal that requested the signing job.
    DescribeSigningJobResponse -> Maybe Text
requestedBy :: Prelude.Maybe Prelude.Text,
    -- | Thr expiration timestamp for the signature generated by the signing job.
    DescribeSigningJobResponse -> Maybe POSIX
signatureExpiresAt :: Prelude.Maybe Core.POSIX,
    -- | The version of the signing profile used to initiate the signing job.
    DescribeSigningJobResponse -> Maybe Text
profileVersion :: Prelude.Maybe Prelude.Text,
    -- | The name of the profile that initiated the signing operation.
    DescribeSigningJobResponse -> Maybe Text
profileName :: Prelude.Maybe Prelude.Text,
    -- | Name of the S3 bucket where the signed code image is saved by code
    -- signing.
    DescribeSigningJobResponse -> Maybe SignedObject
signedObject :: Prelude.Maybe SignedObject,
    -- | The microcontroller platform to which your signed code image will be
    -- distributed.
    DescribeSigningJobResponse -> Maybe Text
platformId :: Prelude.Maybe Prelude.Text,
    -- | The object that contains the name of your S3 bucket or your raw code.
    DescribeSigningJobResponse -> Maybe Source
source :: Prelude.Maybe Source,
    -- | A revocation record if the signature generated by the signing job has
    -- been revoked. Contains a timestamp and the ID of the IAM entity that
    -- revoked the signature.
    DescribeSigningJobResponse -> Maybe SigningJobRevocationRecord
revocationRecord :: Prelude.Maybe SigningJobRevocationRecord,
    -- | The IAM entity that initiated the signing job.
    DescribeSigningJobResponse -> Maybe Text
jobInvoker :: Prelude.Maybe Prelude.Text,
    -- | Date and time that the signing job was completed.
    DescribeSigningJobResponse -> Maybe POSIX
completedAt :: Prelude.Maybe Core.POSIX,
    -- | String value that contains the status reason.
    DescribeSigningJobResponse -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text,
    -- | The AWS account ID of the job owner.
    DescribeSigningJobResponse -> Maybe Text
jobOwner :: Prelude.Maybe Prelude.Text,
    -- | Map of user-assigned key-value pairs used during signing. These values
    -- contain any information that you specified for use in your signing job.
    DescribeSigningJobResponse -> Maybe (HashMap Text Text)
signingParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeSigningJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool
(DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool)
-> (DescribeSigningJobResponse
    -> DescribeSigningJobResponse -> Bool)
-> Eq DescribeSigningJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool
$c/= :: DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool
== :: DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool
$c== :: DescribeSigningJobResponse -> DescribeSigningJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSigningJobResponse]
ReadPrec DescribeSigningJobResponse
Int -> ReadS DescribeSigningJobResponse
ReadS [DescribeSigningJobResponse]
(Int -> ReadS DescribeSigningJobResponse)
-> ReadS [DescribeSigningJobResponse]
-> ReadPrec DescribeSigningJobResponse
-> ReadPrec [DescribeSigningJobResponse]
-> Read DescribeSigningJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSigningJobResponse]
$creadListPrec :: ReadPrec [DescribeSigningJobResponse]
readPrec :: ReadPrec DescribeSigningJobResponse
$creadPrec :: ReadPrec DescribeSigningJobResponse
readList :: ReadS [DescribeSigningJobResponse]
$creadList :: ReadS [DescribeSigningJobResponse]
readsPrec :: Int -> ReadS DescribeSigningJobResponse
$creadsPrec :: Int -> ReadS DescribeSigningJobResponse
Prelude.Read, Int -> DescribeSigningJobResponse -> ShowS
[DescribeSigningJobResponse] -> ShowS
DescribeSigningJobResponse -> String
(Int -> DescribeSigningJobResponse -> ShowS)
-> (DescribeSigningJobResponse -> String)
-> ([DescribeSigningJobResponse] -> ShowS)
-> Show DescribeSigningJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSigningJobResponse] -> ShowS
$cshowList :: [DescribeSigningJobResponse] -> ShowS
show :: DescribeSigningJobResponse -> String
$cshow :: DescribeSigningJobResponse -> String
showsPrec :: Int -> DescribeSigningJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeSigningJobResponse -> ShowS
Prelude.Show, (forall x.
 DescribeSigningJobResponse -> Rep DescribeSigningJobResponse x)
-> (forall x.
    Rep DescribeSigningJobResponse x -> DescribeSigningJobResponse)
-> Generic DescribeSigningJobResponse
forall x.
Rep DescribeSigningJobResponse x -> DescribeSigningJobResponse
forall x.
DescribeSigningJobResponse -> Rep DescribeSigningJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeSigningJobResponse x -> DescribeSigningJobResponse
$cfrom :: forall x.
DescribeSigningJobResponse -> Rep DescribeSigningJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeSigningJobResponse' 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:
--
-- 'status', 'describeSigningJobResponse_status' - Status of the signing job.
--
-- 'overrides', 'describeSigningJobResponse_overrides' - A list of any overrides that were applied to the signing operation.
--
-- 'platformDisplayName', 'describeSigningJobResponse_platformDisplayName' - A human-readable name for the signing platform associated with the
-- signing job.
--
-- 'jobId', 'describeSigningJobResponse_jobId' - The ID of the signing job on output.
--
-- 'createdAt', 'describeSigningJobResponse_createdAt' - Date and time that the signing job was created.
--
-- 'signingMaterial', 'describeSigningJobResponse_signingMaterial' - The Amazon Resource Name (ARN) of your code signing certificate.
--
-- 'requestedBy', 'describeSigningJobResponse_requestedBy' - The IAM principal that requested the signing job.
--
-- 'signatureExpiresAt', 'describeSigningJobResponse_signatureExpiresAt' - Thr expiration timestamp for the signature generated by the signing job.
--
-- 'profileVersion', 'describeSigningJobResponse_profileVersion' - The version of the signing profile used to initiate the signing job.
--
-- 'profileName', 'describeSigningJobResponse_profileName' - The name of the profile that initiated the signing operation.
--
-- 'signedObject', 'describeSigningJobResponse_signedObject' - Name of the S3 bucket where the signed code image is saved by code
-- signing.
--
-- 'platformId', 'describeSigningJobResponse_platformId' - The microcontroller platform to which your signed code image will be
-- distributed.
--
-- 'source', 'describeSigningJobResponse_source' - The object that contains the name of your S3 bucket or your raw code.
--
-- 'revocationRecord', 'describeSigningJobResponse_revocationRecord' - A revocation record if the signature generated by the signing job has
-- been revoked. Contains a timestamp and the ID of the IAM entity that
-- revoked the signature.
--
-- 'jobInvoker', 'describeSigningJobResponse_jobInvoker' - The IAM entity that initiated the signing job.
--
-- 'completedAt', 'describeSigningJobResponse_completedAt' - Date and time that the signing job was completed.
--
-- 'statusReason', 'describeSigningJobResponse_statusReason' - String value that contains the status reason.
--
-- 'jobOwner', 'describeSigningJobResponse_jobOwner' - The AWS account ID of the job owner.
--
-- 'signingParameters', 'describeSigningJobResponse_signingParameters' - Map of user-assigned key-value pairs used during signing. These values
-- contain any information that you specified for use in your signing job.
--
-- 'httpStatus', 'describeSigningJobResponse_httpStatus' - The response's http status code.
newDescribeSigningJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeSigningJobResponse
newDescribeSigningJobResponse :: Int -> DescribeSigningJobResponse
newDescribeSigningJobResponse Int
pHttpStatus_ =
  DescribeSigningJobResponse' :: Maybe SigningStatus
-> Maybe SigningPlatformOverrides
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe SigningMaterial
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe SignedObject
-> Maybe Text
-> Maybe Source
-> Maybe SigningJobRevocationRecord
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSigningJobResponse
DescribeSigningJobResponse'
    { $sel:status:DescribeSigningJobResponse' :: Maybe SigningStatus
status =
        Maybe SigningStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:overrides:DescribeSigningJobResponse' :: Maybe SigningPlatformOverrides
overrides = Maybe SigningPlatformOverrides
forall a. Maybe a
Prelude.Nothing,
      $sel:platformDisplayName:DescribeSigningJobResponse' :: Maybe Text
platformDisplayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:DescribeSigningJobResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:DescribeSigningJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:signingMaterial:DescribeSigningJobResponse' :: Maybe SigningMaterial
signingMaterial = Maybe SigningMaterial
forall a. Maybe a
Prelude.Nothing,
      $sel:requestedBy:DescribeSigningJobResponse' :: Maybe Text
requestedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:signatureExpiresAt:DescribeSigningJobResponse' :: Maybe POSIX
signatureExpiresAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:profileVersion:DescribeSigningJobResponse' :: Maybe Text
profileVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:profileName:DescribeSigningJobResponse' :: Maybe Text
profileName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:signedObject:DescribeSigningJobResponse' :: Maybe SignedObject
signedObject = Maybe SignedObject
forall a. Maybe a
Prelude.Nothing,
      $sel:platformId:DescribeSigningJobResponse' :: Maybe Text
platformId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:source:DescribeSigningJobResponse' :: Maybe Source
source = Maybe Source
forall a. Maybe a
Prelude.Nothing,
      $sel:revocationRecord:DescribeSigningJobResponse' :: Maybe SigningJobRevocationRecord
revocationRecord = Maybe SigningJobRevocationRecord
forall a. Maybe a
Prelude.Nothing,
      $sel:jobInvoker:DescribeSigningJobResponse' :: Maybe Text
jobInvoker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:completedAt:DescribeSigningJobResponse' :: Maybe POSIX
completedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:statusReason:DescribeSigningJobResponse' :: Maybe Text
statusReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobOwner:DescribeSigningJobResponse' :: Maybe Text
jobOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:signingParameters:DescribeSigningJobResponse' :: Maybe (HashMap Text Text)
signingParameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeSigningJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Status of the signing job.
describeSigningJobResponse_status :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe SigningStatus)
describeSigningJobResponse_status :: (Maybe SigningStatus -> f (Maybe SigningStatus))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_status = (DescribeSigningJobResponse -> Maybe SigningStatus)
-> (DescribeSigningJobResponse
    -> Maybe SigningStatus -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe SigningStatus)
     (Maybe SigningStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe SigningStatus
status :: Maybe SigningStatus
$sel:status:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe SigningStatus
status} -> Maybe SigningStatus
status) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe SigningStatus
a -> DescribeSigningJobResponse
s {$sel:status:DescribeSigningJobResponse' :: Maybe SigningStatus
status = Maybe SigningStatus
a} :: DescribeSigningJobResponse)

-- | A list of any overrides that were applied to the signing operation.
describeSigningJobResponse_overrides :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe SigningPlatformOverrides)
describeSigningJobResponse_overrides :: (Maybe SigningPlatformOverrides
 -> f (Maybe SigningPlatformOverrides))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_overrides = (DescribeSigningJobResponse -> Maybe SigningPlatformOverrides)
-> (DescribeSigningJobResponse
    -> Maybe SigningPlatformOverrides -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe SigningPlatformOverrides)
     (Maybe SigningPlatformOverrides)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe SigningPlatformOverrides
overrides :: Maybe SigningPlatformOverrides
$sel:overrides:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe SigningPlatformOverrides
overrides} -> Maybe SigningPlatformOverrides
overrides) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe SigningPlatformOverrides
a -> DescribeSigningJobResponse
s {$sel:overrides:DescribeSigningJobResponse' :: Maybe SigningPlatformOverrides
overrides = Maybe SigningPlatformOverrides
a} :: DescribeSigningJobResponse)

-- | A human-readable name for the signing platform associated with the
-- signing job.
describeSigningJobResponse_platformDisplayName :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_platformDisplayName :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_platformDisplayName = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
platformDisplayName :: Maybe Text
$sel:platformDisplayName:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
platformDisplayName} -> Maybe Text
platformDisplayName) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:platformDisplayName:DescribeSigningJobResponse' :: Maybe Text
platformDisplayName = Maybe Text
a} :: DescribeSigningJobResponse)

-- | The ID of the signing job on output.
describeSigningJobResponse_jobId :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_jobId = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:jobId:DescribeSigningJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: DescribeSigningJobResponse)

-- | Date and time that the signing job was created.
describeSigningJobResponse_createdAt :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.UTCTime)
describeSigningJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_createdAt = (DescribeSigningJobResponse -> Maybe POSIX)
-> (DescribeSigningJobResponse
    -> Maybe POSIX -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe POSIX
a -> DescribeSigningJobResponse
s {$sel:createdAt:DescribeSigningJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeSigningJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeSigningJobResponse -> f DescribeSigningJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse
-> f DescribeSigningJobResponse
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 Amazon Resource Name (ARN) of your code signing certificate.
describeSigningJobResponse_signingMaterial :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe SigningMaterial)
describeSigningJobResponse_signingMaterial :: (Maybe SigningMaterial -> f (Maybe SigningMaterial))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_signingMaterial = (DescribeSigningJobResponse -> Maybe SigningMaterial)
-> (DescribeSigningJobResponse
    -> Maybe SigningMaterial -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe SigningMaterial)
     (Maybe SigningMaterial)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe SigningMaterial
signingMaterial :: Maybe SigningMaterial
$sel:signingMaterial:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe SigningMaterial
signingMaterial} -> Maybe SigningMaterial
signingMaterial) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe SigningMaterial
a -> DescribeSigningJobResponse
s {$sel:signingMaterial:DescribeSigningJobResponse' :: Maybe SigningMaterial
signingMaterial = Maybe SigningMaterial
a} :: DescribeSigningJobResponse)

-- | The IAM principal that requested the signing job.
describeSigningJobResponse_requestedBy :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_requestedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_requestedBy = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
requestedBy :: Maybe Text
$sel:requestedBy:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
requestedBy} -> Maybe Text
requestedBy) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:requestedBy:DescribeSigningJobResponse' :: Maybe Text
requestedBy = Maybe Text
a} :: DescribeSigningJobResponse)

-- | Thr expiration timestamp for the signature generated by the signing job.
describeSigningJobResponse_signatureExpiresAt :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.UTCTime)
describeSigningJobResponse_signatureExpiresAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_signatureExpiresAt = (DescribeSigningJobResponse -> Maybe POSIX)
-> (DescribeSigningJobResponse
    -> Maybe POSIX -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe POSIX
signatureExpiresAt :: Maybe POSIX
$sel:signatureExpiresAt:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe POSIX
signatureExpiresAt} -> Maybe POSIX
signatureExpiresAt) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe POSIX
a -> DescribeSigningJobResponse
s {$sel:signatureExpiresAt:DescribeSigningJobResponse' :: Maybe POSIX
signatureExpiresAt = Maybe POSIX
a} :: DescribeSigningJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeSigningJobResponse -> f DescribeSigningJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse
-> f DescribeSigningJobResponse
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 version of the signing profile used to initiate the signing job.
describeSigningJobResponse_profileVersion :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_profileVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_profileVersion = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
profileVersion :: Maybe Text
$sel:profileVersion:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
profileVersion} -> Maybe Text
profileVersion) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:profileVersion:DescribeSigningJobResponse' :: Maybe Text
profileVersion = Maybe Text
a} :: DescribeSigningJobResponse)

-- | The name of the profile that initiated the signing operation.
describeSigningJobResponse_profileName :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_profileName :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_profileName = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
profileName :: Maybe Text
$sel:profileName:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
profileName} -> Maybe Text
profileName) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:profileName:DescribeSigningJobResponse' :: Maybe Text
profileName = Maybe Text
a} :: DescribeSigningJobResponse)

-- | Name of the S3 bucket where the signed code image is saved by code
-- signing.
describeSigningJobResponse_signedObject :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe SignedObject)
describeSigningJobResponse_signedObject :: (Maybe SignedObject -> f (Maybe SignedObject))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_signedObject = (DescribeSigningJobResponse -> Maybe SignedObject)
-> (DescribeSigningJobResponse
    -> Maybe SignedObject -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe SignedObject)
     (Maybe SignedObject)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe SignedObject
signedObject :: Maybe SignedObject
$sel:signedObject:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe SignedObject
signedObject} -> Maybe SignedObject
signedObject) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe SignedObject
a -> DescribeSigningJobResponse
s {$sel:signedObject:DescribeSigningJobResponse' :: Maybe SignedObject
signedObject = Maybe SignedObject
a} :: DescribeSigningJobResponse)

-- | The microcontroller platform to which your signed code image will be
-- distributed.
describeSigningJobResponse_platformId :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_platformId :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_platformId = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
platformId :: Maybe Text
$sel:platformId:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
platformId} -> Maybe Text
platformId) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:platformId:DescribeSigningJobResponse' :: Maybe Text
platformId = Maybe Text
a} :: DescribeSigningJobResponse)

-- | The object that contains the name of your S3 bucket or your raw code.
describeSigningJobResponse_source :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Source)
describeSigningJobResponse_source :: (Maybe Source -> f (Maybe Source))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_source = (DescribeSigningJobResponse -> Maybe Source)
-> (DescribeSigningJobResponse
    -> Maybe Source -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Source)
     (Maybe Source)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Source
source :: Maybe Source
$sel:source:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Source
source} -> Maybe Source
source) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Source
a -> DescribeSigningJobResponse
s {$sel:source:DescribeSigningJobResponse' :: Maybe Source
source = Maybe Source
a} :: DescribeSigningJobResponse)

-- | A revocation record if the signature generated by the signing job has
-- been revoked. Contains a timestamp and the ID of the IAM entity that
-- revoked the signature.
describeSigningJobResponse_revocationRecord :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe SigningJobRevocationRecord)
describeSigningJobResponse_revocationRecord :: (Maybe SigningJobRevocationRecord
 -> f (Maybe SigningJobRevocationRecord))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_revocationRecord = (DescribeSigningJobResponse -> Maybe SigningJobRevocationRecord)
-> (DescribeSigningJobResponse
    -> Maybe SigningJobRevocationRecord -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe SigningJobRevocationRecord)
     (Maybe SigningJobRevocationRecord)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe SigningJobRevocationRecord
revocationRecord :: Maybe SigningJobRevocationRecord
$sel:revocationRecord:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe SigningJobRevocationRecord
revocationRecord} -> Maybe SigningJobRevocationRecord
revocationRecord) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe SigningJobRevocationRecord
a -> DescribeSigningJobResponse
s {$sel:revocationRecord:DescribeSigningJobResponse' :: Maybe SigningJobRevocationRecord
revocationRecord = Maybe SigningJobRevocationRecord
a} :: DescribeSigningJobResponse)

-- | The IAM entity that initiated the signing job.
describeSigningJobResponse_jobInvoker :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_jobInvoker :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_jobInvoker = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
jobInvoker :: Maybe Text
$sel:jobInvoker:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
jobInvoker} -> Maybe Text
jobInvoker) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:jobInvoker:DescribeSigningJobResponse' :: Maybe Text
jobInvoker = Maybe Text
a} :: DescribeSigningJobResponse)

-- | Date and time that the signing job was completed.
describeSigningJobResponse_completedAt :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.UTCTime)
describeSigningJobResponse_completedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_completedAt = (DescribeSigningJobResponse -> Maybe POSIX)
-> (DescribeSigningJobResponse
    -> Maybe POSIX -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe POSIX
completedAt :: Maybe POSIX
$sel:completedAt:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe POSIX
completedAt} -> Maybe POSIX
completedAt) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe POSIX
a -> DescribeSigningJobResponse
s {$sel:completedAt:DescribeSigningJobResponse' :: Maybe POSIX
completedAt = Maybe POSIX
a} :: DescribeSigningJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeSigningJobResponse -> f DescribeSigningJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSigningJobResponse
-> f DescribeSigningJobResponse
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

-- | String value that contains the status reason.
describeSigningJobResponse_statusReason :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_statusReason :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_statusReason = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:statusReason:DescribeSigningJobResponse' :: Maybe Text
statusReason = Maybe Text
a} :: DescribeSigningJobResponse)

-- | The AWS account ID of the job owner.
describeSigningJobResponse_jobOwner :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe Prelude.Text)
describeSigningJobResponse_jobOwner :: (Maybe Text -> f (Maybe Text))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_jobOwner = (DescribeSigningJobResponse -> Maybe Text)
-> (DescribeSigningJobResponse
    -> Maybe Text -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Maybe Text
jobOwner :: Maybe Text
$sel:jobOwner:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe Text
jobOwner} -> Maybe Text
jobOwner) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe Text
a -> DescribeSigningJobResponse
s {$sel:jobOwner:DescribeSigningJobResponse' :: Maybe Text
jobOwner = Maybe Text
a} :: DescribeSigningJobResponse)

-- | Map of user-assigned key-value pairs used during signing. These values
-- contain any information that you specified for use in your signing job.
describeSigningJobResponse_signingParameters :: Lens.Lens' DescribeSigningJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeSigningJobResponse_signingParameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_signingParameters = (DescribeSigningJobResponse -> Maybe (HashMap Text Text))
-> (DescribeSigningJobResponse
    -> Maybe (HashMap Text Text) -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse
     DescribeSigningJobResponse
     (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 (\DescribeSigningJobResponse' {Maybe (HashMap Text Text)
signingParameters :: Maybe (HashMap Text Text)
$sel:signingParameters:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Maybe (HashMap Text Text)
signingParameters} -> Maybe (HashMap Text Text)
signingParameters) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeSigningJobResponse
s {$sel:signingParameters:DescribeSigningJobResponse' :: Maybe (HashMap Text Text)
signingParameters = Maybe (HashMap Text Text)
a} :: DescribeSigningJobResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeSigningJobResponse -> f DescribeSigningJobResponse)
-> ((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)))
-> DescribeSigningJobResponse
-> f DescribeSigningJobResponse
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.
describeSigningJobResponse_httpStatus :: Lens.Lens' DescribeSigningJobResponse Prelude.Int
describeSigningJobResponse_httpStatus :: (Int -> f Int)
-> DescribeSigningJobResponse -> f DescribeSigningJobResponse
describeSigningJobResponse_httpStatus = (DescribeSigningJobResponse -> Int)
-> (DescribeSigningJobResponse
    -> Int -> DescribeSigningJobResponse)
-> Lens
     DescribeSigningJobResponse DescribeSigningJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSigningJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSigningJobResponse' :: DescribeSigningJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSigningJobResponse
s@DescribeSigningJobResponse' {} Int
a -> DescribeSigningJobResponse
s {$sel:httpStatus:DescribeSigningJobResponse' :: Int
httpStatus = Int
a} :: DescribeSigningJobResponse)

instance Prelude.NFData DescribeSigningJobResponse