Package com.pulumi.aws.ecs.outputs
Class ServiceOrderedPlacementStrategy
- java.lang.Object
-
- com.pulumi.aws.ecs.outputs.ServiceOrderedPlacementStrategy
-
public final class ServiceOrderedPlacementStrategy extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceOrderedPlacementStrategy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceOrderedPlacementStrategy.Builderbuilder()static ServiceOrderedPlacementStrategy.Builderbuilder(ServiceOrderedPlacementStrategy defaults)java.util.Optional<java.lang.String>field()java.lang.Stringtype()
-
-
-
Method Detail
-
field
public java.util.Optional<java.lang.String> field()
- Returns:
- For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance. For the `binpack` type, valid values are `memory` and `cpu`. For the `random` type, this attribute is not needed. For more information, see [Placement Strategy](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PlacementStrategy.html).
-
type
public java.lang.String type()
- Returns:
- Type of placement strategy. Must be one of: `binpack`, `random`, or `spread` > **Note:** for `spread`, `host` and `instanceId` will be normalized, by AWS, to be `instanceId`. This means the statefile will show `instanceId` but your config will differ if you use `host`.
-
builder
public static ServiceOrderedPlacementStrategy.Builder builder()
-
builder
public static ServiceOrderedPlacementStrategy.Builder builder(ServiceOrderedPlacementStrategy defaults)
-
-