FleetState constructor

const FleetState({
  1. Input<String?>? arn,
  2. Input<String?>? context,
  3. Input<String?>? excessCapacityTerminationPolicy,
  4. Input<List<FleetFleetInstanceSet>?>? fleetInstanceSets,
  5. Input<String?>? fleetState,
  6. Input<double?>? fulfilledCapacity,
  7. Input<double?>? fulfilledOnDemandCapacity,
  8. Input<List<FleetLaunchTemplateConfig>?>? launchTemplateConfigs,
  9. Input<FleetOnDemandOptions?>? onDemandOptions,
  10. Input<String?>? region,
  11. Input<bool?>? replaceUnhealthyInstances,
  12. Input<FleetSpotOptions?>? spotOptions,
  13. Input<Map<String, String>?>? tags,
  14. Input<Map<String, String>?>? tagsAll,
  15. Input<FleetTargetCapacitySpecification?>? targetCapacitySpecification,
  16. Input<bool?>? terminateInstances,
  17. Input<bool?>? terminateInstancesWithExpiration,
  18. Input<String?>? type,
  19. Input<String?>? validFrom,
  20. Input<String?>? validUntil,
})

Creates a new FleetState. arn The ARN of the fleet context Reserved. excessCapacityTerminationPolicy Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain. fleetInstanceSets Information about the instances that were launched by the fleet. Available only when type is set to instant. fleetState The state of the EC2 Fleet. fulfilledCapacity The number of units fulfilled by this request compared to the set target capacity. fulfilledOnDemandCapacity The number of units fulfilled by this request compared to the set target On-Demand capacity. launchTemplateConfigs Nested argument containing EC2 Launch Template configurations. Defined below. onDemandOptions Nested argument containing On-Demand configurations. Defined below. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. replaceUnhealthyInstances Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain. spotOptions Nested argument containing Spot configurations. Defined below. tags Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. 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. targetCapacitySpecification Nested argument containing target capacity configurations. Defined below. terminateInstances Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false. terminateInstancesWithExpiration Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false. type The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request, instant. Defaults to maintain. 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. validUntil The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.

Implementation

const FleetState({
  this.arn,
  this.context,
  this.excessCapacityTerminationPolicy,
  this.fleetInstanceSets,
  this.fleetState,
  this.fulfilledCapacity,
  this.fulfilledOnDemandCapacity,
  this.launchTemplateConfigs,
  this.onDemandOptions,
  this.region,
  this.replaceUnhealthyInstances,
  this.spotOptions,
  this.tags,
  this.tagsAll,
  this.targetCapacitySpecification,
  this.terminateInstances,
  this.terminateInstancesWithExpiration,
  this.type,
  this.validFrom,
  this.validUntil,
});