Class: AWSCDK::ECS::Ulimit

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Ulimit.

Parameters:

  • hard_limit (Numeric)

    The hard limit for the ulimit type.

  • name (AWSCDK::ECS::UlimitName)

    The type of the ulimit.

  • soft_limit (Numeric)

    The soft limit for the ulimit type.



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_limitNumeric (readonly)

The hard limit for the ulimit type.

Returns:

  • (Numeric)


24
25
26
# File 'ecs/ulimit.rb', line 24

def hard_limit
  @hard_limit
end

#nameAWSCDK::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_limitNumeric (readonly)

The soft limit for the ulimit type.

Returns:

  • (Numeric)


34
35
36
# File 'ecs/ulimit.rb', line 34

def soft_limit
  @soft_limit
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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