Class: AWSCDK::ECS::Ulimit
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::Ulimit
- Defined in:
- ecs/ulimit.rb
Overview
The ulimit settings to pass to the container.
NOTE: Does not work for Windows containers.
Instance Attribute Summary collapse
-
#hard_limit ⇒ Numeric
readonly
The hard limit for the ulimit type.
-
#name ⇒ AWSCDK::ECS::UlimitName
readonly
The type of the ulimit.
-
#soft_limit ⇒ Numeric
readonly
The soft limit for the ulimit type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hard_limit:, name:, soft_limit:) ⇒ Ulimit
constructor
A new instance of Ulimit.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hard_limit:, name:, soft_limit:) ⇒ Ulimit
Returns a new instance of Ulimit.
12 13 14 15 16 17 18 19 |
# File 'ecs/ulimit.rb', line 12 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("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlVsaW1pdE5hbWUifQ==")), "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.
24 25 26 |
# File 'ecs/ulimit.rb', line 24 def hard_limit @hard_limit end |
#name ⇒ AWSCDK::ECS::UlimitName (readonly)
The type of the ulimit.
For more information, see UlimitName.
30 31 32 |
# File 'ecs/ulimit.rb', line 30 def name @name end |
#soft_limit ⇒ Numeric (readonly)
The soft limit for the ulimit type.
34 35 36 |
# File 'ecs/ulimit.rb', line 34 def soft_limit @soft_limit end |
Class Method Details
.jsii_properties ⇒ Object
36 37 38 39 40 41 42 |
# File 'ecs/ulimit.rb', line 36 def self.jsii_properties { :hard_limit => "hardLimit", :name => "name", :soft_limit => "softLimit", } end |
Instance Method Details
#to_jsii ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'ecs/ulimit.rb', line 44 def to_jsii result = {} result.merge!({ "hardLimit" => @hard_limit, "name" => @name, "softLimit" => @soft_limit, }) result.compact end |