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