Package com.pulumi.aws.ecs.inputs
Class ServiceOrderedPlacementStrategyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ecs.inputs.ServiceOrderedPlacementStrategyArgs.Builder
-
- Enclosing class:
- ServiceOrderedPlacementStrategyArgs
public static final class ServiceOrderedPlacementStrategyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ServiceOrderedPlacementStrategyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceOrderedPlacementStrategyArgsbuild()ServiceOrderedPlacementStrategyArgs.Builderfield(com.pulumi.core.Output<java.lang.String> field)ServiceOrderedPlacementStrategyArgs.Builderfield(java.lang.String field)ServiceOrderedPlacementStrategyArgs.Buildertype(com.pulumi.core.Output<java.lang.String> type)ServiceOrderedPlacementStrategyArgs.Buildertype(java.lang.String type)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ServiceOrderedPlacementStrategyArgs defaults)
-
-
Method Detail
-
field
public ServiceOrderedPlacementStrategyArgs.Builder field(@Nullable com.pulumi.core.Output<java.lang.String> field)
- Parameters:
field- 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).- Returns:
- builder
-
field
public ServiceOrderedPlacementStrategyArgs.Builder field(java.lang.String field)
- Parameters:
field- 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).- Returns:
- builder
-
type
public ServiceOrderedPlacementStrategyArgs.Builder type(com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type- 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`.- Returns:
- builder
-
type
public ServiceOrderedPlacementStrategyArgs.Builder type(java.lang.String type)
- Parameters:
type- 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`.- Returns:
- builder
-
build
public ServiceOrderedPlacementStrategyArgs build()
-
-