{-# 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.Panorama.DescribeNodeFromTemplateJob
-- 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 job to create a camera stream node.
module Amazonka.Panorama.DescribeNodeFromTemplateJob
  ( -- * Creating a Request
    DescribeNodeFromTemplateJob (..),
    newDescribeNodeFromTemplateJob,

    -- * Request Lenses
    describeNodeFromTemplateJob_jobId,

    -- * Destructuring the Response
    DescribeNodeFromTemplateJobResponse (..),
    newDescribeNodeFromTemplateJobResponse,

    -- * Response Lenses
    describeNodeFromTemplateJobResponse_jobTags,
    describeNodeFromTemplateJobResponse_nodeDescription,
    describeNodeFromTemplateJobResponse_httpStatus,
    describeNodeFromTemplateJobResponse_jobId,
    describeNodeFromTemplateJobResponse_status,
    describeNodeFromTemplateJobResponse_statusMessage,
    describeNodeFromTemplateJobResponse_createdTime,
    describeNodeFromTemplateJobResponse_lastUpdatedTime,
    describeNodeFromTemplateJobResponse_outputPackageName,
    describeNodeFromTemplateJobResponse_outputPackageVersion,
    describeNodeFromTemplateJobResponse_nodeName,
    describeNodeFromTemplateJobResponse_templateType,
    describeNodeFromTemplateJobResponse_templateParameters,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

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

-- |
-- Create a value of 'DescribeNodeFromTemplateJob' 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', 'describeNodeFromTemplateJob_jobId' - The job\'s ID.
newDescribeNodeFromTemplateJob ::
  -- | 'jobId'
  Prelude.Text ->
  DescribeNodeFromTemplateJob
newDescribeNodeFromTemplateJob :: Text -> DescribeNodeFromTemplateJob
newDescribeNodeFromTemplateJob Text
pJobId_ =
  DescribeNodeFromTemplateJob' :: Text -> DescribeNodeFromTemplateJob
DescribeNodeFromTemplateJob' {$sel:jobId:DescribeNodeFromTemplateJob' :: Text
jobId = Text
pJobId_}

-- | The job\'s ID.
describeNodeFromTemplateJob_jobId :: Lens.Lens' DescribeNodeFromTemplateJob Prelude.Text
describeNodeFromTemplateJob_jobId :: (Text -> f Text)
-> DescribeNodeFromTemplateJob -> f DescribeNodeFromTemplateJob
describeNodeFromTemplateJob_jobId = (DescribeNodeFromTemplateJob -> Text)
-> (DescribeNodeFromTemplateJob
    -> Text -> DescribeNodeFromTemplateJob)
-> Lens
     DescribeNodeFromTemplateJob DescribeNodeFromTemplateJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJob' {Text
jobId :: Text
$sel:jobId:DescribeNodeFromTemplateJob' :: DescribeNodeFromTemplateJob -> Text
jobId} -> Text
jobId) (\s :: DescribeNodeFromTemplateJob
s@DescribeNodeFromTemplateJob' {} Text
a -> DescribeNodeFromTemplateJob
s {$sel:jobId:DescribeNodeFromTemplateJob' :: Text
jobId = Text
a} :: DescribeNodeFromTemplateJob)

instance Core.AWSRequest DescribeNodeFromTemplateJob where
  type
    AWSResponse DescribeNodeFromTemplateJob =
      DescribeNodeFromTemplateJobResponse
  request :: DescribeNodeFromTemplateJob -> Request DescribeNodeFromTemplateJob
request = Service
-> DescribeNodeFromTemplateJob
-> Request DescribeNodeFromTemplateJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeNodeFromTemplateJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeNodeFromTemplateJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeNodeFromTemplateJob))
-> Logger
-> Service
-> Proxy DescribeNodeFromTemplateJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeNodeFromTemplateJob)))
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 [JobResourceTags]
-> Maybe Text
-> Int
-> Text
-> NodeFromTemplateJobStatus
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> TemplateType
-> HashMap Text (Sensitive Text)
-> DescribeNodeFromTemplateJobResponse
DescribeNodeFromTemplateJobResponse'
            (Maybe [JobResourceTags]
 -> Maybe Text
 -> Int
 -> Text
 -> NodeFromTemplateJobStatus
 -> Text
 -> POSIX
 -> POSIX
 -> Text
 -> Text
 -> Text
 -> TemplateType
 -> HashMap Text (Sensitive Text)
 -> DescribeNodeFromTemplateJobResponse)
-> Either String (Maybe [JobResourceTags])
-> Either
     String
     (Maybe Text
      -> Int
      -> Text
      -> NodeFromTemplateJobStatus
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [JobResourceTags]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobTags" Either String (Maybe (Maybe [JobResourceTags]))
-> Maybe [JobResourceTags]
-> Either String (Maybe [JobResourceTags])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobResourceTags]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Int
   -> Text
   -> NodeFromTemplateJobStatus
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> Text
      -> NodeFromTemplateJobStatus
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
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
"NodeDescription")
            Either
  String
  (Int
   -> Text
   -> NodeFromTemplateJobStatus
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Int
-> Either
     String
     (Text
      -> NodeFromTemplateJobStatus
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
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))
            Either
  String
  (Text
   -> NodeFromTemplateJobStatus
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Text
-> Either
     String
     (NodeFromTemplateJobStatus
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"JobId")
            Either
  String
  (NodeFromTemplateJobStatus
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String NodeFromTemplateJobStatus
-> Either
     String
     (Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String NodeFromTemplateJobStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Status")
            Either
  String
  (Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Text
-> Either
     String
     (POSIX
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"StatusMessage")
            Either
  String
  (POSIX
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String POSIX
-> Either
     String
     (POSIX
      -> Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreatedTime")
            Either
  String
  (POSIX
   -> Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String POSIX
-> Either
     String
     (Text
      -> Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"LastUpdatedTime")
            Either
  String
  (Text
   -> Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Text
-> Either
     String
     (Text
      -> Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"OutputPackageName")
            Either
  String
  (Text
   -> Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Text
-> Either
     String
     (Text
      -> TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"OutputPackageVersion")
            Either
  String
  (Text
   -> TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String Text
-> Either
     String
     (TemplateType
      -> HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"NodeName")
            Either
  String
  (TemplateType
   -> HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String TemplateType
-> Either
     String
     (HashMap Text (Sensitive Text)
      -> DescribeNodeFromTemplateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String TemplateType
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"TemplateType")
            Either
  String
  (HashMap Text (Sensitive Text)
   -> DescribeNodeFromTemplateJobResponse)
-> Either String (HashMap Text (Sensitive Text))
-> Either String DescribeNodeFromTemplateJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (HashMap Text (Sensitive Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TemplateParameters"
                            Either String (Maybe (HashMap Text (Sensitive Text)))
-> HashMap Text (Sensitive Text)
-> Either String (HashMap Text (Sensitive Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ HashMap Text (Sensitive Text)
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable DescribeNodeFromTemplateJob

instance Prelude.NFData DescribeNodeFromTemplateJob

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

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

-- | /See:/ 'newDescribeNodeFromTemplateJobResponse' smart constructor.
data DescribeNodeFromTemplateJobResponse = DescribeNodeFromTemplateJobResponse'
  { -- | The job\'s tags.
    DescribeNodeFromTemplateJobResponse -> Maybe [JobResourceTags]
jobTags :: Prelude.Maybe [JobResourceTags],
    -- | The node\'s description.
    DescribeNodeFromTemplateJobResponse -> Maybe Text
nodeDescription :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeNodeFromTemplateJobResponse -> Int
httpStatus :: Prelude.Int,
    -- | The job\'s ID.
    DescribeNodeFromTemplateJobResponse -> Text
jobId :: Prelude.Text,
    -- | The job\'s status.
    DescribeNodeFromTemplateJobResponse -> NodeFromTemplateJobStatus
status :: NodeFromTemplateJobStatus,
    -- | The job\'s status message.
    DescribeNodeFromTemplateJobResponse -> Text
statusMessage :: Prelude.Text,
    -- | When the job was created.
    DescribeNodeFromTemplateJobResponse -> POSIX
createdTime :: Core.POSIX,
    -- | When the job was updated.
    DescribeNodeFromTemplateJobResponse -> POSIX
lastUpdatedTime :: Core.POSIX,
    -- | The job\'s output package name.
    DescribeNodeFromTemplateJobResponse -> Text
outputPackageName :: Prelude.Text,
    -- | The job\'s output package version.
    DescribeNodeFromTemplateJobResponse -> Text
outputPackageVersion :: Prelude.Text,
    -- | The node\'s name.
    DescribeNodeFromTemplateJobResponse -> Text
nodeName :: Prelude.Text,
    -- | The job\'s template type.
    DescribeNodeFromTemplateJobResponse -> TemplateType
templateType :: TemplateType,
    -- | The job\'s template parameters.
    DescribeNodeFromTemplateJobResponse
-> HashMap Text (Sensitive Text)
templateParameters :: Prelude.HashMap Prelude.Text (Core.Sensitive Prelude.Text)
  }
  deriving (DescribeNodeFromTemplateJobResponse
-> DescribeNodeFromTemplateJobResponse -> Bool
(DescribeNodeFromTemplateJobResponse
 -> DescribeNodeFromTemplateJobResponse -> Bool)
-> (DescribeNodeFromTemplateJobResponse
    -> DescribeNodeFromTemplateJobResponse -> Bool)
-> Eq DescribeNodeFromTemplateJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNodeFromTemplateJobResponse
-> DescribeNodeFromTemplateJobResponse -> Bool
$c/= :: DescribeNodeFromTemplateJobResponse
-> DescribeNodeFromTemplateJobResponse -> Bool
== :: DescribeNodeFromTemplateJobResponse
-> DescribeNodeFromTemplateJobResponse -> Bool
$c== :: DescribeNodeFromTemplateJobResponse
-> DescribeNodeFromTemplateJobResponse -> Bool
Prelude.Eq, Int -> DescribeNodeFromTemplateJobResponse -> ShowS
[DescribeNodeFromTemplateJobResponse] -> ShowS
DescribeNodeFromTemplateJobResponse -> String
(Int -> DescribeNodeFromTemplateJobResponse -> ShowS)
-> (DescribeNodeFromTemplateJobResponse -> String)
-> ([DescribeNodeFromTemplateJobResponse] -> ShowS)
-> Show DescribeNodeFromTemplateJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNodeFromTemplateJobResponse] -> ShowS
$cshowList :: [DescribeNodeFromTemplateJobResponse] -> ShowS
show :: DescribeNodeFromTemplateJobResponse -> String
$cshow :: DescribeNodeFromTemplateJobResponse -> String
showsPrec :: Int -> DescribeNodeFromTemplateJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeNodeFromTemplateJobResponse -> ShowS
Prelude.Show, (forall x.
 DescribeNodeFromTemplateJobResponse
 -> Rep DescribeNodeFromTemplateJobResponse x)
-> (forall x.
    Rep DescribeNodeFromTemplateJobResponse x
    -> DescribeNodeFromTemplateJobResponse)
-> Generic DescribeNodeFromTemplateJobResponse
forall x.
Rep DescribeNodeFromTemplateJobResponse x
-> DescribeNodeFromTemplateJobResponse
forall x.
DescribeNodeFromTemplateJobResponse
-> Rep DescribeNodeFromTemplateJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNodeFromTemplateJobResponse x
-> DescribeNodeFromTemplateJobResponse
$cfrom :: forall x.
DescribeNodeFromTemplateJobResponse
-> Rep DescribeNodeFromTemplateJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeNodeFromTemplateJobResponse' 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:
--
-- 'jobTags', 'describeNodeFromTemplateJobResponse_jobTags' - The job\'s tags.
--
-- 'nodeDescription', 'describeNodeFromTemplateJobResponse_nodeDescription' - The node\'s description.
--
-- 'httpStatus', 'describeNodeFromTemplateJobResponse_httpStatus' - The response's http status code.
--
-- 'jobId', 'describeNodeFromTemplateJobResponse_jobId' - The job\'s ID.
--
-- 'status', 'describeNodeFromTemplateJobResponse_status' - The job\'s status.
--
-- 'statusMessage', 'describeNodeFromTemplateJobResponse_statusMessage' - The job\'s status message.
--
-- 'createdTime', 'describeNodeFromTemplateJobResponse_createdTime' - When the job was created.
--
-- 'lastUpdatedTime', 'describeNodeFromTemplateJobResponse_lastUpdatedTime' - When the job was updated.
--
-- 'outputPackageName', 'describeNodeFromTemplateJobResponse_outputPackageName' - The job\'s output package name.
--
-- 'outputPackageVersion', 'describeNodeFromTemplateJobResponse_outputPackageVersion' - The job\'s output package version.
--
-- 'nodeName', 'describeNodeFromTemplateJobResponse_nodeName' - The node\'s name.
--
-- 'templateType', 'describeNodeFromTemplateJobResponse_templateType' - The job\'s template type.
--
-- 'templateParameters', 'describeNodeFromTemplateJobResponse_templateParameters' - The job\'s template parameters.
newDescribeNodeFromTemplateJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'jobId'
  Prelude.Text ->
  -- | 'status'
  NodeFromTemplateJobStatus ->
  -- | 'statusMessage'
  Prelude.Text ->
  -- | 'createdTime'
  Prelude.UTCTime ->
  -- | 'lastUpdatedTime'
  Prelude.UTCTime ->
  -- | 'outputPackageName'
  Prelude.Text ->
  -- | 'outputPackageVersion'
  Prelude.Text ->
  -- | 'nodeName'
  Prelude.Text ->
  -- | 'templateType'
  TemplateType ->
  DescribeNodeFromTemplateJobResponse
newDescribeNodeFromTemplateJobResponse :: Int
-> Text
-> NodeFromTemplateJobStatus
-> Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> Text
-> TemplateType
-> DescribeNodeFromTemplateJobResponse
newDescribeNodeFromTemplateJobResponse
  Int
pHttpStatus_
  Text
pJobId_
  NodeFromTemplateJobStatus
pStatus_
  Text
pStatusMessage_
  UTCTime
pCreatedTime_
  UTCTime
pLastUpdatedTime_
  Text
pOutputPackageName_
  Text
pOutputPackageVersion_
  Text
pNodeName_
  TemplateType
pTemplateType_ =
    DescribeNodeFromTemplateJobResponse' :: Maybe [JobResourceTags]
-> Maybe Text
-> Int
-> Text
-> NodeFromTemplateJobStatus
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> TemplateType
-> HashMap Text (Sensitive Text)
-> DescribeNodeFromTemplateJobResponse
DescribeNodeFromTemplateJobResponse'
      { $sel:jobTags:DescribeNodeFromTemplateJobResponse' :: Maybe [JobResourceTags]
jobTags =
          Maybe [JobResourceTags]
forall a. Maybe a
Prelude.Nothing,
        $sel:nodeDescription:DescribeNodeFromTemplateJobResponse' :: Maybe Text
nodeDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeNodeFromTemplateJobResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:jobId:DescribeNodeFromTemplateJobResponse' :: Text
jobId = Text
pJobId_,
        $sel:status:DescribeNodeFromTemplateJobResponse' :: NodeFromTemplateJobStatus
status = NodeFromTemplateJobStatus
pStatus_,
        $sel:statusMessage:DescribeNodeFromTemplateJobResponse' :: Text
statusMessage = Text
pStatusMessage_,
        $sel:createdTime:DescribeNodeFromTemplateJobResponse' :: POSIX
createdTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedTime_,
        $sel:lastUpdatedTime:DescribeNodeFromTemplateJobResponse' :: POSIX
lastUpdatedTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedTime_,
        $sel:outputPackageName:DescribeNodeFromTemplateJobResponse' :: Text
outputPackageName =
          Text
pOutputPackageName_,
        $sel:outputPackageVersion:DescribeNodeFromTemplateJobResponse' :: Text
outputPackageVersion =
          Text
pOutputPackageVersion_,
        $sel:nodeName:DescribeNodeFromTemplateJobResponse' :: Text
nodeName = Text
pNodeName_,
        $sel:templateType:DescribeNodeFromTemplateJobResponse' :: TemplateType
templateType = TemplateType
pTemplateType_,
        $sel:templateParameters:DescribeNodeFromTemplateJobResponse' :: HashMap Text (Sensitive Text)
templateParameters = HashMap Text (Sensitive Text)
forall a. Monoid a => a
Prelude.mempty
      }

-- | The job\'s tags.
describeNodeFromTemplateJobResponse_jobTags :: Lens.Lens' DescribeNodeFromTemplateJobResponse (Prelude.Maybe [JobResourceTags])
describeNodeFromTemplateJobResponse_jobTags :: (Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_jobTags = (DescribeNodeFromTemplateJobResponse -> Maybe [JobResourceTags])
-> (DescribeNodeFromTemplateJobResponse
    -> Maybe [JobResourceTags] -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     (Maybe [JobResourceTags])
     (Maybe [JobResourceTags])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Maybe [JobResourceTags]
jobTags :: Maybe [JobResourceTags]
$sel:jobTags:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Maybe [JobResourceTags]
jobTags} -> Maybe [JobResourceTags]
jobTags) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Maybe [JobResourceTags]
a -> DescribeNodeFromTemplateJobResponse
s {$sel:jobTags:DescribeNodeFromTemplateJobResponse' :: Maybe [JobResourceTags]
jobTags = Maybe [JobResourceTags]
a} :: DescribeNodeFromTemplateJobResponse) ((Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
 -> DescribeNodeFromTemplateJobResponse
 -> f DescribeNodeFromTemplateJobResponse)
-> ((Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
    -> Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> (Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [JobResourceTags]
  [JobResourceTags]
  [JobResourceTags]
  [JobResourceTags]
-> Iso
     (Maybe [JobResourceTags])
     (Maybe [JobResourceTags])
     (Maybe [JobResourceTags])
     (Maybe [JobResourceTags])
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
  [JobResourceTags]
  [JobResourceTags]
  [JobResourceTags]
  [JobResourceTags]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The node\'s description.
describeNodeFromTemplateJobResponse_nodeDescription :: Lens.Lens' DescribeNodeFromTemplateJobResponse (Prelude.Maybe Prelude.Text)
describeNodeFromTemplateJobResponse_nodeDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_nodeDescription = (DescribeNodeFromTemplateJobResponse -> Maybe Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Maybe Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Maybe Text
nodeDescription :: Maybe Text
$sel:nodeDescription:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Maybe Text
nodeDescription} -> Maybe Text
nodeDescription) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Maybe Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:nodeDescription:DescribeNodeFromTemplateJobResponse' :: Maybe Text
nodeDescription = Maybe Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | The response's http status code.
describeNodeFromTemplateJobResponse_httpStatus :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Int
describeNodeFromTemplateJobResponse_httpStatus :: (Int -> f Int)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_httpStatus = (DescribeNodeFromTemplateJobResponse -> Int)
-> (DescribeNodeFromTemplateJobResponse
    -> Int -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Int
a -> DescribeNodeFromTemplateJobResponse
s {$sel:httpStatus:DescribeNodeFromTemplateJobResponse' :: Int
httpStatus = Int
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s ID.
describeNodeFromTemplateJobResponse_jobId :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Text
describeNodeFromTemplateJobResponse_jobId :: (Text -> f Text)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_jobId = (DescribeNodeFromTemplateJobResponse -> Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Text
jobId :: Text
$sel:jobId:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Text
jobId} -> Text
jobId) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:jobId:DescribeNodeFromTemplateJobResponse' :: Text
jobId = Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s status.
describeNodeFromTemplateJobResponse_status :: Lens.Lens' DescribeNodeFromTemplateJobResponse NodeFromTemplateJobStatus
describeNodeFromTemplateJobResponse_status :: (NodeFromTemplateJobStatus -> f NodeFromTemplateJobStatus)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_status = (DescribeNodeFromTemplateJobResponse -> NodeFromTemplateJobStatus)
-> (DescribeNodeFromTemplateJobResponse
    -> NodeFromTemplateJobStatus
    -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     NodeFromTemplateJobStatus
     NodeFromTemplateJobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {NodeFromTemplateJobStatus
status :: NodeFromTemplateJobStatus
$sel:status:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> NodeFromTemplateJobStatus
status} -> NodeFromTemplateJobStatus
status) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} NodeFromTemplateJobStatus
a -> DescribeNodeFromTemplateJobResponse
s {$sel:status:DescribeNodeFromTemplateJobResponse' :: NodeFromTemplateJobStatus
status = NodeFromTemplateJobStatus
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s status message.
describeNodeFromTemplateJobResponse_statusMessage :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Text
describeNodeFromTemplateJobResponse_statusMessage :: (Text -> f Text)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_statusMessage = (DescribeNodeFromTemplateJobResponse -> Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Text
statusMessage :: Text
$sel:statusMessage:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Text
statusMessage} -> Text
statusMessage) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:statusMessage:DescribeNodeFromTemplateJobResponse' :: Text
statusMessage = Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | When the job was created.
describeNodeFromTemplateJobResponse_createdTime :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.UTCTime
describeNodeFromTemplateJobResponse_createdTime :: (UTCTime -> f UTCTime)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_createdTime = (DescribeNodeFromTemplateJobResponse -> POSIX)
-> (DescribeNodeFromTemplateJobResponse
    -> POSIX -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {POSIX
createdTime :: POSIX
$sel:createdTime:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> POSIX
createdTime} -> POSIX
createdTime) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} POSIX
a -> DescribeNodeFromTemplateJobResponse
s {$sel:createdTime:DescribeNodeFromTemplateJobResponse' :: POSIX
createdTime = POSIX
a} :: DescribeNodeFromTemplateJobResponse) ((POSIX -> f POSIX)
 -> DescribeNodeFromTemplateJobResponse
 -> f DescribeNodeFromTemplateJobResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | When the job was updated.
describeNodeFromTemplateJobResponse_lastUpdatedTime :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.UTCTime
describeNodeFromTemplateJobResponse_lastUpdatedTime :: (UTCTime -> f UTCTime)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_lastUpdatedTime = (DescribeNodeFromTemplateJobResponse -> POSIX)
-> (DescribeNodeFromTemplateJobResponse
    -> POSIX -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {POSIX
lastUpdatedTime :: POSIX
$sel:lastUpdatedTime:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> POSIX
lastUpdatedTime} -> POSIX
lastUpdatedTime) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} POSIX
a -> DescribeNodeFromTemplateJobResponse
s {$sel:lastUpdatedTime:DescribeNodeFromTemplateJobResponse' :: POSIX
lastUpdatedTime = POSIX
a} :: DescribeNodeFromTemplateJobResponse) ((POSIX -> f POSIX)
 -> DescribeNodeFromTemplateJobResponse
 -> f DescribeNodeFromTemplateJobResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The job\'s output package name.
describeNodeFromTemplateJobResponse_outputPackageName :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Text
describeNodeFromTemplateJobResponse_outputPackageName :: (Text -> f Text)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_outputPackageName = (DescribeNodeFromTemplateJobResponse -> Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Text
outputPackageName :: Text
$sel:outputPackageName:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Text
outputPackageName} -> Text
outputPackageName) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:outputPackageName:DescribeNodeFromTemplateJobResponse' :: Text
outputPackageName = Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s output package version.
describeNodeFromTemplateJobResponse_outputPackageVersion :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Text
describeNodeFromTemplateJobResponse_outputPackageVersion :: (Text -> f Text)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_outputPackageVersion = (DescribeNodeFromTemplateJobResponse -> Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Text
outputPackageVersion :: Text
$sel:outputPackageVersion:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Text
outputPackageVersion} -> Text
outputPackageVersion) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:outputPackageVersion:DescribeNodeFromTemplateJobResponse' :: Text
outputPackageVersion = Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | The node\'s name.
describeNodeFromTemplateJobResponse_nodeName :: Lens.Lens' DescribeNodeFromTemplateJobResponse Prelude.Text
describeNodeFromTemplateJobResponse_nodeName :: (Text -> f Text)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_nodeName = (DescribeNodeFromTemplateJobResponse -> Text)
-> (DescribeNodeFromTemplateJobResponse
    -> Text -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {Text
nodeName :: Text
$sel:nodeName:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> Text
nodeName} -> Text
nodeName) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} Text
a -> DescribeNodeFromTemplateJobResponse
s {$sel:nodeName:DescribeNodeFromTemplateJobResponse' :: Text
nodeName = Text
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s template type.
describeNodeFromTemplateJobResponse_templateType :: Lens.Lens' DescribeNodeFromTemplateJobResponse TemplateType
describeNodeFromTemplateJobResponse_templateType :: (TemplateType -> f TemplateType)
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_templateType = (DescribeNodeFromTemplateJobResponse -> TemplateType)
-> (DescribeNodeFromTemplateJobResponse
    -> TemplateType -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     TemplateType
     TemplateType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {TemplateType
templateType :: TemplateType
$sel:templateType:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse -> TemplateType
templateType} -> TemplateType
templateType) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} TemplateType
a -> DescribeNodeFromTemplateJobResponse
s {$sel:templateType:DescribeNodeFromTemplateJobResponse' :: TemplateType
templateType = TemplateType
a} :: DescribeNodeFromTemplateJobResponse)

-- | The job\'s template parameters.
describeNodeFromTemplateJobResponse_templateParameters :: Lens.Lens' DescribeNodeFromTemplateJobResponse (Prelude.HashMap Prelude.Text Prelude.Text)
describeNodeFromTemplateJobResponse_templateParameters :: (HashMap Text Text -> f (HashMap Text Text))
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
describeNodeFromTemplateJobResponse_templateParameters = (DescribeNodeFromTemplateJobResponse
 -> HashMap Text (Sensitive Text))
-> (DescribeNodeFromTemplateJobResponse
    -> HashMap Text (Sensitive Text)
    -> DescribeNodeFromTemplateJobResponse)
-> Lens
     DescribeNodeFromTemplateJobResponse
     DescribeNodeFromTemplateJobResponse
     (HashMap Text (Sensitive Text))
     (HashMap Text (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeFromTemplateJobResponse' {HashMap Text (Sensitive Text)
templateParameters :: HashMap Text (Sensitive Text)
$sel:templateParameters:DescribeNodeFromTemplateJobResponse' :: DescribeNodeFromTemplateJobResponse
-> HashMap Text (Sensitive Text)
templateParameters} -> HashMap Text (Sensitive Text)
templateParameters) (\s :: DescribeNodeFromTemplateJobResponse
s@DescribeNodeFromTemplateJobResponse' {} HashMap Text (Sensitive Text)
a -> DescribeNodeFromTemplateJobResponse
s {$sel:templateParameters:DescribeNodeFromTemplateJobResponse' :: HashMap Text (Sensitive Text)
templateParameters = HashMap Text (Sensitive Text)
a} :: DescribeNodeFromTemplateJobResponse) ((HashMap Text (Sensitive Text)
  -> f (HashMap Text (Sensitive Text)))
 -> DescribeNodeFromTemplateJobResponse
 -> f DescribeNodeFromTemplateJobResponse)
-> ((HashMap Text Text -> f (HashMap Text Text))
    -> HashMap Text (Sensitive Text)
    -> f (HashMap Text (Sensitive Text)))
-> (HashMap Text Text -> f (HashMap Text Text))
-> DescribeNodeFromTemplateJobResponse
-> f DescribeNodeFromTemplateJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text (Sensitive Text)
-> f (HashMap Text (Sensitive Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    DescribeNodeFromTemplateJobResponse