Class: AWSCDK::ECS::CfnDaemonTaskDefinition::UlimitProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::UlimitProperty
- Defined in:
- ecs/cfn_daemon_task_definition.rb
Overview
The ulimit settings to pass to the container.
Amazon ECS tasks hosted on FARGATElong use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which FARGATElong 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.
2018 2019 2020 2021 2022 2023 2024 2025 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2018 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.
2033 2034 2035 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2033 def hard_limit @hard_limit end |
#name ⇒ String (readonly)
The type of the ulimit.
2038 2039 2040 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2038 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.
2045 2046 2047 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2045 def soft_limit @soft_limit end |
Class Method Details
.jsii_properties ⇒ Object
2047 2048 2049 2050 2051 2052 2053 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2047 def self.jsii_properties { :hard_limit => "hardLimit", :name => "name", :soft_limit => "softLimit", } end |
Instance Method Details
#to_jsii ⇒ Object
2055 2056 2057 2058 2059 2060 2061 2062 2063 |
# File 'ecs/cfn_daemon_task_definition.rb', line 2055 def to_jsii result = {} result.merge!({ "hardLimit" => @hard_limit, "name" => @name, "softLimit" => @soft_limit, }) result.compact end |