Skip to content

Resource

Source code in docs_src/capo_ecs/types/resource.py
class Resource(TypedDict, closed=True):
    name: NotRequired["capo_ecs.types.string.String"]
    """<p>The name of the resource, such as <code>CPU</code>, <code>MEMORY</code>, <code>PORTS</code>, <code>PORTS_UDP</code>, or a user-defined resource.</p>"""
    type: NotRequired["capo_ecs.types.string.String"]
    """<p>The type of the resource. Valid values: <code>INTEGER</code>, <code>DOUBLE</code>, <code>LONG</code>, or <code>STRINGSET</code>.</p>"""
    double_value: "capo_ecs.types.double.Double"
    """<p>When the <code>doubleValue</code> type is set, the value of the resource must be a double precision floating-point type.</p>"""
    long_value: "capo_ecs.types.long.Long"
    """<p>When the <code>longValue</code> type is set, the value of the resource must be an extended precision floating-point type.</p>"""
    integer_value: "capo_ecs.types.integer.Integer"
    """<p>When the <code>integerValue</code> type is set, the value of the resource must be an integer.</p>"""
    string_set_value: NotRequired["capo_ecs.types.string_list.StringList"]
    """<p>When the <code>stringSetValue</code> type is set, the value of the resource must be a string type.</p>"""

double_value instance-attribute

double_value: Double

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

integer_value instance-attribute

integer_value: Integer

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

long_value instance-attribute

long_value: Long

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

name instance-attribute

name: NotRequired[String]

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

string_set_value instance-attribute

string_set_value: NotRequired[StringList]

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

type instance-attribute

type: NotRequired[String]

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