| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ECS::ResourceRequirement; | ||
| 3 | use Moose; | ||
| 4 | has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest'], required => 1); | ||
| 5 | has Value => (is => 'ro', isa => 'Str', request_name => 'value', traits => ['NameInRequest'], required => 1); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::ECS::ResourceRequirement | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::ECS::ResourceRequirement object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { Type => $value, ..., Value => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::ResourceRequirement object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->Type | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | The type and amount of a resource to assign to a container. The | ||
| 38 | supported resource types are GPUs and Elastic Inference accelerators. | ||
| 39 | For more information, see Working with GPUs on Amazon ECS | ||
| 40 | (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-gpu.html) | ||
| 41 | or Working with Amazon Elastic Inference on Amazon ECS | ||
| 42 | (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-eia.html) | ||
| 43 | in the I<Amazon Elastic Container Service Developer Guide> | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 B<REQUIRED> Type => Str | ||
| 49 | |||
| 50 | The type of resource to assign to a container. The supported values are | ||
| 51 | C<GPU> or C<InferenceAccelerator>. | ||
| 52 | |||
| 53 | |||
| 54 | =head2 B<REQUIRED> Value => Str | ||
| 55 | |||
| 56 | The value for the specified resource type. | ||
| 57 | |||
| 58 | If the C<GPU> type is used, the value is the number of physical C<GPUs> | ||
| 59 | the Amazon ECS container agent will reserve for the container. The | ||
| 60 | number of GPUs reserved for all containers in a task should not exceed | ||
| 61 | the number of available GPUs on the container instance the task is | ||
| 62 | launched on. | ||
| 63 | |||
| 64 | If the C<InferenceAccelerator> type is used, the C<value> should match | ||
| 65 | the C<deviceName> for an InferenceAccelerator specified in a task | ||
| 66 | definition. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head1 SEE ALSO | ||
| 71 | |||
| 72 | This class forms part of L<Paws>, describing an object used in L<Paws::ECS> | ||
| 73 | |||
| 74 | =head1 BUGS and CONTRIBUTIONS | ||
| 75 | |||
| 76 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 77 | |||
| 78 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 79 | |||
| 80 | =cut | ||
| 81 |