Skip to content

EcsResourceRequirement

Source code in docs_src/capo_pipes/types/ecs_resource_requirement.py
class EcsResourceRequirement(TypedDict, closed=True):
    type: "capo_pipes.types.ecs_resource_requirement_type.EcsResourceRequirementType"
    """<p>The type of resource to assign to a container. The supported values are <code>GPU</code> or <code>InferenceAccelerator</code>.</p>"""
    value: "capo_pipes.types.string.String"
    """<p>The value for the specified resource type.</p> <p>If the <code>GPU</code> type is used, the value is the number of physical <code>GPUs</code> the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.</p> <p>If the <code>InferenceAccelerator</code> type is used, the <code>value</code> matches the <code>deviceName</code> for an InferenceAccelerator specified in a task definition.</p>"""

type instance-attribute

The type of resource to assign to a container. The supported values are GPU or InferenceAccelerator.

value instance-attribute

value: String

The value for the specified resource type.

If the GPU type is used, the value is the number of physical GPUs the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.

If the InferenceAccelerator type is used, the value matches the deviceName for an InferenceAccelerator specified in a task definition.