line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::ECS::PlacementStrategy; |
2
|
1
|
|
|
1
|
|
277
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
3
|
|
|
|
|
|
|
has Field => (is => 'ro', isa => 'Str', request_name => 'field', traits => ['NameInRequest']); |
4
|
|
|
|
|
|
|
has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest']); |
5
|
|
|
|
|
|
|
1; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
### main pod documentation begin ### |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Paws::ECS::PlacementStrategy |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 USAGE |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
This class represents one of two things: |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head3 Arguments in a call to a service |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. |
20
|
|
|
|
|
|
|
Each attribute should be used as a named argument in the calls that expect this type of object. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
As an example, if Att1 is expected to be a Paws::ECS::PlacementStrategy object: |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$service_obj->Method(Att1 => { Field => $value, ..., Type => $value }); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head3 Results returned from an API call |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::PlacementStrategy object: |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$result = $service_obj->Method(...); |
31
|
|
|
|
|
|
|
$result->Att1->Field |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
The task placement strategy for a task or service. For more |
36
|
|
|
|
|
|
|
information, see Task Placement Strategies in the I<Amazon EC2 |
37
|
|
|
|
|
|
|
Container Service Developer Guide>. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 Field => Str |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
The field to apply the placement strategy against. For the C<spread> |
45
|
|
|
|
|
|
|
placement strategy, valid values are C<instanceId> (or C<host>, which |
46
|
|
|
|
|
|
|
has the same effect), or any platform or custom attribute that is |
47
|
|
|
|
|
|
|
applied to a container instance, such as |
48
|
|
|
|
|
|
|
C<attribute:ecs.availability-zone>. For the C<binpack> placement |
49
|
|
|
|
|
|
|
strategy, valid values are C<cpu> and C<memory>. For the C<random> |
50
|
|
|
|
|
|
|
placement strategy, this field is not used. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 Type => Str |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The type of placement strategy. The C<random> placement strategy |
56
|
|
|
|
|
|
|
randomly places tasks on available candidates. The C<spread> placement |
57
|
|
|
|
|
|
|
strategy spreads placement across available candidates evenly based on |
58
|
|
|
|
|
|
|
the C<field> parameter. The C<binpack> strategy places tasks on |
59
|
|
|
|
|
|
|
available candidates that have the least available amount of the |
60
|
|
|
|
|
|
|
resource that is specified with the C<field> parameter. For example, if |
61
|
|
|
|
|
|
|
you binpack on memory, a task is placed on the instance with the least |
62
|
|
|
|
|
|
|
amount of remaining memory (but still enough to run the task). |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SEE ALSO |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This class forms part of L<Paws>, describing an object used in L<Paws::ECS> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
77
|
|
|
|
|
|
|
|