Paws::ECS::PlacementStrategy
This class represents one of two things:
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.
As an example, if Att1 is expected to be a Paws::ECS::PlacementStrategy object:
$service_obj->Method(Att1 => { Field => $value, ..., Type => $value });
Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::PlacementStrategy object:
$result = $service_obj->Method(...); $result->Att1->Field
The task placement strategy for a task or service. For more information, see Task Placement Strategies in the Amazon EC2 Container Service Developer Guide.
The field to apply the placement strategy against. For the C<spread> placement strategy, valid values are C<instanceId> (or C<host>, which has the same effect), or any platform or custom attribute that is applied to a container instance, such as C<attribute:ecs.availability-zone>. For the C<binpack> placement strategy, valid values are C<cpu> and C<memory>. For the C<random> placement strategy, this field is not used.
The type of placement strategy. The C<random> placement strategy randomly places tasks on available candidates. The C<spread> placement strategy spreads placement across available candidates evenly based on the C<field> parameter. The C<binpack> strategy places tasks on available candidates that have the least available amount of the resource that is specified with the C<field> parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task).
This class forms part of Paws, describing an object used in Paws::ECS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws::SDK::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::SDK::Config
CPAN shell
perl -MCPAN -e shell install Paws::SDK::Config
For more information on module installation, please visit the detailed CPAN module installation guide.