Class: AWSCDK::Batch::CfnJobDefinition::UlimitProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::UlimitProperty
- 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
-
#hard_limit ⇒ Numeric
readonly
The hard limit for the
ulimittype. -
#name ⇒ String
readonly
The
typeof theulimit. -
#soft_limit ⇒ Numeric
readonly
The soft limit for the
ulimittype.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hard_limit:, name:, soft_limit:) ⇒ UlimitProperty
constructor
A new instance of UlimitProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hard_limit:, name:, soft_limit:) ⇒ UlimitProperty
Returns a new instance of UlimitProperty.
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_limit ⇒ Numeric (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 |
#name ⇒ String (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_limit ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |