Class: AWSCDK::FSX::CfnFileSystem::UserAndGroupQuotasProperty

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

Overview

Used to configure quotas that define how much storage a user or group can use on an FSx for OpenZFS volume.

For more information, see Volume properties in the FSx for OpenZFS User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UserAndGroupQuotasProperty.

Parameters:

  • id (Numeric, nil) (defaults to: nil)

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

  • storage_capacity_quota_gib (Numeric, nil) (defaults to: nil)

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

  • type (String, nil) (defaults to: nil)

    Specifies whether the quota applies to a user or group.



1989
1990
1991
1992
1993
1994
1995
1996
# File 'fsx/cfn_file_system.rb', line 1989

def initialize(id: nil, storage_capacity_quota_gib: nil, type: nil)
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "id") unless @id.nil?
  @storage_capacity_quota_gib = storage_capacity_quota_gib
  Jsii::Type.check_type(@storage_capacity_quota_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "storageCapacityQuotaGiB") unless @storage_capacity_quota_gib.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#idNumeric? (readonly)

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



2002
2003
2004
# File 'fsx/cfn_file_system.rb', line 2002

def id
  @id
end

#storage_capacity_quota_gibNumeric? (readonly)

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



2007
2008
2009
# File 'fsx/cfn_file_system.rb', line 2007

def storage_capacity_quota_gib
  @storage_capacity_quota_gib
end

#typeString? (readonly)

Specifies whether the quota applies to a user or group.



2012
2013
2014
# File 'fsx/cfn_file_system.rb', line 2012

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2014
2015
2016
2017
2018
2019
2020
# File 'fsx/cfn_file_system.rb', line 2014

def self.jsii_properties
  {
    :id => "id",
    :storage_capacity_quota_gib => "storageCapacityQuotaGiB",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



2022
2023
2024
2025
2026
2027
2028
2029
2030
# File 'fsx/cfn_file_system.rb', line 2022

def to_jsii
  result = {}
  result.merge!({
    "id" => @id,
    "storageCapacityQuotaGiB" => @storage_capacity_quota_gib,
    "type" => @type,
  })
  result.compact
end