module Stratosphere.SageMaker.AppImageConfig.FileSystemConfigProperty (
        FileSystemConfigProperty(..), mkFileSystemConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FileSystemConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-filesystemconfig.html>
    FileSystemConfigProperty {FileSystemConfigProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-filesystemconfig.html#cfn-sagemaker-appimageconfig-filesystemconfig-defaultgid>
                              FileSystemConfigProperty -> Maybe (Value Integer)
defaultGid :: (Prelude.Maybe (Value Prelude.Integer)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-filesystemconfig.html#cfn-sagemaker-appimageconfig-filesystemconfig-defaultuid>
                              FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: (Prelude.Maybe (Value Prelude.Integer)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-appimageconfig-filesystemconfig.html#cfn-sagemaker-appimageconfig-filesystemconfig-mountpath>
                              FileSystemConfigProperty -> Maybe (Value Text)
mountPath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FileSystemConfigProperty -> FileSystemConfigProperty -> Bool
(FileSystemConfigProperty -> FileSystemConfigProperty -> Bool)
-> (FileSystemConfigProperty -> FileSystemConfigProperty -> Bool)
-> Eq FileSystemConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FileSystemConfigProperty -> FileSystemConfigProperty -> Bool
== :: FileSystemConfigProperty -> FileSystemConfigProperty -> Bool
$c/= :: FileSystemConfigProperty -> FileSystemConfigProperty -> Bool
/= :: FileSystemConfigProperty -> FileSystemConfigProperty -> Bool
Prelude.Eq, Int -> FileSystemConfigProperty -> ShowS
[FileSystemConfigProperty] -> ShowS
FileSystemConfigProperty -> String
(Int -> FileSystemConfigProperty -> ShowS)
-> (FileSystemConfigProperty -> String)
-> ([FileSystemConfigProperty] -> ShowS)
-> Show FileSystemConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FileSystemConfigProperty -> ShowS
showsPrec :: Int -> FileSystemConfigProperty -> ShowS
$cshow :: FileSystemConfigProperty -> String
show :: FileSystemConfigProperty -> String
$cshowList :: [FileSystemConfigProperty] -> ShowS
showList :: [FileSystemConfigProperty] -> ShowS
Prelude.Show)
mkFileSystemConfigProperty :: FileSystemConfigProperty
mkFileSystemConfigProperty :: FileSystemConfigProperty
mkFileSystemConfigProperty
  = FileSystemConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), defaultGid :: Maybe (Value Integer)
defaultGid = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       defaultUid :: Maybe (Value Integer)
defaultUid = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, mountPath :: Maybe (Value Text)
mountPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FileSystemConfigProperty where
  toResourceProperties :: FileSystemConfigProperty -> ResourceProperties
toResourceProperties FileSystemConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FileSystemConfigProperty -> ()
defaultGid :: FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: FileSystemConfigProperty -> Maybe (Value Integer)
mountPath :: FileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::AppImageConfig.FileSystemConfig",
         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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultGid" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
defaultGid,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultUid" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
defaultUid,
                            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])}
instance JSON.ToJSON FileSystemConfigProperty where
  toJSON :: FileSystemConfigProperty -> Value
toJSON FileSystemConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FileSystemConfigProperty -> ()
defaultGid :: FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: FileSystemConfigProperty -> Maybe (Value Integer)
mountPath :: FileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
mountPath :: 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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultGid" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
defaultGid,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultUid" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
defaultUid,
               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]))
instance Property "DefaultGid" FileSystemConfigProperty where
  type PropertyType "DefaultGid" FileSystemConfigProperty = Value Prelude.Integer
  set :: PropertyType "DefaultGid" FileSystemConfigProperty
-> FileSystemConfigProperty -> FileSystemConfigProperty
set PropertyType "DefaultGid" FileSystemConfigProperty
newValue FileSystemConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FileSystemConfigProperty -> ()
defaultGid :: FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: FileSystemConfigProperty -> Maybe (Value Integer)
mountPath :: FileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
    = FileSystemConfigProperty {defaultGid :: Maybe (Value Integer)
defaultGid = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultGid" FileSystemConfigProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
instance Property "DefaultUid" FileSystemConfigProperty where
  type PropertyType "DefaultUid" FileSystemConfigProperty = Value Prelude.Integer
  set :: PropertyType "DefaultUid" FileSystemConfigProperty
-> FileSystemConfigProperty -> FileSystemConfigProperty
set PropertyType "DefaultUid" FileSystemConfigProperty
newValue FileSystemConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FileSystemConfigProperty -> ()
defaultGid :: FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: FileSystemConfigProperty -> Maybe (Value Integer)
mountPath :: FileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
    = FileSystemConfigProperty {defaultUid :: Maybe (Value Integer)
defaultUid = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultUid" FileSystemConfigProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
instance Property "MountPath" FileSystemConfigProperty where
  type PropertyType "MountPath" FileSystemConfigProperty = Value Prelude.Text
  set :: PropertyType "MountPath" FileSystemConfigProperty
-> FileSystemConfigProperty -> FileSystemConfigProperty
set PropertyType "MountPath" FileSystemConfigProperty
newValue FileSystemConfigProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FileSystemConfigProperty -> ()
defaultGid :: FileSystemConfigProperty -> Maybe (Value Integer)
defaultUid :: FileSystemConfigProperty -> Maybe (Value Integer)
mountPath :: FileSystemConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
mountPath :: Maybe (Value Text)
..}
    = FileSystemConfigProperty {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" FileSystemConfigProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
haddock_workaround_ :: ()
defaultGid :: Maybe (Value Integer)
defaultUid :: Maybe (Value Integer)
..}