Class: Aws::ECS::Types::Resource

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

Describes the resources available for a container instance.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#double_valueFloat

When the ‘doubleValue` type is set, the value of the resource must be a double precision floating-point type.

Returns:

  • (Float)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end

#integer_valueInteger

When the ‘integerValue` type is set, the value of the resource must be an integer.

Returns:

  • (Integer)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end

#long_valueInteger

When the ‘longValue` type is set, the value of the resource must be an extended precision floating-point type.

Returns:

  • (Integer)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the resource, such as ‘CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, or a user-defined resource.

Returns:

  • (String)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end

#string_set_valueArray<String>

When the ‘stringSetValue` type is set, the value of the resource must be a string type.

Returns:

  • (Array<String>)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The type of the resource. Valid values: ‘INTEGER`, `DOUBLE`, `LONG`, or `STRINGSET`.

Returns:

  • (String)


8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
# File 'lib/aws-sdk-ecs/types.rb', line 8404

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  SENSITIVE = []
  include Aws::Structure
end