module Stratosphere.CleanRoomsML.TrainingDataset (
module Exports, TrainingDataset(..), mkTrainingDataset
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CleanRoomsML.TrainingDataset.DatasetProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data TrainingDataset
=
TrainingDataset {TrainingDataset -> ()
haddock_workaround_ :: (),
TrainingDataset -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
TrainingDataset -> Value Text
name :: (Value Prelude.Text),
TrainingDataset -> Value Text
roleArn :: (Value Prelude.Text),
TrainingDataset -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
TrainingDataset -> [DatasetProperty]
trainingData :: [DatasetProperty]}
deriving stock (TrainingDataset -> TrainingDataset -> Bool
(TrainingDataset -> TrainingDataset -> Bool)
-> (TrainingDataset -> TrainingDataset -> Bool)
-> Eq TrainingDataset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrainingDataset -> TrainingDataset -> Bool
== :: TrainingDataset -> TrainingDataset -> Bool
$c/= :: TrainingDataset -> TrainingDataset -> Bool
/= :: TrainingDataset -> TrainingDataset -> Bool
Prelude.Eq, Int -> TrainingDataset -> ShowS
[TrainingDataset] -> ShowS
TrainingDataset -> String
(Int -> TrainingDataset -> ShowS)
-> (TrainingDataset -> String)
-> ([TrainingDataset] -> ShowS)
-> Show TrainingDataset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrainingDataset -> ShowS
showsPrec :: Int -> TrainingDataset -> ShowS
$cshow :: TrainingDataset -> String
show :: TrainingDataset -> String
$cshowList :: [TrainingDataset] -> ShowS
showList :: [TrainingDataset] -> ShowS
Prelude.Show)
mkTrainingDataset ::
Value Prelude.Text
-> Value Prelude.Text -> [DatasetProperty] -> TrainingDataset
mkTrainingDataset :: Value Text -> Value Text -> [DatasetProperty] -> TrainingDataset
mkTrainingDataset Value Text
name Value Text
roleArn [DatasetProperty]
trainingData
= TrainingDataset
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, roleArn :: Value Text
roleArn = Value Text
roleArn,
trainingData :: [DatasetProperty]
trainingData = [DatasetProperty]
trainingData, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TrainingDataset where
toResourceProperties :: TrainingDataset -> ResourceProperties
toResourceProperties TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRoomsML::TrainingDataset",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" 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..= Value Text
name, Key
"RoleArn" 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..= Value Text
roleArn,
Key
"TrainingData" Key -> [DatasetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DatasetProperty]
trainingData]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON TrainingDataset where
toJSON :: TrainingDataset -> Value
toJSON TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Name" 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..= Value Text
name, Key
"RoleArn" 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..= Value Text
roleArn,
Key
"TrainingData" Key -> [DatasetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DatasetProperty]
trainingData]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Description" TrainingDataset where
type PropertyType "Description" TrainingDataset = Value Prelude.Text
set :: PropertyType "Description" TrainingDataset
-> TrainingDataset -> TrainingDataset
set PropertyType "Description" TrainingDataset
newValue TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= TrainingDataset {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" TrainingDataset
Value Text
newValue, [DatasetProperty]
Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
haddock_workaround_ :: ()
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
instance Property "Name" TrainingDataset where
type PropertyType "Name" TrainingDataset = Value Prelude.Text
set :: PropertyType "Name" TrainingDataset
-> TrainingDataset -> TrainingDataset
set PropertyType "Name" TrainingDataset
newValue TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= TrainingDataset {name :: Value Text
name = PropertyType "Name" TrainingDataset
Value Text
newValue, [DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
instance Property "RoleArn" TrainingDataset where
type PropertyType "RoleArn" TrainingDataset = Value Prelude.Text
set :: PropertyType "RoleArn" TrainingDataset
-> TrainingDataset -> TrainingDataset
set PropertyType "RoleArn" TrainingDataset
newValue TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= TrainingDataset {roleArn :: Value Text
roleArn = PropertyType "RoleArn" TrainingDataset
Value Text
newValue, [DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
instance Property "Tags" TrainingDataset where
type PropertyType "Tags" TrainingDataset = [Tag]
set :: PropertyType "Tags" TrainingDataset
-> TrainingDataset -> TrainingDataset
set PropertyType "Tags" TrainingDataset
newValue TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= TrainingDataset {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" TrainingDataset
newValue, [DatasetProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
trainingData :: [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
trainingData :: [DatasetProperty]
..}
instance Property "TrainingData" TrainingDataset where
type PropertyType "TrainingData" TrainingDataset = [DatasetProperty]
set :: PropertyType "TrainingData" TrainingDataset
-> TrainingDataset -> TrainingDataset
set PropertyType "TrainingData" TrainingDataset
newValue TrainingDataset {[DatasetProperty]
Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TrainingDataset -> ()
description :: TrainingDataset -> Maybe (Value Text)
name :: TrainingDataset -> Value Text
roleArn :: TrainingDataset -> Value Text
tags :: TrainingDataset -> Maybe [Tag]
trainingData :: TrainingDataset -> [DatasetProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
trainingData :: [DatasetProperty]
..}
= TrainingDataset {trainingData :: [DatasetProperty]
trainingData = [DatasetProperty]
PropertyType "TrainingData" TrainingDataset
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
..}