module Stratosphere.FSx.Volume.UserAndGroupQuotasProperty (
UserAndGroupQuotasProperty(..), mkUserAndGroupQuotasProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserAndGroupQuotasProperty
=
UserAndGroupQuotasProperty {UserAndGroupQuotasProperty -> ()
haddock_workaround_ :: (),
UserAndGroupQuotasProperty -> Value Integer
id :: (Value Prelude.Integer),
UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: (Value Prelude.Integer),
UserAndGroupQuotasProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
(UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool)
-> (UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> Bool)
-> Eq UserAndGroupQuotasProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
== :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
$c/= :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
/= :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
Prelude.Eq, Int -> UserAndGroupQuotasProperty -> ShowS
[UserAndGroupQuotasProperty] -> ShowS
UserAndGroupQuotasProperty -> String
(Int -> UserAndGroupQuotasProperty -> ShowS)
-> (UserAndGroupQuotasProperty -> String)
-> ([UserAndGroupQuotasProperty] -> ShowS)
-> Show UserAndGroupQuotasProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserAndGroupQuotasProperty -> ShowS
showsPrec :: Int -> UserAndGroupQuotasProperty -> ShowS
$cshow :: UserAndGroupQuotasProperty -> String
show :: UserAndGroupQuotasProperty -> String
$cshowList :: [UserAndGroupQuotasProperty] -> ShowS
showList :: [UserAndGroupQuotasProperty] -> ShowS
Prelude.Show)
mkUserAndGroupQuotasProperty ::
Value Prelude.Integer
-> Value Prelude.Integer
-> Value Prelude.Text -> UserAndGroupQuotasProperty
mkUserAndGroupQuotasProperty :: Value Integer
-> Value Integer -> Value Text -> UserAndGroupQuotasProperty
mkUserAndGroupQuotasProperty Value Integer
id Value Integer
storageCapacityQuotaGiB Value Text
type'
= UserAndGroupQuotasProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), id :: Value Integer
id = Value Integer
id,
storageCapacityQuotaGiB :: Value Integer
storageCapacityQuotaGiB = Value Integer
storageCapacityQuotaGiB, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties UserAndGroupQuotasProperty where
toResourceProperties :: UserAndGroupQuotasProperty -> ResourceProperties
toResourceProperties UserAndGroupQuotasProperty {()
Value Integer
Value Text
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Value Integer
type' :: UserAndGroupQuotasProperty -> Value Text
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::Volume.UserAndGroupQuotas",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Id" 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
id,
Key
"StorageCapacityQuotaGiB" 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
storageCapacityQuotaGiB,
Key
"Type" 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
type']}
instance JSON.ToJSON UserAndGroupQuotasProperty where
toJSON :: UserAndGroupQuotasProperty -> Value
toJSON UserAndGroupQuotasProperty {()
Value Integer
Value Text
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Value Integer
type' :: UserAndGroupQuotasProperty -> Value Text
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Id" 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
id,
Key
"StorageCapacityQuotaGiB" 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
storageCapacityQuotaGiB,
Key
"Type" 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
type']
instance Property "Id" UserAndGroupQuotasProperty where
type PropertyType "Id" UserAndGroupQuotasProperty = Value Prelude.Integer
set :: PropertyType "Id" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "Id" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {()
Value Integer
Value Text
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Value Integer
type' :: UserAndGroupQuotasProperty -> Value Text
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
= UserAndGroupQuotasProperty {id :: Value Integer
id = PropertyType "Id" UserAndGroupQuotasProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
haddock_workaround_ :: ()
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
instance Property "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty where
type PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty = Value Prelude.Integer
set :: PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {()
Value Integer
Value Text
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Value Integer
type' :: UserAndGroupQuotasProperty -> Value Text
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
= UserAndGroupQuotasProperty
{storageCapacityQuotaGiB :: Value Integer
storageCapacityQuotaGiB = PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
id :: Value Integer
type' :: Value Text
haddock_workaround_ :: ()
id :: Value Integer
type' :: Value Text
..}
instance Property "Type" UserAndGroupQuotasProperty where
type PropertyType "Type" UserAndGroupQuotasProperty = Value Prelude.Text
set :: PropertyType "Type" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "Type" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {()
Value Integer
Value Text
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Value Integer
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Value Integer
type' :: UserAndGroupQuotasProperty -> Value Text
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
type' :: Value Text
..}
= UserAndGroupQuotasProperty {type' :: Value Text
type' = PropertyType "Type" UserAndGroupQuotasProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
haddock_workaround_ :: ()
id :: Value Integer
storageCapacityQuotaGiB :: Value Integer
..}