@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.260Z") @Stability(value=Experimental) public class PlacementStrategy extends software.amazon.jsii.JsiiObject
Tasks will preferentially be placed on instances that match these rules.
| Modifier | Constructor and Description |
|---|---|
protected |
PlacementStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PlacementStrategy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static PlacementStrategy |
packedBy(BinPackResource resource)
(experimental) Places tasks on the container instances with the least available capacity of the specified resource.
|
static PlacementStrategy |
packedByCpu()
(experimental) Places tasks on container instances with the least available amount of CPU capacity.
|
static PlacementStrategy |
packedByMemory()
(experimental) Places tasks on container instances with the least available amount of memory capacity.
|
static PlacementStrategy |
randomly()
(experimental) Places tasks randomly.
|
static PlacementStrategy |
spreadAcross(String... fields)
(experimental) Places tasks evenly based on the specified value.
|
static PlacementStrategy |
spreadAcrossInstances()
(experimental) Places tasks evenly across all container instances in the cluster.
|
List<CfnService.PlacementStrategyProperty> |
toJson()
(experimental) Return the placement JSON.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PlacementStrategy(software.amazon.jsii.JsiiObjectRef objRef)
protected PlacementStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static PlacementStrategy packedBy(@NotNull BinPackResource resource)
resource - This parameter is required.@Stability(value=Experimental) @NotNull public static PlacementStrategy packedByCpu()
This minimizes the number of instances in use.
@Stability(value=Experimental) @NotNull public static PlacementStrategy packedByMemory()
This minimizes the number of instances in use.
@Stability(value=Experimental) @NotNull public static PlacementStrategy randomly()
@Stability(value=Experimental) @NotNull public static PlacementStrategy spreadAcross(@NotNull String... fields)
You can use one of the built-in attributes found on BuiltInAttributes
or supply your own custom instance attributes. If more than one attribute
is supplied, spreading is done in order.
Default: attributes instanceId
fields - This parameter is required.@Stability(value=Experimental) @NotNull public static PlacementStrategy spreadAcrossInstances()
@Stability(value=Experimental) @NotNull public List<CfnService.PlacementStrategyProperty> toJson()
Copyright © 2021. All rights reserved.