Class: AWSCDK::Batch::CfnJobDefinition::UlimitProperty

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

Overview

The ulimit settings to pass to the container. For more information, see Ulimit .

This object isn't applicable to jobs that are running on Fargate resources.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hard_limit:, name:, soft_limit:) ⇒ UlimitProperty

Returns a new instance of UlimitProperty.

Parameters:

  • hard_limit (Numeric)

    The hard limit for the ulimit type.

  • name (String)

    The type of the ulimit .

  • soft_limit (Numeric)

    The soft limit for the ulimit type.



3937
3938
3939
3940
3941
3942
3943
3944
# File 'batch/cfn_job_definition.rb', line 3937

def initialize(hard_limit:, name:, soft_limit:)
  @hard_limit = hard_limit
  Jsii::Type.check_type(@hard_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "hardLimit")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @soft_limit = soft_limit
  Jsii::Type.check_type(@soft_limit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "softLimit")
end

Instance Attribute Details

#hard_limitNumeric (readonly)

The hard limit for the ulimit type.



3950
3951
3952
# File 'batch/cfn_job_definition.rb', line 3950

def hard_limit
  @hard_limit
end

#nameString (readonly)

The type of the ulimit .

Valid values are: core | cpu | data | fsize | locks | memlock | msgqueue | nice | nofile | nproc | rss | rtprio | rttime | sigpending | stack .



3957
3958
3959
# File 'batch/cfn_job_definition.rb', line 3957

def name
  @name
end

#soft_limitNumeric (readonly)

The soft limit for the ulimit type.



3962
3963
3964
# File 'batch/cfn_job_definition.rb', line 3962

def soft_limit
  @soft_limit
end

Class Method Details

.jsii_propertiesObject



3964
3965
3966
3967
3968
3969
3970
# File 'batch/cfn_job_definition.rb', line 3964

def self.jsii_properties
  {
    :hard_limit => "hardLimit",
    :name => "name",
    :soft_limit => "softLimit",
  }
end

Instance Method Details

#to_jsiiObject



3972
3973
3974
3975
3976
3977
3978
3979
3980
# File 'batch/cfn_job_definition.rb', line 3972

def to_jsii
  result = {}
  result.merge!({
    "hardLimit" => @hard_limit,
    "name" => @name,
    "softLimit" => @soft_limit,
  })
  result.compact
end