Class: AWSCDK::FSX::CfnVolume::UserAndGroupQuotasProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnVolume::UserAndGroupQuotasProperty
- Defined in:
- fsx/cfn_volume.rb
Overview
Configures how much storage users and groups can use on the volume.
Instance Attribute Summary collapse
-
#id ⇒ Numeric
readonly
The ID of the user or group that the quota applies to.
-
#storage_capacity_quota_gib ⇒ Numeric
readonly
The user or group's storage quota, in gibibytes (GiB).
-
#type ⇒ String
readonly
Specifies whether the quota applies to a user or group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, storage_capacity_quota_gib:, type:) ⇒ UserAndGroupQuotasProperty
constructor
A new instance of UserAndGroupQuotasProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, storage_capacity_quota_gib:, type:) ⇒ UserAndGroupQuotasProperty
Returns a new instance of UserAndGroupQuotasProperty.
1456 1457 1458 1459 1460 1461 1462 1463 |
# File 'fsx/cfn_volume.rb', line 1456 def initialize(id:, storage_capacity_quota_gib:, type:) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "id") @storage_capacity_quota_gib = storage_capacity_quota_gib Jsii::Type.check_type(@storage_capacity_quota_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "storageCapacityQuotaGiB") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#id ⇒ Numeric (readonly)
The ID of the user or group that the quota applies to.
1469 1470 1471 |
# File 'fsx/cfn_volume.rb', line 1469 def id @id end |
#storage_capacity_quota_gib ⇒ Numeric (readonly)
The user or group's storage quota, in gibibytes (GiB).
1474 1475 1476 |
# File 'fsx/cfn_volume.rb', line 1474 def storage_capacity_quota_gib @storage_capacity_quota_gib end |
#type ⇒ String (readonly)
Specifies whether the quota applies to a user or group.
1479 1480 1481 |
# File 'fsx/cfn_volume.rb', line 1479 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1481 1482 1483 1484 1485 1486 1487 |
# File 'fsx/cfn_volume.rb', line 1481 def self.jsii_properties { :id => "id", :storage_capacity_quota_gib => "storageCapacityQuotaGiB", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'fsx/cfn_volume.rb', line 1489 def to_jsii result = {} result.merge!({ "id" => @id, "storageCapacityQuotaGiB" => @storage_capacity_quota_gib, "type" => @type, }) result.compact end |