module Stratosphere.SageMaker.Space.EFSFileSystemProperty (
EFSFileSystemProperty(..), mkEFSFileSystemProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EFSFileSystemProperty
=
EFSFileSystemProperty {EFSFileSystemProperty -> ()
haddock_workaround_ :: (),
EFSFileSystemProperty -> Value Text
fileSystemId :: (Value Prelude.Text)}
deriving stock (EFSFileSystemProperty -> EFSFileSystemProperty -> Bool
(EFSFileSystemProperty -> EFSFileSystemProperty -> Bool)
-> (EFSFileSystemProperty -> EFSFileSystemProperty -> Bool)
-> Eq EFSFileSystemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EFSFileSystemProperty -> EFSFileSystemProperty -> Bool
== :: EFSFileSystemProperty -> EFSFileSystemProperty -> Bool
$c/= :: EFSFileSystemProperty -> EFSFileSystemProperty -> Bool
/= :: EFSFileSystemProperty -> EFSFileSystemProperty -> Bool
Prelude.Eq, Int -> EFSFileSystemProperty -> ShowS
[EFSFileSystemProperty] -> ShowS
EFSFileSystemProperty -> String
(Int -> EFSFileSystemProperty -> ShowS)
-> (EFSFileSystemProperty -> String)
-> ([EFSFileSystemProperty] -> ShowS)
-> Show EFSFileSystemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EFSFileSystemProperty -> ShowS
showsPrec :: Int -> EFSFileSystemProperty -> ShowS
$cshow :: EFSFileSystemProperty -> String
show :: EFSFileSystemProperty -> String
$cshowList :: [EFSFileSystemProperty] -> ShowS
showList :: [EFSFileSystemProperty] -> ShowS
Prelude.Show)
mkEFSFileSystemProperty ::
Value Prelude.Text -> EFSFileSystemProperty
mkEFSFileSystemProperty :: Value Text -> EFSFileSystemProperty
mkEFSFileSystemProperty Value Text
fileSystemId
= EFSFileSystemProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fileSystemId :: Value Text
fileSystemId = Value Text
fileSystemId}
instance ToResourceProperties EFSFileSystemProperty where
toResourceProperties :: EFSFileSystemProperty -> ResourceProperties
toResourceProperties EFSFileSystemProperty {()
Value Text
haddock_workaround_ :: EFSFileSystemProperty -> ()
fileSystemId :: EFSFileSystemProperty -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Space.EFSFileSystem",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [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]}
instance JSON.ToJSON EFSFileSystemProperty where
toJSON :: EFSFileSystemProperty -> Value
toJSON EFSFileSystemProperty {()
Value Text
haddock_workaround_ :: EFSFileSystemProperty -> ()
fileSystemId :: EFSFileSystemProperty -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [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]
instance Property "FileSystemId" EFSFileSystemProperty where
type PropertyType "FileSystemId" EFSFileSystemProperty = Value Prelude.Text
set :: PropertyType "FileSystemId" EFSFileSystemProperty
-> EFSFileSystemProperty -> EFSFileSystemProperty
set PropertyType "FileSystemId" EFSFileSystemProperty
newValue EFSFileSystemProperty {()
Value Text
haddock_workaround_ :: EFSFileSystemProperty -> ()
fileSystemId :: EFSFileSystemProperty -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
..}
= EFSFileSystemProperty {fileSystemId :: Value Text
fileSystemId = PropertyType "FileSystemId" EFSFileSystemProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}