module Stratosphere.SageMaker.ModelCard.TrainingDetailsProperty (
        module Exports, TrainingDetailsProperty(..),
        mkTrainingDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelCard.ObjectiveFunctionProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelCard.TrainingJobDetailsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TrainingDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-trainingdetails.html>
    TrainingDetailsProperty {TrainingDetailsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-trainingdetails.html#cfn-sagemaker-modelcard-trainingdetails-objectivefunction>
                             TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
objectiveFunction :: (Prelude.Maybe ObjectiveFunctionProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-trainingdetails.html#cfn-sagemaker-modelcard-trainingdetails-trainingjobdetails>
                             TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingJobDetails :: (Prelude.Maybe TrainingJobDetailsProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-trainingdetails.html#cfn-sagemaker-modelcard-trainingdetails-trainingobservations>
                             TrainingDetailsProperty -> Maybe (Value Text)
trainingObservations :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TrainingDetailsProperty -> TrainingDetailsProperty -> Bool
(TrainingDetailsProperty -> TrainingDetailsProperty -> Bool)
-> (TrainingDetailsProperty -> TrainingDetailsProperty -> Bool)
-> Eq TrainingDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrainingDetailsProperty -> TrainingDetailsProperty -> Bool
== :: TrainingDetailsProperty -> TrainingDetailsProperty -> Bool
$c/= :: TrainingDetailsProperty -> TrainingDetailsProperty -> Bool
/= :: TrainingDetailsProperty -> TrainingDetailsProperty -> Bool
Prelude.Eq, Int -> TrainingDetailsProperty -> ShowS
[TrainingDetailsProperty] -> ShowS
TrainingDetailsProperty -> String
(Int -> TrainingDetailsProperty -> ShowS)
-> (TrainingDetailsProperty -> String)
-> ([TrainingDetailsProperty] -> ShowS)
-> Show TrainingDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrainingDetailsProperty -> ShowS
showsPrec :: Int -> TrainingDetailsProperty -> ShowS
$cshow :: TrainingDetailsProperty -> String
show :: TrainingDetailsProperty -> String
$cshowList :: [TrainingDetailsProperty] -> ShowS
showList :: [TrainingDetailsProperty] -> ShowS
Prelude.Show)
mkTrainingDetailsProperty :: TrainingDetailsProperty
mkTrainingDetailsProperty :: TrainingDetailsProperty
mkTrainingDetailsProperty
  = TrainingDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), objectiveFunction :: Maybe ObjectiveFunctionProperty
objectiveFunction = Maybe ObjectiveFunctionProperty
forall a. Maybe a
Prelude.Nothing,
       trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingJobDetails = Maybe TrainingJobDetailsProperty
forall a. Maybe a
Prelude.Nothing,
       trainingObservations :: Maybe (Value Text)
trainingObservations = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TrainingDetailsProperty where
  toResourceProperties :: TrainingDetailsProperty -> ResourceProperties
toResourceProperties TrainingDetailsProperty {Maybe (Value Text)
Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: TrainingDetailsProperty -> ()
objectiveFunction :: TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
trainingJobDetails :: TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingObservations :: TrainingDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelCard.TrainingDetails",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> ObjectiveFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObjectiveFunction" (ObjectiveFunctionProperty -> (Key, Value))
-> Maybe ObjectiveFunctionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectiveFunctionProperty
objectiveFunction,
                            Key -> TrainingJobDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TrainingJobDetails" (TrainingJobDetailsProperty -> (Key, Value))
-> Maybe TrainingJobDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TrainingJobDetailsProperty
trainingJobDetails,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TrainingObservations"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
trainingObservations])}
instance JSON.ToJSON TrainingDetailsProperty where
  toJSON :: TrainingDetailsProperty -> Value
toJSON TrainingDetailsProperty {Maybe (Value Text)
Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: TrainingDetailsProperty -> ()
objectiveFunction :: TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
trainingJobDetails :: TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingObservations :: TrainingDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> ObjectiveFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObjectiveFunction" (ObjectiveFunctionProperty -> (Key, Value))
-> Maybe ObjectiveFunctionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectiveFunctionProperty
objectiveFunction,
               Key -> TrainingJobDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TrainingJobDetails" (TrainingJobDetailsProperty -> (Key, Value))
-> Maybe TrainingJobDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TrainingJobDetailsProperty
trainingJobDetails,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TrainingObservations"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
trainingObservations]))
instance Property "ObjectiveFunction" TrainingDetailsProperty where
  type PropertyType "ObjectiveFunction" TrainingDetailsProperty = ObjectiveFunctionProperty
  set :: PropertyType "ObjectiveFunction" TrainingDetailsProperty
-> TrainingDetailsProperty -> TrainingDetailsProperty
set PropertyType "ObjectiveFunction" TrainingDetailsProperty
newValue TrainingDetailsProperty {Maybe (Value Text)
Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: TrainingDetailsProperty -> ()
objectiveFunction :: TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
trainingJobDetails :: TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingObservations :: TrainingDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
    = TrainingDetailsProperty
        {objectiveFunction :: Maybe ObjectiveFunctionProperty
objectiveFunction = ObjectiveFunctionProperty -> Maybe ObjectiveFunctionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObjectiveFunction" TrainingDetailsProperty
ObjectiveFunctionProperty
newValue, Maybe (Value Text)
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: ()
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
haddock_workaround_ :: ()
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
instance Property "TrainingJobDetails" TrainingDetailsProperty where
  type PropertyType "TrainingJobDetails" TrainingDetailsProperty = TrainingJobDetailsProperty
  set :: PropertyType "TrainingJobDetails" TrainingDetailsProperty
-> TrainingDetailsProperty -> TrainingDetailsProperty
set PropertyType "TrainingJobDetails" TrainingDetailsProperty
newValue TrainingDetailsProperty {Maybe (Value Text)
Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: TrainingDetailsProperty -> ()
objectiveFunction :: TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
trainingJobDetails :: TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingObservations :: TrainingDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
    = TrainingDetailsProperty
        {trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingJobDetails = TrainingJobDetailsProperty -> Maybe TrainingJobDetailsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TrainingJobDetails" TrainingDetailsProperty
TrainingJobDetailsProperty
newValue, Maybe (Value Text)
Maybe ObjectiveFunctionProperty
()
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingObservations :: Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingObservations :: Maybe (Value Text)
..}
instance Property "TrainingObservations" TrainingDetailsProperty where
  type PropertyType "TrainingObservations" TrainingDetailsProperty = Value Prelude.Text
  set :: PropertyType "TrainingObservations" TrainingDetailsProperty
-> TrainingDetailsProperty -> TrainingDetailsProperty
set PropertyType "TrainingObservations" TrainingDetailsProperty
newValue TrainingDetailsProperty {Maybe (Value Text)
Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: TrainingDetailsProperty -> ()
objectiveFunction :: TrainingDetailsProperty -> Maybe ObjectiveFunctionProperty
trainingJobDetails :: TrainingDetailsProperty -> Maybe TrainingJobDetailsProperty
trainingObservations :: TrainingDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
trainingObservations :: Maybe (Value Text)
..}
    = TrainingDetailsProperty
        {trainingObservations :: Maybe (Value Text)
trainingObservations = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TrainingObservations" TrainingDetailsProperty
Value Text
newValue, Maybe ObjectiveFunctionProperty
Maybe TrainingJobDetailsProperty
()
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
haddock_workaround_ :: ()
objectiveFunction :: Maybe ObjectiveFunctionProperty
trainingJobDetails :: Maybe TrainingJobDetailsProperty
..}