module Stratosphere.FSx.S3AccessPointAttachment.OpenZFSPosixFileSystemUserProperty (
module Exports, OpenZFSPosixFileSystemUserProperty(..),
mkOpenZFSPosixFileSystemUserProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FSx.S3AccessPointAttachment.FileSystemGIDProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OpenZFSPosixFileSystemUserProperty
=
OpenZFSPosixFileSystemUserProperty {OpenZFSPosixFileSystemUserProperty -> ()
haddock_workaround_ :: (),
OpenZFSPosixFileSystemUserProperty -> Value Double
gid :: (Value Prelude.Double),
OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
secondaryGids :: (Prelude.Maybe [FileSystemGIDProperty]),
OpenZFSPosixFileSystemUserProperty -> Value Double
uid :: (Value Prelude.Double)}
deriving stock (OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool
(OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool)
-> (OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool)
-> Eq OpenZFSPosixFileSystemUserProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool
== :: OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool
$c/= :: OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool
/= :: OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty -> Bool
Prelude.Eq, Int -> OpenZFSPosixFileSystemUserProperty -> ShowS
[OpenZFSPosixFileSystemUserProperty] -> ShowS
OpenZFSPosixFileSystemUserProperty -> String
(Int -> OpenZFSPosixFileSystemUserProperty -> ShowS)
-> (OpenZFSPosixFileSystemUserProperty -> String)
-> ([OpenZFSPosixFileSystemUserProperty] -> ShowS)
-> Show OpenZFSPosixFileSystemUserProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OpenZFSPosixFileSystemUserProperty -> ShowS
showsPrec :: Int -> OpenZFSPosixFileSystemUserProperty -> ShowS
$cshow :: OpenZFSPosixFileSystemUserProperty -> String
show :: OpenZFSPosixFileSystemUserProperty -> String
$cshowList :: [OpenZFSPosixFileSystemUserProperty] -> ShowS
showList :: [OpenZFSPosixFileSystemUserProperty] -> ShowS
Prelude.Show)
mkOpenZFSPosixFileSystemUserProperty ::
Value Prelude.Double
-> Value Prelude.Double -> OpenZFSPosixFileSystemUserProperty
mkOpenZFSPosixFileSystemUserProperty :: Value Double -> Value Double -> OpenZFSPosixFileSystemUserProperty
mkOpenZFSPosixFileSystemUserProperty Value Double
gid Value Double
uid
= OpenZFSPosixFileSystemUserProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), gid :: Value Double
gid = Value Double
gid, uid :: Value Double
uid = Value Double
uid,
secondaryGids :: Maybe [FileSystemGIDProperty]
secondaryGids = Maybe [FileSystemGIDProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OpenZFSPosixFileSystemUserProperty where
toResourceProperties :: OpenZFSPosixFileSystemUserProperty -> ResourceProperties
toResourceProperties OpenZFSPosixFileSystemUserProperty {Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: OpenZFSPosixFileSystemUserProperty -> ()
gid :: OpenZFSPosixFileSystemUserProperty -> Value Double
secondaryGids :: OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
uid :: OpenZFSPosixFileSystemUserProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::S3AccessPointAttachment.OpenZFSPosixFileSystemUser",
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
"Gid" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
gid, Key
"Uid" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
uid]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [FileSystemGIDProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecondaryGids" ([FileSystemGIDProperty] -> (Key, Value))
-> Maybe [FileSystemGIDProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FileSystemGIDProperty]
secondaryGids]))}
instance JSON.ToJSON OpenZFSPosixFileSystemUserProperty where
toJSON :: OpenZFSPosixFileSystemUserProperty -> Value
toJSON OpenZFSPosixFileSystemUserProperty {Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: OpenZFSPosixFileSystemUserProperty -> ()
gid :: OpenZFSPosixFileSystemUserProperty -> Value Double
secondaryGids :: OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
uid :: OpenZFSPosixFileSystemUserProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
= [(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
"Gid" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
gid, Key
"Uid" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
uid]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [FileSystemGIDProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecondaryGids" ([FileSystemGIDProperty] -> (Key, Value))
-> Maybe [FileSystemGIDProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FileSystemGIDProperty]
secondaryGids])))
instance Property "Gid" OpenZFSPosixFileSystemUserProperty where
type PropertyType "Gid" OpenZFSPosixFileSystemUserProperty = Value Prelude.Double
set :: PropertyType "Gid" OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
set PropertyType "Gid" OpenZFSPosixFileSystemUserProperty
newValue OpenZFSPosixFileSystemUserProperty {Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: OpenZFSPosixFileSystemUserProperty -> ()
gid :: OpenZFSPosixFileSystemUserProperty -> Value Double
secondaryGids :: OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
uid :: OpenZFSPosixFileSystemUserProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
= OpenZFSPosixFileSystemUserProperty {gid :: Value Double
gid = PropertyType "Gid" OpenZFSPosixFileSystemUserProperty
Value Double
newValue, Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: ()
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
haddock_workaround_ :: ()
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
instance Property "SecondaryGids" OpenZFSPosixFileSystemUserProperty where
type PropertyType "SecondaryGids" OpenZFSPosixFileSystemUserProperty = [FileSystemGIDProperty]
set :: PropertyType "SecondaryGids" OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
set PropertyType "SecondaryGids" OpenZFSPosixFileSystemUserProperty
newValue OpenZFSPosixFileSystemUserProperty {Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: OpenZFSPosixFileSystemUserProperty -> ()
gid :: OpenZFSPosixFileSystemUserProperty -> Value Double
secondaryGids :: OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
uid :: OpenZFSPosixFileSystemUserProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
= OpenZFSPosixFileSystemUserProperty
{secondaryGids :: Maybe [FileSystemGIDProperty]
secondaryGids = [FileSystemGIDProperty] -> Maybe [FileSystemGIDProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FileSystemGIDProperty]
PropertyType "SecondaryGids" OpenZFSPosixFileSystemUserProperty
newValue, ()
Value Double
haddock_workaround_ :: ()
gid :: Value Double
uid :: Value Double
haddock_workaround_ :: ()
gid :: Value Double
uid :: Value Double
..}
instance Property "Uid" OpenZFSPosixFileSystemUserProperty where
type PropertyType "Uid" OpenZFSPosixFileSystemUserProperty = Value Prelude.Double
set :: PropertyType "Uid" OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
-> OpenZFSPosixFileSystemUserProperty
set PropertyType "Uid" OpenZFSPosixFileSystemUserProperty
newValue OpenZFSPosixFileSystemUserProperty {Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: OpenZFSPosixFileSystemUserProperty -> ()
gid :: OpenZFSPosixFileSystemUserProperty -> Value Double
secondaryGids :: OpenZFSPosixFileSystemUserProperty -> Maybe [FileSystemGIDProperty]
uid :: OpenZFSPosixFileSystemUserProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
uid :: Value Double
..}
= OpenZFSPosixFileSystemUserProperty {uid :: Value Double
uid = PropertyType "Uid" OpenZFSPosixFileSystemUserProperty
Value Double
newValue, Maybe [FileSystemGIDProperty]
()
Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe [FileSystemGIDProperty]
..}