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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-efsfilesystemconfig.html>
    EFSFileSystemConfigProperty {EFSFileSystemConfigProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-efsfilesystemconfig.html#cfn-sagemaker-userprofile-efsfilesystemconfig-filesystemid>
                                 EFSFileSystemConfigProperty -> Value Text
fileSystemId :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-userprofile-efsfilesystemconfig.html#cfn-sagemaker-userprofile-efsfilesystemconfig-filesystempath>
                                 EFSFileSystemConfigProperty -> Maybe (Value Text)
fileSystemPath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty -> Bool
(EFSFileSystemConfigProperty
 -> EFSFileSystemConfigProperty -> Bool)
-> (EFSFileSystemConfigProperty
    -> EFSFileSystemConfigProperty -> Bool)
-> Eq EFSFileSystemConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty -> Bool
== :: EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty -> Bool
$c/= :: EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty -> Bool
/= :: EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty -> Bool
Prelude.Eq, Int -> EFSFileSystemConfigProperty -> ShowS
[EFSFileSystemConfigProperty] -> ShowS
EFSFileSystemConfigProperty -> String
(Int -> EFSFileSystemConfigProperty -> ShowS)
-> (EFSFileSystemConfigProperty -> String)
-> ([EFSFileSystemConfigProperty] -> ShowS)
-> Show EFSFileSystemConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EFSFileSystemConfigProperty -> ShowS
showsPrec :: Int -> EFSFileSystemConfigProperty -> ShowS
$cshow :: EFSFileSystemConfigProperty -> String
show :: EFSFileSystemConfigProperty -> String
$cshowList :: [EFSFileSystemConfigProperty] -> ShowS
showList :: [EFSFileSystemConfigProperty] -> ShowS
Prelude.Show)
mkEFSFileSystemConfigProperty ::
  Value Prelude.Text -> EFSFileSystemConfigProperty
mkEFSFileSystemConfigProperty :: Value Text -> EFSFileSystemConfigProperty
mkEFSFileSystemConfigProperty Value Text
fileSystemId
  = EFSFileSystemConfigProperty
      {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 EFSFileSystemConfigProperty where
  toResourceProperties :: EFSFileSystemConfigProperty -> ResourceProperties
toResourceProperties EFSFileSystemConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EFSFileSystemConfigProperty -> ()
fileSystemId :: EFSFileSystemConfigProperty -> Value Text
fileSystemPath :: EFSFileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileSystemId :: Value Text
fileSystemPath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::UserProfile.EFSFileSystemConfig",
         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 EFSFileSystemConfigProperty where
  toJSON :: EFSFileSystemConfigProperty -> Value
toJSON EFSFileSystemConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EFSFileSystemConfigProperty -> ()
fileSystemId :: EFSFileSystemConfigProperty -> Value Text
fileSystemPath :: EFSFileSystemConfigProperty -> 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" EFSFileSystemConfigProperty where
  type PropertyType "FileSystemId" EFSFileSystemConfigProperty = Value Prelude.Text
  set :: PropertyType "FileSystemId" EFSFileSystemConfigProperty
-> EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty
set PropertyType "FileSystemId" EFSFileSystemConfigProperty
newValue EFSFileSystemConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EFSFileSystemConfigProperty -> ()
fileSystemId :: EFSFileSystemConfigProperty -> Value Text
fileSystemPath :: EFSFileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileSystemId :: Value Text
fileSystemPath :: Maybe (Value Text)
..}
    = EFSFileSystemConfigProperty {fileSystemId :: Value Text
fileSystemId = PropertyType "FileSystemId" EFSFileSystemConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fileSystemPath :: Maybe (Value Text)
haddock_workaround_ :: ()
fileSystemPath :: Maybe (Value Text)
..}
instance Property "FileSystemPath" EFSFileSystemConfigProperty where
  type PropertyType "FileSystemPath" EFSFileSystemConfigProperty = Value Prelude.Text
  set :: PropertyType "FileSystemPath" EFSFileSystemConfigProperty
-> EFSFileSystemConfigProperty -> EFSFileSystemConfigProperty
set PropertyType "FileSystemPath" EFSFileSystemConfigProperty
newValue EFSFileSystemConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EFSFileSystemConfigProperty -> ()
fileSystemId :: EFSFileSystemConfigProperty -> Value Text
fileSystemPath :: EFSFileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileSystemId :: Value Text
fileSystemPath :: Maybe (Value Text)
..}
    = EFSFileSystemConfigProperty
        {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" EFSFileSystemConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
..}