AWS SDK for C++  1.8.95
AWS SDK for C++
Public Member Functions | List of all members
Aws::ECS::Model::ResourceRequirement Class Reference

#include <ResourceRequirement.h>

Public Member Functions

 ResourceRequirement ()
 
 ResourceRequirement (Aws::Utils::Json::JsonView jsonValue)
 
ResourceRequirementoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const Aws::StringGetValue () const
 
bool ValueHasBeenSet () const
 
void SetValue (const Aws::String &value)
 
void SetValue (Aws::String &&value)
 
void SetValue (const char *value)
 
ResourceRequirementWithValue (const Aws::String &value)
 
ResourceRequirementWithValue (Aws::String &&value)
 
ResourceRequirementWithValue (const char *value)
 
const ResourceTypeGetType () const
 
bool TypeHasBeenSet () const
 
void SetType (const ResourceType &value)
 
void SetType (ResourceType &&value)
 
ResourceRequirementWithType (const ResourceType &value)
 
ResourceRequirementWithType (ResourceType &&value)
 

Detailed Description

The type and amount of a resource to assign to a container. The supported resource types are GPUs and Elastic Inference accelerators. For more information, see Working with GPUs on Amazon ECS or Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide

See Also:

AWS API Reference

Definition at line 39 of file ResourceRequirement.h.

Constructor & Destructor Documentation

◆ ResourceRequirement() [1/2]

Aws::ECS::Model::ResourceRequirement::ResourceRequirement ( )

◆ ResourceRequirement() [2/2]

Aws::ECS::Model::ResourceRequirement::ResourceRequirement ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ GetType()

const ResourceType& Aws::ECS::Model::ResourceRequirement::GetType ( ) const
inline

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

Definition at line 149 of file ResourceRequirement.h.

◆ GetValue()

const Aws::String& Aws::ECS::Model::ResourceRequirement::GetValue ( ) const
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 58 of file ResourceRequirement.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::ECS::Model::ResourceRequirement::Jsonize ( ) const

◆ operator=()

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetType() [1/2]

void Aws::ECS::Model::ResourceRequirement::SetType ( const ResourceType value)
inline

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

Definition at line 161 of file ResourceRequirement.h.

◆ SetType() [2/2]

void Aws::ECS::Model::ResourceRequirement::SetType ( ResourceType &&  value)
inline

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

Definition at line 167 of file ResourceRequirement.h.

◆ SetValue() [1/3]

void Aws::ECS::Model::ResourceRequirement::SetValue ( const Aws::String value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 82 of file ResourceRequirement.h.

◆ SetValue() [2/3]

void Aws::ECS::Model::ResourceRequirement::SetValue ( Aws::String &&  value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 94 of file ResourceRequirement.h.

◆ SetValue() [3/3]

void Aws::ECS::Model::ResourceRequirement::SetValue ( const char *  value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 106 of file ResourceRequirement.h.

◆ TypeHasBeenSet()

bool Aws::ECS::Model::ResourceRequirement::TypeHasBeenSet ( ) const
inline

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

Definition at line 155 of file ResourceRequirement.h.

◆ ValueHasBeenSet()

bool Aws::ECS::Model::ResourceRequirement::ValueHasBeenSet ( ) const
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 70 of file ResourceRequirement.h.

◆ WithType() [1/2]

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::WithType ( const ResourceType value)
inline

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

Definition at line 173 of file ResourceRequirement.h.

◆ WithType() [2/2]

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::WithType ( ResourceType &&  value)
inline

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

Definition at line 179 of file ResourceRequirement.h.

◆ WithValue() [1/3]

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::WithValue ( const Aws::String value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 118 of file ResourceRequirement.h.

◆ WithValue() [2/3]

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::WithValue ( Aws::String &&  value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 130 of file ResourceRequirement.h.

◆ WithValue() [3/3]

ResourceRequirement& Aws::ECS::Model::ResourceRequirement::WithValue ( const char *  value)
inline

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 will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.

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

Definition at line 142 of file ResourceRequirement.h.


The documentation for this class was generated from the following file: