Class ServiceOrderedPlacementStrategyArgs.Builder

    • 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