Class: AWSCDK::ECS::CfnTaskDefinition::UlimitProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::UlimitProperty
- Defined in:
- ecs/cfn_task_definition.rb
Overview
The ulimit settings to pass to the container.
Amazon ECS tasks hosted on AWS Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which AWS Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535 .
You can specify the ulimit settings for a container in a task definition.
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.
3376 3377 3378 3379 3380 3381 3382 3383 |
# File 'ecs/cfn_task_definition.rb', line 3376 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.
The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit .
3391 3392 3393 |
# File 'ecs/cfn_task_definition.rb', line 3391 def hard_limit @hard_limit end |
#name ⇒ String (readonly)
The type of the ulimit .
3396 3397 3398 |
# File 'ecs/cfn_task_definition.rb', line 3396 def name @name end |
#soft_limit ⇒ Numeric (readonly)
The soft limit for the ulimit type.
The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit .
3403 3404 3405 |
# File 'ecs/cfn_task_definition.rb', line 3403 def soft_limit @soft_limit end |
Class Method Details
.jsii_properties ⇒ Object
3405 3406 3407 3408 3409 3410 3411 |
# File 'ecs/cfn_task_definition.rb', line 3405 def self.jsii_properties { :hard_limit => "hardLimit", :name => "name", :soft_limit => "softLimit", } end |
Instance Method Details
#to_jsii ⇒ Object
3413 3414 3415 3416 3417 3418 3419 3420 3421 |
# File 'ecs/cfn_task_definition.rb', line 3413 def to_jsii result = {} result.merge!({ "hardLimit" => @hard_limit, "name" => @name, "softLimit" => @soft_limit, }) result.compact end |