Class: AWSCDK::Batch::CfnQuotaShare::QuotaShareCapacityLimitProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_quota_share.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capacity_unit:, max_capacity:) ⇒ QuotaShareCapacityLimitProperty

Returns a new instance of QuotaShareCapacityLimitProperty.

Parameters:

  • capacity_unit (String)

    The unit of compute capacity for the capacityLimit.

  • max_capacity (Numeric)

    The maximum capacity available for the quota share.



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_unitString (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_capacityNumeric (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_propertiesObject



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_jsiiObject



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