module Stratosphere.Greengrass.ResourceDefinition.S3MachineLearningModelResourceDataProperty (
module Exports, S3MachineLearningModelResourceDataProperty(..),
mkS3MachineLearningModelResourceDataProperty
) 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 S3MachineLearningModelResourceDataProperty
=
S3MachineLearningModelResourceDataProperty {S3MachineLearningModelResourceDataProperty -> ()
haddock_workaround_ :: (),
S3MachineLearningModelResourceDataProperty -> Value Text
destinationPath :: (Value Prelude.Text),
S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
ownerSetting :: (Prelude.Maybe ResourceDownloadOwnerSettingProperty),
S3MachineLearningModelResourceDataProperty -> Value Text
s3Uri :: (Value Prelude.Text)}
deriving stock (S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool
(S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool)
-> (S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool)
-> Eq S3MachineLearningModelResourceDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool
== :: S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool
$c/= :: S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool
/= :: S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty -> Bool
Prelude.Eq, Int -> S3MachineLearningModelResourceDataProperty -> ShowS
[S3MachineLearningModelResourceDataProperty] -> ShowS
S3MachineLearningModelResourceDataProperty -> String
(Int -> S3MachineLearningModelResourceDataProperty -> ShowS)
-> (S3MachineLearningModelResourceDataProperty -> String)
-> ([S3MachineLearningModelResourceDataProperty] -> ShowS)
-> Show S3MachineLearningModelResourceDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3MachineLearningModelResourceDataProperty -> ShowS
showsPrec :: Int -> S3MachineLearningModelResourceDataProperty -> ShowS
$cshow :: S3MachineLearningModelResourceDataProperty -> String
show :: S3MachineLearningModelResourceDataProperty -> String
$cshowList :: [S3MachineLearningModelResourceDataProperty] -> ShowS
showList :: [S3MachineLearningModelResourceDataProperty] -> ShowS
Prelude.Show)
mkS3MachineLearningModelResourceDataProperty ::
Value Prelude.Text
-> Value Prelude.Text -> S3MachineLearningModelResourceDataProperty
mkS3MachineLearningModelResourceDataProperty :: Value Text
-> Value Text -> S3MachineLearningModelResourceDataProperty
mkS3MachineLearningModelResourceDataProperty Value Text
destinationPath Value Text
s3Uri
= S3MachineLearningModelResourceDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destinationPath :: Value Text
destinationPath = Value Text
destinationPath,
s3Uri :: Value Text
s3Uri = Value Text
s3Uri, ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
ownerSetting = Maybe ResourceDownloadOwnerSettingProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3MachineLearningModelResourceDataProperty where
toResourceProperties :: S3MachineLearningModelResourceDataProperty -> ResourceProperties
toResourceProperties
S3MachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: S3MachineLearningModelResourceDataProperty -> ()
destinationPath :: S3MachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: S3MachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Greengrass::ResourceDefinition.S3MachineLearningModelResourceData",
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
"S3Uri" 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
s3Uri]
([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 S3MachineLearningModelResourceDataProperty where
toJSON :: S3MachineLearningModelResourceDataProperty -> Value
toJSON S3MachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: S3MachineLearningModelResourceDataProperty -> ()
destinationPath :: S3MachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: S3MachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: 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
"S3Uri" 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
s3Uri]
([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" S3MachineLearningModelResourceDataProperty where
type PropertyType "DestinationPath" S3MachineLearningModelResourceDataProperty = Value Prelude.Text
set :: PropertyType
"DestinationPath" S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
set PropertyType
"DestinationPath" S3MachineLearningModelResourceDataProperty
newValue S3MachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: S3MachineLearningModelResourceDataProperty -> ()
destinationPath :: S3MachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: S3MachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
..}
= S3MachineLearningModelResourceDataProperty
{destinationPath :: Value Text
destinationPath = PropertyType
"DestinationPath" S3MachineLearningModelResourceDataProperty
Value Text
newValue, Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: ()
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
haddock_workaround_ :: ()
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
..}
instance Property "OwnerSetting" S3MachineLearningModelResourceDataProperty where
type PropertyType "OwnerSetting" S3MachineLearningModelResourceDataProperty = ResourceDownloadOwnerSettingProperty
set :: PropertyType
"OwnerSetting" S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
set PropertyType
"OwnerSetting" S3MachineLearningModelResourceDataProperty
newValue S3MachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: S3MachineLearningModelResourceDataProperty -> ()
destinationPath :: S3MachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: S3MachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
..}
= S3MachineLearningModelResourceDataProperty
{ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
ownerSetting = ResourceDownloadOwnerSettingProperty
-> Maybe ResourceDownloadOwnerSettingProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OwnerSetting" S3MachineLearningModelResourceDataProperty
ResourceDownloadOwnerSettingProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
s3Uri :: Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
s3Uri :: Value Text
..}
instance Property "S3Uri" S3MachineLearningModelResourceDataProperty where
type PropertyType "S3Uri" S3MachineLearningModelResourceDataProperty = Value Prelude.Text
set :: PropertyType "S3Uri" S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
-> S3MachineLearningModelResourceDataProperty
set PropertyType "S3Uri" S3MachineLearningModelResourceDataProperty
newValue S3MachineLearningModelResourceDataProperty {Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: S3MachineLearningModelResourceDataProperty -> ()
destinationPath :: S3MachineLearningModelResourceDataProperty -> Value Text
ownerSetting :: S3MachineLearningModelResourceDataProperty
-> Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: S3MachineLearningModelResourceDataProperty -> Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
s3Uri :: Value Text
..}
= S3MachineLearningModelResourceDataProperty {s3Uri :: Value Text
s3Uri = PropertyType "S3Uri" S3MachineLearningModelResourceDataProperty
Value Text
newValue, Maybe ResourceDownloadOwnerSettingProperty
()
Value Text
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
haddock_workaround_ :: ()
destinationPath :: Value Text
ownerSetting :: Maybe ResourceDownloadOwnerSettingProperty
..}