{-# 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 #-}
module Amazonka.SageMaker.CreateTrainingJob
(
CreateTrainingJob (..),
newCreateTrainingJob,
createTrainingJob_environment,
createTrainingJob_debugHookConfig,
createTrainingJob_checkpointConfig,
createTrainingJob_retryStrategy,
createTrainingJob_profilerConfig,
createTrainingJob_enableNetworkIsolation,
createTrainingJob_experimentConfig,
createTrainingJob_debugRuleConfigurations,
createTrainingJob_enableManagedSpotTraining,
createTrainingJob_hyperParameters,
createTrainingJob_inputDataConfig,
createTrainingJob_profilerRuleConfigurations,
createTrainingJob_vpcConfig,
createTrainingJob_enableInterContainerTrafficEncryption,
createTrainingJob_tensorBoardOutputConfig,
createTrainingJob_tags,
createTrainingJob_trainingJobName,
createTrainingJob_algorithmSpecification,
createTrainingJob_roleArn,
createTrainingJob_outputDataConfig,
createTrainingJob_resourceConfig,
createTrainingJob_stoppingCondition,
CreateTrainingJobResponse (..),
newCreateTrainingJobResponse,
createTrainingJobResponse_httpStatus,
createTrainingJobResponse_trainingJobArn,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data CreateTrainingJob = CreateTrainingJob'
{
CreateTrainingJob -> Maybe (HashMap Text Text)
environment :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateTrainingJob -> Maybe DebugHookConfig
debugHookConfig :: Prelude.Maybe DebugHookConfig,
CreateTrainingJob -> Maybe CheckpointConfig
checkpointConfig :: Prelude.Maybe CheckpointConfig,
CreateTrainingJob -> Maybe RetryStrategy
retryStrategy :: Prelude.Maybe RetryStrategy,
CreateTrainingJob -> Maybe ProfilerConfig
profilerConfig :: Prelude.Maybe ProfilerConfig,
CreateTrainingJob -> Maybe Bool
enableNetworkIsolation :: Prelude.Maybe Prelude.Bool,
CreateTrainingJob -> Maybe ExperimentConfig
experimentConfig :: Prelude.Maybe ExperimentConfig,
CreateTrainingJob -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations :: Prelude.Maybe [DebugRuleConfiguration],
CreateTrainingJob -> Maybe Bool
enableManagedSpotTraining :: Prelude.Maybe Prelude.Bool,
CreateTrainingJob -> Maybe (HashMap Text Text)
hyperParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateTrainingJob -> Maybe (NonEmpty Channel)
inputDataConfig :: Prelude.Maybe (Prelude.NonEmpty Channel),
CreateTrainingJob -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations :: Prelude.Maybe [ProfilerRuleConfiguration],
CreateTrainingJob -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
CreateTrainingJob -> Maybe Bool
enableInterContainerTrafficEncryption :: Prelude.Maybe Prelude.Bool,
CreateTrainingJob -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig :: Prelude.Maybe TensorBoardOutputConfig,
CreateTrainingJob -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateTrainingJob -> Text
trainingJobName :: Prelude.Text,
CreateTrainingJob -> AlgorithmSpecification
algorithmSpecification :: AlgorithmSpecification,
CreateTrainingJob -> Text
roleArn :: Prelude.Text,
CreateTrainingJob -> OutputDataConfig
outputDataConfig :: OutputDataConfig,
CreateTrainingJob -> ResourceConfig
resourceConfig :: ResourceConfig,
CreateTrainingJob -> StoppingCondition
stoppingCondition :: StoppingCondition
}
deriving (CreateTrainingJob -> CreateTrainingJob -> Bool
(CreateTrainingJob -> CreateTrainingJob -> Bool)
-> (CreateTrainingJob -> CreateTrainingJob -> Bool)
-> Eq CreateTrainingJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTrainingJob -> CreateTrainingJob -> Bool
$c/= :: CreateTrainingJob -> CreateTrainingJob -> Bool
== :: CreateTrainingJob -> CreateTrainingJob -> Bool
$c== :: CreateTrainingJob -> CreateTrainingJob -> Bool
Prelude.Eq, ReadPrec [CreateTrainingJob]
ReadPrec CreateTrainingJob
Int -> ReadS CreateTrainingJob
ReadS [CreateTrainingJob]
(Int -> ReadS CreateTrainingJob)
-> ReadS [CreateTrainingJob]
-> ReadPrec CreateTrainingJob
-> ReadPrec [CreateTrainingJob]
-> Read CreateTrainingJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTrainingJob]
$creadListPrec :: ReadPrec [CreateTrainingJob]
readPrec :: ReadPrec CreateTrainingJob
$creadPrec :: ReadPrec CreateTrainingJob
readList :: ReadS [CreateTrainingJob]
$creadList :: ReadS [CreateTrainingJob]
readsPrec :: Int -> ReadS CreateTrainingJob
$creadsPrec :: Int -> ReadS CreateTrainingJob
Prelude.Read, Int -> CreateTrainingJob -> ShowS
[CreateTrainingJob] -> ShowS
CreateTrainingJob -> String
(Int -> CreateTrainingJob -> ShowS)
-> (CreateTrainingJob -> String)
-> ([CreateTrainingJob] -> ShowS)
-> Show CreateTrainingJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTrainingJob] -> ShowS
$cshowList :: [CreateTrainingJob] -> ShowS
show :: CreateTrainingJob -> String
$cshow :: CreateTrainingJob -> String
showsPrec :: Int -> CreateTrainingJob -> ShowS
$cshowsPrec :: Int -> CreateTrainingJob -> ShowS
Prelude.Show, (forall x. CreateTrainingJob -> Rep CreateTrainingJob x)
-> (forall x. Rep CreateTrainingJob x -> CreateTrainingJob)
-> Generic CreateTrainingJob
forall x. Rep CreateTrainingJob x -> CreateTrainingJob
forall x. CreateTrainingJob -> Rep CreateTrainingJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateTrainingJob x -> CreateTrainingJob
$cfrom :: forall x. CreateTrainingJob -> Rep CreateTrainingJob x
Prelude.Generic)
newCreateTrainingJob ::
Prelude.Text ->
AlgorithmSpecification ->
Prelude.Text ->
OutputDataConfig ->
ResourceConfig ->
StoppingCondition ->
CreateTrainingJob
newCreateTrainingJob :: Text
-> AlgorithmSpecification
-> Text
-> OutputDataConfig
-> ResourceConfig
-> StoppingCondition
-> CreateTrainingJob
newCreateTrainingJob
Text
pTrainingJobName_
AlgorithmSpecification
pAlgorithmSpecification_
Text
pRoleArn_
OutputDataConfig
pOutputDataConfig_
ResourceConfig
pResourceConfig_
StoppingCondition
pStoppingCondition_ =
CreateTrainingJob' :: Maybe (HashMap Text Text)
-> Maybe DebugHookConfig
-> Maybe CheckpointConfig
-> Maybe RetryStrategy
-> Maybe ProfilerConfig
-> Maybe Bool
-> Maybe ExperimentConfig
-> Maybe [DebugRuleConfiguration]
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe (NonEmpty Channel)
-> Maybe [ProfilerRuleConfiguration]
-> Maybe VpcConfig
-> Maybe Bool
-> Maybe TensorBoardOutputConfig
-> Maybe [Tag]
-> Text
-> AlgorithmSpecification
-> Text
-> OutputDataConfig
-> ResourceConfig
-> StoppingCondition
-> CreateTrainingJob
CreateTrainingJob'
{ $sel:environment:CreateTrainingJob' :: Maybe (HashMap Text Text)
environment = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:debugHookConfig:CreateTrainingJob' :: Maybe DebugHookConfig
debugHookConfig = Maybe DebugHookConfig
forall a. Maybe a
Prelude.Nothing,
$sel:checkpointConfig:CreateTrainingJob' :: Maybe CheckpointConfig
checkpointConfig = Maybe CheckpointConfig
forall a. Maybe a
Prelude.Nothing,
$sel:retryStrategy:CreateTrainingJob' :: Maybe RetryStrategy
retryStrategy = Maybe RetryStrategy
forall a. Maybe a
Prelude.Nothing,
$sel:profilerConfig:CreateTrainingJob' :: Maybe ProfilerConfig
profilerConfig = Maybe ProfilerConfig
forall a. Maybe a
Prelude.Nothing,
$sel:enableNetworkIsolation:CreateTrainingJob' :: Maybe Bool
enableNetworkIsolation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:experimentConfig:CreateTrainingJob' :: Maybe ExperimentConfig
experimentConfig = Maybe ExperimentConfig
forall a. Maybe a
Prelude.Nothing,
$sel:debugRuleConfigurations:CreateTrainingJob' :: Maybe [DebugRuleConfiguration]
debugRuleConfigurations = Maybe [DebugRuleConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:enableManagedSpotTraining:CreateTrainingJob' :: Maybe Bool
enableManagedSpotTraining = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:hyperParameters:CreateTrainingJob' :: Maybe (HashMap Text Text)
hyperParameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:CreateTrainingJob' :: Maybe (NonEmpty Channel)
inputDataConfig = Maybe (NonEmpty Channel)
forall a. Maybe a
Prelude.Nothing,
$sel:profilerRuleConfigurations:CreateTrainingJob' :: Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations = Maybe [ProfilerRuleConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfig:CreateTrainingJob' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:enableInterContainerTrafficEncryption:CreateTrainingJob' :: Maybe Bool
enableInterContainerTrafficEncryption =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:tensorBoardOutputConfig:CreateTrainingJob' :: Maybe TensorBoardOutputConfig
tensorBoardOutputConfig = Maybe TensorBoardOutputConfig
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateTrainingJob' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:trainingJobName:CreateTrainingJob' :: Text
trainingJobName = Text
pTrainingJobName_,
$sel:algorithmSpecification:CreateTrainingJob' :: AlgorithmSpecification
algorithmSpecification = AlgorithmSpecification
pAlgorithmSpecification_,
$sel:roleArn:CreateTrainingJob' :: Text
roleArn = Text
pRoleArn_,
$sel:outputDataConfig:CreateTrainingJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
pOutputDataConfig_,
$sel:resourceConfig:CreateTrainingJob' :: ResourceConfig
resourceConfig = ResourceConfig
pResourceConfig_,
$sel:stoppingCondition:CreateTrainingJob' :: StoppingCondition
stoppingCondition = StoppingCondition
pStoppingCondition_
}
createTrainingJob_environment :: Lens.Lens' CreateTrainingJob (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createTrainingJob_environment :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_environment = (CreateTrainingJob -> Maybe (HashMap Text Text))
-> (CreateTrainingJob
-> Maybe (HashMap Text Text) -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe (HashMap Text Text)
environment :: Maybe (HashMap Text Text)
$sel:environment:CreateTrainingJob' :: CreateTrainingJob -> Maybe (HashMap Text Text)
environment} -> Maybe (HashMap Text Text)
environment) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe (HashMap Text Text)
a -> CreateTrainingJob
s {$sel:environment:CreateTrainingJob' :: Maybe (HashMap Text Text)
environment = Maybe (HashMap Text Text)
a} :: CreateTrainingJob) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_debugHookConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe DebugHookConfig)
createTrainingJob_debugHookConfig :: (Maybe DebugHookConfig -> f (Maybe DebugHookConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_debugHookConfig = (CreateTrainingJob -> Maybe DebugHookConfig)
-> (CreateTrainingJob
-> Maybe DebugHookConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe DebugHookConfig)
(Maybe DebugHookConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe DebugHookConfig
debugHookConfig :: Maybe DebugHookConfig
$sel:debugHookConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe DebugHookConfig
debugHookConfig} -> Maybe DebugHookConfig
debugHookConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe DebugHookConfig
a -> CreateTrainingJob
s {$sel:debugHookConfig:CreateTrainingJob' :: Maybe DebugHookConfig
debugHookConfig = Maybe DebugHookConfig
a} :: CreateTrainingJob)
createTrainingJob_checkpointConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe CheckpointConfig)
createTrainingJob_checkpointConfig :: (Maybe CheckpointConfig -> f (Maybe CheckpointConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_checkpointConfig = (CreateTrainingJob -> Maybe CheckpointConfig)
-> (CreateTrainingJob
-> Maybe CheckpointConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe CheckpointConfig)
(Maybe CheckpointConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe CheckpointConfig
checkpointConfig :: Maybe CheckpointConfig
$sel:checkpointConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe CheckpointConfig
checkpointConfig} -> Maybe CheckpointConfig
checkpointConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe CheckpointConfig
a -> CreateTrainingJob
s {$sel:checkpointConfig:CreateTrainingJob' :: Maybe CheckpointConfig
checkpointConfig = Maybe CheckpointConfig
a} :: CreateTrainingJob)
createTrainingJob_retryStrategy :: Lens.Lens' CreateTrainingJob (Prelude.Maybe RetryStrategy)
createTrainingJob_retryStrategy :: (Maybe RetryStrategy -> f (Maybe RetryStrategy))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_retryStrategy = (CreateTrainingJob -> Maybe RetryStrategy)
-> (CreateTrainingJob -> Maybe RetryStrategy -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe RetryStrategy)
(Maybe RetryStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe RetryStrategy
retryStrategy :: Maybe RetryStrategy
$sel:retryStrategy:CreateTrainingJob' :: CreateTrainingJob -> Maybe RetryStrategy
retryStrategy} -> Maybe RetryStrategy
retryStrategy) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe RetryStrategy
a -> CreateTrainingJob
s {$sel:retryStrategy:CreateTrainingJob' :: Maybe RetryStrategy
retryStrategy = Maybe RetryStrategy
a} :: CreateTrainingJob)
createTrainingJob_profilerConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe ProfilerConfig)
createTrainingJob_profilerConfig :: (Maybe ProfilerConfig -> f (Maybe ProfilerConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_profilerConfig = (CreateTrainingJob -> Maybe ProfilerConfig)
-> (CreateTrainingJob -> Maybe ProfilerConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe ProfilerConfig)
(Maybe ProfilerConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe ProfilerConfig
profilerConfig :: Maybe ProfilerConfig
$sel:profilerConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe ProfilerConfig
profilerConfig} -> Maybe ProfilerConfig
profilerConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe ProfilerConfig
a -> CreateTrainingJob
s {$sel:profilerConfig:CreateTrainingJob' :: Maybe ProfilerConfig
profilerConfig = Maybe ProfilerConfig
a} :: CreateTrainingJob)
createTrainingJob_enableNetworkIsolation :: Lens.Lens' CreateTrainingJob (Prelude.Maybe Prelude.Bool)
createTrainingJob_enableNetworkIsolation :: (Maybe Bool -> f (Maybe Bool))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_enableNetworkIsolation = (CreateTrainingJob -> Maybe Bool)
-> (CreateTrainingJob -> Maybe Bool -> CreateTrainingJob)
-> Lens
CreateTrainingJob CreateTrainingJob (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe Bool
enableNetworkIsolation :: Maybe Bool
$sel:enableNetworkIsolation:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
enableNetworkIsolation} -> Maybe Bool
enableNetworkIsolation) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe Bool
a -> CreateTrainingJob
s {$sel:enableNetworkIsolation:CreateTrainingJob' :: Maybe Bool
enableNetworkIsolation = Maybe Bool
a} :: CreateTrainingJob)
createTrainingJob_experimentConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe ExperimentConfig)
createTrainingJob_experimentConfig :: (Maybe ExperimentConfig -> f (Maybe ExperimentConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_experimentConfig = (CreateTrainingJob -> Maybe ExperimentConfig)
-> (CreateTrainingJob
-> Maybe ExperimentConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe ExperimentConfig)
(Maybe ExperimentConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe ExperimentConfig
experimentConfig :: Maybe ExperimentConfig
$sel:experimentConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe ExperimentConfig
experimentConfig} -> Maybe ExperimentConfig
experimentConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe ExperimentConfig
a -> CreateTrainingJob
s {$sel:experimentConfig:CreateTrainingJob' :: Maybe ExperimentConfig
experimentConfig = Maybe ExperimentConfig
a} :: CreateTrainingJob)
createTrainingJob_debugRuleConfigurations :: Lens.Lens' CreateTrainingJob (Prelude.Maybe [DebugRuleConfiguration])
createTrainingJob_debugRuleConfigurations :: (Maybe [DebugRuleConfiguration]
-> f (Maybe [DebugRuleConfiguration]))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_debugRuleConfigurations = (CreateTrainingJob -> Maybe [DebugRuleConfiguration])
-> (CreateTrainingJob
-> Maybe [DebugRuleConfiguration] -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe [DebugRuleConfiguration])
(Maybe [DebugRuleConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe [DebugRuleConfiguration]
debugRuleConfigurations :: Maybe [DebugRuleConfiguration]
$sel:debugRuleConfigurations:CreateTrainingJob' :: CreateTrainingJob -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations} -> Maybe [DebugRuleConfiguration]
debugRuleConfigurations) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe [DebugRuleConfiguration]
a -> CreateTrainingJob
s {$sel:debugRuleConfigurations:CreateTrainingJob' :: Maybe [DebugRuleConfiguration]
debugRuleConfigurations = Maybe [DebugRuleConfiguration]
a} :: CreateTrainingJob) ((Maybe [DebugRuleConfiguration]
-> f (Maybe [DebugRuleConfiguration]))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe [DebugRuleConfiguration]
-> f (Maybe [DebugRuleConfiguration]))
-> Maybe [DebugRuleConfiguration]
-> f (Maybe [DebugRuleConfiguration]))
-> (Maybe [DebugRuleConfiguration]
-> f (Maybe [DebugRuleConfiguration]))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DebugRuleConfiguration]
[DebugRuleConfiguration]
[DebugRuleConfiguration]
[DebugRuleConfiguration]
-> Iso
(Maybe [DebugRuleConfiguration])
(Maybe [DebugRuleConfiguration])
(Maybe [DebugRuleConfiguration])
(Maybe [DebugRuleConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[DebugRuleConfiguration]
[DebugRuleConfiguration]
[DebugRuleConfiguration]
[DebugRuleConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_enableManagedSpotTraining :: Lens.Lens' CreateTrainingJob (Prelude.Maybe Prelude.Bool)
createTrainingJob_enableManagedSpotTraining :: (Maybe Bool -> f (Maybe Bool))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_enableManagedSpotTraining = (CreateTrainingJob -> Maybe Bool)
-> (CreateTrainingJob -> Maybe Bool -> CreateTrainingJob)
-> Lens
CreateTrainingJob CreateTrainingJob (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe Bool
enableManagedSpotTraining :: Maybe Bool
$sel:enableManagedSpotTraining:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
enableManagedSpotTraining} -> Maybe Bool
enableManagedSpotTraining) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe Bool
a -> CreateTrainingJob
s {$sel:enableManagedSpotTraining:CreateTrainingJob' :: Maybe Bool
enableManagedSpotTraining = Maybe Bool
a} :: CreateTrainingJob)
createTrainingJob_hyperParameters :: Lens.Lens' CreateTrainingJob (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createTrainingJob_hyperParameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_hyperParameters = (CreateTrainingJob -> Maybe (HashMap Text Text))
-> (CreateTrainingJob
-> Maybe (HashMap Text Text) -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe (HashMap Text Text)
hyperParameters :: Maybe (HashMap Text Text)
$sel:hyperParameters:CreateTrainingJob' :: CreateTrainingJob -> Maybe (HashMap Text Text)
hyperParameters} -> Maybe (HashMap Text Text)
hyperParameters) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe (HashMap Text Text)
a -> CreateTrainingJob
s {$sel:hyperParameters:CreateTrainingJob' :: Maybe (HashMap Text Text)
hyperParameters = Maybe (HashMap Text Text)
a} :: CreateTrainingJob) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_inputDataConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe (Prelude.NonEmpty Channel))
createTrainingJob_inputDataConfig :: (Maybe (NonEmpty Channel) -> f (Maybe (NonEmpty Channel)))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_inputDataConfig = (CreateTrainingJob -> Maybe (NonEmpty Channel))
-> (CreateTrainingJob
-> Maybe (NonEmpty Channel) -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe (NonEmpty Channel))
(Maybe (NonEmpty Channel))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe (NonEmpty Channel)
inputDataConfig :: Maybe (NonEmpty Channel)
$sel:inputDataConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe (NonEmpty Channel)
inputDataConfig} -> Maybe (NonEmpty Channel)
inputDataConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe (NonEmpty Channel)
a -> CreateTrainingJob
s {$sel:inputDataConfig:CreateTrainingJob' :: Maybe (NonEmpty Channel)
inputDataConfig = Maybe (NonEmpty Channel)
a} :: CreateTrainingJob) ((Maybe (NonEmpty Channel) -> f (Maybe (NonEmpty Channel)))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe (NonEmpty Channel) -> f (Maybe (NonEmpty Channel)))
-> Maybe (NonEmpty Channel) -> f (Maybe (NonEmpty Channel)))
-> (Maybe (NonEmpty Channel) -> f (Maybe (NonEmpty Channel)))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Channel)
(NonEmpty Channel)
(NonEmpty Channel)
(NonEmpty Channel)
-> Iso
(Maybe (NonEmpty Channel))
(Maybe (NonEmpty Channel))
(Maybe (NonEmpty Channel))
(Maybe (NonEmpty Channel))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Channel)
(NonEmpty Channel)
(NonEmpty Channel)
(NonEmpty Channel)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_profilerRuleConfigurations :: Lens.Lens' CreateTrainingJob (Prelude.Maybe [ProfilerRuleConfiguration])
createTrainingJob_profilerRuleConfigurations :: (Maybe [ProfilerRuleConfiguration]
-> f (Maybe [ProfilerRuleConfiguration]))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_profilerRuleConfigurations = (CreateTrainingJob -> Maybe [ProfilerRuleConfiguration])
-> (CreateTrainingJob
-> Maybe [ProfilerRuleConfiguration] -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe [ProfilerRuleConfiguration])
(Maybe [ProfilerRuleConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations :: Maybe [ProfilerRuleConfiguration]
$sel:profilerRuleConfigurations:CreateTrainingJob' :: CreateTrainingJob -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations} -> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe [ProfilerRuleConfiguration]
a -> CreateTrainingJob
s {$sel:profilerRuleConfigurations:CreateTrainingJob' :: Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations = Maybe [ProfilerRuleConfiguration]
a} :: CreateTrainingJob) ((Maybe [ProfilerRuleConfiguration]
-> f (Maybe [ProfilerRuleConfiguration]))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe [ProfilerRuleConfiguration]
-> f (Maybe [ProfilerRuleConfiguration]))
-> Maybe [ProfilerRuleConfiguration]
-> f (Maybe [ProfilerRuleConfiguration]))
-> (Maybe [ProfilerRuleConfiguration]
-> f (Maybe [ProfilerRuleConfiguration]))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
-> Iso
(Maybe [ProfilerRuleConfiguration])
(Maybe [ProfilerRuleConfiguration])
(Maybe [ProfilerRuleConfiguration])
(Maybe [ProfilerRuleConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
[ProfilerRuleConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_vpcConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe VpcConfig)
createTrainingJob_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_vpcConfig = (CreateTrainingJob -> Maybe VpcConfig)
-> (CreateTrainingJob -> Maybe VpcConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe VpcConfig)
(Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe VpcConfig
a -> CreateTrainingJob
s {$sel:vpcConfig:CreateTrainingJob' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: CreateTrainingJob)
createTrainingJob_enableInterContainerTrafficEncryption :: Lens.Lens' CreateTrainingJob (Prelude.Maybe Prelude.Bool)
createTrainingJob_enableInterContainerTrafficEncryption :: (Maybe Bool -> f (Maybe Bool))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_enableInterContainerTrafficEncryption = (CreateTrainingJob -> Maybe Bool)
-> (CreateTrainingJob -> Maybe Bool -> CreateTrainingJob)
-> Lens
CreateTrainingJob CreateTrainingJob (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe Bool
enableInterContainerTrafficEncryption :: Maybe Bool
$sel:enableInterContainerTrafficEncryption:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
enableInterContainerTrafficEncryption} -> Maybe Bool
enableInterContainerTrafficEncryption) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe Bool
a -> CreateTrainingJob
s {$sel:enableInterContainerTrafficEncryption:CreateTrainingJob' :: Maybe Bool
enableInterContainerTrafficEncryption = Maybe Bool
a} :: CreateTrainingJob)
createTrainingJob_tensorBoardOutputConfig :: Lens.Lens' CreateTrainingJob (Prelude.Maybe TensorBoardOutputConfig)
createTrainingJob_tensorBoardOutputConfig :: (Maybe TensorBoardOutputConfig
-> f (Maybe TensorBoardOutputConfig))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_tensorBoardOutputConfig = (CreateTrainingJob -> Maybe TensorBoardOutputConfig)
-> (CreateTrainingJob
-> Maybe TensorBoardOutputConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
(Maybe TensorBoardOutputConfig)
(Maybe TensorBoardOutputConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe TensorBoardOutputConfig
tensorBoardOutputConfig :: Maybe TensorBoardOutputConfig
$sel:tensorBoardOutputConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig} -> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe TensorBoardOutputConfig
a -> CreateTrainingJob
s {$sel:tensorBoardOutputConfig:CreateTrainingJob' :: Maybe TensorBoardOutputConfig
tensorBoardOutputConfig = Maybe TensorBoardOutputConfig
a} :: CreateTrainingJob)
createTrainingJob_tags :: Lens.Lens' CreateTrainingJob (Prelude.Maybe [Tag])
createTrainingJob_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_tags = (CreateTrainingJob -> Maybe [Tag])
-> (CreateTrainingJob -> Maybe [Tag] -> CreateTrainingJob)
-> Lens
CreateTrainingJob CreateTrainingJob (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateTrainingJob' :: CreateTrainingJob -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Maybe [Tag]
a -> CreateTrainingJob
s {$sel:tags:CreateTrainingJob' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateTrainingJob) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateTrainingJob -> f CreateTrainingJob)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateTrainingJob
-> f CreateTrainingJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTrainingJob_trainingJobName :: Lens.Lens' CreateTrainingJob Prelude.Text
createTrainingJob_trainingJobName :: (Text -> f Text) -> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_trainingJobName = (CreateTrainingJob -> Text)
-> (CreateTrainingJob -> Text -> CreateTrainingJob)
-> Lens CreateTrainingJob CreateTrainingJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Text
trainingJobName :: Text
$sel:trainingJobName:CreateTrainingJob' :: CreateTrainingJob -> Text
trainingJobName} -> Text
trainingJobName) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Text
a -> CreateTrainingJob
s {$sel:trainingJobName:CreateTrainingJob' :: Text
trainingJobName = Text
a} :: CreateTrainingJob)
createTrainingJob_algorithmSpecification :: Lens.Lens' CreateTrainingJob AlgorithmSpecification
createTrainingJob_algorithmSpecification :: (AlgorithmSpecification -> f AlgorithmSpecification)
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_algorithmSpecification = (CreateTrainingJob -> AlgorithmSpecification)
-> (CreateTrainingJob
-> AlgorithmSpecification -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
AlgorithmSpecification
AlgorithmSpecification
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {AlgorithmSpecification
algorithmSpecification :: AlgorithmSpecification
$sel:algorithmSpecification:CreateTrainingJob' :: CreateTrainingJob -> AlgorithmSpecification
algorithmSpecification} -> AlgorithmSpecification
algorithmSpecification) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} AlgorithmSpecification
a -> CreateTrainingJob
s {$sel:algorithmSpecification:CreateTrainingJob' :: AlgorithmSpecification
algorithmSpecification = AlgorithmSpecification
a} :: CreateTrainingJob)
createTrainingJob_roleArn :: Lens.Lens' CreateTrainingJob Prelude.Text
createTrainingJob_roleArn :: (Text -> f Text) -> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_roleArn = (CreateTrainingJob -> Text)
-> (CreateTrainingJob -> Text -> CreateTrainingJob)
-> Lens CreateTrainingJob CreateTrainingJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {Text
roleArn :: Text
$sel:roleArn:CreateTrainingJob' :: CreateTrainingJob -> Text
roleArn} -> Text
roleArn) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} Text
a -> CreateTrainingJob
s {$sel:roleArn:CreateTrainingJob' :: Text
roleArn = Text
a} :: CreateTrainingJob)
createTrainingJob_outputDataConfig :: Lens.Lens' CreateTrainingJob OutputDataConfig
createTrainingJob_outputDataConfig :: (OutputDataConfig -> f OutputDataConfig)
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_outputDataConfig = (CreateTrainingJob -> OutputDataConfig)
-> (CreateTrainingJob -> OutputDataConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
OutputDataConfig
OutputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {OutputDataConfig
outputDataConfig :: OutputDataConfig
$sel:outputDataConfig:CreateTrainingJob' :: CreateTrainingJob -> OutputDataConfig
outputDataConfig} -> OutputDataConfig
outputDataConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} OutputDataConfig
a -> CreateTrainingJob
s {$sel:outputDataConfig:CreateTrainingJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
a} :: CreateTrainingJob)
createTrainingJob_resourceConfig :: Lens.Lens' CreateTrainingJob ResourceConfig
createTrainingJob_resourceConfig :: (ResourceConfig -> f ResourceConfig)
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_resourceConfig = (CreateTrainingJob -> ResourceConfig)
-> (CreateTrainingJob -> ResourceConfig -> CreateTrainingJob)
-> Lens
CreateTrainingJob CreateTrainingJob ResourceConfig ResourceConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {ResourceConfig
resourceConfig :: ResourceConfig
$sel:resourceConfig:CreateTrainingJob' :: CreateTrainingJob -> ResourceConfig
resourceConfig} -> ResourceConfig
resourceConfig) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} ResourceConfig
a -> CreateTrainingJob
s {$sel:resourceConfig:CreateTrainingJob' :: ResourceConfig
resourceConfig = ResourceConfig
a} :: CreateTrainingJob)
createTrainingJob_stoppingCondition :: Lens.Lens' CreateTrainingJob StoppingCondition
createTrainingJob_stoppingCondition :: (StoppingCondition -> f StoppingCondition)
-> CreateTrainingJob -> f CreateTrainingJob
createTrainingJob_stoppingCondition = (CreateTrainingJob -> StoppingCondition)
-> (CreateTrainingJob -> StoppingCondition -> CreateTrainingJob)
-> Lens
CreateTrainingJob
CreateTrainingJob
StoppingCondition
StoppingCondition
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJob' {StoppingCondition
stoppingCondition :: StoppingCondition
$sel:stoppingCondition:CreateTrainingJob' :: CreateTrainingJob -> StoppingCondition
stoppingCondition} -> StoppingCondition
stoppingCondition) (\s :: CreateTrainingJob
s@CreateTrainingJob' {} StoppingCondition
a -> CreateTrainingJob
s {$sel:stoppingCondition:CreateTrainingJob' :: StoppingCondition
stoppingCondition = StoppingCondition
a} :: CreateTrainingJob)
instance Core.AWSRequest CreateTrainingJob where
type
AWSResponse CreateTrainingJob =
CreateTrainingJobResponse
request :: CreateTrainingJob -> Request CreateTrainingJob
request = Service -> CreateTrainingJob -> Request CreateTrainingJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateTrainingJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateTrainingJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateTrainingJob))
-> Logger
-> Service
-> Proxy CreateTrainingJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateTrainingJob)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Int -> Text -> CreateTrainingJobResponse
CreateTrainingJobResponse'
(Int -> Text -> CreateTrainingJobResponse)
-> Either String Int
-> Either String (Text -> CreateTrainingJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either String (Text -> CreateTrainingJobResponse)
-> Either String Text -> Either String CreateTrainingJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"TrainingJobArn")
)
instance Prelude.Hashable CreateTrainingJob
instance Prelude.NFData CreateTrainingJob
instance Core.ToHeaders CreateTrainingJob where
toHeaders :: CreateTrainingJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateTrainingJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.CreateTrainingJob" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateTrainingJob where
toJSON :: CreateTrainingJob -> Value
toJSON CreateTrainingJob' {Maybe Bool
Maybe [DebugRuleConfiguration]
Maybe [ProfilerRuleConfiguration]
Maybe [Tag]
Maybe (NonEmpty Channel)
Maybe (HashMap Text Text)
Maybe CheckpointConfig
Maybe DebugHookConfig
Maybe ExperimentConfig
Maybe ProfilerConfig
Maybe RetryStrategy
Maybe TensorBoardOutputConfig
Maybe VpcConfig
Text
OutputDataConfig
StoppingCondition
AlgorithmSpecification
ResourceConfig
stoppingCondition :: StoppingCondition
resourceConfig :: ResourceConfig
outputDataConfig :: OutputDataConfig
roleArn :: Text
algorithmSpecification :: AlgorithmSpecification
trainingJobName :: Text
tags :: Maybe [Tag]
tensorBoardOutputConfig :: Maybe TensorBoardOutputConfig
enableInterContainerTrafficEncryption :: Maybe Bool
vpcConfig :: Maybe VpcConfig
profilerRuleConfigurations :: Maybe [ProfilerRuleConfiguration]
inputDataConfig :: Maybe (NonEmpty Channel)
hyperParameters :: Maybe (HashMap Text Text)
enableManagedSpotTraining :: Maybe Bool
debugRuleConfigurations :: Maybe [DebugRuleConfiguration]
experimentConfig :: Maybe ExperimentConfig
enableNetworkIsolation :: Maybe Bool
profilerConfig :: Maybe ProfilerConfig
retryStrategy :: Maybe RetryStrategy
checkpointConfig :: Maybe CheckpointConfig
debugHookConfig :: Maybe DebugHookConfig
environment :: Maybe (HashMap Text Text)
$sel:stoppingCondition:CreateTrainingJob' :: CreateTrainingJob -> StoppingCondition
$sel:resourceConfig:CreateTrainingJob' :: CreateTrainingJob -> ResourceConfig
$sel:outputDataConfig:CreateTrainingJob' :: CreateTrainingJob -> OutputDataConfig
$sel:roleArn:CreateTrainingJob' :: CreateTrainingJob -> Text
$sel:algorithmSpecification:CreateTrainingJob' :: CreateTrainingJob -> AlgorithmSpecification
$sel:trainingJobName:CreateTrainingJob' :: CreateTrainingJob -> Text
$sel:tags:CreateTrainingJob' :: CreateTrainingJob -> Maybe [Tag]
$sel:tensorBoardOutputConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe TensorBoardOutputConfig
$sel:enableInterContainerTrafficEncryption:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
$sel:vpcConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe VpcConfig
$sel:profilerRuleConfigurations:CreateTrainingJob' :: CreateTrainingJob -> Maybe [ProfilerRuleConfiguration]
$sel:inputDataConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe (NonEmpty Channel)
$sel:hyperParameters:CreateTrainingJob' :: CreateTrainingJob -> Maybe (HashMap Text Text)
$sel:enableManagedSpotTraining:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
$sel:debugRuleConfigurations:CreateTrainingJob' :: CreateTrainingJob -> Maybe [DebugRuleConfiguration]
$sel:experimentConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe ExperimentConfig
$sel:enableNetworkIsolation:CreateTrainingJob' :: CreateTrainingJob -> Maybe Bool
$sel:profilerConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe ProfilerConfig
$sel:retryStrategy:CreateTrainingJob' :: CreateTrainingJob -> Maybe RetryStrategy
$sel:checkpointConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe CheckpointConfig
$sel:debugHookConfig:CreateTrainingJob' :: CreateTrainingJob -> Maybe DebugHookConfig
$sel:environment:CreateTrainingJob' :: CreateTrainingJob -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Environment" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
environment,
(Text
"DebugHookConfig" Text -> DebugHookConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DebugHookConfig -> Pair) -> Maybe DebugHookConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DebugHookConfig
debugHookConfig,
(Text
"CheckpointConfig" Text -> CheckpointConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CheckpointConfig -> Pair) -> Maybe CheckpointConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CheckpointConfig
checkpointConfig,
(Text
"RetryStrategy" Text -> RetryStrategy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (RetryStrategy -> Pair) -> Maybe RetryStrategy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RetryStrategy
retryStrategy,
(Text
"ProfilerConfig" Text -> ProfilerConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ProfilerConfig -> Pair) -> Maybe ProfilerConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProfilerConfig
profilerConfig,
(Text
"EnableNetworkIsolation" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableNetworkIsolation,
(Text
"ExperimentConfig" Text -> ExperimentConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ExperimentConfig -> Pair) -> Maybe ExperimentConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExperimentConfig
experimentConfig,
(Text
"DebugRuleConfigurations" Text -> [DebugRuleConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([DebugRuleConfiguration] -> Pair)
-> Maybe [DebugRuleConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DebugRuleConfiguration]
debugRuleConfigurations,
(Text
"EnableManagedSpotTraining" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableManagedSpotTraining,
(Text
"HyperParameters" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
hyperParameters,
(Text
"InputDataConfig" Text -> NonEmpty Channel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Channel -> Pair)
-> Maybe (NonEmpty Channel) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Channel)
inputDataConfig,
(Text
"ProfilerRuleConfigurations" Text -> [ProfilerRuleConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([ProfilerRuleConfiguration] -> Pair)
-> Maybe [ProfilerRuleConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ProfilerRuleConfiguration]
profilerRuleConfigurations,
(Text
"VpcConfig" Text -> VpcConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (VpcConfig -> Pair) -> Maybe VpcConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfig
vpcConfig,
(Text
"EnableInterContainerTrafficEncryption" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableInterContainerTrafficEncryption,
(Text
"TensorBoardOutputConfig" Text -> TensorBoardOutputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(TensorBoardOutputConfig -> Pair)
-> Maybe TensorBoardOutputConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TensorBoardOutputConfig
tensorBoardOutputConfig,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"TrainingJobName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
trainingJobName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"AlgorithmSpecification"
Text -> AlgorithmSpecification -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= AlgorithmSpecification
algorithmSpecification
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OutputDataConfig" Text -> OutputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputDataConfig
outputDataConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ResourceConfig" Text -> ResourceConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ResourceConfig
resourceConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"StoppingCondition" Text -> StoppingCondition -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= StoppingCondition
stoppingCondition)
]
)
instance Core.ToPath CreateTrainingJob where
toPath :: CreateTrainingJob -> ByteString
toPath = ByteString -> CreateTrainingJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateTrainingJob where
toQuery :: CreateTrainingJob -> QueryString
toQuery = QueryString -> CreateTrainingJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateTrainingJobResponse = CreateTrainingJobResponse'
{
CreateTrainingJobResponse -> Int
httpStatus :: Prelude.Int,
CreateTrainingJobResponse -> Text
trainingJobArn :: Prelude.Text
}
deriving (CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool
(CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool)
-> (CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool)
-> Eq CreateTrainingJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool
$c/= :: CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool
== :: CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool
$c== :: CreateTrainingJobResponse -> CreateTrainingJobResponse -> Bool
Prelude.Eq, ReadPrec [CreateTrainingJobResponse]
ReadPrec CreateTrainingJobResponse
Int -> ReadS CreateTrainingJobResponse
ReadS [CreateTrainingJobResponse]
(Int -> ReadS CreateTrainingJobResponse)
-> ReadS [CreateTrainingJobResponse]
-> ReadPrec CreateTrainingJobResponse
-> ReadPrec [CreateTrainingJobResponse]
-> Read CreateTrainingJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTrainingJobResponse]
$creadListPrec :: ReadPrec [CreateTrainingJobResponse]
readPrec :: ReadPrec CreateTrainingJobResponse
$creadPrec :: ReadPrec CreateTrainingJobResponse
readList :: ReadS [CreateTrainingJobResponse]
$creadList :: ReadS [CreateTrainingJobResponse]
readsPrec :: Int -> ReadS CreateTrainingJobResponse
$creadsPrec :: Int -> ReadS CreateTrainingJobResponse
Prelude.Read, Int -> CreateTrainingJobResponse -> ShowS
[CreateTrainingJobResponse] -> ShowS
CreateTrainingJobResponse -> String
(Int -> CreateTrainingJobResponse -> ShowS)
-> (CreateTrainingJobResponse -> String)
-> ([CreateTrainingJobResponse] -> ShowS)
-> Show CreateTrainingJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTrainingJobResponse] -> ShowS
$cshowList :: [CreateTrainingJobResponse] -> ShowS
show :: CreateTrainingJobResponse -> String
$cshow :: CreateTrainingJobResponse -> String
showsPrec :: Int -> CreateTrainingJobResponse -> ShowS
$cshowsPrec :: Int -> CreateTrainingJobResponse -> ShowS
Prelude.Show, (forall x.
CreateTrainingJobResponse -> Rep CreateTrainingJobResponse x)
-> (forall x.
Rep CreateTrainingJobResponse x -> CreateTrainingJobResponse)
-> Generic CreateTrainingJobResponse
forall x.
Rep CreateTrainingJobResponse x -> CreateTrainingJobResponse
forall x.
CreateTrainingJobResponse -> Rep CreateTrainingJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateTrainingJobResponse x -> CreateTrainingJobResponse
$cfrom :: forall x.
CreateTrainingJobResponse -> Rep CreateTrainingJobResponse x
Prelude.Generic)
newCreateTrainingJobResponse ::
Prelude.Int ->
Prelude.Text ->
CreateTrainingJobResponse
newCreateTrainingJobResponse :: Int -> Text -> CreateTrainingJobResponse
newCreateTrainingJobResponse
Int
pHttpStatus_
Text
pTrainingJobArn_ =
CreateTrainingJobResponse' :: Int -> Text -> CreateTrainingJobResponse
CreateTrainingJobResponse'
{ $sel:httpStatus:CreateTrainingJobResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:trainingJobArn:CreateTrainingJobResponse' :: Text
trainingJobArn = Text
pTrainingJobArn_
}
createTrainingJobResponse_httpStatus :: Lens.Lens' CreateTrainingJobResponse Prelude.Int
createTrainingJobResponse_httpStatus :: (Int -> f Int)
-> CreateTrainingJobResponse -> f CreateTrainingJobResponse
createTrainingJobResponse_httpStatus = (CreateTrainingJobResponse -> Int)
-> (CreateTrainingJobResponse -> Int -> CreateTrainingJobResponse)
-> Lens CreateTrainingJobResponse CreateTrainingJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateTrainingJobResponse' :: CreateTrainingJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateTrainingJobResponse
s@CreateTrainingJobResponse' {} Int
a -> CreateTrainingJobResponse
s {$sel:httpStatus:CreateTrainingJobResponse' :: Int
httpStatus = Int
a} :: CreateTrainingJobResponse)
createTrainingJobResponse_trainingJobArn :: Lens.Lens' CreateTrainingJobResponse Prelude.Text
createTrainingJobResponse_trainingJobArn :: (Text -> f Text)
-> CreateTrainingJobResponse -> f CreateTrainingJobResponse
createTrainingJobResponse_trainingJobArn = (CreateTrainingJobResponse -> Text)
-> (CreateTrainingJobResponse -> Text -> CreateTrainingJobResponse)
-> Lens
CreateTrainingJobResponse CreateTrainingJobResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTrainingJobResponse' {Text
trainingJobArn :: Text
$sel:trainingJobArn:CreateTrainingJobResponse' :: CreateTrainingJobResponse -> Text
trainingJobArn} -> Text
trainingJobArn) (\s :: CreateTrainingJobResponse
s@CreateTrainingJobResponse' {} Text
a -> CreateTrainingJobResponse
s {$sel:trainingJobArn:CreateTrainingJobResponse' :: Text
trainingJobArn = Text
a} :: CreateTrainingJobResponse)
instance Prelude.NFData CreateTrainingJobResponse