{-# 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.SageMaker.DescribeTrainingJob
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about a training job.
--
-- Some of the attributes below only appear if the training job
-- successfully starts. If the training job fails, @TrainingJobStatus@ is
-- @Failed@ and, depending on the @FailureReason@, attributes like
-- @TrainingStartTime@, @TrainingTimeInSeconds@, @TrainingEndTime@, and
-- @BillableTimeInSeconds@ may not be present in the response.
module Amazonka.SageMaker.DescribeTrainingJob
  ( -- * Creating a Request
    DescribeTrainingJob (..),
    newDescribeTrainingJob,

    -- * Request Lenses
    describeTrainingJob_trainingJobName,

    -- * Destructuring the Response
    DescribeTrainingJobResponse (..),
    newDescribeTrainingJobResponse,

    -- * Response Lenses
    describeTrainingJobResponse_autoMLJobArn,
    describeTrainingJobResponse_billableTimeInSeconds,
    describeTrainingJobResponse_checkpointConfig,
    describeTrainingJobResponse_debugHookConfig,
    describeTrainingJobResponse_debugRuleConfigurations,
    describeTrainingJobResponse_debugRuleEvaluationStatuses,
    describeTrainingJobResponse_enableInterContainerTrafficEncryption,
    describeTrainingJobResponse_enableManagedSpotTraining,
    describeTrainingJobResponse_enableNetworkIsolation,
    describeTrainingJobResponse_environment,
    describeTrainingJobResponse_experimentConfig,
    describeTrainingJobResponse_failureReason,
    describeTrainingJobResponse_finalMetricDataList,
    describeTrainingJobResponse_hyperParameters,
    describeTrainingJobResponse_inputDataConfig,
    describeTrainingJobResponse_labelingJobArn,
    describeTrainingJobResponse_lastModifiedTime,
    describeTrainingJobResponse_outputDataConfig,
    describeTrainingJobResponse_profilerConfig,
    describeTrainingJobResponse_profilerRuleConfigurations,
    describeTrainingJobResponse_profilerRuleEvaluationStatuses,
    describeTrainingJobResponse_profilingStatus,
    describeTrainingJobResponse_retryStrategy,
    describeTrainingJobResponse_roleArn,
    describeTrainingJobResponse_secondaryStatusTransitions,
    describeTrainingJobResponse_tensorBoardOutputConfig,
    describeTrainingJobResponse_trainingEndTime,
    describeTrainingJobResponse_trainingStartTime,
    describeTrainingJobResponse_trainingTimeInSeconds,
    describeTrainingJobResponse_tuningJobArn,
    describeTrainingJobResponse_vpcConfig,
    describeTrainingJobResponse_warmPoolStatus,
    describeTrainingJobResponse_httpStatus,
    describeTrainingJobResponse_trainingJobName,
    describeTrainingJobResponse_trainingJobArn,
    describeTrainingJobResponse_modelArtifacts,
    describeTrainingJobResponse_trainingJobStatus,
    describeTrainingJobResponse_secondaryStatus,
    describeTrainingJobResponse_algorithmSpecification,
    describeTrainingJobResponse_resourceConfig,
    describeTrainingJobResponse_stoppingCondition,
    describeTrainingJobResponse_creationTime,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

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

-- |
-- Create a value of 'DescribeTrainingJob' 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:
--
-- 'trainingJobName', 'describeTrainingJob_trainingJobName' - The name of the training job.
newDescribeTrainingJob ::
  -- | 'trainingJobName'
  Prelude.Text ->
  DescribeTrainingJob
newDescribeTrainingJob :: Text -> DescribeTrainingJob
newDescribeTrainingJob Text
pTrainingJobName_ =
  DescribeTrainingJob'
    { $sel:trainingJobName:DescribeTrainingJob' :: Text
trainingJobName =
        Text
pTrainingJobName_
    }

-- | The name of the training job.
describeTrainingJob_trainingJobName :: Lens.Lens' DescribeTrainingJob Prelude.Text
describeTrainingJob_trainingJobName :: Lens' DescribeTrainingJob Text
describeTrainingJob_trainingJobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJob' {Text
trainingJobName :: Text
$sel:trainingJobName:DescribeTrainingJob' :: DescribeTrainingJob -> Text
trainingJobName} -> Text
trainingJobName) (\s :: DescribeTrainingJob
s@DescribeTrainingJob' {} Text
a -> DescribeTrainingJob
s {$sel:trainingJobName:DescribeTrainingJob' :: Text
trainingJobName = Text
a} :: DescribeTrainingJob)

instance Core.AWSRequest DescribeTrainingJob where
  type
    AWSResponse DescribeTrainingJob =
      DescribeTrainingJobResponse
  request :: (Service -> Service)
-> DescribeTrainingJob -> Request DescribeTrainingJob
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeTrainingJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTrainingJob)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Natural
-> Maybe CheckpointConfig
-> Maybe DebugHookConfig
-> Maybe [DebugRuleConfiguration]
-> Maybe [DebugRuleEvaluationStatus]
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe ExperimentConfig
-> Maybe Text
-> Maybe [MetricData]
-> Maybe (HashMap Text Text)
-> Maybe (NonEmpty Channel)
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe ProfilerConfig
-> Maybe [ProfilerRuleConfiguration]
-> Maybe [ProfilerRuleEvaluationStatus]
-> Maybe ProfilingStatus
-> Maybe RetryStrategy
-> Maybe Text
-> Maybe [SecondaryStatusTransition]
-> Maybe TensorBoardOutputConfig
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe VpcConfig
-> Maybe WarmPoolStatus
-> Int
-> Text
-> Text
-> ModelArtifacts
-> TrainingJobStatus
-> SecondaryStatus
-> AlgorithmSpecification
-> ResourceConfig
-> StoppingCondition
-> POSIX
-> DescribeTrainingJobResponse
DescribeTrainingJobResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AutoMLJobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"BillableTimeInSeconds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CheckpointConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DebugHookConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DebugRuleConfigurations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DebugRuleEvaluationStatuses"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"EnableInterContainerTrafficEncryption")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"EnableManagedSpotTraining")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"EnableNetworkIsolation")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Environment" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ExperimentConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FailureReason")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FinalMetricDataList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"HyperParameters"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"InputDataConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LabelingJobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OutputDataConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ProfilerConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ProfilerRuleConfigurations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ProfilerRuleEvaluationStatuses"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ProfilingStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RetryStrategy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SecondaryStatusTransitions"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TensorBoardOutputConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TrainingEndTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TrainingStartTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TrainingTimeInSeconds")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TuningJobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"VpcConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"WarmPoolStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"TrainingJobName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"TrainingJobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"ModelArtifacts")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"TrainingJobStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"SecondaryStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"AlgorithmSpecification")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"ResourceConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"StoppingCondition")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"CreationTime")
      )

instance Prelude.Hashable DescribeTrainingJob where
  hashWithSalt :: Int -> DescribeTrainingJob -> Int
hashWithSalt Int
_salt DescribeTrainingJob' {Text
trainingJobName :: Text
$sel:trainingJobName:DescribeTrainingJob' :: DescribeTrainingJob -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
trainingJobName

instance Prelude.NFData DescribeTrainingJob where
  rnf :: DescribeTrainingJob -> ()
rnf DescribeTrainingJob' {Text
trainingJobName :: Text
$sel:trainingJobName:DescribeTrainingJob' :: DescribeTrainingJob -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
trainingJobName

instance Data.ToHeaders DescribeTrainingJob where
  toHeaders :: DescribeTrainingJob -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"SageMaker.DescribeTrainingJob" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON DescribeTrainingJob where
  toJSON :: DescribeTrainingJob -> Value
toJSON DescribeTrainingJob' {Text
trainingJobName :: Text
$sel:trainingJobName:DescribeTrainingJob' :: DescribeTrainingJob -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              (Key
"TrainingJobName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
trainingJobName)
          ]
      )

instance Data.ToPath DescribeTrainingJob where
  toPath :: DescribeTrainingJob -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newDescribeTrainingJobResponse' smart constructor.
data DescribeTrainingJobResponse = DescribeTrainingJobResponse'
  { -- | The Amazon Resource Name (ARN) of an AutoML job.
    DescribeTrainingJobResponse -> Maybe Text
autoMLJobArn :: Prelude.Maybe Prelude.Text,
    -- | The billable time in seconds. Billable time refers to the absolute
    -- wall-clock time.
    --
    -- Multiply @BillableTimeInSeconds@ by the number of instances
    -- (@InstanceCount@) in your training cluster to get the total compute time
    -- SageMaker bills you if you run distributed training. The formula is as
    -- follows: @BillableTimeInSeconds * InstanceCount@ .
    --
    -- You can calculate the savings from using managed spot training using the
    -- formula @(1 - BillableTimeInSeconds \/ TrainingTimeInSeconds) * 100@.
    -- For example, if @BillableTimeInSeconds@ is 100 and
    -- @TrainingTimeInSeconds@ is 500, the savings is 80%.
    DescribeTrainingJobResponse -> Maybe Natural
billableTimeInSeconds :: Prelude.Maybe Prelude.Natural,
    DescribeTrainingJobResponse -> Maybe CheckpointConfig
checkpointConfig :: Prelude.Maybe CheckpointConfig,
    DescribeTrainingJobResponse -> Maybe DebugHookConfig
debugHookConfig :: Prelude.Maybe DebugHookConfig,
    -- | Configuration information for Amazon SageMaker Debugger rules for
    -- debugging output tensors.
    DescribeTrainingJobResponse -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations :: Prelude.Maybe [DebugRuleConfiguration],
    -- | Evaluation status of Amazon SageMaker Debugger rules for debugging on a
    -- training job.
    DescribeTrainingJobResponse -> Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses :: Prelude.Maybe [DebugRuleEvaluationStatus],
    -- | To encrypt all communications between ML compute instances in
    -- distributed training, choose @True@. Encryption provides greater
    -- security for distributed training, but training might take longer. How
    -- long it takes depends on the amount of communication between compute
    -- instances, especially if you use a deep learning algorithms in
    -- distributed training.
    DescribeTrainingJobResponse -> Maybe Bool
enableInterContainerTrafficEncryption :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean indicating whether managed spot training is enabled (@True@)
    -- or not (@False@).
    DescribeTrainingJobResponse -> Maybe Bool
enableManagedSpotTraining :: Prelude.Maybe Prelude.Bool,
    -- | If you want to allow inbound or outbound network calls, except for calls
    -- between peers within a training cluster for distributed training, choose
    -- @True@. If you enable network isolation for training jobs that are
    -- configured to use a VPC, SageMaker downloads and uploads customer data
    -- and model artifacts through the specified VPC, but the training
    -- container does not have network access.
    DescribeTrainingJobResponse -> Maybe Bool
enableNetworkIsolation :: Prelude.Maybe Prelude.Bool,
    -- | The environment variables to set in the Docker container.
    DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
environment :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    DescribeTrainingJobResponse -> Maybe ExperimentConfig
experimentConfig :: Prelude.Maybe ExperimentConfig,
    -- | If the training job failed, the reason it failed.
    DescribeTrainingJobResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | A collection of @MetricData@ objects that specify the names, values, and
    -- dates and times that the training algorithm emitted to Amazon
    -- CloudWatch.
    DescribeTrainingJobResponse -> Maybe [MetricData]
finalMetricDataList :: Prelude.Maybe [MetricData],
    -- | Algorithm-specific parameters.
    DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
hyperParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | An array of @Channel@ objects that describes each data input channel.
    DescribeTrainingJobResponse -> Maybe (NonEmpty Channel)
inputDataConfig :: Prelude.Maybe (Prelude.NonEmpty Channel),
    -- | The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling
    -- job that created the transform or training job.
    DescribeTrainingJobResponse -> Maybe Text
labelingJobArn :: Prelude.Maybe Prelude.Text,
    -- | A timestamp that indicates when the status of the training job was last
    -- modified.
    DescribeTrainingJobResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The S3 path where model artifacts that you configured when creating the
    -- job are stored. SageMaker creates subfolders for model artifacts.
    DescribeTrainingJobResponse -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    DescribeTrainingJobResponse -> Maybe ProfilerConfig
profilerConfig :: Prelude.Maybe ProfilerConfig,
    -- | Configuration information for Amazon SageMaker Debugger rules for
    -- profiling system and framework metrics.
    DescribeTrainingJobResponse -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations :: Prelude.Maybe [ProfilerRuleConfiguration],
    -- | Evaluation status of Amazon SageMaker Debugger rules for profiling on a
    -- training job.
    DescribeTrainingJobResponse -> Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses :: Prelude.Maybe [ProfilerRuleEvaluationStatus],
    -- | Profiling status of a training job.
    DescribeTrainingJobResponse -> Maybe ProfilingStatus
profilingStatus :: Prelude.Maybe ProfilingStatus,
    -- | The number of times to retry the job when the job fails due to an
    -- @InternalServerError@.
    DescribeTrainingJobResponse -> Maybe RetryStrategy
retryStrategy :: Prelude.Maybe RetryStrategy,
    -- | The Amazon Web Services Identity and Access Management (IAM) role
    -- configured for the training job.
    DescribeTrainingJobResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | A history of all of the secondary statuses that the training job has
    -- transitioned through.
    DescribeTrainingJobResponse -> Maybe [SecondaryStatusTransition]
secondaryStatusTransitions :: Prelude.Maybe [SecondaryStatusTransition],
    DescribeTrainingJobResponse -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig :: Prelude.Maybe TensorBoardOutputConfig,
    -- | Indicates the time when the training job ends on training instances. You
    -- are billed for the time interval between the value of
    -- @TrainingStartTime@ and this time. For successful jobs and stopped jobs,
    -- this is the time after model artifacts are uploaded. For failed jobs,
    -- this is the time when SageMaker detects a job failure.
    DescribeTrainingJobResponse -> Maybe POSIX
trainingEndTime :: Prelude.Maybe Data.POSIX,
    -- | Indicates the time when the training job starts on training instances.
    -- You are billed for the time interval between this time and the value of
    -- @TrainingEndTime@. The start time in CloudWatch Logs might be later than
    -- this time. The difference is due to the time it takes to download the
    -- training data and to the size of the training container.
    DescribeTrainingJobResponse -> Maybe POSIX
trainingStartTime :: Prelude.Maybe Data.POSIX,
    -- | The training time in seconds.
    DescribeTrainingJobResponse -> Maybe Natural
trainingTimeInSeconds :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the associated hyperparameter tuning
    -- job if the training job was launched by a hyperparameter tuning job.
    DescribeTrainingJobResponse -> Maybe Text
tuningJobArn :: Prelude.Maybe Prelude.Text,
    -- | A VpcConfig object that specifies the VPC that this training job has
    -- access to. For more information, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html Protect Training Jobs by Using an Amazon Virtual Private Cloud>.
    DescribeTrainingJobResponse -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
    -- | The status of the warm pool associated with the training job.
    DescribeTrainingJobResponse -> Maybe WarmPoolStatus
warmPoolStatus :: Prelude.Maybe WarmPoolStatus,
    -- | The response's http status code.
    DescribeTrainingJobResponse -> Int
httpStatus :: Prelude.Int,
    -- | Name of the model training job.
    DescribeTrainingJobResponse -> Text
trainingJobName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the training job.
    DescribeTrainingJobResponse -> Text
trainingJobArn :: Prelude.Text,
    -- | Information about the Amazon S3 location that is configured for storing
    -- model artifacts.
    DescribeTrainingJobResponse -> ModelArtifacts
modelArtifacts :: ModelArtifacts,
    -- | The status of the training job.
    --
    -- SageMaker provides the following training job statuses:
    --
    -- -   @InProgress@ - The training is in progress.
    --
    -- -   @Completed@ - The training job has completed.
    --
    -- -   @Failed@ - The training job has failed. To see the reason for the
    --     failure, see the @FailureReason@ field in the response to a
    --     @DescribeTrainingJobResponse@ call.
    --
    -- -   @Stopping@ - The training job is stopping.
    --
    -- -   @Stopped@ - The training job has stopped.
    --
    -- For more detailed information, see @SecondaryStatus@.
    DescribeTrainingJobResponse -> TrainingJobStatus
trainingJobStatus :: TrainingJobStatus,
    -- | Provides detailed information about the state of the training job. For
    -- detailed information on the secondary status of the training job, see
    -- @StatusMessage@ under SecondaryStatusTransition.
    --
    -- SageMaker provides primary statuses and secondary statuses that apply to
    -- each of them:
    --
    -- [InProgress]
    --     -   @Starting@ - Starting the training job.
    --
    --     -   @Downloading@ - An optional stage for algorithms that support
    --         @File@ training input mode. It indicates that data is being
    --         downloaded to the ML storage volumes.
    --
    --     -   @Training@ - Training is in progress.
    --
    --     -   @Interrupted@ - The job stopped because the managed spot
    --         training instances were interrupted.
    --
    --     -   @Uploading@ - Training is complete and the model artifacts are
    --         being uploaded to the S3 location.
    --
    -- [Completed]
    --     -   @Completed@ - The training job has completed.
    --
    -- [Failed]
    --     -   @Failed@ - The training job has failed. The reason for the
    --         failure is returned in the @FailureReason@ field of
    --         @DescribeTrainingJobResponse@.
    --
    -- [Stopped]
    --     -   @MaxRuntimeExceeded@ - The job stopped because it exceeded the
    --         maximum allowed runtime.
    --
    --     -   @MaxWaitTimeExceeded@ - The job stopped because it exceeded the
    --         maximum allowed wait time.
    --
    --     -   @Stopped@ - The training job has stopped.
    --
    -- [Stopping]
    --     -   @Stopping@ - Stopping the training job.
    --
    -- Valid values for @SecondaryStatus@ are subject to change.
    --
    -- We no longer support the following secondary statuses:
    --
    -- -   @LaunchingMLInstances@
    --
    -- -   @PreparingTraining@
    --
    -- -   @DownloadingTrainingImage@
    DescribeTrainingJobResponse -> SecondaryStatus
secondaryStatus :: SecondaryStatus,
    -- | Information about the algorithm used for training, and algorithm
    -- metadata.
    DescribeTrainingJobResponse -> AlgorithmSpecification
algorithmSpecification :: AlgorithmSpecification,
    -- | Resources, including ML compute instances and ML storage volumes, that
    -- are configured for model training.
    DescribeTrainingJobResponse -> ResourceConfig
resourceConfig :: ResourceConfig,
    -- | Specifies a limit to how long a model training job can run. It also
    -- specifies how long a managed Spot training job has to complete. When the
    -- job reaches the time limit, SageMaker ends the training job. Use this
    -- API to cap model training costs.
    --
    -- To stop a job, SageMaker sends the algorithm the @SIGTERM@ signal, which
    -- delays job termination for 120 seconds. Algorithms can use this
    -- 120-second window to save the model artifacts, so the results of
    -- training are not lost.
    DescribeTrainingJobResponse -> StoppingCondition
stoppingCondition :: StoppingCondition,
    -- | A timestamp that indicates when the training job was created.
    DescribeTrainingJobResponse -> POSIX
creationTime :: Data.POSIX
  }
  deriving (DescribeTrainingJobResponse -> DescribeTrainingJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrainingJobResponse -> DescribeTrainingJobResponse -> Bool
$c/= :: DescribeTrainingJobResponse -> DescribeTrainingJobResponse -> Bool
== :: DescribeTrainingJobResponse -> DescribeTrainingJobResponse -> Bool
$c== :: DescribeTrainingJobResponse -> DescribeTrainingJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTrainingJobResponse]
ReadPrec DescribeTrainingJobResponse
Int -> ReadS DescribeTrainingJobResponse
ReadS [DescribeTrainingJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrainingJobResponse]
$creadListPrec :: ReadPrec [DescribeTrainingJobResponse]
readPrec :: ReadPrec DescribeTrainingJobResponse
$creadPrec :: ReadPrec DescribeTrainingJobResponse
readList :: ReadS [DescribeTrainingJobResponse]
$creadList :: ReadS [DescribeTrainingJobResponse]
readsPrec :: Int -> ReadS DescribeTrainingJobResponse
$creadsPrec :: Int -> ReadS DescribeTrainingJobResponse
Prelude.Read, Int -> DescribeTrainingJobResponse -> ShowS
[DescribeTrainingJobResponse] -> ShowS
DescribeTrainingJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrainingJobResponse] -> ShowS
$cshowList :: [DescribeTrainingJobResponse] -> ShowS
show :: DescribeTrainingJobResponse -> String
$cshow :: DescribeTrainingJobResponse -> String
showsPrec :: Int -> DescribeTrainingJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeTrainingJobResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeTrainingJobResponse x -> DescribeTrainingJobResponse
forall x.
DescribeTrainingJobResponse -> Rep DescribeTrainingJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrainingJobResponse x -> DescribeTrainingJobResponse
$cfrom :: forall x.
DescribeTrainingJobResponse -> Rep DescribeTrainingJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrainingJobResponse' 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:
--
-- 'autoMLJobArn', 'describeTrainingJobResponse_autoMLJobArn' - The Amazon Resource Name (ARN) of an AutoML job.
--
-- 'billableTimeInSeconds', 'describeTrainingJobResponse_billableTimeInSeconds' - The billable time in seconds. Billable time refers to the absolute
-- wall-clock time.
--
-- Multiply @BillableTimeInSeconds@ by the number of instances
-- (@InstanceCount@) in your training cluster to get the total compute time
-- SageMaker bills you if you run distributed training. The formula is as
-- follows: @BillableTimeInSeconds * InstanceCount@ .
--
-- You can calculate the savings from using managed spot training using the
-- formula @(1 - BillableTimeInSeconds \/ TrainingTimeInSeconds) * 100@.
-- For example, if @BillableTimeInSeconds@ is 100 and
-- @TrainingTimeInSeconds@ is 500, the savings is 80%.
--
-- 'checkpointConfig', 'describeTrainingJobResponse_checkpointConfig' - Undocumented member.
--
-- 'debugHookConfig', 'describeTrainingJobResponse_debugHookConfig' - Undocumented member.
--
-- 'debugRuleConfigurations', 'describeTrainingJobResponse_debugRuleConfigurations' - Configuration information for Amazon SageMaker Debugger rules for
-- debugging output tensors.
--
-- 'debugRuleEvaluationStatuses', 'describeTrainingJobResponse_debugRuleEvaluationStatuses' - Evaluation status of Amazon SageMaker Debugger rules for debugging on a
-- training job.
--
-- 'enableInterContainerTrafficEncryption', 'describeTrainingJobResponse_enableInterContainerTrafficEncryption' - To encrypt all communications between ML compute instances in
-- distributed training, choose @True@. Encryption provides greater
-- security for distributed training, but training might take longer. How
-- long it takes depends on the amount of communication between compute
-- instances, especially if you use a deep learning algorithms in
-- distributed training.
--
-- 'enableManagedSpotTraining', 'describeTrainingJobResponse_enableManagedSpotTraining' - A Boolean indicating whether managed spot training is enabled (@True@)
-- or not (@False@).
--
-- 'enableNetworkIsolation', 'describeTrainingJobResponse_enableNetworkIsolation' - If you want to allow inbound or outbound network calls, except for calls
-- between peers within a training cluster for distributed training, choose
-- @True@. If you enable network isolation for training jobs that are
-- configured to use a VPC, SageMaker downloads and uploads customer data
-- and model artifacts through the specified VPC, but the training
-- container does not have network access.
--
-- 'environment', 'describeTrainingJobResponse_environment' - The environment variables to set in the Docker container.
--
-- 'experimentConfig', 'describeTrainingJobResponse_experimentConfig' - Undocumented member.
--
-- 'failureReason', 'describeTrainingJobResponse_failureReason' - If the training job failed, the reason it failed.
--
-- 'finalMetricDataList', 'describeTrainingJobResponse_finalMetricDataList' - A collection of @MetricData@ objects that specify the names, values, and
-- dates and times that the training algorithm emitted to Amazon
-- CloudWatch.
--
-- 'hyperParameters', 'describeTrainingJobResponse_hyperParameters' - Algorithm-specific parameters.
--
-- 'inputDataConfig', 'describeTrainingJobResponse_inputDataConfig' - An array of @Channel@ objects that describes each data input channel.
--
-- 'labelingJobArn', 'describeTrainingJobResponse_labelingJobArn' - The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling
-- job that created the transform or training job.
--
-- 'lastModifiedTime', 'describeTrainingJobResponse_lastModifiedTime' - A timestamp that indicates when the status of the training job was last
-- modified.
--
-- 'outputDataConfig', 'describeTrainingJobResponse_outputDataConfig' - The S3 path where model artifacts that you configured when creating the
-- job are stored. SageMaker creates subfolders for model artifacts.
--
-- 'profilerConfig', 'describeTrainingJobResponse_profilerConfig' - Undocumented member.
--
-- 'profilerRuleConfigurations', 'describeTrainingJobResponse_profilerRuleConfigurations' - Configuration information for Amazon SageMaker Debugger rules for
-- profiling system and framework metrics.
--
-- 'profilerRuleEvaluationStatuses', 'describeTrainingJobResponse_profilerRuleEvaluationStatuses' - Evaluation status of Amazon SageMaker Debugger rules for profiling on a
-- training job.
--
-- 'profilingStatus', 'describeTrainingJobResponse_profilingStatus' - Profiling status of a training job.
--
-- 'retryStrategy', 'describeTrainingJobResponse_retryStrategy' - The number of times to retry the job when the job fails due to an
-- @InternalServerError@.
--
-- 'roleArn', 'describeTrainingJobResponse_roleArn' - The Amazon Web Services Identity and Access Management (IAM) role
-- configured for the training job.
--
-- 'secondaryStatusTransitions', 'describeTrainingJobResponse_secondaryStatusTransitions' - A history of all of the secondary statuses that the training job has
-- transitioned through.
--
-- 'tensorBoardOutputConfig', 'describeTrainingJobResponse_tensorBoardOutputConfig' - Undocumented member.
--
-- 'trainingEndTime', 'describeTrainingJobResponse_trainingEndTime' - Indicates the time when the training job ends on training instances. You
-- are billed for the time interval between the value of
-- @TrainingStartTime@ and this time. For successful jobs and stopped jobs,
-- this is the time after model artifacts are uploaded. For failed jobs,
-- this is the time when SageMaker detects a job failure.
--
-- 'trainingStartTime', 'describeTrainingJobResponse_trainingStartTime' - Indicates the time when the training job starts on training instances.
-- You are billed for the time interval between this time and the value of
-- @TrainingEndTime@. The start time in CloudWatch Logs might be later than
-- this time. The difference is due to the time it takes to download the
-- training data and to the size of the training container.
--
-- 'trainingTimeInSeconds', 'describeTrainingJobResponse_trainingTimeInSeconds' - The training time in seconds.
--
-- 'tuningJobArn', 'describeTrainingJobResponse_tuningJobArn' - The Amazon Resource Name (ARN) of the associated hyperparameter tuning
-- job if the training job was launched by a hyperparameter tuning job.
--
-- 'vpcConfig', 'describeTrainingJobResponse_vpcConfig' - A VpcConfig object that specifies the VPC that this training job has
-- access to. For more information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html Protect Training Jobs by Using an Amazon Virtual Private Cloud>.
--
-- 'warmPoolStatus', 'describeTrainingJobResponse_warmPoolStatus' - The status of the warm pool associated with the training job.
--
-- 'httpStatus', 'describeTrainingJobResponse_httpStatus' - The response's http status code.
--
-- 'trainingJobName', 'describeTrainingJobResponse_trainingJobName' - Name of the model training job.
--
-- 'trainingJobArn', 'describeTrainingJobResponse_trainingJobArn' - The Amazon Resource Name (ARN) of the training job.
--
-- 'modelArtifacts', 'describeTrainingJobResponse_modelArtifacts' - Information about the Amazon S3 location that is configured for storing
-- model artifacts.
--
-- 'trainingJobStatus', 'describeTrainingJobResponse_trainingJobStatus' - The status of the training job.
--
-- SageMaker provides the following training job statuses:
--
-- -   @InProgress@ - The training is in progress.
--
-- -   @Completed@ - The training job has completed.
--
-- -   @Failed@ - The training job has failed. To see the reason for the
--     failure, see the @FailureReason@ field in the response to a
--     @DescribeTrainingJobResponse@ call.
--
-- -   @Stopping@ - The training job is stopping.
--
-- -   @Stopped@ - The training job has stopped.
--
-- For more detailed information, see @SecondaryStatus@.
--
-- 'secondaryStatus', 'describeTrainingJobResponse_secondaryStatus' - Provides detailed information about the state of the training job. For
-- detailed information on the secondary status of the training job, see
-- @StatusMessage@ under SecondaryStatusTransition.
--
-- SageMaker provides primary statuses and secondary statuses that apply to
-- each of them:
--
-- [InProgress]
--     -   @Starting@ - Starting the training job.
--
--     -   @Downloading@ - An optional stage for algorithms that support
--         @File@ training input mode. It indicates that data is being
--         downloaded to the ML storage volumes.
--
--     -   @Training@ - Training is in progress.
--
--     -   @Interrupted@ - The job stopped because the managed spot
--         training instances were interrupted.
--
--     -   @Uploading@ - Training is complete and the model artifacts are
--         being uploaded to the S3 location.
--
-- [Completed]
--     -   @Completed@ - The training job has completed.
--
-- [Failed]
--     -   @Failed@ - The training job has failed. The reason for the
--         failure is returned in the @FailureReason@ field of
--         @DescribeTrainingJobResponse@.
--
-- [Stopped]
--     -   @MaxRuntimeExceeded@ - The job stopped because it exceeded the
--         maximum allowed runtime.
--
--     -   @MaxWaitTimeExceeded@ - The job stopped because it exceeded the
--         maximum allowed wait time.
--
--     -   @Stopped@ - The training job has stopped.
--
-- [Stopping]
--     -   @Stopping@ - Stopping the training job.
--
-- Valid values for @SecondaryStatus@ are subject to change.
--
-- We no longer support the following secondary statuses:
--
-- -   @LaunchingMLInstances@
--
-- -   @PreparingTraining@
--
-- -   @DownloadingTrainingImage@
--
-- 'algorithmSpecification', 'describeTrainingJobResponse_algorithmSpecification' - Information about the algorithm used for training, and algorithm
-- metadata.
--
-- 'resourceConfig', 'describeTrainingJobResponse_resourceConfig' - Resources, including ML compute instances and ML storage volumes, that
-- are configured for model training.
--
-- 'stoppingCondition', 'describeTrainingJobResponse_stoppingCondition' - Specifies a limit to how long a model training job can run. It also
-- specifies how long a managed Spot training job has to complete. When the
-- job reaches the time limit, SageMaker ends the training job. Use this
-- API to cap model training costs.
--
-- To stop a job, SageMaker sends the algorithm the @SIGTERM@ signal, which
-- delays job termination for 120 seconds. Algorithms can use this
-- 120-second window to save the model artifacts, so the results of
-- training are not lost.
--
-- 'creationTime', 'describeTrainingJobResponse_creationTime' - A timestamp that indicates when the training job was created.
newDescribeTrainingJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'trainingJobName'
  Prelude.Text ->
  -- | 'trainingJobArn'
  Prelude.Text ->
  -- | 'modelArtifacts'
  ModelArtifacts ->
  -- | 'trainingJobStatus'
  TrainingJobStatus ->
  -- | 'secondaryStatus'
  SecondaryStatus ->
  -- | 'algorithmSpecification'
  AlgorithmSpecification ->
  -- | 'resourceConfig'
  ResourceConfig ->
  -- | 'stoppingCondition'
  StoppingCondition ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  DescribeTrainingJobResponse
newDescribeTrainingJobResponse :: Int
-> Text
-> Text
-> ModelArtifacts
-> TrainingJobStatus
-> SecondaryStatus
-> AlgorithmSpecification
-> ResourceConfig
-> StoppingCondition
-> UTCTime
-> DescribeTrainingJobResponse
newDescribeTrainingJobResponse
  Int
pHttpStatus_
  Text
pTrainingJobName_
  Text
pTrainingJobArn_
  ModelArtifacts
pModelArtifacts_
  TrainingJobStatus
pTrainingJobStatus_
  SecondaryStatus
pSecondaryStatus_
  AlgorithmSpecification
pAlgorithmSpecification_
  ResourceConfig
pResourceConfig_
  StoppingCondition
pStoppingCondition_
  UTCTime
pCreationTime_ =
    DescribeTrainingJobResponse'
      { $sel:autoMLJobArn:DescribeTrainingJobResponse' :: Maybe Text
autoMLJobArn =
          forall a. Maybe a
Prelude.Nothing,
        $sel:billableTimeInSeconds:DescribeTrainingJobResponse' :: Maybe Natural
billableTimeInSeconds = forall a. Maybe a
Prelude.Nothing,
        $sel:checkpointConfig:DescribeTrainingJobResponse' :: Maybe CheckpointConfig
checkpointConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:debugHookConfig:DescribeTrainingJobResponse' :: Maybe DebugHookConfig
debugHookConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:debugRuleConfigurations:DescribeTrainingJobResponse' :: Maybe [DebugRuleConfiguration]
debugRuleConfigurations = forall a. Maybe a
Prelude.Nothing,
        $sel:debugRuleEvaluationStatuses:DescribeTrainingJobResponse' :: Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses = forall a. Maybe a
Prelude.Nothing,
        $sel:enableInterContainerTrafficEncryption:DescribeTrainingJobResponse' :: Maybe Bool
enableInterContainerTrafficEncryption =
          forall a. Maybe a
Prelude.Nothing,
        $sel:enableManagedSpotTraining:DescribeTrainingJobResponse' :: Maybe Bool
enableManagedSpotTraining = forall a. Maybe a
Prelude.Nothing,
        $sel:enableNetworkIsolation:DescribeTrainingJobResponse' :: Maybe Bool
enableNetworkIsolation = forall a. Maybe a
Prelude.Nothing,
        $sel:environment:DescribeTrainingJobResponse' :: Maybe (HashMap Text Text)
environment = forall a. Maybe a
Prelude.Nothing,
        $sel:experimentConfig:DescribeTrainingJobResponse' :: Maybe ExperimentConfig
experimentConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:failureReason:DescribeTrainingJobResponse' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
        $sel:finalMetricDataList:DescribeTrainingJobResponse' :: Maybe [MetricData]
finalMetricDataList = forall a. Maybe a
Prelude.Nothing,
        $sel:hyperParameters:DescribeTrainingJobResponse' :: Maybe (HashMap Text Text)
hyperParameters = forall a. Maybe a
Prelude.Nothing,
        $sel:inputDataConfig:DescribeTrainingJobResponse' :: Maybe (NonEmpty Channel)
inputDataConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:labelingJobArn:DescribeTrainingJobResponse' :: Maybe Text
labelingJobArn = forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:DescribeTrainingJobResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
        $sel:outputDataConfig:DescribeTrainingJobResponse' :: Maybe OutputDataConfig
outputDataConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:profilerConfig:DescribeTrainingJobResponse' :: Maybe ProfilerConfig
profilerConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:profilerRuleConfigurations:DescribeTrainingJobResponse' :: Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations = forall a. Maybe a
Prelude.Nothing,
        $sel:profilerRuleEvaluationStatuses:DescribeTrainingJobResponse' :: Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses =
          forall a. Maybe a
Prelude.Nothing,
        $sel:profilingStatus:DescribeTrainingJobResponse' :: Maybe ProfilingStatus
profilingStatus = forall a. Maybe a
Prelude.Nothing,
        $sel:retryStrategy:DescribeTrainingJobResponse' :: Maybe RetryStrategy
retryStrategy = forall a. Maybe a
Prelude.Nothing,
        $sel:roleArn:DescribeTrainingJobResponse' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
        $sel:secondaryStatusTransitions:DescribeTrainingJobResponse' :: Maybe [SecondaryStatusTransition]
secondaryStatusTransitions = forall a. Maybe a
Prelude.Nothing,
        $sel:tensorBoardOutputConfig:DescribeTrainingJobResponse' :: Maybe TensorBoardOutputConfig
tensorBoardOutputConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:trainingEndTime:DescribeTrainingJobResponse' :: Maybe POSIX
trainingEndTime = forall a. Maybe a
Prelude.Nothing,
        $sel:trainingStartTime:DescribeTrainingJobResponse' :: Maybe POSIX
trainingStartTime = forall a. Maybe a
Prelude.Nothing,
        $sel:trainingTimeInSeconds:DescribeTrainingJobResponse' :: Maybe Natural
trainingTimeInSeconds = forall a. Maybe a
Prelude.Nothing,
        $sel:tuningJobArn:DescribeTrainingJobResponse' :: Maybe Text
tuningJobArn = forall a. Maybe a
Prelude.Nothing,
        $sel:vpcConfig:DescribeTrainingJobResponse' :: Maybe VpcConfig
vpcConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:warmPoolStatus:DescribeTrainingJobResponse' :: Maybe WarmPoolStatus
warmPoolStatus = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeTrainingJobResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:trainingJobName:DescribeTrainingJobResponse' :: Text
trainingJobName = Text
pTrainingJobName_,
        $sel:trainingJobArn:DescribeTrainingJobResponse' :: Text
trainingJobArn = Text
pTrainingJobArn_,
        $sel:modelArtifacts:DescribeTrainingJobResponse' :: ModelArtifacts
modelArtifacts = ModelArtifacts
pModelArtifacts_,
        $sel:trainingJobStatus:DescribeTrainingJobResponse' :: TrainingJobStatus
trainingJobStatus = TrainingJobStatus
pTrainingJobStatus_,
        $sel:secondaryStatus:DescribeTrainingJobResponse' :: SecondaryStatus
secondaryStatus = SecondaryStatus
pSecondaryStatus_,
        $sel:algorithmSpecification:DescribeTrainingJobResponse' :: AlgorithmSpecification
algorithmSpecification =
          AlgorithmSpecification
pAlgorithmSpecification_,
        $sel:resourceConfig:DescribeTrainingJobResponse' :: ResourceConfig
resourceConfig = ResourceConfig
pResourceConfig_,
        $sel:stoppingCondition:DescribeTrainingJobResponse' :: StoppingCondition
stoppingCondition = StoppingCondition
pStoppingCondition_,
        $sel:creationTime:DescribeTrainingJobResponse' :: POSIX
creationTime =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_
      }

-- | The Amazon Resource Name (ARN) of an AutoML job.
describeTrainingJobResponse_autoMLJobArn :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Text)
describeTrainingJobResponse_autoMLJobArn :: Lens' DescribeTrainingJobResponse (Maybe Text)
describeTrainingJobResponse_autoMLJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Text
autoMLJobArn :: Maybe Text
$sel:autoMLJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
autoMLJobArn} -> Maybe Text
autoMLJobArn) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Text
a -> DescribeTrainingJobResponse
s {$sel:autoMLJobArn:DescribeTrainingJobResponse' :: Maybe Text
autoMLJobArn = Maybe Text
a} :: DescribeTrainingJobResponse)

-- | The billable time in seconds. Billable time refers to the absolute
-- wall-clock time.
--
-- Multiply @BillableTimeInSeconds@ by the number of instances
-- (@InstanceCount@) in your training cluster to get the total compute time
-- SageMaker bills you if you run distributed training. The formula is as
-- follows: @BillableTimeInSeconds * InstanceCount@ .
--
-- You can calculate the savings from using managed spot training using the
-- formula @(1 - BillableTimeInSeconds \/ TrainingTimeInSeconds) * 100@.
-- For example, if @BillableTimeInSeconds@ is 100 and
-- @TrainingTimeInSeconds@ is 500, the savings is 80%.
describeTrainingJobResponse_billableTimeInSeconds :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Natural)
describeTrainingJobResponse_billableTimeInSeconds :: Lens' DescribeTrainingJobResponse (Maybe Natural)
describeTrainingJobResponse_billableTimeInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Natural
billableTimeInSeconds :: Maybe Natural
$sel:billableTimeInSeconds:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Natural
billableTimeInSeconds} -> Maybe Natural
billableTimeInSeconds) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Natural
a -> DescribeTrainingJobResponse
s {$sel:billableTimeInSeconds:DescribeTrainingJobResponse' :: Maybe Natural
billableTimeInSeconds = Maybe Natural
a} :: DescribeTrainingJobResponse)

-- | Undocumented member.
describeTrainingJobResponse_checkpointConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe CheckpointConfig)
describeTrainingJobResponse_checkpointConfig :: Lens' DescribeTrainingJobResponse (Maybe CheckpointConfig)
describeTrainingJobResponse_checkpointConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe CheckpointConfig
checkpointConfig :: Maybe CheckpointConfig
$sel:checkpointConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe CheckpointConfig
checkpointConfig} -> Maybe CheckpointConfig
checkpointConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe CheckpointConfig
a -> DescribeTrainingJobResponse
s {$sel:checkpointConfig:DescribeTrainingJobResponse' :: Maybe CheckpointConfig
checkpointConfig = Maybe CheckpointConfig
a} :: DescribeTrainingJobResponse)

-- | Undocumented member.
describeTrainingJobResponse_debugHookConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe DebugHookConfig)
describeTrainingJobResponse_debugHookConfig :: Lens' DescribeTrainingJobResponse (Maybe DebugHookConfig)
describeTrainingJobResponse_debugHookConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe DebugHookConfig
debugHookConfig :: Maybe DebugHookConfig
$sel:debugHookConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe DebugHookConfig
debugHookConfig} -> Maybe DebugHookConfig
debugHookConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe DebugHookConfig
a -> DescribeTrainingJobResponse
s {$sel:debugHookConfig:DescribeTrainingJobResponse' :: Maybe DebugHookConfig
debugHookConfig = Maybe DebugHookConfig
a} :: DescribeTrainingJobResponse)

-- | Configuration information for Amazon SageMaker Debugger rules for
-- debugging output tensors.
describeTrainingJobResponse_debugRuleConfigurations :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [DebugRuleConfiguration])
describeTrainingJobResponse_debugRuleConfigurations :: Lens' DescribeTrainingJobResponse (Maybe [DebugRuleConfiguration])
describeTrainingJobResponse_debugRuleConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [DebugRuleConfiguration]
debugRuleConfigurations :: Maybe [DebugRuleConfiguration]
$sel:debugRuleConfigurations:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations} -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [DebugRuleConfiguration]
a -> DescribeTrainingJobResponse
s {$sel:debugRuleConfigurations:DescribeTrainingJobResponse' :: Maybe [DebugRuleConfiguration]
debugRuleConfigurations = Maybe [DebugRuleConfiguration]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Evaluation status of Amazon SageMaker Debugger rules for debugging on a
-- training job.
describeTrainingJobResponse_debugRuleEvaluationStatuses :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [DebugRuleEvaluationStatus])
describeTrainingJobResponse_debugRuleEvaluationStatuses :: Lens'
  DescribeTrainingJobResponse (Maybe [DebugRuleEvaluationStatus])
describeTrainingJobResponse_debugRuleEvaluationStatuses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses :: Maybe [DebugRuleEvaluationStatus]
$sel:debugRuleEvaluationStatuses:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses} -> Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [DebugRuleEvaluationStatus]
a -> DescribeTrainingJobResponse
s {$sel:debugRuleEvaluationStatuses:DescribeTrainingJobResponse' :: Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses = Maybe [DebugRuleEvaluationStatus]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | To encrypt all communications between ML compute instances in
-- distributed training, choose @True@. Encryption provides greater
-- security for distributed training, but training might take longer. How
-- long it takes depends on the amount of communication between compute
-- instances, especially if you use a deep learning algorithms in
-- distributed training.
describeTrainingJobResponse_enableInterContainerTrafficEncryption :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Bool)
describeTrainingJobResponse_enableInterContainerTrafficEncryption :: Lens' DescribeTrainingJobResponse (Maybe Bool)
describeTrainingJobResponse_enableInterContainerTrafficEncryption = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Bool
enableInterContainerTrafficEncryption :: Maybe Bool
$sel:enableInterContainerTrafficEncryption:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
enableInterContainerTrafficEncryption} -> Maybe Bool
enableInterContainerTrafficEncryption) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Bool
a -> DescribeTrainingJobResponse
s {$sel:enableInterContainerTrafficEncryption:DescribeTrainingJobResponse' :: Maybe Bool
enableInterContainerTrafficEncryption = Maybe Bool
a} :: DescribeTrainingJobResponse)

-- | A Boolean indicating whether managed spot training is enabled (@True@)
-- or not (@False@).
describeTrainingJobResponse_enableManagedSpotTraining :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Bool)
describeTrainingJobResponse_enableManagedSpotTraining :: Lens' DescribeTrainingJobResponse (Maybe Bool)
describeTrainingJobResponse_enableManagedSpotTraining = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Bool
enableManagedSpotTraining :: Maybe Bool
$sel:enableManagedSpotTraining:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
enableManagedSpotTraining} -> Maybe Bool
enableManagedSpotTraining) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Bool
a -> DescribeTrainingJobResponse
s {$sel:enableManagedSpotTraining:DescribeTrainingJobResponse' :: Maybe Bool
enableManagedSpotTraining = Maybe Bool
a} :: DescribeTrainingJobResponse)

-- | If you want to allow inbound or outbound network calls, except for calls
-- between peers within a training cluster for distributed training, choose
-- @True@. If you enable network isolation for training jobs that are
-- configured to use a VPC, SageMaker downloads and uploads customer data
-- and model artifacts through the specified VPC, but the training
-- container does not have network access.
describeTrainingJobResponse_enableNetworkIsolation :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Bool)
describeTrainingJobResponse_enableNetworkIsolation :: Lens' DescribeTrainingJobResponse (Maybe Bool)
describeTrainingJobResponse_enableNetworkIsolation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Bool
enableNetworkIsolation :: Maybe Bool
$sel:enableNetworkIsolation:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
enableNetworkIsolation} -> Maybe Bool
enableNetworkIsolation) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Bool
a -> DescribeTrainingJobResponse
s {$sel:enableNetworkIsolation:DescribeTrainingJobResponse' :: Maybe Bool
enableNetworkIsolation = Maybe Bool
a} :: DescribeTrainingJobResponse)

-- | The environment variables to set in the Docker container.
describeTrainingJobResponse_environment :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeTrainingJobResponse_environment :: Lens' DescribeTrainingJobResponse (Maybe (HashMap Text Text))
describeTrainingJobResponse_environment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe (HashMap Text Text)
environment :: Maybe (HashMap Text Text)
$sel:environment:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
environment} -> Maybe (HashMap Text Text)
environment) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeTrainingJobResponse
s {$sel:environment:DescribeTrainingJobResponse' :: Maybe (HashMap Text Text)
environment = Maybe (HashMap Text Text)
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
describeTrainingJobResponse_experimentConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe ExperimentConfig)
describeTrainingJobResponse_experimentConfig :: Lens' DescribeTrainingJobResponse (Maybe ExperimentConfig)
describeTrainingJobResponse_experimentConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe ExperimentConfig
experimentConfig :: Maybe ExperimentConfig
$sel:experimentConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ExperimentConfig
experimentConfig} -> Maybe ExperimentConfig
experimentConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe ExperimentConfig
a -> DescribeTrainingJobResponse
s {$sel:experimentConfig:DescribeTrainingJobResponse' :: Maybe ExperimentConfig
experimentConfig = Maybe ExperimentConfig
a} :: DescribeTrainingJobResponse)

-- | If the training job failed, the reason it failed.
describeTrainingJobResponse_failureReason :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Text)
describeTrainingJobResponse_failureReason :: Lens' DescribeTrainingJobResponse (Maybe Text)
describeTrainingJobResponse_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Text
a -> DescribeTrainingJobResponse
s {$sel:failureReason:DescribeTrainingJobResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeTrainingJobResponse)

-- | A collection of @MetricData@ objects that specify the names, values, and
-- dates and times that the training algorithm emitted to Amazon
-- CloudWatch.
describeTrainingJobResponse_finalMetricDataList :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [MetricData])
describeTrainingJobResponse_finalMetricDataList :: Lens' DescribeTrainingJobResponse (Maybe [MetricData])
describeTrainingJobResponse_finalMetricDataList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [MetricData]
finalMetricDataList :: Maybe [MetricData]
$sel:finalMetricDataList:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [MetricData]
finalMetricDataList} -> Maybe [MetricData]
finalMetricDataList) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [MetricData]
a -> DescribeTrainingJobResponse
s {$sel:finalMetricDataList:DescribeTrainingJobResponse' :: Maybe [MetricData]
finalMetricDataList = Maybe [MetricData]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Algorithm-specific parameters.
describeTrainingJobResponse_hyperParameters :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeTrainingJobResponse_hyperParameters :: Lens' DescribeTrainingJobResponse (Maybe (HashMap Text Text))
describeTrainingJobResponse_hyperParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe (HashMap Text Text)
hyperParameters :: Maybe (HashMap Text Text)
$sel:hyperParameters:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
hyperParameters} -> Maybe (HashMap Text Text)
hyperParameters) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeTrainingJobResponse
s {$sel:hyperParameters:DescribeTrainingJobResponse' :: Maybe (HashMap Text Text)
hyperParameters = Maybe (HashMap Text Text)
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An array of @Channel@ objects that describes each data input channel.
describeTrainingJobResponse_inputDataConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe (Prelude.NonEmpty Channel))
describeTrainingJobResponse_inputDataConfig :: Lens' DescribeTrainingJobResponse (Maybe (NonEmpty Channel))
describeTrainingJobResponse_inputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe (NonEmpty Channel)
inputDataConfig :: Maybe (NonEmpty Channel)
$sel:inputDataConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (NonEmpty Channel)
inputDataConfig} -> Maybe (NonEmpty Channel)
inputDataConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe (NonEmpty Channel)
a -> DescribeTrainingJobResponse
s {$sel:inputDataConfig:DescribeTrainingJobResponse' :: Maybe (NonEmpty Channel)
inputDataConfig = Maybe (NonEmpty Channel)
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling
-- job that created the transform or training job.
describeTrainingJobResponse_labelingJobArn :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Text)
describeTrainingJobResponse_labelingJobArn :: Lens' DescribeTrainingJobResponse (Maybe Text)
describeTrainingJobResponse_labelingJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Text
labelingJobArn :: Maybe Text
$sel:labelingJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
labelingJobArn} -> Maybe Text
labelingJobArn) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Text
a -> DescribeTrainingJobResponse
s {$sel:labelingJobArn:DescribeTrainingJobResponse' :: Maybe Text
labelingJobArn = Maybe Text
a} :: DescribeTrainingJobResponse)

-- | A timestamp that indicates when the status of the training job was last
-- modified.
describeTrainingJobResponse_lastModifiedTime :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.UTCTime)
describeTrainingJobResponse_lastModifiedTime :: Lens' DescribeTrainingJobResponse (Maybe UTCTime)
describeTrainingJobResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe POSIX
a -> DescribeTrainingJobResponse
s {$sel:lastModifiedTime:DescribeTrainingJobResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The S3 path where model artifacts that you configured when creating the
-- job are stored. SageMaker creates subfolders for model artifacts.
describeTrainingJobResponse_outputDataConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe OutputDataConfig)
describeTrainingJobResponse_outputDataConfig :: Lens' DescribeTrainingJobResponse (Maybe OutputDataConfig)
describeTrainingJobResponse_outputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe OutputDataConfig
a -> DescribeTrainingJobResponse
s {$sel:outputDataConfig:DescribeTrainingJobResponse' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: DescribeTrainingJobResponse)

-- | Undocumented member.
describeTrainingJobResponse_profilerConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe ProfilerConfig)
describeTrainingJobResponse_profilerConfig :: Lens' DescribeTrainingJobResponse (Maybe ProfilerConfig)
describeTrainingJobResponse_profilerConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe ProfilerConfig
profilerConfig :: Maybe ProfilerConfig
$sel:profilerConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ProfilerConfig
profilerConfig} -> Maybe ProfilerConfig
profilerConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe ProfilerConfig
a -> DescribeTrainingJobResponse
s {$sel:profilerConfig:DescribeTrainingJobResponse' :: Maybe ProfilerConfig
profilerConfig = Maybe ProfilerConfig
a} :: DescribeTrainingJobResponse)

-- | Configuration information for Amazon SageMaker Debugger rules for
-- profiling system and framework metrics.
describeTrainingJobResponse_profilerRuleConfigurations :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [ProfilerRuleConfiguration])
describeTrainingJobResponse_profilerRuleConfigurations :: Lens'
  DescribeTrainingJobResponse (Maybe [ProfilerRuleConfiguration])
describeTrainingJobResponse_profilerRuleConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations :: Maybe [ProfilerRuleConfiguration]
$sel:profilerRuleConfigurations:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations} -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [ProfilerRuleConfiguration]
a -> DescribeTrainingJobResponse
s {$sel:profilerRuleConfigurations:DescribeTrainingJobResponse' :: Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations = Maybe [ProfilerRuleConfiguration]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Evaluation status of Amazon SageMaker Debugger rules for profiling on a
-- training job.
describeTrainingJobResponse_profilerRuleEvaluationStatuses :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [ProfilerRuleEvaluationStatus])
describeTrainingJobResponse_profilerRuleEvaluationStatuses :: Lens'
  DescribeTrainingJobResponse (Maybe [ProfilerRuleEvaluationStatus])
describeTrainingJobResponse_profilerRuleEvaluationStatuses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses :: Maybe [ProfilerRuleEvaluationStatus]
$sel:profilerRuleEvaluationStatuses:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses} -> Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [ProfilerRuleEvaluationStatus]
a -> DescribeTrainingJobResponse
s {$sel:profilerRuleEvaluationStatuses:DescribeTrainingJobResponse' :: Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses = Maybe [ProfilerRuleEvaluationStatus]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Profiling status of a training job.
describeTrainingJobResponse_profilingStatus :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe ProfilingStatus)
describeTrainingJobResponse_profilingStatus :: Lens' DescribeTrainingJobResponse (Maybe ProfilingStatus)
describeTrainingJobResponse_profilingStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe ProfilingStatus
profilingStatus :: Maybe ProfilingStatus
$sel:profilingStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ProfilingStatus
profilingStatus} -> Maybe ProfilingStatus
profilingStatus) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe ProfilingStatus
a -> DescribeTrainingJobResponse
s {$sel:profilingStatus:DescribeTrainingJobResponse' :: Maybe ProfilingStatus
profilingStatus = Maybe ProfilingStatus
a} :: DescribeTrainingJobResponse)

-- | The number of times to retry the job when the job fails due to an
-- @InternalServerError@.
describeTrainingJobResponse_retryStrategy :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe RetryStrategy)
describeTrainingJobResponse_retryStrategy :: Lens' DescribeTrainingJobResponse (Maybe RetryStrategy)
describeTrainingJobResponse_retryStrategy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe RetryStrategy
retryStrategy :: Maybe RetryStrategy
$sel:retryStrategy:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe RetryStrategy
retryStrategy} -> Maybe RetryStrategy
retryStrategy) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe RetryStrategy
a -> DescribeTrainingJobResponse
s {$sel:retryStrategy:DescribeTrainingJobResponse' :: Maybe RetryStrategy
retryStrategy = Maybe RetryStrategy
a} :: DescribeTrainingJobResponse)

-- | The Amazon Web Services Identity and Access Management (IAM) role
-- configured for the training job.
describeTrainingJobResponse_roleArn :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Text)
describeTrainingJobResponse_roleArn :: Lens' DescribeTrainingJobResponse (Maybe Text)
describeTrainingJobResponse_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Text
a -> DescribeTrainingJobResponse
s {$sel:roleArn:DescribeTrainingJobResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeTrainingJobResponse)

-- | A history of all of the secondary statuses that the training job has
-- transitioned through.
describeTrainingJobResponse_secondaryStatusTransitions :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe [SecondaryStatusTransition])
describeTrainingJobResponse_secondaryStatusTransitions :: Lens'
  DescribeTrainingJobResponse (Maybe [SecondaryStatusTransition])
describeTrainingJobResponse_secondaryStatusTransitions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe [SecondaryStatusTransition]
secondaryStatusTransitions :: Maybe [SecondaryStatusTransition]
$sel:secondaryStatusTransitions:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [SecondaryStatusTransition]
secondaryStatusTransitions} -> Maybe [SecondaryStatusTransition]
secondaryStatusTransitions) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe [SecondaryStatusTransition]
a -> DescribeTrainingJobResponse
s {$sel:secondaryStatusTransitions:DescribeTrainingJobResponse' :: Maybe [SecondaryStatusTransition]
secondaryStatusTransitions = Maybe [SecondaryStatusTransition]
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
describeTrainingJobResponse_tensorBoardOutputConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe TensorBoardOutputConfig)
describeTrainingJobResponse_tensorBoardOutputConfig :: Lens' DescribeTrainingJobResponse (Maybe TensorBoardOutputConfig)
describeTrainingJobResponse_tensorBoardOutputConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe TensorBoardOutputConfig
tensorBoardOutputConfig :: Maybe TensorBoardOutputConfig
$sel:tensorBoardOutputConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig} -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe TensorBoardOutputConfig
a -> DescribeTrainingJobResponse
s {$sel:tensorBoardOutputConfig:DescribeTrainingJobResponse' :: Maybe TensorBoardOutputConfig
tensorBoardOutputConfig = Maybe TensorBoardOutputConfig
a} :: DescribeTrainingJobResponse)

-- | Indicates the time when the training job ends on training instances. You
-- are billed for the time interval between the value of
-- @TrainingStartTime@ and this time. For successful jobs and stopped jobs,
-- this is the time after model artifacts are uploaded. For failed jobs,
-- this is the time when SageMaker detects a job failure.
describeTrainingJobResponse_trainingEndTime :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.UTCTime)
describeTrainingJobResponse_trainingEndTime :: Lens' DescribeTrainingJobResponse (Maybe UTCTime)
describeTrainingJobResponse_trainingEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe POSIX
trainingEndTime :: Maybe POSIX
$sel:trainingEndTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
trainingEndTime} -> Maybe POSIX
trainingEndTime) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe POSIX
a -> DescribeTrainingJobResponse
s {$sel:trainingEndTime:DescribeTrainingJobResponse' :: Maybe POSIX
trainingEndTime = Maybe POSIX
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Indicates the time when the training job starts on training instances.
-- You are billed for the time interval between this time and the value of
-- @TrainingEndTime@. The start time in CloudWatch Logs might be later than
-- this time. The difference is due to the time it takes to download the
-- training data and to the size of the training container.
describeTrainingJobResponse_trainingStartTime :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.UTCTime)
describeTrainingJobResponse_trainingStartTime :: Lens' DescribeTrainingJobResponse (Maybe UTCTime)
describeTrainingJobResponse_trainingStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe POSIX
trainingStartTime :: Maybe POSIX
$sel:trainingStartTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
trainingStartTime} -> Maybe POSIX
trainingStartTime) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe POSIX
a -> DescribeTrainingJobResponse
s {$sel:trainingStartTime:DescribeTrainingJobResponse' :: Maybe POSIX
trainingStartTime = Maybe POSIX
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The training time in seconds.
describeTrainingJobResponse_trainingTimeInSeconds :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Natural)
describeTrainingJobResponse_trainingTimeInSeconds :: Lens' DescribeTrainingJobResponse (Maybe Natural)
describeTrainingJobResponse_trainingTimeInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Natural
trainingTimeInSeconds :: Maybe Natural
$sel:trainingTimeInSeconds:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Natural
trainingTimeInSeconds} -> Maybe Natural
trainingTimeInSeconds) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Natural
a -> DescribeTrainingJobResponse
s {$sel:trainingTimeInSeconds:DescribeTrainingJobResponse' :: Maybe Natural
trainingTimeInSeconds = Maybe Natural
a} :: DescribeTrainingJobResponse)

-- | The Amazon Resource Name (ARN) of the associated hyperparameter tuning
-- job if the training job was launched by a hyperparameter tuning job.
describeTrainingJobResponse_tuningJobArn :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe Prelude.Text)
describeTrainingJobResponse_tuningJobArn :: Lens' DescribeTrainingJobResponse (Maybe Text)
describeTrainingJobResponse_tuningJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe Text
tuningJobArn :: Maybe Text
$sel:tuningJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
tuningJobArn} -> Maybe Text
tuningJobArn) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe Text
a -> DescribeTrainingJobResponse
s {$sel:tuningJobArn:DescribeTrainingJobResponse' :: Maybe Text
tuningJobArn = Maybe Text
a} :: DescribeTrainingJobResponse)

-- | A VpcConfig object that specifies the VPC that this training job has
-- access to. For more information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html Protect Training Jobs by Using an Amazon Virtual Private Cloud>.
describeTrainingJobResponse_vpcConfig :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe VpcConfig)
describeTrainingJobResponse_vpcConfig :: Lens' DescribeTrainingJobResponse (Maybe VpcConfig)
describeTrainingJobResponse_vpcConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe VpcConfig
a -> DescribeTrainingJobResponse
s {$sel:vpcConfig:DescribeTrainingJobResponse' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: DescribeTrainingJobResponse)

-- | The status of the warm pool associated with the training job.
describeTrainingJobResponse_warmPoolStatus :: Lens.Lens' DescribeTrainingJobResponse (Prelude.Maybe WarmPoolStatus)
describeTrainingJobResponse_warmPoolStatus :: Lens' DescribeTrainingJobResponse (Maybe WarmPoolStatus)
describeTrainingJobResponse_warmPoolStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Maybe WarmPoolStatus
warmPoolStatus :: Maybe WarmPoolStatus
$sel:warmPoolStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe WarmPoolStatus
warmPoolStatus} -> Maybe WarmPoolStatus
warmPoolStatus) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Maybe WarmPoolStatus
a -> DescribeTrainingJobResponse
s {$sel:warmPoolStatus:DescribeTrainingJobResponse' :: Maybe WarmPoolStatus
warmPoolStatus = Maybe WarmPoolStatus
a} :: DescribeTrainingJobResponse)

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

-- | Name of the model training job.
describeTrainingJobResponse_trainingJobName :: Lens.Lens' DescribeTrainingJobResponse Prelude.Text
describeTrainingJobResponse_trainingJobName :: Lens' DescribeTrainingJobResponse Text
describeTrainingJobResponse_trainingJobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {Text
trainingJobName :: Text
$sel:trainingJobName:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Text
trainingJobName} -> Text
trainingJobName) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} Text
a -> DescribeTrainingJobResponse
s {$sel:trainingJobName:DescribeTrainingJobResponse' :: Text
trainingJobName = Text
a} :: DescribeTrainingJobResponse)

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

-- | Information about the Amazon S3 location that is configured for storing
-- model artifacts.
describeTrainingJobResponse_modelArtifacts :: Lens.Lens' DescribeTrainingJobResponse ModelArtifacts
describeTrainingJobResponse_modelArtifacts :: Lens' DescribeTrainingJobResponse ModelArtifacts
describeTrainingJobResponse_modelArtifacts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {ModelArtifacts
modelArtifacts :: ModelArtifacts
$sel:modelArtifacts:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> ModelArtifacts
modelArtifacts} -> ModelArtifacts
modelArtifacts) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} ModelArtifacts
a -> DescribeTrainingJobResponse
s {$sel:modelArtifacts:DescribeTrainingJobResponse' :: ModelArtifacts
modelArtifacts = ModelArtifacts
a} :: DescribeTrainingJobResponse)

-- | The status of the training job.
--
-- SageMaker provides the following training job statuses:
--
-- -   @InProgress@ - The training is in progress.
--
-- -   @Completed@ - The training job has completed.
--
-- -   @Failed@ - The training job has failed. To see the reason for the
--     failure, see the @FailureReason@ field in the response to a
--     @DescribeTrainingJobResponse@ call.
--
-- -   @Stopping@ - The training job is stopping.
--
-- -   @Stopped@ - The training job has stopped.
--
-- For more detailed information, see @SecondaryStatus@.
describeTrainingJobResponse_trainingJobStatus :: Lens.Lens' DescribeTrainingJobResponse TrainingJobStatus
describeTrainingJobResponse_trainingJobStatus :: Lens' DescribeTrainingJobResponse TrainingJobStatus
describeTrainingJobResponse_trainingJobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {TrainingJobStatus
trainingJobStatus :: TrainingJobStatus
$sel:trainingJobStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> TrainingJobStatus
trainingJobStatus} -> TrainingJobStatus
trainingJobStatus) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} TrainingJobStatus
a -> DescribeTrainingJobResponse
s {$sel:trainingJobStatus:DescribeTrainingJobResponse' :: TrainingJobStatus
trainingJobStatus = TrainingJobStatus
a} :: DescribeTrainingJobResponse)

-- | Provides detailed information about the state of the training job. For
-- detailed information on the secondary status of the training job, see
-- @StatusMessage@ under SecondaryStatusTransition.
--
-- SageMaker provides primary statuses and secondary statuses that apply to
-- each of them:
--
-- [InProgress]
--     -   @Starting@ - Starting the training job.
--
--     -   @Downloading@ - An optional stage for algorithms that support
--         @File@ training input mode. It indicates that data is being
--         downloaded to the ML storage volumes.
--
--     -   @Training@ - Training is in progress.
--
--     -   @Interrupted@ - The job stopped because the managed spot
--         training instances were interrupted.
--
--     -   @Uploading@ - Training is complete and the model artifacts are
--         being uploaded to the S3 location.
--
-- [Completed]
--     -   @Completed@ - The training job has completed.
--
-- [Failed]
--     -   @Failed@ - The training job has failed. The reason for the
--         failure is returned in the @FailureReason@ field of
--         @DescribeTrainingJobResponse@.
--
-- [Stopped]
--     -   @MaxRuntimeExceeded@ - The job stopped because it exceeded the
--         maximum allowed runtime.
--
--     -   @MaxWaitTimeExceeded@ - The job stopped because it exceeded the
--         maximum allowed wait time.
--
--     -   @Stopped@ - The training job has stopped.
--
-- [Stopping]
--     -   @Stopping@ - Stopping the training job.
--
-- Valid values for @SecondaryStatus@ are subject to change.
--
-- We no longer support the following secondary statuses:
--
-- -   @LaunchingMLInstances@
--
-- -   @PreparingTraining@
--
-- -   @DownloadingTrainingImage@
describeTrainingJobResponse_secondaryStatus :: Lens.Lens' DescribeTrainingJobResponse SecondaryStatus
describeTrainingJobResponse_secondaryStatus :: Lens' DescribeTrainingJobResponse SecondaryStatus
describeTrainingJobResponse_secondaryStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {SecondaryStatus
secondaryStatus :: SecondaryStatus
$sel:secondaryStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> SecondaryStatus
secondaryStatus} -> SecondaryStatus
secondaryStatus) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} SecondaryStatus
a -> DescribeTrainingJobResponse
s {$sel:secondaryStatus:DescribeTrainingJobResponse' :: SecondaryStatus
secondaryStatus = SecondaryStatus
a} :: DescribeTrainingJobResponse)

-- | Information about the algorithm used for training, and algorithm
-- metadata.
describeTrainingJobResponse_algorithmSpecification :: Lens.Lens' DescribeTrainingJobResponse AlgorithmSpecification
describeTrainingJobResponse_algorithmSpecification :: Lens' DescribeTrainingJobResponse AlgorithmSpecification
describeTrainingJobResponse_algorithmSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {AlgorithmSpecification
algorithmSpecification :: AlgorithmSpecification
$sel:algorithmSpecification:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> AlgorithmSpecification
algorithmSpecification} -> AlgorithmSpecification
algorithmSpecification) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} AlgorithmSpecification
a -> DescribeTrainingJobResponse
s {$sel:algorithmSpecification:DescribeTrainingJobResponse' :: AlgorithmSpecification
algorithmSpecification = AlgorithmSpecification
a} :: DescribeTrainingJobResponse)

-- | Resources, including ML compute instances and ML storage volumes, that
-- are configured for model training.
describeTrainingJobResponse_resourceConfig :: Lens.Lens' DescribeTrainingJobResponse ResourceConfig
describeTrainingJobResponse_resourceConfig :: Lens' DescribeTrainingJobResponse ResourceConfig
describeTrainingJobResponse_resourceConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {ResourceConfig
resourceConfig :: ResourceConfig
$sel:resourceConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> ResourceConfig
resourceConfig} -> ResourceConfig
resourceConfig) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} ResourceConfig
a -> DescribeTrainingJobResponse
s {$sel:resourceConfig:DescribeTrainingJobResponse' :: ResourceConfig
resourceConfig = ResourceConfig
a} :: DescribeTrainingJobResponse)

-- | Specifies a limit to how long a model training job can run. It also
-- specifies how long a managed Spot training job has to complete. When the
-- job reaches the time limit, SageMaker ends the training job. Use this
-- API to cap model training costs.
--
-- To stop a job, SageMaker sends the algorithm the @SIGTERM@ signal, which
-- delays job termination for 120 seconds. Algorithms can use this
-- 120-second window to save the model artifacts, so the results of
-- training are not lost.
describeTrainingJobResponse_stoppingCondition :: Lens.Lens' DescribeTrainingJobResponse StoppingCondition
describeTrainingJobResponse_stoppingCondition :: Lens' DescribeTrainingJobResponse StoppingCondition
describeTrainingJobResponse_stoppingCondition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {StoppingCondition
stoppingCondition :: StoppingCondition
$sel:stoppingCondition:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> StoppingCondition
stoppingCondition} -> StoppingCondition
stoppingCondition) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} StoppingCondition
a -> DescribeTrainingJobResponse
s {$sel:stoppingCondition:DescribeTrainingJobResponse' :: StoppingCondition
stoppingCondition = StoppingCondition
a} :: DescribeTrainingJobResponse)

-- | A timestamp that indicates when the training job was created.
describeTrainingJobResponse_creationTime :: Lens.Lens' DescribeTrainingJobResponse Prelude.UTCTime
describeTrainingJobResponse_creationTime :: Lens' DescribeTrainingJobResponse UTCTime
describeTrainingJobResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrainingJobResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeTrainingJobResponse
s@DescribeTrainingJobResponse' {} POSIX
a -> DescribeTrainingJobResponse
s {$sel:creationTime:DescribeTrainingJobResponse' :: POSIX
creationTime = POSIX
a} :: DescribeTrainingJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

instance Prelude.NFData DescribeTrainingJobResponse where
  rnf :: DescribeTrainingJobResponse -> ()
rnf DescribeTrainingJobResponse' {Int
Maybe Bool
Maybe Natural
Maybe [MetricData]
Maybe [DebugRuleConfiguration]
Maybe [ProfilerRuleConfiguration]
Maybe [ProfilerRuleEvaluationStatus]
Maybe [DebugRuleEvaluationStatus]
Maybe [SecondaryStatusTransition]
Maybe (NonEmpty Channel)
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe CheckpointConfig
Maybe DebugHookConfig
Maybe ExperimentConfig
Maybe OutputDataConfig
Maybe ProfilerConfig
Maybe ProfilingStatus
Maybe RetryStrategy
Maybe TensorBoardOutputConfig
Maybe VpcConfig
Maybe WarmPoolStatus
Text
POSIX
ModelArtifacts
SecondaryStatus
StoppingCondition
AlgorithmSpecification
ResourceConfig
TrainingJobStatus
creationTime :: POSIX
stoppingCondition :: StoppingCondition
resourceConfig :: ResourceConfig
algorithmSpecification :: AlgorithmSpecification
secondaryStatus :: SecondaryStatus
trainingJobStatus :: TrainingJobStatus
modelArtifacts :: ModelArtifacts
trainingJobArn :: Text
trainingJobName :: Text
httpStatus :: Int
warmPoolStatus :: Maybe WarmPoolStatus
vpcConfig :: Maybe VpcConfig
tuningJobArn :: Maybe Text
trainingTimeInSeconds :: Maybe Natural
trainingStartTime :: Maybe POSIX
trainingEndTime :: Maybe POSIX
tensorBoardOutputConfig :: Maybe TensorBoardOutputConfig
secondaryStatusTransitions :: Maybe [SecondaryStatusTransition]
roleArn :: Maybe Text
retryStrategy :: Maybe RetryStrategy
profilingStatus :: Maybe ProfilingStatus
profilerRuleEvaluationStatuses :: Maybe [ProfilerRuleEvaluationStatus]
profilerRuleConfigurations :: Maybe [ProfilerRuleConfiguration]
profilerConfig :: Maybe ProfilerConfig
outputDataConfig :: Maybe OutputDataConfig
lastModifiedTime :: Maybe POSIX
labelingJobArn :: Maybe Text
inputDataConfig :: Maybe (NonEmpty Channel)
hyperParameters :: Maybe (HashMap Text Text)
finalMetricDataList :: Maybe [MetricData]
failureReason :: Maybe Text
experimentConfig :: Maybe ExperimentConfig
environment :: Maybe (HashMap Text Text)
enableNetworkIsolation :: Maybe Bool
enableManagedSpotTraining :: Maybe Bool
enableInterContainerTrafficEncryption :: Maybe Bool
debugRuleEvaluationStatuses :: Maybe [DebugRuleEvaluationStatus]
debugRuleConfigurations :: Maybe [DebugRuleConfiguration]
debugHookConfig :: Maybe DebugHookConfig
checkpointConfig :: Maybe CheckpointConfig
billableTimeInSeconds :: Maybe Natural
autoMLJobArn :: Maybe Text
$sel:creationTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> POSIX
$sel:stoppingCondition:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> StoppingCondition
$sel:resourceConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> ResourceConfig
$sel:algorithmSpecification:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> AlgorithmSpecification
$sel:secondaryStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> SecondaryStatus
$sel:trainingJobStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> TrainingJobStatus
$sel:modelArtifacts:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> ModelArtifacts
$sel:trainingJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Text
$sel:trainingJobName:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Text
$sel:httpStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Int
$sel:warmPoolStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe WarmPoolStatus
$sel:vpcConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe VpcConfig
$sel:tuningJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
$sel:trainingTimeInSeconds:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Natural
$sel:trainingStartTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
$sel:trainingEndTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
$sel:tensorBoardOutputConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe TensorBoardOutputConfig
$sel:secondaryStatusTransitions:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [SecondaryStatusTransition]
$sel:roleArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
$sel:retryStrategy:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe RetryStrategy
$sel:profilingStatus:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ProfilingStatus
$sel:profilerRuleEvaluationStatuses:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [ProfilerRuleEvaluationStatus]
$sel:profilerRuleConfigurations:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [ProfilerRuleConfiguration]
$sel:profilerConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ProfilerConfig
$sel:outputDataConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe OutputDataConfig
$sel:lastModifiedTime:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe POSIX
$sel:labelingJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
$sel:inputDataConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (NonEmpty Channel)
$sel:hyperParameters:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
$sel:finalMetricDataList:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [MetricData]
$sel:failureReason:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
$sel:experimentConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe ExperimentConfig
$sel:environment:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe (HashMap Text Text)
$sel:enableNetworkIsolation:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
$sel:enableManagedSpotTraining:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
$sel:enableInterContainerTrafficEncryption:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Bool
$sel:debugRuleEvaluationStatuses:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [DebugRuleEvaluationStatus]
$sel:debugRuleConfigurations:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe [DebugRuleConfiguration]
$sel:debugHookConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe DebugHookConfig
$sel:checkpointConfig:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe CheckpointConfig
$sel:billableTimeInSeconds:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Natural
$sel:autoMLJobArn:DescribeTrainingJobResponse' :: DescribeTrainingJobResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
autoMLJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
billableTimeInSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CheckpointConfig
checkpointConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DebugHookConfig
debugHookConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [DebugRuleConfiguration]
debugRuleConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [DebugRuleEvaluationStatus]
debugRuleEvaluationStatuses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enableInterContainerTrafficEncryption
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enableManagedSpotTraining
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enableNetworkIsolation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
environment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExperimentConfig
experimentConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [MetricData]
finalMetricDataList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
hyperParameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Channel)
inputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
labelingJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputDataConfig
outputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProfilerConfig
profilerConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [ProfilerRuleEvaluationStatus]
profilerRuleEvaluationStatuses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe ProfilingStatus
profilingStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe RetryStrategy
retryStrategy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [SecondaryStatusTransition]
secondaryStatusTransitions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe TensorBoardOutputConfig
tensorBoardOutputConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe POSIX
trainingEndTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe POSIX
trainingStartTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Natural
trainingTimeInSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
tuningJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe VpcConfig
vpcConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe WarmPoolStatus
warmPoolStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Text
trainingJobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Text
trainingJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        ModelArtifacts
modelArtifacts
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        TrainingJobStatus
trainingJobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        SecondaryStatus
secondaryStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        AlgorithmSpecification
algorithmSpecification
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        ResourceConfig
resourceConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        StoppingCondition
stoppingCondition
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        POSIX
creationTime