module Stratosphere.Greengrass.ResourceDefinition.SageMakerMachineLearningModelResourceDataProperty (
module Exports,
SageMakerMachineLearningModelResourceDataProperty(..),
mkSageMakerMachineLearningModelResourceDataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Greengrass.ResourceDefinition.ResourceDownloadOwnerSettingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SageMakerMachineLearningModelResourceDataProperty
=
SageMakerMachineLearningModelResourceDataProperty {SageMakerMachineLearningModelResourceDataProperty -> ()
haddock_workaround_ :: (),
SageMakerMachineLearningModelResourceDataProperty -> Value Text
destinationPath :: (Value Prelude.Text),
SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
ownerSetting :: (Prelude.Maybe ResourceDownloadOwnerSettingProperty),
SageMakerMachineLearningModelResourceDataProperty -> Value Text
sageMakerJobArn :: (Value Prelude.Text)}
deriving stock (SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool
(SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool)
-> (SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool)
-> Eq SageMakerMachineLearningModelResourceDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool
== :: SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool
$c/= :: SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool
/= :: SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty -> Bool
Prelude.Eq, Int -> SageMakerMachineLearningModelResourceDataProperty -> ShowS
[SageMakerMachineLearningModelResourceDataProperty] -> ShowS
SageMakerMachineLearningModelResourceDataProperty -> String
(Int -> SageMakerMachineLearningModelResourceDataProperty -> ShowS)
-> (SageMakerMachineLearningModelResourceDataProperty -> String)
-> ([SageMakerMachineLearningModelResourceDataProperty] -> ShowS)
-> Show SageMakerMachineLearningModelResourceDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SageMakerMachineLearningModelResourceDataProperty -> ShowS
showsPrec :: Int -> SageMakerMachineLearningModelResourceDataProperty -> ShowS
$cshow :: SageMakerMachineLearningModelResourceDataProperty -> String
show :: SageMakerMachineLearningModelResourceDataProperty -> String
$cshowList :: [SageMakerMachineLearningModelResourceDataProperty] -> ShowS
showList :: [SageMakerMachineLearningModelResourceDataProperty] -> ShowS
Prelude.Show)
mkSageMakerMachineLearningModelResourceDataProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> SageMakerMachineLearningModelResourceDataProperty
mkSageMakerMachineLearningModelResourceDataProperty :: Value Text
-> Value Text -> SageMakerMachineLearningModelResourceDataProperty
mkSageMakerMachineLearningModelResourceDataProperty
Value Text
destinationPath
Value Text
sageMakerJobArn
= SageMakerMachineLearningModelResourceDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destinationPath :: Value Text
destinationPath = Value Text
destinationPath,
sageMakerJobArn :: Value Text
sageMakerJobArn = Value Text
sageMakerJobArn, ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
ownerSetting = Maybe ResourceDownloadOwnerSettingProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SageMakerMachineLearningModelResourceDataProperty where
toResourceProperties :: SageMakerMachineLearningModelResourceDataProperty
-> ResourceProperties
toResourceProperties
SageMakerMachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: SageMakerMachineLearningModelResourceDataProperty -> ()
destinationPath :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Greengrass::ResourceDefinition.SageMakerMachineLearningModelResourceData",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"DestinationPath" 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
destinationPath,
Key
"SageMakerJobArn" 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
sageMakerJobArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ResourceDownloadOwnerSettingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OwnerSetting" (ResourceDownloadOwnerSettingProperty -> (Key, Value))
-> Maybe ResourceDownloadOwnerSettingProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResourceDownloadOwnerSettingProperty
ownerSetting]))}
instance JSON.ToJSON SageMakerMachineLearningModelResourceDataProperty where
toJSON :: SageMakerMachineLearningModelResourceDataProperty -> Value
toJSON SageMakerMachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: SageMakerMachineLearningModelResourceDataProperty -> ()
destinationPath :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
= [(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
"DestinationPath" 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
destinationPath,
Key
"SageMakerJobArn" 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
sageMakerJobArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ResourceDownloadOwnerSettingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OwnerSetting" (ResourceDownloadOwnerSettingProperty -> (Key, Value))
-> Maybe ResourceDownloadOwnerSettingProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResourceDownloadOwnerSettingProperty
ownerSetting])))
instance Property "DestinationPath" SageMakerMachineLearningModelResourceDataProperty where
type PropertyType "DestinationPath" SageMakerMachineLearningModelResourceDataProperty = Value Prelude.Text
set :: PropertyType
"DestinationPath" SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
set PropertyType
"DestinationPath" SageMakerMachineLearningModelResourceDataProperty
newValue SageMakerMachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: SageMakerMachineLearningModelResourceDataProperty -> ()
destinationPath :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
= SageMakerMachineLearningModelResourceDataProperty
{destinationPath :: Value Text
destinationPath = PropertyType
"DestinationPath" SageMakerMachineLearningModelResourceDataProperty
Value Text
newValue, Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: ()
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
haddock_workaround_ :: ()
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
instance Property "OwnerSetting" SageMakerMachineLearningModelResourceDataProperty where
type PropertyType "OwnerSetting" SageMakerMachineLearningModelResourceDataProperty = ResourceDownloadOwnerSettingProperty
set :: PropertyType
"OwnerSetting" SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
set PropertyType
"OwnerSetting" SageMakerMachineLearningModelResourceDataProperty
newValue SageMakerMachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: SageMakerMachineLearningModelResourceDataProperty -> ()
destinationPath :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
= SageMakerMachineLearningModelResourceDataProperty
{ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
ownerSetting = ResourceDownloadOwnerSettingProperty
-> Maybe ResourceDownloadOwnerSettingProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OwnerSetting" SageMakerMachineLearningModelResourceDataProperty
ResourceDownloadOwnerSettingProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
sageMakerJobArn :: Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
sageMakerJobArn :: Value Text
..}
instance Property "SageMakerJobArn" SageMakerMachineLearningModelResourceDataProperty where
type PropertyType "SageMakerJobArn" SageMakerMachineLearningModelResourceDataProperty = Value Prelude.Text
set :: PropertyType
"SageMakerJobArn" SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
-> SageMakerMachineLearningModelResourceDataProperty
set PropertyType
"SageMakerJobArn" SageMakerMachineLearningModelResourceDataProperty
newValue SageMakerMachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: SageMakerMachineLearningModelResourceDataProperty -> ()
destinationPath :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: SageMakerMachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: SageMakerMachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
sageMakerJobArn :: Value Text
..}
= SageMakerMachineLearningModelResourceDataProperty
{sageMakerJobArn :: Value Text
sageMakerJobArn = PropertyType
"SageMakerJobArn" SageMakerMachineLearningModelResourceDataProperty
Value Text
newValue, Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
..}