You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

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

Overview

Note:

When making an API call, you may pass Resource data as a hash:

{
  name: "String",
  type: "String",
  double_value: 1.0,
  long_value: 1,
  integer_value: 1,
  string_set_value: ["String"],
}

Describes the resources available for a container instance.

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)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

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

#integer_valueInteger

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

Returns:

  • (Integer)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  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)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

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

#nameString

The name of the resource, such as cpu, memory, ports, or a user-defined resource.

Returns:

  • (String)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

class Resource < Struct.new(
  :name,
  :type,
  :double_value,
  :long_value,
  :integer_value,
  :string_set_value)
  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>)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

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

#typeString

The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

Returns:

  • (String)


3124
3125
3126
3127
3128
3129
3130
3131
3132
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3124

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