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