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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Resource as input to an Aws::Client method, you can use a vanilla 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)

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

#integer_valueInteger

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

Returns:

  • (Integer)

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

#long_valueInteger

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

Returns:

  • (Integer)

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

#nameString

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

Returns:

  • (String)

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

#string_set_valueArray<String>

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

Returns:

  • (Array<String>)

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

#typeString

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

Returns:

  • (String)

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