FleetArgs class
The set of arguments for Fleet. The set of arguments for Fleet.
Constructors
-
FleetArgs({Input<
String?> ? context, Input<String?> ? excessCapacityTerminationPolicy, Input<List< ? fleetInstanceSets, Input<FleetFleetInstanceSet> ?>String?> ? fleetState, Input<double?> ? fulfilledCapacity, Input<double?> ? fulfilledOnDemandCapacity, required Input<List< launchTemplateConfigs, Input<FleetLaunchTemplateConfig> >FleetOnDemandOptions?> ? onDemandOptions, Input<String?> ? region, Input<bool?> ? replaceUnhealthyInstances, Input<FleetSpotOptions?> ? spotOptions, Input<Map< ? tags, required Input<String, String> ?>FleetTargetCapacitySpecification> targetCapacitySpecification, Input<bool?> ? terminateInstances, Input<bool?> ? terminateInstancesWithExpiration, Input<String?> ? type, Input<String?> ? validFrom, Input<String?> ? validUntil}) -
Creates a new FleetArgs.
contextReserved.excessCapacityTerminationPolicyWhether 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 totermination. Supported only for fleets of typemaintain.fleetInstanceSetsInformation about the instances that were launched by the fleet. Available only whentypeis set toinstant.fleetStateThe state of the EC2 Fleet.fulfilledCapacityThe number of units fulfilled by this request compared to the set target capacity.fulfilledOnDemandCapacityThe number of units fulfilled by this request compared to the set target On-Demand capacity.launchTemplateConfigsNested argument containing EC2 Launch Template configurations. Defined below.onDemandOptionsNested argument containing On-Demand configurations. Defined below.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.replaceUnhealthyInstancesWhether EC2 Fleet should replace unhealthy instances. Defaults tofalse. Supported only for fleets of typemaintain.spotOptionsNested argument containing Spot configurations. Defined below.tagsMap of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.targetCapacitySpecificationNested argument containing target capacity configurations. Defined below.terminateInstancesWhether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults tofalse.terminateInstancesWithExpirationWhether running instances should be terminated when the EC2 Fleet expires. Defaults tofalse.typeThe 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 tomaintain.validFromThe 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.validUntilThe 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.const -
FleetArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
context
→ Input<
String?> ? -
Reserved.
final
-
excessCapacityTerminationPolicy
→ Input<
String?> ? -
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 totermination. Supported only for fleets of typemaintain.final -
fleetInstanceSets
→ Input<
List< ?FleetFleetInstanceSet> ?> -
Information about the instances that were launched by the fleet. Available only when
typeis set toinstant.final -
fleetState
→ Input<
String?> ? -
The state of the EC2 Fleet.
final
-
fulfilledCapacity
→ Input<
double?> ? -
The number of units fulfilled by this request compared to the set target capacity.
final
-
fulfilledOnDemandCapacity
→ Input<
double?> ? -
The number of units fulfilled by this request compared to the set target On-Demand capacity.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
launchTemplateConfigs
→ Input<
List< FleetLaunchTemplateConfig> > -
Nested argument containing EC2 Launch Template configurations. Defined below.
final
-
onDemandOptions
→ Input<
FleetOnDemandOptions?> ? -
Nested argument containing On-Demand configurations. Defined below.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
replaceUnhealthyInstances
→ Input<
bool?> ? -
Whether EC2 Fleet should replace unhealthy instances. Defaults to
false. Supported only for fleets of typemaintain.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spotOptions
→ Input<
FleetSpotOptions?> ? -
Nested argument containing Spot configurations. Defined below.
final
-
Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
targetCapacitySpecification
→ Input<
FleetTargetCapacitySpecification> -
Nested argument containing target capacity configurations. Defined below.
final
-
terminateInstances
→ Input<
bool?> ? -
Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false.final -
terminateInstancesWithExpiration
→ Input<
bool?> ? -
Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false.final -
type
→ Input<
String?> ? -
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 tomaintain.final -
validFrom
→ Input<
String?> ? -
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.
final
-
validUntil
→ Input<
String?> ? -
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.
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