SpotFleetRequestState class
Input properties used for looking up and filtering SpotFleetRequest resources.
Constructors
-
SpotFleetRequestState({Input<
String?> ? allocationStrategy, Input<String?> ? clientToken, Input<String?> ? context, Input<String?> ? excessCapacityTerminationPolicy, Input<String?> ? fleetType, Input<String?> ? iamFleetRole, Input<String?> ? instanceInterruptionBehaviour, Input<int?> ? instancePoolsToUseCount, Input<List< ? launchSpecifications, Input<SpotFleetRequestLaunchSpecification> ?>List< ? launchTemplateConfigs, Input<SpotFleetRequestLaunchTemplateConfig> ?>List< ? loadBalancers, Input<String> ?>String?> ? onDemandAllocationStrategy, Input<String?> ? onDemandMaxTotalPrice, Input<int?> ? onDemandTargetCapacity, Input<String?> ? region, Input<bool?> ? replaceUnhealthyInstances, Input<SpotFleetRequestSpotMaintenanceStrategies?> ? spotMaintenanceStrategies, Input<String?> ? spotPrice, Input<String?> ? spotRequestState, Input<Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>int?> ? targetCapacity, Input<String?> ? targetCapacityUnitType, Input<List< ? targetGroupArns, Input<String> ?>String?> ? terminateInstancesOnDelete, Input<bool?> ? terminateInstancesWithExpiration, Input<String?> ? validFrom, Input<String?> ? validUntil, Input<bool?> ? waitForFulfillment}) -
Creates a new SpotFleetRequestState.
allocationStrategyIndicates how to allocate the target capacity acrossclientTokenOptional.contextReserved.excessCapacityTerminationPolicyIndicates whether running SpotfleetTypeThe type of fleet request. Indicates whether the Spot Fleet only requests the targetiamFleetRoleGrants the Spot fleet permission to terminateinstanceInterruptionBehaviourIndicates whether a SpotinstancePoolsToUseCountThe number of Spot pools across which to allocate your target Spot capacity.launchSpecificationsUsed to define the launch configuration of thelaunchTemplateConfigsLaunch template configuration block. See Launch Template Configs below for more details. Conflicts withlaunchSpecification. At least one oflaunchSpecificationorlaunchTemplateConfigis required.loadBalancersA list of elastic load balancer names to add to the Spot fleet.onDemandAllocationStrategyThe order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are:lowestPriceandprioritized. the default islowestPrice.onDemandMaxTotalPriceThe maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.onDemandTargetCapacityThe number of On-Demand units to request. If the request type ismaintain, you can specify a target capacity of 0 and add capacity later.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.replaceUnhealthyInstancesIndicates whether Spot fleet should replace unhealthy instances. Defaultfalse.spotMaintenanceStrategiesNested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.spotPriceThe maximum bid price per unit hour.spotRequestStateThe state of the Spot fleet request.tagsA map of tags to assign to the resource. .If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllA map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.targetCapacityThe number of units to request. You can choose to set thetargetCapacityUnitTypeThe unit for the target capacity. This can only be done withinstanceRequirementsdefinedtargetGroupArnsA list ofaws.alb.TargetGroupARNs, for use with Application Load Balancing.terminateInstancesOnDeleteIndicates whether running SpotterminateInstancesWithExpirationIndicates whether running SpotvalidFromThe start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.validUntilThe end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.waitForFulfillmentIf set, this provider willconst -
SpotFleetRequestState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
allocationStrategy
→ Input<
String?> ? -
Indicates how to allocate the target capacity across
the Spot pools specified by the Spot fleet request. Valid values:
lowestPrice,diversified,capacityOptimized,capacityOptimizedPrioritized, andpriceCapacityOptimized. The default islowestPrice.final -
clientToken
→ Input<
String?> ? -
final
-
context
→ Input<
String?> ? -
Reserved.
final
-
excessCapacityTerminationPolicy
→ Input<
String?> ? -
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.
final
-
fleetType
→ Input<
String?> ? -
The type of fleet request. Indicates whether the Spot Fleet only requests the target
capacity or also attempts to maintain it. Default is
maintain.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
iamFleetRole
→ Input<
String?> ? -
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.
final
-
instanceInterruptionBehaviour
→ Input<
String?> ? -
Indicates whether a Spot
instance stops or terminates when it is interrupted. Default is
terminate.final -
instancePoolsToUseCount
→ Input<
int?> ? -
The number of Spot pools across which to allocate your target Spot capacity.
Valid only when
allocationStrategyis set tolowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.final -
launchSpecifications
→ Input<
List< ?SpotFleetRequestLaunchSpecification> ?> -
Used to define the launch configuration of the
spot-fleet request. Can be specified multiple times to define different bids
across different markets and instance types. Conflicts with
launchTemplateConfig. At least one oflaunchSpecificationorlaunchTemplateConfigis required.final -
launchTemplateConfigs
→ Input<
List< ?SpotFleetRequestLaunchTemplateConfig> ?> -
Launch template configuration block. See Launch Template Configs below for more details. Conflicts with
launchSpecification. At least one oflaunchSpecificationorlaunchTemplateConfigis required.final -
loadBalancers
→ Input<
List< ?String> ?> -
A list of elastic load balancer names to add to the Spot fleet.
final
-
onDemandAllocationStrategy
→ Input<
String?> ? -
The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are:
lowestPriceandprioritized. the default islowestPrice.final -
onDemandMaxTotalPrice
→ Input<
String?> ? -
The maximum amount per hour for On-Demand Instances that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.
final
-
onDemandTargetCapacity
→ Input<
int?> ? -
The number of On-Demand units to request. If the request type is
maintain, you can specify a target capacity of 0 and add capacity later.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
replaceUnhealthyInstances
→ Input<
bool?> ? -
Indicates whether Spot fleet should replace unhealthy instances. Default
false.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spotMaintenanceStrategies
→ Input<
SpotFleetRequestSpotMaintenanceStrategies?> ? -
Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
final
-
spotPrice
→ Input<
String?> ? -
The maximum bid price per unit hour.
final
-
spotRequestState
→ Input<
String?> ? -
The state of the Spot fleet request.
final
-
A map of tags to assign to the resource. .If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
targetCapacity
→ Input<
int?> ? -
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.
final
-
targetCapacityUnitType
→ Input<
String?> ? -
The unit for the target capacity. This can only be done with
instanceRequirementsdefinedfinal -
targetGroupArns
→ Input<
List< ?String> ?> -
A list of
aws.alb.TargetGroupARNs, for use with Application Load Balancing.final -
terminateInstancesOnDelete
→ Input<
String?> ? -
Indicates whether running Spot
instances should be terminated when the resource is deleted (and the Spot fleet request cancelled).
If no value is specified, the value of the
terminateInstancesWithExpirationargument is used.final -
terminateInstancesWithExpiration
→ Input<
bool?> ? -
Indicates whether running Spot
instances should be terminated when the Spot fleet request expires.
final
-
validFrom
→ Input<
String?> ? -
The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
final
-
validUntil
→ Input<
String?> ? -
The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
final
-
waitForFulfillment
→ Input<
bool?> ? -
If set, this provider will
wait for the Spot Request to be fulfilled, and will throw an error if the
timeout of 10m is reached.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited