Class: AWSCDK::FSX::CfnFileSystem::UserAndGroupQuotasProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnFileSystem::UserAndGroupQuotasProperty
- 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
-
#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: nil, storage_capacity_quota_gib: nil, type: nil) ⇒ UserAndGroupQuotasProperty
constructor
A new instance of UserAndGroupQuotasProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id: nil, storage_capacity_quota_gib: nil, type: nil) ⇒ UserAndGroupQuotasProperty
Returns a new instance of UserAndGroupQuotasProperty.
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
#id ⇒ Numeric? (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_gib ⇒ Numeric? (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 |
#type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |