« blib/lib/Paws/CloudWatchEvents/PlacementConstraint.pm
↑ Summary
blib/lib/Paws/CloudWatchEvents/PutEvents.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::CloudWatchEvents::PlacementStrategy; | ||
| 3 | use Moose; | ||
| 4 | has Field => (is => 'ro', isa => 'Str', request_name => 'field', traits => ['NameInRequest']); | ||
| 5 | has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest']); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::CloudWatchEvents::PlacementStrategy | ||
| 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::CloudWatchEvents::PlacementStrategy object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { Field => $value, ..., Type => $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::CloudWatchEvents::PlacementStrategy object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->Field | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | The task placement strategy for a task or service. To learn more, see | ||
| 38 | Task Placement Strategies | ||
| 39 | (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html) | ||
| 40 | in the Amazon Elastic Container Service Developer Guide. | ||
| 41 | |||
| 42 | =head1 ATTRIBUTES | ||
| 43 | |||
| 44 | |||
| 45 | =head2 Field => Str | ||
| 46 | |||
| 47 | The field to apply the placement strategy against. For the spread | ||
| 48 | placement strategy, valid values are instanceId (or host, which has the | ||
| 49 | same effect), or any platform or custom attribute that is applied to a | ||
| 50 | container instance, such as attribute:ecs.availability-zone. For the | ||
| 51 | binpack placement strategy, valid values are cpu and memory. For the | ||
| 52 | random placement strategy, this field is not used. | ||
| 53 | |||
| 54 | |||
| 55 | =head2 Type => Str | ||
| 56 | |||
| 57 | The type of placement strategy. The random placement strategy randomly | ||
| 58 | places tasks on available candidates. The spread placement strategy | ||
| 59 | spreads placement across available candidates evenly based on the field | ||
| 60 | parameter. The binpack strategy places tasks on available candidates | ||
| 61 | that have the least available amount of the resource that is specified | ||
| 62 | with the field parameter. For example, if you binpack on memory, a task | ||
| 63 | is placed on the instance with the least amount of remaining memory | ||
| 64 | (but still enough to run the task). | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head1 SEE ALSO | ||
| 69 | |||
| 70 | This class forms part of L<Paws>, describing an object used in L<Paws::CloudWatchEvents> | ||
| 71 | |||
| 72 | =head1 BUGS and CONTRIBUTIONS | ||
| 73 | |||
| 74 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 75 | |||
| 76 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 77 | |||
| 78 | =cut | ||
| 79 |