module Stratosphere.Transfer.User.PosixProfileProperty (
        PosixProfileProperty(..), mkPosixProfileProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PosixProfileProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-posixprofile.html>
    PosixProfileProperty {PosixProfileProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-posixprofile.html#cfn-transfer-user-posixprofile-gid>
                          PosixProfileProperty -> Value Double
gid :: (Value Prelude.Double),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-posixprofile.html#cfn-transfer-user-posixprofile-secondarygids>
                          PosixProfileProperty -> Maybe (ValueList Double)
secondaryGids :: (Prelude.Maybe (ValueList Prelude.Double)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-posixprofile.html#cfn-transfer-user-posixprofile-uid>
                          PosixProfileProperty -> Value Double
uid :: (Value Prelude.Double)}
  deriving stock (PosixProfileProperty -> PosixProfileProperty -> Bool
(PosixProfileProperty -> PosixProfileProperty -> Bool)
-> (PosixProfileProperty -> PosixProfileProperty -> Bool)
-> Eq PosixProfileProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PosixProfileProperty -> PosixProfileProperty -> Bool
== :: PosixProfileProperty -> PosixProfileProperty -> Bool
$c/= :: PosixProfileProperty -> PosixProfileProperty -> Bool
/= :: PosixProfileProperty -> PosixProfileProperty -> Bool
Prelude.Eq, Int -> PosixProfileProperty -> ShowS
[PosixProfileProperty] -> ShowS
PosixProfileProperty -> String
(Int -> PosixProfileProperty -> ShowS)
-> (PosixProfileProperty -> String)
-> ([PosixProfileProperty] -> ShowS)
-> Show PosixProfileProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PosixProfileProperty -> ShowS
showsPrec :: Int -> PosixProfileProperty -> ShowS
$cshow :: PosixProfileProperty -> String
show :: PosixProfileProperty -> String
$cshowList :: [PosixProfileProperty] -> ShowS
showList :: [PosixProfileProperty] -> ShowS
Prelude.Show)
mkPosixProfileProperty ::
  Value Prelude.Double
  -> Value Prelude.Double -> PosixProfileProperty
mkPosixProfileProperty :: Value Double -> Value Double -> PosixProfileProperty
mkPosixProfileProperty Value Double
gid Value Double
uid
  = PosixProfileProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), gid :: Value Double
gid = Value Double
gid, uid :: Value Double
uid = Value Double
uid,
       secondaryGids :: Maybe (ValueList Double)
secondaryGids = Maybe (ValueList Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PosixProfileProperty where
  toResourceProperties :: PosixProfileProperty -> ResourceProperties
toResourceProperties PosixProfileProperty {Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: PosixProfileProperty -> ()
gid :: PosixProfileProperty -> Value Double
secondaryGids :: PosixProfileProperty -> Maybe (ValueList Double)
uid :: PosixProfileProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Transfer::User.PosixProfile",
         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 -> ValueList Double -> (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" (ValueList Double -> (Key, Value))
-> Maybe (ValueList Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Double)
secondaryGids]))}
instance JSON.ToJSON PosixProfileProperty where
  toJSON :: PosixProfileProperty -> Value
toJSON PosixProfileProperty {Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: PosixProfileProperty -> ()
gid :: PosixProfileProperty -> Value Double
secondaryGids :: PosixProfileProperty -> Maybe (ValueList Double)
uid :: PosixProfileProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
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 -> ValueList Double -> (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" (ValueList Double -> (Key, Value))
-> Maybe (ValueList Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Double)
secondaryGids])))
instance Property "Gid" PosixProfileProperty where
  type PropertyType "Gid" PosixProfileProperty = Value Prelude.Double
  set :: PropertyType "Gid" PosixProfileProperty
-> PosixProfileProperty -> PosixProfileProperty
set PropertyType "Gid" PosixProfileProperty
newValue PosixProfileProperty {Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: PosixProfileProperty -> ()
gid :: PosixProfileProperty -> Value Double
secondaryGids :: PosixProfileProperty -> Maybe (ValueList Double)
uid :: PosixProfileProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
..}
    = PosixProfileProperty {gid :: Value Double
gid = PropertyType "Gid" PosixProfileProperty
Value Double
newValue, Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: ()
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
haddock_workaround_ :: ()
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
..}
instance Property "SecondaryGids" PosixProfileProperty where
  type PropertyType "SecondaryGids" PosixProfileProperty = ValueList Prelude.Double
  set :: PropertyType "SecondaryGids" PosixProfileProperty
-> PosixProfileProperty -> PosixProfileProperty
set PropertyType "SecondaryGids" PosixProfileProperty
newValue PosixProfileProperty {Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: PosixProfileProperty -> ()
gid :: PosixProfileProperty -> Value Double
secondaryGids :: PosixProfileProperty -> Maybe (ValueList Double)
uid :: PosixProfileProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
..}
    = PosixProfileProperty {secondaryGids :: Maybe (ValueList Double)
secondaryGids = ValueList Double -> Maybe (ValueList Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecondaryGids" PosixProfileProperty
ValueList Double
newValue, ()
Value Double
haddock_workaround_ :: ()
gid :: Value Double
uid :: Value Double
haddock_workaround_ :: ()
gid :: Value Double
uid :: Value Double
..}
instance Property "Uid" PosixProfileProperty where
  type PropertyType "Uid" PosixProfileProperty = Value Prelude.Double
  set :: PropertyType "Uid" PosixProfileProperty
-> PosixProfileProperty -> PosixProfileProperty
set PropertyType "Uid" PosixProfileProperty
newValue PosixProfileProperty {Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: PosixProfileProperty -> ()
gid :: PosixProfileProperty -> Value Double
secondaryGids :: PosixProfileProperty -> Maybe (ValueList Double)
uid :: PosixProfileProperty -> Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
uid :: Value Double
..}
    = PosixProfileProperty {uid :: Value Double
uid = PropertyType "Uid" PosixProfileProperty
Value Double
newValue, Maybe (ValueList Double)
()
Value Double
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
haddock_workaround_ :: ()
gid :: Value Double
secondaryGids :: Maybe (ValueList Double)
..}