Class: AWSCDK::Batch::CfnQuotaShare::QuotaShareCapacityLimitProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnQuotaShare::QuotaShareCapacityLimitProperty
- Defined in:
- batch/cfn_quota_share.rb
Overview
Instance Attribute Summary collapse
-
#capacity_unit ⇒ String
readonly
The unit of compute capacity for the capacityLimit.
-
#max_capacity ⇒ Numeric
readonly
The maximum capacity available for the quota share.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(capacity_unit:, max_capacity:) ⇒ QuotaShareCapacityLimitProperty
constructor
A new instance of QuotaShareCapacityLimitProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(capacity_unit:, max_capacity:) ⇒ QuotaShareCapacityLimitProperty
Returns a new instance of QuotaShareCapacityLimitProperty.
591 592 593 594 595 596 |
# File 'batch/cfn_quota_share.rb', line 591 def initialize(capacity_unit:, max_capacity:) @capacity_unit = capacity_unit Jsii::Type.check_type(@capacity_unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityUnit") @max_capacity = max_capacity Jsii::Type.check_type(@max_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxCapacity") end |
Instance Attribute Details
#capacity_unit ⇒ String (readonly)
The unit of compute capacity for the capacityLimit.
For example, ml.m5.large.
604 605 606 |
# File 'batch/cfn_quota_share.rb', line 604 def capacity_unit @capacity_unit end |
#max_capacity ⇒ Numeric (readonly)
The maximum capacity available for the quota share.
This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
611 612 613 |
# File 'batch/cfn_quota_share.rb', line 611 def max_capacity @max_capacity end |
Class Method Details
.jsii_properties ⇒ Object
613 614 615 616 617 618 |
# File 'batch/cfn_quota_share.rb', line 613 def self.jsii_properties { :capacity_unit => "capacityUnit", :max_capacity => "maxCapacity", } end |
Instance Method Details
#to_jsii ⇒ Object
620 621 622 623 624 625 626 627 |
# File 'batch/cfn_quota_share.rb', line 620 def to_jsii result = {} result.merge!({ "capacityUnit" => @capacity_unit, "maxCapacity" => @max_capacity, }) result.compact end |