The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::ECS::PlacementStrategy

USAGE

This class represents one of two things:

Arguments in a call to a service

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  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::PlacementStrategy object:

  $result = $service_obj->Method(...);
  $result->Att1->Field

DESCRIPTION

The task placement strategy for a task or service. For more information, see Task Placement Strategies in the Amazon EC2 Container Service Developer Guide.

ATTRIBUTES

Field => Str

  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.

Type => Str

  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).

SEE ALSO

This class forms part of Paws, describing an object used in Paws::ECS

BUGS and CONTRIBUTIONS

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