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