Class: Aws::ECS::Types::Resource
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::Resource
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecs/types.rb
Overview
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
-
#double_value ⇒ Float
When the ‘doubleValue` type is set, the value of the resource must be a double precision floating-point type.
-
#integer_value ⇒ Integer
When the ‘integerValue` type is set, the value of the resource must be an integer.
-
#long_value ⇒ Integer
When the ‘longValue` type is set, the value of the resource must be an extended precision floating-point type.
-
#name ⇒ String
The name of the resource, such as ‘CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, or a user-defined resource.
-
#string_set_value ⇒ Array<String>
When the ‘stringSetValue` type is set, the value of the resource must be a string type.
-
#type ⇒ String
The type of the resource, such as ‘INTEGER`, `DOUBLE`, `LONG`, or `STRINGSET`.
Instance Attribute Details
#double_value ⇒ Float
When the ‘doubleValue` type is set, the value of the resource must be a double precision floating-point type.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |
#integer_value ⇒ Integer
When the ‘integerValue` type is set, the value of the resource must be an integer.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |
#long_value ⇒ Integer
When the ‘longValue` type is set, the value of the resource must be an extended precision floating-point type.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |
#name ⇒ String
The name of the resource, such as ‘CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, or a user-defined resource.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |
#string_set_value ⇒ Array<String>
When the ‘stringSetValue` type is set, the value of the resource must be a string type.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |
#type ⇒ String
The type of the resource, such as ‘INTEGER`, `DOUBLE`, `LONG`, or `STRINGSET`.
5173 5174 5175 5176 5177 5178 5179 5180 5181 |
# File 'lib/aws-sdk-ecs/types.rb', line 5173 class Resource < Struct.new( :name, :type, :double_value, :long_value, :integer_value, :string_set_value) include Aws::Structure end |