public static interface SpotFleetRequestConfigData.Builder extends CopyableBuilder<SpotFleetRequestConfigData.Builder,SpotFleetRequestConfigData>
Modifier and Type | Method and Description |
---|---|
SpotFleetRequestConfigData.Builder |
allocationStrategy(AllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
clientToken(String clientToken)
A unique, case-sensitive identifier you provide to ensure idempotency of your listings.
|
SpotFleetRequestConfigData.Builder |
excessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.
|
SpotFleetRequestConfigData.Builder |
excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.
|
SpotFleetRequestConfigData.Builder |
fulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
|
SpotFleetRequestConfigData.Builder |
iamFleetRole(String iamFleetRole)
Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet
request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration . |
SpotFleetRequestConfigData.Builder |
instanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotFleetRequestConfigData.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotFleetRequestConfigData.Builder |
launchSpecifications(Collection<SpotFleetLaunchSpecification> launchSpecifications)
Information about the launch specifications for the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
launchSpecifications(Consumer<SpotFleetLaunchSpecification.Builder>... launchSpecifications)
Information about the launch specifications for the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
launchSpecifications(SpotFleetLaunchSpecification... launchSpecifications)
Information about the launch specifications for the Spot fleet request.
|
default SpotFleetRequestConfigData.Builder |
loadBalancersConfig(Consumer<LoadBalancersConfig.Builder> loadBalancersConfig)
One or more Classic Load Balancers and target groups to attach to the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
loadBalancersConfig(LoadBalancersConfig loadBalancersConfig)
One or more Classic Load Balancers and target groups to attach to the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
replaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether Spot fleet should replace unhealthy instances.
|
SpotFleetRequestConfigData.Builder |
spotPrice(String spotPrice)
The bid price per unit hour.
|
SpotFleetRequestConfigData.Builder |
targetCapacity(Integer targetCapacity)
The number of units to request.
|
SpotFleetRequestConfigData.Builder |
terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
|
SpotFleetRequestConfigData.Builder |
type(FleetType type)
The type of request.
|
SpotFleetRequestConfigData.Builder |
type(String type)
The type of request.
|
SpotFleetRequestConfigData.Builder |
validFrom(Instant validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotFleetRequestConfigData.Builder |
validUntil(Instant validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
copy
applyMutation, build
SpotFleetRequestConfigData.Builder allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The
default is lowestPrice
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet
request. The default is lowestPrice
.AllocationStrategy
,
AllocationStrategy
SpotFleetRequestConfigData.Builder allocationStrategy(AllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The
default is lowestPrice
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet
request. The default is lowestPrice
.AllocationStrategy
,
AllocationStrategy
SpotFleetRequestConfigData.Builder clientToken(String clientToken)
A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
clientToken
- A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps
avoid duplicate listings. For more information, see Ensuring
Idempotency.SpotFleetRequestConfigData.Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.ExcessCapacityTerminationPolicy
,
ExcessCapacityTerminationPolicy
SpotFleetRequestConfigData.Builder excessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.ExcessCapacityTerminationPolicy
,
ExcessCapacityTerminationPolicy
SpotFleetRequestConfigData.Builder fulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
fulfilledCapacity
- The number of units fulfilled by this request compared to the set target capacity.SpotFleetRequestConfigData.Builder iamFleetRole(String iamFleetRole)
Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet
request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration
.
iamFleetRole
- Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot
fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration
.SpotFleetRequestConfigData.Builder launchSpecifications(Collection<SpotFleetLaunchSpecification> launchSpecifications)
Information about the launch specifications for the Spot fleet request.
launchSpecifications
- Information about the launch specifications for the Spot fleet request.SpotFleetRequestConfigData.Builder launchSpecifications(SpotFleetLaunchSpecification... launchSpecifications)
Information about the launch specifications for the Spot fleet request.
launchSpecifications
- Information about the launch specifications for the Spot fleet request.SpotFleetRequestConfigData.Builder launchSpecifications(Consumer<SpotFleetLaunchSpecification.Builder>... launchSpecifications)
Information about the launch specifications for the Spot fleet request.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #launchSpecifications(List)
.launchSpecifications
- a consumer that will call methods on List.Builder
#launchSpecifications(List)
SpotFleetRequestConfigData.Builder spotPrice(String spotPrice)
The bid price per unit hour.
spotPrice
- The bid price per unit hour.SpotFleetRequestConfigData.Builder targetCapacity(Integer targetCapacity)
The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.
targetCapacity
- The number of units to request. You can choose to set the target capacity in terms of instances or a
performance characteristic that is important to your application workload, such as vCPUs, memory, or
I/O.SpotFleetRequestConfigData.Builder terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
terminateInstancesWithExpiration
- Indicates whether running Spot instances should be terminated when the Spot fleet request expires.SpotFleetRequestConfigData.Builder type(String type)
The type of request. Indicates whether the fleet will only request
the target capacity or also
attempt to maintain
it. When you request
a certain target capacity, the fleet will
only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor
will it submit bids in alternative Spot pools if capacity is not available. When you want to
maintain
a certain target capacity, fleet will place the required bids to meet this target
capacity. It will also automatically replenish any interrupted instances. Default: maintain
.
type
- The type of request. Indicates whether the fleet will only request
the target capacity or
also attempt to maintain
it. When you request
a certain target capacity, the
fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity
is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When
you want to maintain
a certain target capacity, fleet will place the required bids to
meet this target capacity. It will also automatically replenish any interrupted instances. Default:
maintain
.FleetType
,
FleetType
SpotFleetRequestConfigData.Builder type(FleetType type)
The type of request. Indicates whether the fleet will only request
the target capacity or also
attempt to maintain
it. When you request
a certain target capacity, the fleet will
only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor
will it submit bids in alternative Spot pools if capacity is not available. When you want to
maintain
a certain target capacity, fleet will place the required bids to meet this target
capacity. It will also automatically replenish any interrupted instances. Default: maintain
.
type
- The type of request. Indicates whether the fleet will only request
the target capacity or
also attempt to maintain
it. When you request
a certain target capacity, the
fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity
is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When
you want to maintain
a certain target capacity, fleet will place the required bids to
meet this target capacity. It will also automatically replenish any interrupted instances. Default:
maintain
.FleetType
,
FleetType
SpotFleetRequestConfigData.Builder validFrom(Instant validFrom)
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
validFrom
- The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling
the request immediately.SpotFleetRequestConfigData.Builder validUntil(Instant validUntil)
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
validUntil
- The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance
requests are placed or enabled to fulfill the request.SpotFleetRequestConfigData.Builder replaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether Spot fleet should replace unhealthy instances.
replaceUnhealthyInstances
- Indicates whether Spot fleet should replace unhealthy instances.SpotFleetRequestConfigData.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
SpotFleetRequestConfigData.Builder instanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
SpotFleetRequestConfigData.Builder loadBalancersConfig(LoadBalancersConfig loadBalancersConfig)
One or more Classic Load Balancers and target groups to attach to the Spot fleet request. Spot fleet registers the running Spot instances with the specified Classic Load Balancers and target groups.
With Network Load Balancers, Spot fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
loadBalancersConfig
- One or more Classic Load Balancers and target groups to attach to the Spot fleet request. Spot fleet
registers the running Spot instances with the specified Classic Load Balancers and target groups.
With Network Load Balancers, Spot fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
default SpotFleetRequestConfigData.Builder loadBalancersConfig(Consumer<LoadBalancersConfig.Builder> loadBalancersConfig)
One or more Classic Load Balancers and target groups to attach to the Spot fleet request. Spot fleet registers the running Spot instances with the specified Classic Load Balancers and target groups.
With Network Load Balancers, Spot fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
This is a convenience that creates an instance of theLoadBalancersConfig.Builder
avoiding the need
to create one manually via LoadBalancersConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to loadBalancersConfig(LoadBalancersConfig)
.loadBalancersConfig
- a consumer that will call methods on LoadBalancersConfig.Builder
loadBalancersConfig(LoadBalancersConfig)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.