content: module Stratosphere.SageMaker.UserProfile.EFSFileSystemConfigProperty (
          EFSFileSystemConfigProperty(..), mkEFSFileSystemConfigProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data EFSFileSystemConfigProperty
    = EFSFileSystemConfigProperty {fileSystemId :: (Value Prelude.Text),
                                   fileSystemPath :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkEFSFileSystemConfigProperty ::
    Value Prelude.Text -> EFSFileSystemConfigProperty
  mkEFSFileSystemConfigProperty fileSystemId
    = EFSFileSystemConfigProperty
        {fileSystemId = fileSystemId, fileSystemPath = Prelude.Nothing}
  instance ToResourceProperties EFSFileSystemConfigProperty where
    toResourceProperties EFSFileSystemConfigProperty {..}
      = ResourceProperties
          {awsType = "AWS::SageMaker::UserProfile.EFSFileSystemConfig",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["FileSystemId" JSON..= fileSystemId]
                             (Prelude.catMaybes
                                [(JSON..=) "FileSystemPath" Prelude.<$> fileSystemPath]))}
  instance JSON.ToJSON EFSFileSystemConfigProperty where
    toJSON EFSFileSystemConfigProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["FileSystemId" JSON..= fileSystemId]
                (Prelude.catMaybes
                   [(JSON..=) "FileSystemPath" Prelude.<$> fileSystemPath])))
  instance Property "FileSystemId" EFSFileSystemConfigProperty where
    type PropertyType "FileSystemId" EFSFileSystemConfigProperty = Value Prelude.Text
    set newValue EFSFileSystemConfigProperty {..}
      = EFSFileSystemConfigProperty {fileSystemId = newValue, ..}
  instance Property "FileSystemPath" EFSFileSystemConfigProperty where
    type PropertyType "FileSystemPath" EFSFileSystemConfigProperty = Value Prelude.Text
    set newValue EFSFileSystemConfigProperty {..}
      = EFSFileSystemConfigProperty
          {fileSystemPath = Prelude.pure newValue, ..}