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<SpotFleetRequestLaunchSpecification>?>? launchSpecifications, Input<List<SpotFleetRequestLaunchTemplateConfig>?>? launchTemplateConfigs, Input<List<String>?>? loadBalancers, Input<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<String, String>?>? tags, Input<Map<String, String>?>? tagsAll, Input<int?>? targetCapacity, Input<String?>? targetCapacityUnitType, Input<List<String>?>? targetGroupArns, Input<String?>? terminateInstancesOnDelete, Input<bool?>? terminateInstancesWithExpiration, Input<String?>? validFrom, Input<String?>? validUntil, Input<bool?>? waitForFulfillment})
Creates a new SpotFleetRequestState. allocationStrategy Indicates how to allocate the target capacity across clientToken Optional. context Reserved. excessCapacityTerminationPolicy Indicates whether running Spot fleetType The type of fleet request. Indicates whether the Spot Fleet only requests the target iamFleetRole Grants the Spot fleet permission to terminate instanceInterruptionBehaviour Indicates whether a Spot instancePoolsToUseCount The number of Spot pools across which to allocate your target Spot capacity. launchSpecifications Used to define the launch configuration of the launchTemplateConfigs Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launchSpecification. At least one of launchSpecification or launchTemplateConfig is required. loadBalancers A list of elastic load balancer names to add to the Spot fleet. onDemandAllocationStrategy The order of the launch template overrides to use in fulfilling On-Demand capacity. the possible values are: lowestPrice and prioritized. the default is lowestPrice. onDemandMaxTotalPrice 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. onDemandTargetCapacity 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. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. replaceUnhealthyInstances Indicates whether Spot fleet should replace unhealthy instances. Default false. spotMaintenanceStrategies Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. spotPrice The maximum bid price per unit hour. spotRequestState The state of the Spot fleet request. tags A map of tags to assign to the resource. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. targetCapacity The number of units to request. You can choose to set the targetCapacityUnitType The unit for the target capacity. This can only be done with instanceRequirements defined targetGroupArns A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing. terminateInstancesOnDelete Indicates whether running Spot terminateInstancesWithExpiration Indicates whether running Spot validFrom 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. validUntil 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. waitForFulfillment If set, this provider will
const
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, and priceCapacityOptimized. The default is lowestPrice.
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 allocationStrategy is set to lowestPrice. 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 of launchSpecification or launchTemplateConfig is required.
final
launchTemplateConfigs → Input<List<SpotFleetRequestLaunchTemplateConfig>?>?
Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launchSpecification. At least one of launchSpecification or launchTemplateConfig is 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: lowestPrice and prioritized. the default is lowestPrice.
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
tags → Input<Map<String, String>?>?
A map of tags to assign to the resource. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
final
tagsAll → Input<Map<String, String>?>?
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration 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 instanceRequirements defined
final
targetGroupArns → Input<List<String>?>?
A list of aws.alb.TargetGroup ARNs, 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 terminateInstancesWithExpiration argument 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