aws.ec2.Fleet
Explore with Pulumi AI
Provides a resource to manage EC2 Fleets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.Fleet("example", {
launchTemplateConfigs: [{
launchTemplateSpecification: {
launchTemplateId: exampleAwsLaunchTemplate.id,
version: exampleAwsLaunchTemplate.latestVersion,
},
}],
targetCapacitySpecification: {
defaultTargetCapacityType: "spot",
totalTargetCapacity: 5,
},
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.Fleet("example",
launch_template_configs=[{
"launch_template_specification": {
"launch_template_id": example_aws_launch_template["id"],
"version": example_aws_launch_template["latestVersion"],
},
}],
target_capacity_specification={
"default_target_capacity_type": "spot",
"total_target_capacity": 5,
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewFleet(ctx, "example", &ec2.FleetArgs{
LaunchTemplateConfigs: ec2.FleetLaunchTemplateConfigArray{
&ec2.FleetLaunchTemplateConfigArgs{
LaunchTemplateSpecification: &ec2.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs{
LaunchTemplateId: pulumi.Any(exampleAwsLaunchTemplate.Id),
Version: pulumi.Any(exampleAwsLaunchTemplate.LatestVersion),
},
},
},
TargetCapacitySpecification: &ec2.FleetTargetCapacitySpecificationArgs{
DefaultTargetCapacityType: pulumi.String("spot"),
TotalTargetCapacity: pulumi.Int(5),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2.Fleet("example", new()
{
LaunchTemplateConfigs = new[]
{
new Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs
{
LaunchTemplateSpecification = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs
{
LaunchTemplateId = exampleAwsLaunchTemplate.Id,
Version = exampleAwsLaunchTemplate.LatestVersion,
},
},
},
TargetCapacitySpecification = new Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs
{
DefaultTargetCapacityType = "spot",
TotalTargetCapacity = 5,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Fleet;
import com.pulumi.aws.ec2.FleetArgs;
import com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigArgs;
import com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs;
import com.pulumi.aws.ec2.inputs.FleetTargetCapacitySpecificationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Fleet("example", FleetArgs.builder()
.launchTemplateConfigs(FleetLaunchTemplateConfigArgs.builder()
.launchTemplateSpecification(FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs.builder()
.launchTemplateId(exampleAwsLaunchTemplate.id())
.version(exampleAwsLaunchTemplate.latestVersion())
.build())
.build())
.targetCapacitySpecification(FleetTargetCapacitySpecificationArgs.builder()
.defaultTargetCapacityType("spot")
.totalTargetCapacity(5)
.build())
.build());
}
}
resources:
example:
type: aws:ec2:Fleet
properties:
launchTemplateConfigs:
- launchTemplateSpecification:
launchTemplateId: ${exampleAwsLaunchTemplate.id}
version: ${exampleAwsLaunchTemplate.latestVersion}
targetCapacitySpecification:
defaultTargetCapacityType: spot
totalTargetCapacity: 5
Create Fleet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Fleet(name: string, args: FleetArgs, opts?: CustomResourceOptions);
@overload
def Fleet(resource_name: str,
args: FleetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Fleet(resource_name: str,
opts: Optional[ResourceOptions] = None,
launch_template_configs: Optional[Sequence[FleetLaunchTemplateConfigArgs]] = None,
target_capacity_specification: Optional[FleetTargetCapacitySpecificationArgs] = None,
replace_unhealthy_instances: Optional[bool] = None,
spot_options: Optional[FleetSpotOptionsArgs] = None,
fulfilled_capacity: Optional[float] = None,
fulfilled_on_demand_capacity: Optional[float] = None,
fleet_instance_sets: Optional[Sequence[FleetFleetInstanceSetArgs]] = None,
on_demand_options: Optional[FleetOnDemandOptionsArgs] = None,
context: Optional[str] = None,
fleet_state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
excess_capacity_termination_policy: Optional[str] = None,
terminate_instances: Optional[bool] = None,
terminate_instances_with_expiration: Optional[bool] = None,
type: Optional[str] = None,
valid_from: Optional[str] = None,
valid_until: Optional[str] = None)
func NewFleet(ctx *Context, name string, args FleetArgs, opts ...ResourceOption) (*Fleet, error)
public Fleet(string name, FleetArgs args, CustomResourceOptions? opts = null)
type: aws:ec2:Fleet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplefleetResourceResourceFromEc2fleet = new Aws.Ec2.Fleet("examplefleetResourceResourceFromEc2fleet", new()
{
LaunchTemplateConfigs = new[]
{
new Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs
{
LaunchTemplateSpecification = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs
{
Version = "string",
LaunchTemplateId = "string",
LaunchTemplateName = "string",
},
Overrides = new[]
{
new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideArgs
{
AvailabilityZone = "string",
InstanceRequirements = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs
{
MemoryMib = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs
{
Min = 0,
Max = 0,
},
VcpuCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs
{
Min = 0,
Max = 0,
},
LocalStorage = "string",
AcceleratorTypes = new[]
{
"string",
},
LocalStorageTypes = new[]
{
"string",
},
AllowedInstanceTypes = new[]
{
"string",
},
BareMetal = "string",
BaselineEbsBandwidthMbps = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs
{
Max = 0,
Min = 0,
},
BurstablePerformance = "string",
CpuManufacturers = new[]
{
"string",
},
MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 0,
InstanceGenerations = new[]
{
"string",
},
AcceleratorManufacturers = new[]
{
"string",
},
AcceleratorTotalMemoryMib = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs
{
Max = 0,
Min = 0,
},
ExcludedInstanceTypes = new[]
{
"string",
},
MemoryGibPerVcpu = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs
{
Max = 0,
Min = 0,
},
AcceleratorNames = new[]
{
"string",
},
NetworkBandwidthGbps = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs
{
Max = 0,
Min = 0,
},
NetworkInterfaceCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs
{
Max = 0,
Min = 0,
},
OnDemandMaxPricePercentageOverLowestPrice = 0,
RequireHibernateSupport = false,
SpotMaxPricePercentageOverLowestPrice = 0,
TotalLocalStorageGb = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs
{
Max = 0,
Min = 0,
},
AcceleratorCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs
{
Max = 0,
Min = 0,
},
},
InstanceType = "string",
MaxPrice = "string",
Priority = 0,
SubnetId = "string",
WeightedCapacity = 0,
},
},
},
},
TargetCapacitySpecification = new Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs
{
DefaultTargetCapacityType = "string",
TotalTargetCapacity = 0,
OnDemandTargetCapacity = 0,
SpotTargetCapacity = 0,
TargetCapacityUnitType = "string",
},
ReplaceUnhealthyInstances = false,
SpotOptions = new Aws.Ec2.Inputs.FleetSpotOptionsArgs
{
AllocationStrategy = "string",
InstanceInterruptionBehavior = "string",
InstancePoolsToUseCount = 0,
MaintenanceStrategies = new Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategiesArgs
{
CapacityRebalance = new Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs
{
ReplacementStrategy = "string",
TerminationDelay = 0,
},
},
},
FulfilledCapacity = 0,
FulfilledOnDemandCapacity = 0,
FleetInstanceSets = new[]
{
new Aws.Ec2.Inputs.FleetFleetInstanceSetArgs
{
InstanceIds = new[]
{
"string",
},
InstanceType = "string",
Lifecycle = "string",
Platform = "string",
},
},
OnDemandOptions = new Aws.Ec2.Inputs.FleetOnDemandOptionsArgs
{
AllocationStrategy = "string",
CapacityReservationOptions = new Aws.Ec2.Inputs.FleetOnDemandOptionsCapacityReservationOptionsArgs
{
UsageStrategy = "string",
},
MaxTotalPrice = "string",
MinTargetCapacity = 0,
SingleAvailabilityZone = false,
SingleInstanceType = false,
},
Context = "string",
State = "string",
Tags =
{
{ "string", "string" },
},
ExcessCapacityTerminationPolicy = "string",
TerminateInstances = false,
TerminateInstancesWithExpiration = false,
Type = "string",
ValidFrom = "string",
ValidUntil = "string",
});
example, err := ec2.NewFleet(ctx, "examplefleetResourceResourceFromEc2fleet", &ec2.FleetArgs{
LaunchTemplateConfigs: ec2.FleetLaunchTemplateConfigArray{
&ec2.FleetLaunchTemplateConfigArgs{
LaunchTemplateSpecification: &ec2.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs{
Version: pulumi.String("string"),
LaunchTemplateId: pulumi.String("string"),
LaunchTemplateName: pulumi.String("string"),
},
Overrides: ec2.FleetLaunchTemplateConfigOverrideArray{
&ec2.FleetLaunchTemplateConfigOverrideArgs{
AvailabilityZone: pulumi.String("string"),
InstanceRequirements: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs{
MemoryMib: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs{
Min: pulumi.Int(0),
Max: pulumi.Int(0),
},
VcpuCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs{
Min: pulumi.Int(0),
Max: pulumi.Int(0),
},
LocalStorage: pulumi.String("string"),
AcceleratorTypes: pulumi.StringArray{
pulumi.String("string"),
},
LocalStorageTypes: pulumi.StringArray{
pulumi.String("string"),
},
AllowedInstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
BareMetal: pulumi.String("string"),
BaselineEbsBandwidthMbps: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
BurstablePerformance: pulumi.String("string"),
CpuManufacturers: pulumi.StringArray{
pulumi.String("string"),
},
MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: pulumi.Int(0),
InstanceGenerations: pulumi.StringArray{
pulumi.String("string"),
},
AcceleratorManufacturers: pulumi.StringArray{
pulumi.String("string"),
},
AcceleratorTotalMemoryMib: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
ExcludedInstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
MemoryGibPerVcpu: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
AcceleratorNames: pulumi.StringArray{
pulumi.String("string"),
},
NetworkBandwidthGbps: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
NetworkInterfaceCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
OnDemandMaxPricePercentageOverLowestPrice: pulumi.Int(0),
RequireHibernateSupport: pulumi.Bool(false),
SpotMaxPricePercentageOverLowestPrice: pulumi.Int(0),
TotalLocalStorageGb: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
AcceleratorCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
InstanceType: pulumi.String("string"),
MaxPrice: pulumi.String("string"),
Priority: pulumi.Float64(0),
SubnetId: pulumi.String("string"),
WeightedCapacity: pulumi.Float64(0),
},
},
},
},
TargetCapacitySpecification: &ec2.FleetTargetCapacitySpecificationArgs{
DefaultTargetCapacityType: pulumi.String("string"),
TotalTargetCapacity: pulumi.Int(0),
OnDemandTargetCapacity: pulumi.Int(0),
SpotTargetCapacity: pulumi.Int(0),
TargetCapacityUnitType: pulumi.String("string"),
},
ReplaceUnhealthyInstances: pulumi.Bool(false),
SpotOptions: &ec2.FleetSpotOptionsArgs{
AllocationStrategy: pulumi.String("string"),
InstanceInterruptionBehavior: pulumi.String("string"),
InstancePoolsToUseCount: pulumi.Int(0),
MaintenanceStrategies: &ec2.FleetSpotOptionsMaintenanceStrategiesArgs{
CapacityRebalance: &ec2.FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs{
ReplacementStrategy: pulumi.String("string"),
TerminationDelay: pulumi.Int(0),
},
},
},
FulfilledCapacity: pulumi.Float64(0),
FulfilledOnDemandCapacity: pulumi.Float64(0),
FleetInstanceSets: ec2.FleetFleetInstanceSetArray{
&ec2.FleetFleetInstanceSetArgs{
InstanceIds: pulumi.StringArray{
pulumi.String("string"),
},
InstanceType: pulumi.String("string"),
Lifecycle: pulumi.String("string"),
Platform: pulumi.String("string"),
},
},
OnDemandOptions: &ec2.FleetOnDemandOptionsArgs{
AllocationStrategy: pulumi.String("string"),
CapacityReservationOptions: &ec2.FleetOnDemandOptionsCapacityReservationOptionsArgs{
UsageStrategy: pulumi.String("string"),
},
MaxTotalPrice: pulumi.String("string"),
MinTargetCapacity: pulumi.Int(0),
SingleAvailabilityZone: pulumi.Bool(false),
SingleInstanceType: pulumi.Bool(false),
},
Context: pulumi.String("string"),
FleetState: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ExcessCapacityTerminationPolicy: pulumi.String("string"),
TerminateInstances: pulumi.Bool(false),
TerminateInstancesWithExpiration: pulumi.Bool(false),
Type: pulumi.String("string"),
ValidFrom: pulumi.String("string"),
ValidUntil: pulumi.String("string"),
})
var examplefleetResourceResourceFromEc2fleet = new Fleet("examplefleetResourceResourceFromEc2fleet", FleetArgs.builder()
.launchTemplateConfigs(FleetLaunchTemplateConfigArgs.builder()
.launchTemplateSpecification(FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs.builder()
.version("string")
.launchTemplateId("string")
.launchTemplateName("string")
.build())
.overrides(FleetLaunchTemplateConfigOverrideArgs.builder()
.availabilityZone("string")
.instanceRequirements(FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs.builder()
.memoryMib(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs.builder()
.min(0)
.max(0)
.build())
.vcpuCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs.builder()
.min(0)
.max(0)
.build())
.localStorage("string")
.acceleratorTypes("string")
.localStorageTypes("string")
.allowedInstanceTypes("string")
.bareMetal("string")
.baselineEbsBandwidthMbps(FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs.builder()
.max(0)
.min(0)
.build())
.burstablePerformance("string")
.cpuManufacturers("string")
.maxSpotPriceAsPercentageOfOptimalOnDemandPrice(0)
.instanceGenerations("string")
.acceleratorManufacturers("string")
.acceleratorTotalMemoryMib(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs.builder()
.max(0)
.min(0)
.build())
.excludedInstanceTypes("string")
.memoryGibPerVcpu(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs.builder()
.max(0)
.min(0)
.build())
.acceleratorNames("string")
.networkBandwidthGbps(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs.builder()
.max(0)
.min(0)
.build())
.networkInterfaceCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs.builder()
.max(0)
.min(0)
.build())
.onDemandMaxPricePercentageOverLowestPrice(0)
.requireHibernateSupport(false)
.spotMaxPricePercentageOverLowestPrice(0)
.totalLocalStorageGb(FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs.builder()
.max(0)
.min(0)
.build())
.acceleratorCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs.builder()
.max(0)
.min(0)
.build())
.build())
.instanceType("string")
.maxPrice("string")
.priority(0)
.subnetId("string")
.weightedCapacity(0)
.build())
.build())
.targetCapacitySpecification(FleetTargetCapacitySpecificationArgs.builder()
.defaultTargetCapacityType("string")
.totalTargetCapacity(0)
.onDemandTargetCapacity(0)
.spotTargetCapacity(0)
.targetCapacityUnitType("string")
.build())
.replaceUnhealthyInstances(false)
.spotOptions(FleetSpotOptionsArgs.builder()
.allocationStrategy("string")
.instanceInterruptionBehavior("string")
.instancePoolsToUseCount(0)
.maintenanceStrategies(FleetSpotOptionsMaintenanceStrategiesArgs.builder()
.capacityRebalance(FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs.builder()
.replacementStrategy("string")
.terminationDelay(0)
.build())
.build())
.build())
.fulfilledCapacity(0)
.fulfilledOnDemandCapacity(0)
.fleetInstanceSets(FleetFleetInstanceSetArgs.builder()
.instanceIds("string")
.instanceType("string")
.lifecycle("string")
.platform("string")
.build())
.onDemandOptions(FleetOnDemandOptionsArgs.builder()
.allocationStrategy("string")
.capacityReservationOptions(FleetOnDemandOptionsCapacityReservationOptionsArgs.builder()
.usageStrategy("string")
.build())
.maxTotalPrice("string")
.minTargetCapacity(0)
.singleAvailabilityZone(false)
.singleInstanceType(false)
.build())
.context("string")
.fleetState("string")
.tags(Map.of("string", "string"))
.excessCapacityTerminationPolicy("string")
.terminateInstances(false)
.terminateInstancesWithExpiration(false)
.type("string")
.validFrom("string")
.validUntil("string")
.build());
examplefleet_resource_resource_from_ec2fleet = aws.ec2.Fleet("examplefleetResourceResourceFromEc2fleet",
launch_template_configs=[{
"launch_template_specification": {
"version": "string",
"launch_template_id": "string",
"launch_template_name": "string",
},
"overrides": [{
"availability_zone": "string",
"instance_requirements": {
"memory_mib": {
"min": 0,
"max": 0,
},
"vcpu_count": {
"min": 0,
"max": 0,
},
"local_storage": "string",
"accelerator_types": ["string"],
"local_storage_types": ["string"],
"allowed_instance_types": ["string"],
"bare_metal": "string",
"baseline_ebs_bandwidth_mbps": {
"max": 0,
"min": 0,
},
"burstable_performance": "string",
"cpu_manufacturers": ["string"],
"max_spot_price_as_percentage_of_optimal_on_demand_price": 0,
"instance_generations": ["string"],
"accelerator_manufacturers": ["string"],
"accelerator_total_memory_mib": {
"max": 0,
"min": 0,
},
"excluded_instance_types": ["string"],
"memory_gib_per_vcpu": {
"max": 0,
"min": 0,
},
"accelerator_names": ["string"],
"network_bandwidth_gbps": {
"max": 0,
"min": 0,
},
"network_interface_count": {
"max": 0,
"min": 0,
},
"on_demand_max_price_percentage_over_lowest_price": 0,
"require_hibernate_support": False,
"spot_max_price_percentage_over_lowest_price": 0,
"total_local_storage_gb": {
"max": 0,
"min": 0,
},
"accelerator_count": {
"max": 0,
"min": 0,
},
},
"instance_type": "string",
"max_price": "string",
"priority": 0,
"subnet_id": "string",
"weighted_capacity": 0,
}],
}],
target_capacity_specification={
"default_target_capacity_type": "string",
"total_target_capacity": 0,
"on_demand_target_capacity": 0,
"spot_target_capacity": 0,
"target_capacity_unit_type": "string",
},
replace_unhealthy_instances=False,
spot_options={
"allocation_strategy": "string",
"instance_interruption_behavior": "string",
"instance_pools_to_use_count": 0,
"maintenance_strategies": {
"capacity_rebalance": {
"replacement_strategy": "string",
"termination_delay": 0,
},
},
},
fulfilled_capacity=0,
fulfilled_on_demand_capacity=0,
fleet_instance_sets=[{
"instance_ids": ["string"],
"instance_type": "string",
"lifecycle": "string",
"platform": "string",
}],
on_demand_options={
"allocation_strategy": "string",
"capacity_reservation_options": {
"usage_strategy": "string",
},
"max_total_price": "string",
"min_target_capacity": 0,
"single_availability_zone": False,
"single_instance_type": False,
},
context="string",
fleet_state="string",
tags={
"string": "string",
},
excess_capacity_termination_policy="string",
terminate_instances=False,
terminate_instances_with_expiration=False,
type="string",
valid_from="string",
valid_until="string")
const examplefleetResourceResourceFromEc2fleet = new aws.ec2.Fleet("examplefleetResourceResourceFromEc2fleet", {
launchTemplateConfigs: [{
launchTemplateSpecification: {
version: "string",
launchTemplateId: "string",
launchTemplateName: "string",
},
overrides: [{
availabilityZone: "string",
instanceRequirements: {
memoryMib: {
min: 0,
max: 0,
},
vcpuCount: {
min: 0,
max: 0,
},
localStorage: "string",
acceleratorTypes: ["string"],
localStorageTypes: ["string"],
allowedInstanceTypes: ["string"],
bareMetal: "string",
baselineEbsBandwidthMbps: {
max: 0,
min: 0,
},
burstablePerformance: "string",
cpuManufacturers: ["string"],
maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0,
instanceGenerations: ["string"],
acceleratorManufacturers: ["string"],
acceleratorTotalMemoryMib: {
max: 0,
min: 0,
},
excludedInstanceTypes: ["string"],
memoryGibPerVcpu: {
max: 0,
min: 0,
},
acceleratorNames: ["string"],
networkBandwidthGbps: {
max: 0,
min: 0,
},
networkInterfaceCount: {
max: 0,
min: 0,
},
onDemandMaxPricePercentageOverLowestPrice: 0,
requireHibernateSupport: false,
spotMaxPricePercentageOverLowestPrice: 0,
totalLocalStorageGb: {
max: 0,
min: 0,
},
acceleratorCount: {
max: 0,
min: 0,
},
},
instanceType: "string",
maxPrice: "string",
priority: 0,
subnetId: "string",
weightedCapacity: 0,
}],
}],
targetCapacitySpecification: {
defaultTargetCapacityType: "string",
totalTargetCapacity: 0,
onDemandTargetCapacity: 0,
spotTargetCapacity: 0,
targetCapacityUnitType: "string",
},
replaceUnhealthyInstances: false,
spotOptions: {
allocationStrategy: "string",
instanceInterruptionBehavior: "string",
instancePoolsToUseCount: 0,
maintenanceStrategies: {
capacityRebalance: {
replacementStrategy: "string",
terminationDelay: 0,
},
},
},
fulfilledCapacity: 0,
fulfilledOnDemandCapacity: 0,
fleetInstanceSets: [{
instanceIds: ["string"],
instanceType: "string",
lifecycle: "string",
platform: "string",
}],
onDemandOptions: {
allocationStrategy: "string",
capacityReservationOptions: {
usageStrategy: "string",
},
maxTotalPrice: "string",
minTargetCapacity: 0,
singleAvailabilityZone: false,
singleInstanceType: false,
},
context: "string",
fleetState: "string",
tags: {
string: "string",
},
excessCapacityTerminationPolicy: "string",
terminateInstances: false,
terminateInstancesWithExpiration: false,
type: "string",
validFrom: "string",
validUntil: "string",
});
type: aws:ec2:Fleet
properties:
context: string
excessCapacityTerminationPolicy: string
fleetInstanceSets:
- instanceIds:
- string
instanceType: string
lifecycle: string
platform: string
fleetState: string
fulfilledCapacity: 0
fulfilledOnDemandCapacity: 0
launchTemplateConfigs:
- launchTemplateSpecification:
launchTemplateId: string
launchTemplateName: string
version: string
overrides:
- availabilityZone: string
instanceRequirements:
acceleratorCount:
max: 0
min: 0
acceleratorManufacturers:
- string
acceleratorNames:
- string
acceleratorTotalMemoryMib:
max: 0
min: 0
acceleratorTypes:
- string
allowedInstanceTypes:
- string
bareMetal: string
baselineEbsBandwidthMbps:
max: 0
min: 0
burstablePerformance: string
cpuManufacturers:
- string
excludedInstanceTypes:
- string
instanceGenerations:
- string
localStorage: string
localStorageTypes:
- string
maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0
memoryGibPerVcpu:
max: 0
min: 0
memoryMib:
max: 0
min: 0
networkBandwidthGbps:
max: 0
min: 0
networkInterfaceCount:
max: 0
min: 0
onDemandMaxPricePercentageOverLowestPrice: 0
requireHibernateSupport: false
spotMaxPricePercentageOverLowestPrice: 0
totalLocalStorageGb:
max: 0
min: 0
vcpuCount:
max: 0
min: 0
instanceType: string
maxPrice: string
priority: 0
subnetId: string
weightedCapacity: 0
onDemandOptions:
allocationStrategy: string
capacityReservationOptions:
usageStrategy: string
maxTotalPrice: string
minTargetCapacity: 0
singleAvailabilityZone: false
singleInstanceType: false
replaceUnhealthyInstances: false
spotOptions:
allocationStrategy: string
instanceInterruptionBehavior: string
instancePoolsToUseCount: 0
maintenanceStrategies:
capacityRebalance:
replacementStrategy: string
terminationDelay: 0
tags:
string: string
targetCapacitySpecification:
defaultTargetCapacityType: string
onDemandTargetCapacity: 0
spotTargetCapacity: 0
targetCapacityUnitType: string
totalTargetCapacity: 0
terminateInstances: false
terminateInstancesWithExpiration: false
type: string
validFrom: string
validUntil: string
Fleet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Fleet resource accepts the following input properties:
- Launch
Template List<FleetConfigs Launch Template Config> - Nested argument containing EC2 Launch Template configurations. Defined below.
- Target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- Context string
- Reserved.
- Excess
Capacity stringTermination Policy - 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
. - Fleet
Instance List<FleetSets Fleet Instance Set> - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - Fulfilled
Capacity double - The number of units fulfilled by this request compared to the set target capacity.
- Fulfilled
On doubleDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- On
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- Replace
Unhealthy boolInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - Spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- State string
- The state of the EC2 Fleet.
- Dictionary<string, string>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Terminate
Instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - Terminate
Instances boolWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - Type 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
. - Valid
From 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.
- Valid
Until 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.
- Launch
Template []FleetConfigs Launch Template Config Args - Nested argument containing EC2 Launch Template configurations. Defined below.
- Target
Capacity FleetSpecification Target Capacity Specification Args - Nested argument containing target capacity configurations. Defined below.
- Context string
- Reserved.
- Excess
Capacity stringTermination Policy - 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
. - Fleet
Instance []FleetSets Fleet Instance Set Args - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - Fleet
State string - The state of the EC2 Fleet.
- Fulfilled
Capacity float64 - The number of units fulfilled by this request compared to the set target capacity.
- Fulfilled
On float64Demand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- On
Demand FleetOptions On Demand Options Args - Nested argument containing On-Demand configurations. Defined below.
- Replace
Unhealthy boolInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - Spot
Options FleetSpot Options Args - Nested argument containing Spot configurations. Defined below.
- map[string]string
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Terminate
Instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - Terminate
Instances boolWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - Type 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
. - Valid
From 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.
- Valid
Until 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.
- launch
Template List<FleetConfigs Launch Template Config> - Nested argument containing EC2 Launch Template configurations. Defined below.
- target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- context String
- Reserved.
- excess
Capacity StringTermination Policy - 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
. - fleet
Instance List<FleetSets Fleet Instance Set> - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State String - The state of the EC2 Fleet.
- fulfilled
Capacity Double - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On DoubleDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- on
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy BooleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- Map<String,String>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instances Boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances BooleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
- launch
Template FleetConfigs Launch Template Config[] - Nested argument containing EC2 Launch Template configurations. Defined below.
- target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- context string
- Reserved.
- excess
Capacity stringTermination Policy - 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
. - fleet
Instance FleetSets Fleet Instance Set[] - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State string - The state of the EC2 Fleet.
- fulfilled
Capacity number - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On numberDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- on
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy booleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- {[key: string]: string}
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instances boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances booleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
- launch_
template_ Sequence[Fleetconfigs Launch Template Config Args] - Nested argument containing EC2 Launch Template configurations. Defined below.
- target_
capacity_ Fleetspecification Target Capacity Specification Args - Nested argument containing target capacity configurations. Defined below.
- context str
- Reserved.
- excess_
capacity_ strtermination_ policy - 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
. - fleet_
instance_ Sequence[Fleetsets Fleet Instance Set Args] - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet_
state str - The state of the EC2 Fleet.
- fulfilled_
capacity float - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled_
on_ floatdemand_ capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- on_
demand_ Fleetoptions On Demand Options Args - Nested argument containing On-Demand configurations. Defined below.
- replace_
unhealthy_ boolinstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot_
options FleetSpot Options Args - Nested argument containing Spot configurations. Defined below.
- Mapping[str, str]
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate_
instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate_
instances_ boolwith_ expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type str
- 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
. - valid_
from str - 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.
- valid_
until str - 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.
- launch
Template List<Property Map>Configs - Nested argument containing EC2 Launch Template configurations. Defined below.
- target
Capacity Property MapSpecification - Nested argument containing target capacity configurations. Defined below.
- context String
- Reserved.
- excess
Capacity StringTermination Policy - 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
. - fleet
Instance List<Property Map>Sets - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State String - The state of the EC2 Fleet.
- fulfilled
Capacity Number - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On NumberDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- on
Demand Property MapOptions - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy BooleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options Property Map - Nested argument containing Spot configurations. Defined below.
- Map<String>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instances Boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances BooleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Fleet resource produces the following output properties:
Look up Existing Fleet Resource
Get an existing Fleet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FleetState, opts?: CustomResourceOptions): Fleet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
context: Optional[str] = None,
excess_capacity_termination_policy: Optional[str] = None,
fleet_instance_sets: Optional[Sequence[FleetFleetInstanceSetArgs]] = None,
fleet_state: Optional[str] = None,
fulfilled_capacity: Optional[float] = None,
fulfilled_on_demand_capacity: Optional[float] = None,
launch_template_configs: Optional[Sequence[FleetLaunchTemplateConfigArgs]] = None,
on_demand_options: Optional[FleetOnDemandOptionsArgs] = None,
replace_unhealthy_instances: Optional[bool] = None,
spot_options: Optional[FleetSpotOptionsArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
target_capacity_specification: Optional[FleetTargetCapacitySpecificationArgs] = None,
terminate_instances: Optional[bool] = None,
terminate_instances_with_expiration: Optional[bool] = None,
type: Optional[str] = None,
valid_from: Optional[str] = None,
valid_until: Optional[str] = None) -> Fleet
func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
public static Fleet get(String name, Output<String> id, FleetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the fleet
- Context string
- Reserved.
- Excess
Capacity stringTermination Policy - 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
. - Fleet
Instance List<FleetSets Fleet Instance Set> - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - Fulfilled
Capacity double - The number of units fulfilled by this request compared to the set target capacity.
- Fulfilled
On doubleDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- Launch
Template List<FleetConfigs Launch Template Config> - Nested argument containing EC2 Launch Template configurations. Defined below.
- On
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- Replace
Unhealthy boolInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - Spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- State string
- The state of the EC2 Fleet.
- Dictionary<string, string>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- Terminate
Instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - Terminate
Instances boolWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - Type 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
. - Valid
From 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.
- Valid
Until 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.
- Arn string
- The ARN of the fleet
- Context string
- Reserved.
- Excess
Capacity stringTermination Policy - 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
. - Fleet
Instance []FleetSets Fleet Instance Set Args - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - Fleet
State string - The state of the EC2 Fleet.
- Fulfilled
Capacity float64 - The number of units fulfilled by this request compared to the set target capacity.
- Fulfilled
On float64Demand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- Launch
Template []FleetConfigs Launch Template Config Args - Nested argument containing EC2 Launch Template configurations. Defined below.
- On
Demand FleetOptions On Demand Options Args - Nested argument containing On-Demand configurations. Defined below.
- Replace
Unhealthy boolInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - Spot
Options FleetSpot Options Args - Nested argument containing Spot configurations. Defined below.
- map[string]string
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Capacity FleetSpecification Target Capacity Specification Args - Nested argument containing target capacity configurations. Defined below.
- Terminate
Instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - Terminate
Instances boolWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - Type 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
. - Valid
From 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.
- Valid
Until 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.
- arn String
- The ARN of the fleet
- context String
- Reserved.
- excess
Capacity StringTermination Policy - 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
. - fleet
Instance List<FleetSets Fleet Instance Set> - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State String - The state of the EC2 Fleet.
- fulfilled
Capacity Double - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On DoubleDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launch
Template List<FleetConfigs Launch Template Config> - Nested argument containing EC2 Launch Template configurations. Defined below.
- on
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy BooleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- Map<String,String>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- terminate
Instances Boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances BooleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
- arn string
- The ARN of the fleet
- context string
- Reserved.
- excess
Capacity stringTermination Policy - 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
. - fleet
Instance FleetSets Fleet Instance Set[] - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State string - The state of the EC2 Fleet.
- fulfilled
Capacity number - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On numberDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launch
Template FleetConfigs Launch Template Config[] - Nested argument containing EC2 Launch Template configurations. Defined below.
- on
Demand FleetOptions On Demand Options - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy booleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options FleetSpot Options - Nested argument containing Spot configurations. Defined below.
- {[key: string]: string}
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Capacity FleetSpecification Target Capacity Specification - Nested argument containing target capacity configurations. Defined below.
- terminate
Instances boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances booleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
- arn str
- The ARN of the fleet
- context str
- Reserved.
- excess_
capacity_ strtermination_ policy - 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
. - fleet_
instance_ Sequence[Fleetsets Fleet Instance Set Args] - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet_
state str - The state of the EC2 Fleet.
- fulfilled_
capacity float - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled_
on_ floatdemand_ capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launch_
template_ Sequence[Fleetconfigs Launch Template Config Args] - Nested argument containing EC2 Launch Template configurations. Defined below.
- on_
demand_ Fleetoptions On Demand Options Args - Nested argument containing On-Demand configurations. Defined below.
- replace_
unhealthy_ boolinstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot_
options FleetSpot Options Args - Nested argument containing Spot configurations. Defined below.
- Mapping[str, str]
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target_
capacity_ Fleetspecification Target Capacity Specification Args - Nested argument containing target capacity configurations. Defined below.
- terminate_
instances bool - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate_
instances_ boolwith_ expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type str
- 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
. - valid_
from str - 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.
- valid_
until str - 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.
- arn String
- The ARN of the fleet
- context String
- Reserved.
- excess
Capacity StringTermination Policy - 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
. - fleet
Instance List<Property Map>Sets - Information about the instances that were launched by the fleet. Available only when
type
is set toinstant
. - fleet
State String - The state of the EC2 Fleet.
- fulfilled
Capacity Number - The number of units fulfilled by this request compared to the set target capacity.
- fulfilled
On NumberDemand Capacity - The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launch
Template List<Property Map>Configs - Nested argument containing EC2 Launch Template configurations. Defined below.
- on
Demand Property MapOptions - Nested argument containing On-Demand configurations. Defined below.
- replace
Unhealthy BooleanInstances - Whether EC2 Fleet should replace unhealthy instances. Defaults to
false
. Supported only for fleets of typemaintain
. - spot
Options Property Map - Nested argument containing Spot configurations. Defined below.
- Map<String>
- Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Capacity Property MapSpecification - Nested argument containing target capacity configurations. Defined below.
- terminate
Instances Boolean - Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to
false
. - terminate
Instances BooleanWith Expiration - Whether running instances should be terminated when the EC2 Fleet expires. Defaults to
false
. - type 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
. - valid
From 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.
- valid
Until 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.
Supporting Types
FleetFleetInstanceSet, FleetFleetInstanceSetArgs
- Instance
Ids List<string> - The IDs of the instances.
- Instance
Type string - The instance type.
- Lifecycle string
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- Platform string
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
- Instance
Ids []string - The IDs of the instances.
- Instance
Type string - The instance type.
- Lifecycle string
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- Platform string
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
- instance
Ids List<String> - The IDs of the instances.
- instance
Type String - The instance type.
- lifecycle String
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- platform String
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
- instance
Ids string[] - The IDs of the instances.
- instance
Type string - The instance type.
- lifecycle string
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- platform string
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
- instance_
ids Sequence[str] - The IDs of the instances.
- instance_
type str - The instance type.
- lifecycle str
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- platform str
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
- instance
Ids List<String> - The IDs of the instances.
- instance
Type String - The instance type.
- lifecycle String
- Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
- platform String
- The value is
Windows
for Windows instances. Otherwise, the value is blank.
FleetLaunchTemplateConfig, FleetLaunchTemplateConfigArgs
- Launch
Template FleetSpecification Launch Template Config Launch Template Specification - Nested argument containing EC2 Launch Template to use. Defined below.
- Overrides
List<Fleet
Launch Template Config Override> - Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- Launch
Template FleetSpecification Launch Template Config Launch Template Specification - Nested argument containing EC2 Launch Template to use. Defined below.
- Overrides
[]Fleet
Launch Template Config Override - Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launch
Template FleetSpecification Launch Template Config Launch Template Specification - Nested argument containing EC2 Launch Template to use. Defined below.
- overrides
List<Fleet
Launch Template Config Override> - Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launch
Template FleetSpecification Launch Template Config Launch Template Specification - Nested argument containing EC2 Launch Template to use. Defined below.
- overrides
Fleet
Launch Template Config Override[] - Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launch_
template_ Fleetspecification Launch Template Config Launch Template Specification - Nested argument containing EC2 Launch Template to use. Defined below.
- overrides
Sequence[Fleet
Launch Template Config Override] - Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launch
Template Property MapSpecification - Nested argument containing EC2 Launch Template to use. Defined below.
- overrides List<Property Map>
- Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
FleetLaunchTemplateConfigLaunchTemplateSpecification, FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs
- Version string
- The launch template version number,
$Latest
, or$Default.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template.
- Version string
- The launch template version number,
$Latest
, or$Default.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template.
- version String
- The launch template version number,
$Latest
, or$Default.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template.
- version string
- The launch template version number,
$Latest
, or$Default.
- launch
Template stringId - The ID of the launch template.
- launch
Template stringName - The name of the launch template.
- version str
- The launch template version number,
$Latest
, or$Default.
- launch_
template_ strid - The ID of the launch template.
- launch_
template_ strname - The name of the launch template.
- version String
- The launch template version number,
$Latest
, or$Default.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template.
FleetLaunchTemplateConfigOverride, FleetLaunchTemplateConfigOverrideArgs
- Availability
Zone string - Availability Zone in which to launch the instances.
- Instance
Requirements FleetLaunch Template Config Override Instance Requirements - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- Instance
Type string - Instance type.
- Max
Price string - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- Priority double
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - Subnet
Id string - ID of the subnet in which to launch the instances.
- Weighted
Capacity double - Number of units provided by the specified instance type.
- Availability
Zone string - Availability Zone in which to launch the instances.
- Instance
Requirements FleetLaunch Template Config Override Instance Requirements - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- Instance
Type string - Instance type.
- Max
Price string - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- Priority float64
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - Subnet
Id string - ID of the subnet in which to launch the instances.
- Weighted
Capacity float64 - Number of units provided by the specified instance type.
- availability
Zone String - Availability Zone in which to launch the instances.
- instance
Requirements FleetLaunch Template Config Override Instance Requirements - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instance
Type String - Instance type.
- max
Price String - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- priority Double
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - subnet
Id String - ID of the subnet in which to launch the instances.
- weighted
Capacity Double - Number of units provided by the specified instance type.
- availability
Zone string - Availability Zone in which to launch the instances.
- instance
Requirements FleetLaunch Template Config Override Instance Requirements - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instance
Type string - Instance type.
- max
Price string - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- priority number
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - subnet
Id string - ID of the subnet in which to launch the instances.
- weighted
Capacity number - Number of units provided by the specified instance type.
- availability_
zone str - Availability Zone in which to launch the instances.
- instance_
requirements FleetLaunch Template Config Override Instance Requirements - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instance_
type str - Instance type.
- max_
price str - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- priority float
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - subnet_
id str - ID of the subnet in which to launch the instances.
- weighted_
capacity float - Number of units provided by the specified instance type.
- availability
Zone String - Availability Zone in which to launch the instances.
- instance
Requirements Property Map - Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instance
Type String - Instance type.
- max
Price String - Maximum price per unit hour that you are willing to pay for a Spot Instance.
- priority Number
- Priority for the launch template override. If
on_demand_options
allocation_strategy
is set toprioritized
, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. - subnet
Id String - ID of the subnet in which to launch the instances.
- weighted
Capacity Number - Number of units provided by the specified instance type.
FleetLaunchTemplateConfigOverrideInstanceRequirements, FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs
- Memory
Mib FleetLaunch Template Config Override Instance Requirements Memory Mib - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- Vcpu
Count FleetLaunch Template Config Override Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- Accelerator
Count FleetLaunch Template Config Override Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- Accelerator
Manufacturers List<string> - List of accelerator manufacturer names. Default is any manufacturer.
- Accelerator
Names List<string> - List of accelerator names. Default is any acclerator.
- Accelerator
Total FleetMemory Mib Launch Template Config Override Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- Accelerator
Types List<string> - The accelerator types that must be on the instance type. Default is any accelerator type.
- Allowed
Instance List<string>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- Bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - Baseline
Ebs FleetBandwidth Mbps Launch Template Config Override Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- Burstable
Performance string - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - Cpu
Manufacturers List<string> The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- Excluded
Instance List<string>Types The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- Instance
Generations List<string> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - Local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - Local
Storage List<string>Types - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - Max
Spot intPrice As Percentage Of Optimal On Demand Price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- Memory
Gib FleetPer Vcpu Launch Template Config Override Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- Network
Bandwidth FleetGbps Launch Template Config Override Instance Requirements Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- Network
Interface FleetCount Launch Template Config Override Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- On
Demand intMax Price Percentage Over Lowest Price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- Require
Hibernate boolSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - Spot
Max intPrice Percentage Over Lowest Price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Total
Local FleetStorage Gb Launch Template Config Override Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- Memory
Mib FleetLaunch Template Config Override Instance Requirements Memory Mib - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- Vcpu
Count FleetLaunch Template Config Override Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- Accelerator
Count FleetLaunch Template Config Override Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- Accelerator
Manufacturers []string - List of accelerator manufacturer names. Default is any manufacturer.
- Accelerator
Names []string - List of accelerator names. Default is any acclerator.
- Accelerator
Total FleetMemory Mib Launch Template Config Override Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- Accelerator
Types []string - The accelerator types that must be on the instance type. Default is any accelerator type.
- Allowed
Instance []stringTypes The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- Bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - Baseline
Ebs FleetBandwidth Mbps Launch Template Config Override Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- Burstable
Performance string - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - Cpu
Manufacturers []string The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- Excluded
Instance []stringTypes The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- Instance
Generations []string - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - Local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - Local
Storage []stringTypes - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - Max
Spot intPrice As Percentage Of Optimal On Demand Price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- Memory
Gib FleetPer Vcpu Launch Template Config Override Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- Network
Bandwidth FleetGbps Launch Template Config Override Instance Requirements Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- Network
Interface FleetCount Launch Template Config Override Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- On
Demand intMax Price Percentage Over Lowest Price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- Require
Hibernate boolSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - Spot
Max intPrice Percentage Over Lowest Price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Total
Local FleetStorage Gb Launch Template Config Override Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib FleetLaunch Template Config Override Instance Requirements Memory Mib - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- vcpu
Count FleetLaunch Template Config Override Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count FleetLaunch Template Config Override Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- accelerator
Manufacturers List<String> - List of accelerator manufacturer names. Default is any manufacturer.
- accelerator
Names List<String> - List of accelerator names. Default is any acclerator.
- accelerator
Total FleetMemory Mib Launch Template Config Override Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types List<String> - The accelerator types that must be on the instance type. Default is any accelerator type.
- allowed
Instance List<String>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- bare
Metal String - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs FleetBandwidth Mbps Launch Template Config Override Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance String - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers List<String> The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- excluded
Instance List<String>Types The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- instance
Generations List<String> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - local
Storage String - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage List<String>Types - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - max
Spot IntegerPrice As Percentage Of Optimal On Demand Price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib FleetPer Vcpu Launch Template Config Override Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth FleetGbps Launch Template Config Override Instance Requirements Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- network
Interface FleetCount Launch Template Config Override Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand IntegerMax Price Percentage Over Lowest Price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- require
Hibernate BooleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max IntegerPrice Percentage Over Lowest Price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local FleetStorage Gb Launch Template Config Override Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib FleetLaunch Template Config Override Instance Requirements Memory Mib - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- vcpu
Count FleetLaunch Template Config Override Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count FleetLaunch Template Config Override Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- accelerator
Manufacturers string[] - List of accelerator manufacturer names. Default is any manufacturer.
- accelerator
Names string[] - List of accelerator names. Default is any acclerator.
- accelerator
Total FleetMemory Mib Launch Template Config Override Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types string[] - The accelerator types that must be on the instance type. Default is any accelerator type.
- allowed
Instance string[]Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs FleetBandwidth Mbps Launch Template Config Override Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance string - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers string[] The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- excluded
Instance string[]Types The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- instance
Generations string[] - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage string[]Types - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - max
Spot numberPrice As Percentage Of Optimal On Demand Price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib FleetPer Vcpu Launch Template Config Override Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth FleetGbps Launch Template Config Override Instance Requirements Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- network
Interface FleetCount Launch Template Config Override Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand numberMax Price Percentage Over Lowest Price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- require
Hibernate booleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max numberPrice Percentage Over Lowest Price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local FleetStorage Gb Launch Template Config Override Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory_
mib FleetLaunch Template Config Override Instance Requirements Memory Mib - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- vcpu_
count FleetLaunch Template Config Override Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator_
count FleetLaunch Template Config Override Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- accelerator_
manufacturers Sequence[str] - List of accelerator manufacturer names. Default is any manufacturer.
- accelerator_
names Sequence[str] - List of accelerator names. Default is any acclerator.
- accelerator_
total_ Fleetmemory_ mib Launch Template Config Override Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator_
types Sequence[str] - The accelerator types that must be on the instance type. Default is any accelerator type.
- allowed_
instance_ Sequence[str]types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- bare_
metal str - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline_
ebs_ Fleetbandwidth_ mbps Launch Template Config Override Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable_
performance str - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - cpu_
manufacturers Sequence[str] The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- excluded_
instance_ Sequence[str]types The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- instance_
generations Sequence[str] - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - local_
storage str - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local_
storage_ Sequence[str]types - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - max_
spot_ intprice_ as_ percentage_ of_ optimal_ on_ demand_ price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory_
gib_ Fleetper_ vcpu Launch Template Config Override Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network_
bandwidth_ Fleetgbps Launch Template Config Override Instance Requirements Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- network_
interface_ Fleetcount Launch Template Config Override Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on_
demand_ intmax_ price_ percentage_ over_ lowest_ price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- require_
hibernate_ boolsupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot_
max_ intprice_ percentage_ over_ lowest_ price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total_
local_ Fleetstorage_ gb Launch Template Config Override Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib Property Map - The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- vcpu
Count Property Map - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count Property Map - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- accelerator
Manufacturers List<String> - List of accelerator manufacturer names. Default is any manufacturer.
- accelerator
Names List<String> - List of accelerator names. Default is any acclerator.
- accelerator
Total Property MapMemory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types List<String> - The accelerator types that must be on the instance type. Default is any accelerator type.
- allowed
Instance List<String>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards,represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. Default is any instance type.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- bare
Metal String - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs Property MapBandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance String - Indicates whether burstable performance T instance types are
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers List<String> The CPU manufacturers to include. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
- excluded
Instance List<String>Types The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples:
c5*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.- instance
Generations List<String> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are
current
andprevious
. Default iscurrent
andprevious
generation instance types. - local
Storage String - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage List<String>Types - List of local storage type names. Valid values are
hdd
andssd
. Default any storage type. - max
Spot NumberPrice As Percentage Of Optimal On Demand Price - The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib Property MapPer Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth Property MapGbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- network
Interface Property MapCount - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand NumberMax Price Percentage Over Lowest Price The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
If you set
target_capacity_unit_type
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.- require
Hibernate BooleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max NumberPrice Percentage Over Lowest Price The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local Property MapStorage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib, FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps, FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu, FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib, FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps, FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb, FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs
FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs
FleetOnDemandOptions, FleetOnDemandOptionsArgs
- Allocation
Strategy string - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - Capacity
Reservation FleetOptions On Demand Options Capacity Reservation Options - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - Max
Total stringPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- Min
Target intCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - Single
Availability boolZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - Single
Instance boolType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
- Allocation
Strategy string - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - Capacity
Reservation FleetOptions On Demand Options Capacity Reservation Options - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - Max
Total stringPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- Min
Target intCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - Single
Availability boolZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - Single
Instance boolType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
- allocation
Strategy String - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - capacity
Reservation FleetOptions On Demand Options Capacity Reservation Options - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - max
Total StringPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- min
Target IntegerCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - single
Availability BooleanZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - single
Instance BooleanType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
- allocation
Strategy string - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - capacity
Reservation FleetOptions On Demand Options Capacity Reservation Options - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - max
Total stringPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- min
Target numberCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - single
Availability booleanZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - single
Instance booleanType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
- allocation_
strategy str - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - capacity_
reservation_ Fleetoptions On Demand Options Capacity Reservation Options - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - max_
total_ strprice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- min_
target_ intcapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - single_
availability_ boolzone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - single_
instance_ booltype - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
- allocation
Strategy String - The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values:
lowestPrice
,prioritized
. Default:lowestPrice
. - capacity
Reservation Property MapOptions - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type
instant
. - max
Total StringPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.
- min
Target NumberCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type
instant
. If you specifymin_target_capacity
, at least one of the following must be specified:single_availability_zone
orsingle_instance_type
. - single
Availability BooleanZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type
instant
. - single
Instance BooleanType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type
instant
.
FleetOnDemandOptionsCapacityReservationOptions, FleetOnDemandOptionsCapacityReservationOptionsArgs
- Usage
Strategy string - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
- Usage
Strategy string - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
- usage
Strategy String - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
- usage
Strategy string - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
- usage_
strategy str - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
- usage
Strategy String - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values:
use-capacity-reservations-first
.
FleetSpotOptions, FleetSpotOptionsArgs
- Allocation
Strategy string - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - Instance
Interruption stringBehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - Instance
Pools intTo Use Count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - Maintenance
Strategies FleetSpot Options Maintenance Strategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- Allocation
Strategy string - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - Instance
Interruption stringBehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - Instance
Pools intTo Use Count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - Maintenance
Strategies FleetSpot Options Maintenance Strategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- allocation
Strategy String - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - instance
Interruption StringBehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - instance
Pools IntegerTo Use Count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - maintenance
Strategies FleetSpot Options Maintenance Strategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- allocation
Strategy string - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - instance
Interruption stringBehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - instance
Pools numberTo Use Count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - maintenance
Strategies FleetSpot Options Maintenance Strategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- allocation_
strategy str - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - instance_
interruption_ strbehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - instance_
pools_ intto_ use_ count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - maintenance_
strategies FleetSpot Options Maintenance Strategies - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- allocation
Strategy String - How to allocate the target capacity across the Spot pools. Valid values:
diversified
,lowestPrice
,capacity-optimized
,capacity-optimized-prioritized
andprice-capacity-optimized
. Default:lowestPrice
. - instance
Interruption StringBehavior - Behavior when a Spot Instance is interrupted. Valid values:
hibernate
,stop
,terminate
. Default:terminate
. - instance
Pools NumberTo Use Count - Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
allocation_strategy
is set tolowestPrice
. Default:1
. - maintenance
Strategies Property Map - Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
FleetSpotOptionsMaintenanceStrategies, FleetSpotOptionsMaintenanceStrategiesArgs
- Capacity
Rebalance FleetSpot Options Maintenance Strategies Capacity Rebalance - Nested argument containing the capacity rebalance for your fleet request. Defined below.
- Capacity
Rebalance FleetSpot Options Maintenance Strategies Capacity Rebalance - Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacity
Rebalance FleetSpot Options Maintenance Strategies Capacity Rebalance - Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacity
Rebalance FleetSpot Options Maintenance Strategies Capacity Rebalance - Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacity_
rebalance FleetSpot Options Maintenance Strategies Capacity Rebalance - Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacity
Rebalance Property Map - Nested argument containing the capacity rebalance for your fleet request. Defined below.
FleetSpotOptionsMaintenanceStrategiesCapacityRebalance, FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs
- Replacement
Strategy string - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - Termination
Delay int
- Replacement
Strategy string - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - Termination
Delay int
- replacement
Strategy String - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - termination
Delay Integer
- replacement
Strategy string - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - termination
Delay number
- replacement_
strategy str - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - termination_
delay int
- replacement
Strategy String - The replacement strategy to use. Only available for fleets of
type
set tomaintain
. Valid values:launch
. - termination
Delay Number
FleetTargetCapacitySpecification, FleetTargetCapacitySpecificationArgs
- Default
Target stringCapacity Type - Default target capacity type. Valid values:
on-demand
,spot
. - Total
Target intCapacity - The number of units to request, filled using
default_target_capacity_type
. - On
Demand intTarget Capacity - The number of On-Demand units to request.
- Spot
Target intCapacity - The number of Spot units to request.
- Target
Capacity stringUnit Type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
- Default
Target stringCapacity Type - Default target capacity type. Valid values:
on-demand
,spot
. - Total
Target intCapacity - The number of units to request, filled using
default_target_capacity_type
. - On
Demand intTarget Capacity - The number of On-Demand units to request.
- Spot
Target intCapacity - The number of Spot units to request.
- Target
Capacity stringUnit Type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
- default
Target StringCapacity Type - Default target capacity type. Valid values:
on-demand
,spot
. - total
Target IntegerCapacity - The number of units to request, filled using
default_target_capacity_type
. - on
Demand IntegerTarget Capacity - The number of On-Demand units to request.
- spot
Target IntegerCapacity - The number of Spot units to request.
- target
Capacity StringUnit Type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
- default
Target stringCapacity Type - Default target capacity type. Valid values:
on-demand
,spot
. - total
Target numberCapacity - The number of units to request, filled using
default_target_capacity_type
. - on
Demand numberTarget Capacity - The number of On-Demand units to request.
- spot
Target numberCapacity - The number of Spot units to request.
- target
Capacity stringUnit Type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
- default_
target_ strcapacity_ type - Default target capacity type. Valid values:
on-demand
,spot
. - total_
target_ intcapacity - The number of units to request, filled using
default_target_capacity_type
. - on_
demand_ inttarget_ capacity - The number of On-Demand units to request.
- spot_
target_ intcapacity - The number of Spot units to request.
- target_
capacity_ strunit_ type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
- default
Target StringCapacity Type - Default target capacity type. Valid values:
on-demand
,spot
. - total
Target NumberCapacity - The number of units to request, filled using
default_target_capacity_type
. - on
Demand NumberTarget Capacity - The number of On-Demand units to request.
- spot
Target NumberCapacity - The number of Spot units to request.
- target
Capacity StringUnit Type - The unit for the target capacity.
If you specify
target_capacity_unit_type
,instance_requirements
must be specified.
Import
Using pulumi import
, import aws_ec2_fleet
using the Fleet identifier. For example:
$ pulumi import aws:ec2/fleet:Fleet example fleet-b9b55d27-c5fc-41ac-a6f3-48fcc91f080c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.