module Stratosphere.SageMaker.Space.S3FileSystemProperty (
S3FileSystemProperty(..), mkS3FileSystemProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3FileSystemProperty
=
S3FileSystemProperty {S3FileSystemProperty -> ()
haddock_workaround_ :: (),
S3FileSystemProperty -> Maybe (Value Text)
s3Uri :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (S3FileSystemProperty -> S3FileSystemProperty -> Bool
(S3FileSystemProperty -> S3FileSystemProperty -> Bool)
-> (S3FileSystemProperty -> S3FileSystemProperty -> Bool)
-> Eq S3FileSystemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3FileSystemProperty -> S3FileSystemProperty -> Bool
== :: S3FileSystemProperty -> S3FileSystemProperty -> Bool
$c/= :: S3FileSystemProperty -> S3FileSystemProperty -> Bool
/= :: S3FileSystemProperty -> S3FileSystemProperty -> Bool
Prelude.Eq, Int -> S3FileSystemProperty -> ShowS
[S3FileSystemProperty] -> ShowS
S3FileSystemProperty -> String
(Int -> S3FileSystemProperty -> ShowS)
-> (S3FileSystemProperty -> String)
-> ([S3FileSystemProperty] -> ShowS)
-> Show S3FileSystemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3FileSystemProperty -> ShowS
showsPrec :: Int -> S3FileSystemProperty -> ShowS
$cshow :: S3FileSystemProperty -> String
show :: S3FileSystemProperty -> String
$cshowList :: [S3FileSystemProperty] -> ShowS
showList :: [S3FileSystemProperty] -> ShowS
Prelude.Show)
mkS3FileSystemProperty :: S3FileSystemProperty
mkS3FileSystemProperty :: S3FileSystemProperty
mkS3FileSystemProperty
= S3FileSystemProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3Uri :: Maybe (Value Text)
s3Uri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3FileSystemProperty where
toResourceProperties :: S3FileSystemProperty -> ResourceProperties
toResourceProperties S3FileSystemProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3FileSystemProperty -> ()
s3Uri :: S3FileSystemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Space.S3FileSystem",
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 -> 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
"S3Uri" (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)
s3Uri])}
instance JSON.ToJSON S3FileSystemProperty where
toJSON :: S3FileSystemProperty -> Value
toJSON S3FileSystemProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3FileSystemProperty -> ()
s3Uri :: S3FileSystemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: 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 -> 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
"S3Uri" (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)
s3Uri]))
instance Property "S3Uri" S3FileSystemProperty where
type PropertyType "S3Uri" S3FileSystemProperty = Value Prelude.Text
set :: PropertyType "S3Uri" S3FileSystemProperty
-> S3FileSystemProperty -> S3FileSystemProperty
set PropertyType "S3Uri" S3FileSystemProperty
newValue S3FileSystemProperty {Maybe (Value Text)
()
haddock_workaround_ :: S3FileSystemProperty -> ()
s3Uri :: S3FileSystemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3Uri :: Maybe (Value Text)
..}
= S3FileSystemProperty {s3Uri :: Maybe (Value Text)
s3Uri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Uri" S3FileSystemProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}