Class: AWSCDK::FSX::CfnVolume::UserAndGroupQuotasProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_volume.rb

Overview

Configures how much storage users and groups can use on the volume.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, storage_capacity_quota_gib:, type:) ⇒ UserAndGroupQuotasProperty

Returns a new instance of UserAndGroupQuotasProperty.

Parameters:

  • id (Numeric)

    The ID of the user or group that the quota applies to.

  • storage_capacity_quota_gib (Numeric)

    The user or group's storage quota, in gibibytes (GiB).

  • type (String)

    Specifies whether the quota applies to a user or group.



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

#idNumeric (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_gibNumeric (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

#typeString (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_propertiesObject



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_jsiiObject



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