Class GroupMixedInstancesPolicyInstancesDistributionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.autoscaling.inputs.GroupMixedInstancesPolicyInstancesDistributionArgs.Builder
-
- Enclosing class:
- GroupMixedInstancesPolicyInstancesDistributionArgs
public static final class GroupMixedInstancesPolicyInstancesDistributionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GroupMixedInstancesPolicyInstancesDistributionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GroupMixedInstancesPolicyInstancesDistributionArgs defaults)
-
-
Method Detail
-
onDemandAllocationStrategy
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandAllocationStrategy(@Nullable com.pulumi.core.Output<java.lang.String> onDemandAllocationStrategy)
- Parameters:
onDemandAllocationStrategy
- Strategy to use when launching on-demand instances. Valid values: `prioritized`, `lowest-price`. Default: `prioritized`.- Returns:
- builder
-
onDemandAllocationStrategy
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandAllocationStrategy(java.lang.String onDemandAllocationStrategy)
- Parameters:
onDemandAllocationStrategy
- Strategy to use when launching on-demand instances. Valid values: `prioritized`, `lowest-price`. Default: `prioritized`.- Returns:
- builder
-
onDemandBaseCapacity
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandBaseCapacity(@Nullable com.pulumi.core.Output<java.lang.Integer> onDemandBaseCapacity)
- Parameters:
onDemandBaseCapacity
- Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: `0`.- Returns:
- builder
-
onDemandBaseCapacity
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandBaseCapacity(java.lang.Integer onDemandBaseCapacity)
- Parameters:
onDemandBaseCapacity
- Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: `0`.- Returns:
- builder
-
onDemandPercentageAboveBaseCapacity
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandPercentageAboveBaseCapacity(@Nullable com.pulumi.core.Output<java.lang.Integer> onDemandPercentageAboveBaseCapacity)
- Parameters:
onDemandPercentageAboveBaseCapacity
- Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: `100`.- Returns:
- builder
-
onDemandPercentageAboveBaseCapacity
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder onDemandPercentageAboveBaseCapacity(java.lang.Integer onDemandPercentageAboveBaseCapacity)
- Parameters:
onDemandPercentageAboveBaseCapacity
- Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: `100`.- Returns:
- builder
-
spotAllocationStrategy
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotAllocationStrategy(@Nullable com.pulumi.core.Output<java.lang.String> spotAllocationStrategy)
- Parameters:
spotAllocationStrategy
- How to allocate capacity across the Spot pools. Valid values: `lowest-price`, `capacity-optimized`, `capacity-optimized-prioritized`, and `price-capacity-optimized`. Default: `lowest-price`.- Returns:
- builder
-
spotAllocationStrategy
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotAllocationStrategy(java.lang.String spotAllocationStrategy)
- Parameters:
spotAllocationStrategy
- How to allocate capacity across the Spot pools. Valid values: `lowest-price`, `capacity-optimized`, `capacity-optimized-prioritized`, and `price-capacity-optimized`. Default: `lowest-price`.- Returns:
- builder
-
spotInstancePools
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotInstancePools(@Nullable com.pulumi.core.Output<java.lang.Integer> spotInstancePools)
- Parameters:
spotInstancePools
- Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with `spot_allocation_strategy` set to `lowest-price`. Otherwise it must be set to `0`, if it has been defined before. Default: `2`.- Returns:
- builder
-
spotInstancePools
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotInstancePools(java.lang.Integer spotInstancePools)
- Parameters:
spotInstancePools
- Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with `spot_allocation_strategy` set to `lowest-price`. Otherwise it must be set to `0`, if it has been defined before. Default: `2`.- Returns:
- builder
-
spotMaxPrice
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotMaxPrice(@Nullable com.pulumi.core.Output<java.lang.String> spotMaxPrice)
- Parameters:
spotMaxPrice
- Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price.- Returns:
- builder
-
spotMaxPrice
public GroupMixedInstancesPolicyInstancesDistributionArgs.Builder spotMaxPrice(java.lang.String spotMaxPrice)
- Parameters:
spotMaxPrice
- Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price.- Returns:
- builder
-
build
public GroupMixedInstancesPolicyInstancesDistributionArgs build()
-
-