blib/lib/Paws/ECS/PlacementStrategy.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ECS::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::ECS::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::ECS::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::ECS::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. For more
38 information, see Task Placement Strategies
39 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html)
40 in the I<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 C<spread>
48 placement strategy, valid values are C<instanceId> (or C<host>, which
49 has the same effect), or any platform or custom attribute that is
50 applied to a container instance, such as
51 C<attribute:ecs.availability-zone>. For the C<binpack> placement
52 strategy, valid values are C<cpu> and C<memory>. For the C<random>
53 placement strategy, this field is not used.
54  
55  
56 =head2 Type => Str
57  
58 The type of placement strategy. The C<random> placement strategy
59 randomly places tasks on available candidates. The C<spread> placement
60 strategy spreads placement across available candidates evenly based on
61 the C<field> parameter. The C<binpack> strategy places tasks on
62 available candidates that have the least available amount of the
63 resource that is specified with the C<field> parameter. For example, if
64 you binpack on memory, a task is placed on the instance with the least
65 amount of remaining memory (but still enough to run the task).
66  
67  
68  
69 =head1 SEE ALSO
70  
71 This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
72  
73 =head1 BUGS and CONTRIBUTIONS
74  
75 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
76  
77 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
78  
79 =cut
80