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,
            },
        },
        MaxTotalPrice = "string",
        MinTargetCapacity = 0,
        SingleAvailabilityZone = false,
        SingleInstanceType = false,
    },
    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),
			},
		},
		MaxTotalPrice:          pulumi.String("string"),
		MinTargetCapacity:      pulumi.Int(0),
		SingleAvailabilityZone: pulumi.Bool(false),
		SingleInstanceType:     pulumi.Bool(false),
	},
	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())
        .maxTotalPrice("string")
        .minTargetCapacity(0)
        .singleAvailabilityZone(false)
        .singleInstanceType(false)
        .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,
            },
        },
        "max_total_price": "string",
        "min_target_capacity": 0,
        "single_availability_zone": False,
        "single_instance_type": False,
    },
    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,
            },
        },
        maxTotalPrice: "string",
        minTargetCapacity: 0,
        singleAvailabilityZone: false,
        singleInstanceType: false,
    },
    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
        maxTotalPrice: string
        minTargetCapacity: 0
        singleAvailabilityZone: false
        singleInstanceType: false
    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:
- LaunchTemplate List<FleetConfigs Launch Template Config> 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- TargetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- Context string
- Reserved.
- ExcessCapacity 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.
- FleetInstance List<FleetSets Fleet Instance Set> 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- FulfilledCapacity double
- The number of units fulfilled by this request compared to the set target capacity.
- FulfilledOn doubleDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- OnDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- ReplaceUnhealthy boolInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- SpotOptions 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_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- TerminateInstances bool
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- TerminateInstances 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.
- ValidFrom 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.
- ValidUntil 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.
- LaunchTemplate []FleetConfigs Launch Template Config Args 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- TargetCapacity FleetSpecification Target Capacity Specification Args 
- Nested argument containing target capacity configurations. Defined below.
- Context string
- Reserved.
- ExcessCapacity 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.
- FleetInstance []FleetSets Fleet Instance Set Args 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- FleetState string
- The state of the EC2 Fleet.
- FulfilledCapacity float64
- The number of units fulfilled by this request compared to the set target capacity.
- FulfilledOn float64Demand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- OnDemand FleetOptions On Demand Options Args 
- Nested argument containing On-Demand configurations. Defined below.
- ReplaceUnhealthy boolInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- SpotOptions 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_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- TerminateInstances bool
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- TerminateInstances 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.
- ValidFrom 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.
- ValidUntil 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.
- launchTemplate List<FleetConfigs Launch Template Config> 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- targetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- context String
- Reserved.
- excessCapacity 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.
- fleetInstance List<FleetSets Fleet Instance Set> 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState String
- The state of the EC2 Fleet.
- fulfilledCapacity Double
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn DoubleDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- onDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy BooleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- terminateInstances Boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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.
- launchTemplate FleetConfigs Launch Template Config[] 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- targetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- context string
- Reserved.
- excessCapacity 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.
- fleetInstance FleetSets Fleet Instance Set[] 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState string
- The state of the EC2 Fleet.
- fulfilledCapacity number
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn numberDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- onDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy booleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- terminateInstances boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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 typeis 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_tagsconfiguration 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.
- launchTemplate List<Property Map>Configs 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- targetCapacity Property MapSpecification 
- Nested argument containing target capacity configurations. Defined below.
- context String
- Reserved.
- excessCapacity 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.
- fleetInstance List<Property Map>Sets 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState String
- The state of the EC2 Fleet.
- fulfilledCapacity Number
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn NumberDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- onDemand Property MapOptions 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy BooleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- terminateInstances Boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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) -> Fleetfunc 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)resources:  _:    type: aws:ec2:Fleet    get:      id: ${id}- 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.
- ExcessCapacity 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.
- FleetInstance List<FleetSets Fleet Instance Set> 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- FulfilledCapacity double
- The number of units fulfilled by this request compared to the set target capacity.
- FulfilledOn doubleDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- LaunchTemplate List<FleetConfigs Launch Template Config> 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- OnDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- ReplaceUnhealthy boolInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- SpotOptions 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_tagsconfiguration 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_tagsconfiguration block.
- TargetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- TerminateInstances bool
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- TerminateInstances 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.
- ValidFrom 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.
- ValidUntil 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.
- ExcessCapacity 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.
- FleetInstance []FleetSets Fleet Instance Set Args 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- FleetState string
- The state of the EC2 Fleet.
- FulfilledCapacity float64
- The number of units fulfilled by this request compared to the set target capacity.
- FulfilledOn float64Demand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- LaunchTemplate []FleetConfigs Launch Template Config Args 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- OnDemand FleetOptions On Demand Options Args 
- Nested argument containing On-Demand configurations. Defined below.
- ReplaceUnhealthy boolInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- SpotOptions 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_tagsconfiguration 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_tagsconfiguration block.
- TargetCapacity FleetSpecification Target Capacity Specification Args 
- Nested argument containing target capacity configurations. Defined below.
- TerminateInstances bool
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- TerminateInstances 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.
- ValidFrom 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.
- ValidUntil 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.
- excessCapacity 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.
- fleetInstance List<FleetSets Fleet Instance Set> 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState String
- The state of the EC2 Fleet.
- fulfilledCapacity Double
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn DoubleDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launchTemplate List<FleetConfigs Launch Template Config> 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- onDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy BooleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration 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_tagsconfiguration block.
- targetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- terminateInstances Boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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.
- excessCapacity 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.
- fleetInstance FleetSets Fleet Instance Set[] 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState string
- The state of the EC2 Fleet.
- fulfilledCapacity number
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn numberDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launchTemplate FleetConfigs Launch Template Config[] 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- onDemand FleetOptions On Demand Options 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy booleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration 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_tagsconfiguration block.
- targetCapacity FleetSpecification Target Capacity Specification 
- Nested argument containing target capacity configurations. Defined below.
- terminateInstances boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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 typeis 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_tagsconfiguration 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_tagsconfiguration 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.
- excessCapacity 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.
- fleetInstance List<Property Map>Sets 
- Information about the instances that were launched by the fleet. Available only when typeis set toinstant.
- fleetState String
- The state of the EC2 Fleet.
- fulfilledCapacity Number
- The number of units fulfilled by this request compared to the set target capacity.
- fulfilledOn NumberDemand Capacity 
- The number of units fulfilled by this request compared to the set target On-Demand capacity.
- launchTemplate List<Property Map>Configs 
- Nested argument containing EC2 Launch Template configurations. Defined below.
- onDemand Property MapOptions 
- Nested argument containing On-Demand configurations. Defined below.
- replaceUnhealthy BooleanInstances 
- Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of typemaintain.
- spotOptions 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_tagsconfiguration 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_tagsconfiguration block.
- targetCapacity Property MapSpecification 
- Nested argument containing target capacity configurations. Defined below.
- terminateInstances Boolean
- Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
- terminateInstances 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.
- validFrom 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.
- validUntil 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        
- InstanceIds List<string>
- The IDs of the instances.
- InstanceType 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 Windowsfor Windows instances. Otherwise, the value is blank.
- InstanceIds []string
- The IDs of the instances.
- InstanceType 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 Windowsfor Windows instances. Otherwise, the value is blank.
- instanceIds List<String>
- The IDs of the instances.
- instanceType 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 Windowsfor Windows instances. Otherwise, the value is blank.
- instanceIds string[]
- The IDs of the instances.
- instanceType 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 Windowsfor 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 Windowsfor Windows instances. Otherwise, the value is blank.
- instanceIds List<String>
- The IDs of the instances.
- instanceType 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 Windowsfor Windows instances. Otherwise, the value is blank.
FleetLaunchTemplateConfig, FleetLaunchTemplateConfigArgs        
- LaunchTemplate FleetSpecification Launch Template Config Launch Template Specification 
- Nested argument containing EC2 Launch Template to use. Defined below.
- Overrides
List<FleetLaunch Template Config Override> 
- Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- LaunchTemplate FleetSpecification Launch Template Config Launch Template Specification 
- Nested argument containing EC2 Launch Template to use. Defined below.
- Overrides
[]FleetLaunch Template Config Override 
- Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launchTemplate FleetSpecification Launch Template Config Launch Template Specification 
- Nested argument containing EC2 Launch Template to use. Defined below.
- overrides
List<FleetLaunch Template Config Override> 
- Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launchTemplate FleetSpecification Launch Template Config Launch Template Specification 
- Nested argument containing EC2 Launch Template to use. Defined below.
- overrides
FleetLaunch 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[FleetLaunch Template Config Override] 
- Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
- launchTemplate 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.
- LaunchTemplate stringId 
- The ID of the launch template.
- LaunchTemplate stringName 
- The name of the launch template.
- Version string
- The launch template version number, $Latest, or$Default.
- LaunchTemplate stringId 
- The ID of the launch template.
- LaunchTemplate stringName 
- The name of the launch template.
- version String
- The launch template version number, $Latest, or$Default.
- launchTemplate StringId 
- The ID of the launch template.
- launchTemplate StringName 
- The name of the launch template.
- version string
- The launch template version number, $Latest, or$Default.
- launchTemplate stringId 
- The ID of the launch template.
- launchTemplate 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.
- launchTemplate StringId 
- The ID of the launch template.
- launchTemplate StringName 
- The name of the launch template.
FleetLaunchTemplateConfigOverride, FleetLaunchTemplateConfigOverrideArgs          
- AvailabilityZone string
- Availability Zone in which to launch the instances.
- InstanceRequirements FleetLaunch Template Config Override Instance Requirements 
- Override the instance type in the Launch Template with instance types that satisfy the requirements.
- InstanceType string
- Instance type.
- MaxPrice 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_optionsallocation_strategyis 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.
- SubnetId string
- ID of the subnet in which to launch the instances.
- WeightedCapacity double
- Number of units provided by the specified instance type.
- AvailabilityZone string
- Availability Zone in which to launch the instances.
- InstanceRequirements FleetLaunch Template Config Override Instance Requirements 
- Override the instance type in the Launch Template with instance types that satisfy the requirements.
- InstanceType string
- Instance type.
- MaxPrice 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_optionsallocation_strategyis 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.
- SubnetId string
- ID of the subnet in which to launch the instances.
- WeightedCapacity float64
- Number of units provided by the specified instance type.
- availabilityZone String
- Availability Zone in which to launch the instances.
- instanceRequirements FleetLaunch Template Config Override Instance Requirements 
- Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instanceType String
- Instance type.
- maxPrice 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_optionsallocation_strategyis 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.
- subnetId String
- ID of the subnet in which to launch the instances.
- weightedCapacity Double
- Number of units provided by the specified instance type.
- availabilityZone string
- Availability Zone in which to launch the instances.
- instanceRequirements FleetLaunch Template Config Override Instance Requirements 
- Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instanceType string
- Instance type.
- maxPrice 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_optionsallocation_strategyis 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.
- subnetId string
- ID of the subnet in which to launch the instances.
- weightedCapacity 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_optionsallocation_strategyis 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.
- availabilityZone String
- Availability Zone in which to launch the instances.
- instanceRequirements Property Map
- Override the instance type in the Launch Template with instance types that satisfy the requirements.
- instanceType String
- Instance type.
- maxPrice 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_optionsallocation_strategyis 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.
- subnetId String
- ID of the subnet in which to launch the instances.
- weightedCapacity Number
- Number of units provided by the specified instance type.
FleetLaunchTemplateConfigOverrideInstanceRequirements, FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs              
- MemoryMib 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.
- VcpuCount FleetLaunch Template Config Override Instance Requirements Vcpu Count 
- Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- AcceleratorCount 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.
- AcceleratorManufacturers List<string>
- List of accelerator manufacturer names. Default is any manufacturer.
- AcceleratorNames List<string>
- List of accelerator names. Default is any acclerator.
- AcceleratorTotal 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.
- AcceleratorTypes List<string>
- The accelerator types that must be on the instance type. Default is any accelerator type.
- AllowedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- BareMetal string
- Indicate whether bare metal instace types should be included,excluded, orrequired. Default isexcluded.
- BaselineEbs 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.
- BurstablePerformance string
- Indicates whether burstable performance T instance types are included,excluded, orrequired. Default isexcluded.
- CpuManufacturers 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. 
- ExcludedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- InstanceGenerations List<string>
- Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are currentandprevious. Default iscurrentandpreviousgeneration instance types.
- LocalStorage string
- Indicate whether instance types with local storage volumes are included,excluded, orrequired. Default isincluded.
- LocalStorage List<string>Types 
- List of local storage type names. Valid values are hddandssd. Default any storage type.
- MaxSpot 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
- MemoryGib 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.
- NetworkBandwidth 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.
- NetworkInterface 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.
- OnDemand 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_typeto- vcpuor- memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
- RequireHibernate boolSupport 
- Indicate whether instance types must support On-Demand Instance Hibernation, either trueorfalse. Default isfalse.
- SpotMax 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. 
- TotalLocal 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.
- MemoryMib 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.
- VcpuCount FleetLaunch Template Config Override Instance Requirements Vcpu Count 
- Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- AcceleratorCount 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.
- AcceleratorManufacturers []string
- List of accelerator manufacturer names. Default is any manufacturer.
- AcceleratorNames []string
- List of accelerator names. Default is any acclerator.
- AcceleratorTotal 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.
- AcceleratorTypes []string
- The accelerator types that must be on the instance type. Default is any accelerator type.
- AllowedInstance []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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- BareMetal string
- Indicate whether bare metal instace types should be included,excluded, orrequired. Default isexcluded.
- BaselineEbs 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.
- BurstablePerformance string
- Indicates whether burstable performance T instance types are included,excluded, orrequired. Default isexcluded.
- CpuManufacturers []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. 
- ExcludedInstance []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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- InstanceGenerations []string
- Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are currentandprevious. Default iscurrentandpreviousgeneration instance types.
- LocalStorage string
- Indicate whether instance types with local storage volumes are included,excluded, orrequired. Default isincluded.
- LocalStorage []stringTypes 
- List of local storage type names. Valid values are hddandssd. Default any storage type.
- MaxSpot 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
- MemoryGib 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.
- NetworkBandwidth 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.
- NetworkInterface 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.
- OnDemand 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_typeto- vcpuor- memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
- RequireHibernate boolSupport 
- Indicate whether instance types must support On-Demand Instance Hibernation, either trueorfalse. Default isfalse.
- SpotMax 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. 
- TotalLocal 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.
- memoryMib 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.
- vcpuCount FleetLaunch Template Config Override Instance Requirements Vcpu Count 
- Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- acceleratorCount 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.
- acceleratorManufacturers List<String>
- List of accelerator manufacturer names. Default is any manufacturer.
- acceleratorNames List<String>
- List of accelerator names. Default is any acclerator.
- acceleratorTotal 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.
- acceleratorTypes List<String>
- The accelerator types that must be on the instance type. Default is any accelerator type.
- allowedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- bareMetal String
- Indicate whether bare metal instace types should be included,excluded, orrequired. Default isexcluded.
- baselineEbs 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.
- burstablePerformance String
- Indicates whether burstable performance T instance types are included,excluded, orrequired. Default isexcluded.
- cpuManufacturers 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. 
- excludedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- instanceGenerations List<String>
- Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are currentandprevious. Default iscurrentandpreviousgeneration instance types.
- localStorage String
- Indicate whether instance types with local storage volumes are included,excluded, orrequired. Default isincluded.
- localStorage List<String>Types 
- List of local storage type names. Valid values are hddandssd. Default any storage type.
- maxSpot 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
- memoryGib 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.
- networkBandwidth 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.
- networkInterface 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.
- onDemand 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_typeto- vcpuor- memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
- requireHibernate BooleanSupport 
- Indicate whether instance types must support On-Demand Instance Hibernation, either trueorfalse. Default isfalse.
- spotMax 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. 
- totalLocal 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.
- memoryMib 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.
- vcpuCount FleetLaunch Template Config Override Instance Requirements Vcpu Count 
- Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- acceleratorCount 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.
- acceleratorManufacturers string[]
- List of accelerator manufacturer names. Default is any manufacturer.
- acceleratorNames string[]
- List of accelerator names. Default is any acclerator.
- acceleratorTotal 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.
- acceleratorTypes string[]
- The accelerator types that must be on the instance type. Default is any accelerator type.
- allowedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- bareMetal string
- Indicate whether bare metal instace types should be included,excluded, orrequired. Default isexcluded.
- baselineEbs 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.
- burstablePerformance string
- Indicates whether burstable performance T instance types are included,excluded, orrequired. Default isexcluded.
- cpuManufacturers 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. 
- excludedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- instanceGenerations string[]
- Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are currentandprevious. Default iscurrentandpreviousgeneration instance types.
- localStorage string
- Indicate whether instance types with local storage volumes are included,excluded, orrequired. Default isincluded.
- localStorage string[]Types 
- List of local storage type names. Valid values are hddandssd. Default any storage type.
- maxSpot 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
- memoryGib 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.
- networkBandwidth 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.
- networkInterface 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.
- onDemand 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_typeto- vcpuor- memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
- requireHibernate booleanSupport 
- Indicate whether instance types must support On-Demand Instance Hibernation, either trueorfalse. Default isfalse.
- spotMax 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. 
- totalLocal 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- 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 currentandprevious. Default iscurrentandpreviousgeneration 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 hddandssd. 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_typeto- vcpuor- memory-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 trueorfalse. 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.
- memoryMib Property Map
- The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
- vcpuCount Property Map
- Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- acceleratorCount Property Map
- Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum limits.
- acceleratorManufacturers List<String>
- List of accelerator manufacturer names. Default is any manufacturer.
- acceleratorNames List<String>
- List of accelerator names. Default is any acclerator.
- acceleratorTotal Property MapMemory Mib 
- Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- acceleratorTypes List<String>
- The accelerator types that must be on the instance type. Default is any accelerator type.
- allowedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- bareMetal String
- Indicate whether bare metal instace types should be included,excluded, orrequired. Default isexcluded.
- baselineEbs Property MapBandwidth Mbps 
- Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstablePerformance String
- Indicates whether burstable performance T instance types are included,excluded, orrequired. Default isexcluded.
- cpuManufacturers 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. 
- excludedInstance 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 specify- c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify- m5a.*, 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 specify- ExcludedInstanceTypes.
- instanceGenerations List<String>
- Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Valid values are currentandprevious. Default iscurrentandpreviousgeneration instance types.
- localStorage String
- Indicate whether instance types with local storage volumes are included,excluded, orrequired. Default isincluded.
- localStorage List<String>Types 
- List of local storage type names. Valid values are hddandssd. Default any storage type.
- maxSpot 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
- memoryGib Property MapPer Vcpu 
- Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- networkBandwidth Property MapGbps 
- The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
- networkInterface Property MapCount 
- Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- onDemand 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_typeto- vcpuor- memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
- requireHibernate BooleanSupport 
- Indicate whether instance types must support On-Demand Instance Hibernation, either trueorfalse. Default isfalse.
- spotMax 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. 
- totalLocal 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        
- AllocationStrategy string
- The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice,prioritized. Default:lowestPrice.
- CapacityReservation 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.
- MaxTotal stringPrice 
- The maximum amount per hour for On-Demand Instances that you're willing to pay.
- MinTarget 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_zoneorsingle_instance_type.
- SingleAvailability boolZone 
- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
- SingleInstance 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.
- AllocationStrategy string
- The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice,prioritized. Default:lowestPrice.
- CapacityReservation 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.
- MaxTotal stringPrice 
- The maximum amount per hour for On-Demand Instances that you're willing to pay.
- MinTarget 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_zoneorsingle_instance_type.
- SingleAvailability boolZone 
- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
- SingleInstance 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.
- allocationStrategy String
- The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice,prioritized. Default:lowestPrice.
- capacityReservation 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.
- maxTotal StringPrice 
- The maximum amount per hour for On-Demand Instances that you're willing to pay.
- minTarget 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_zoneorsingle_instance_type.
- singleAvailability BooleanZone 
- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance 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.
- allocationStrategy string
- The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice,prioritized. Default:lowestPrice.
- capacityReservation 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.
- maxTotal stringPrice 
- The maximum amount per hour for On-Demand Instances that you're willing to pay.
- minTarget 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_zoneorsingle_instance_type.
- singleAvailability booleanZone 
- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance 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_zoneorsingle_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.
- allocationStrategy String
- The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice,prioritized. Default:lowestPrice.
- capacityReservation Property MapOptions 
- The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
- maxTotal StringPrice 
- The maximum amount per hour for On-Demand Instances that you're willing to pay.
- minTarget 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_zoneorsingle_instance_type.
- singleAvailability BooleanZone 
- Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance 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              
- UsageStrategy string
- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values: use-capacity-reservations-first.
- UsageStrategy string
- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values: use-capacity-reservations-first.
- usageStrategy String
- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values: use-capacity-reservations-first.
- usageStrategy 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.
- usageStrategy String
- Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity. Valid values: use-capacity-reservations-first.
FleetSpotOptions, FleetSpotOptionsArgs      
- AllocationStrategy string
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-capacity-optimized. Default:lowestPrice.
- InstanceInterruption stringBehavior 
- Behavior when a Spot Instance is interrupted. Valid values: hibernate,stop,terminate. Default:terminate.
- InstancePools intTo Use Count 
- Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategyis set tolowestPrice. Default:1.
- MaintenanceStrategies 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.
- MaxTotal stringPrice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- MinTarget intCapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- SingleAvailability boolZone 
- Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
- SingleInstance boolType 
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
- AllocationStrategy string
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-capacity-optimized. Default:lowestPrice.
- InstanceInterruption stringBehavior 
- Behavior when a Spot Instance is interrupted. Valid values: hibernate,stop,terminate. Default:terminate.
- InstancePools intTo Use Count 
- Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategyis set tolowestPrice. Default:1.
- MaintenanceStrategies 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.
- MaxTotal stringPrice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- MinTarget intCapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- SingleAvailability boolZone 
- Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
- SingleInstance boolType 
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
- allocationStrategy String
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-capacity-optimized. Default:lowestPrice.
- instanceInterruption StringBehavior 
- Behavior when a Spot Instance is interrupted. Valid values: hibernate,stop,terminate. Default:terminate.
- instancePools IntegerTo Use Count 
- Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategyis set tolowestPrice. Default:1.
- maintenanceStrategies 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.
- maxTotal StringPrice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- minTarget IntegerCapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- singleAvailability BooleanZone 
- Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance BooleanType 
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
- allocationStrategy string
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-capacity-optimized. Default:lowestPrice.
- instanceInterruption stringBehavior 
- Behavior when a Spot Instance is interrupted. Valid values: hibernate,stop,terminate. Default:terminate.
- instancePools numberTo Use Count 
- Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategyis set tolowestPrice. Default:1.
- maintenanceStrategies 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.
- maxTotal stringPrice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- minTarget numberCapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- singleAvailability booleanZone 
- Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance booleanType 
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
- allocation_strategy str
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-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_strategyis 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.
- max_total_ strprice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- min_target_ intcapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- single_availability_ boolzone 
- Indicates that the fleet launches all Spot 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 Spot Instances in the fleet. Supported only for fleets of type instant.
- allocationStrategy String
- How to allocate the target capacity across the Spot pools. Valid values: diversified,lowestPrice,capacity-optimized,capacity-optimized-prioritizedandprice-capacity-optimized. Default:lowestPrice.
- instanceInterruption StringBehavior 
- Behavior when a Spot Instance is interrupted. Valid values: hibernate,stop,terminate. Default:terminate.
- instancePools NumberTo Use Count 
- Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategyis set tolowestPrice. Default:1.
- maintenanceStrategies Property Map
- Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
- maxTotal StringPrice 
- The maximum amount per hour for Spot Instances that you're willing to pay.
- minTarget NumberCapacity 
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances. Supported only for fleets of type instant.
- singleAvailability BooleanZone 
- Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type instant.
- singleInstance BooleanType 
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type instant.
FleetSpotOptionsMaintenanceStrategies, FleetSpotOptionsMaintenanceStrategiesArgs          
- CapacityRebalance FleetSpot Options Maintenance Strategies Capacity Rebalance 
- Nested argument containing the capacity rebalance for your fleet request. Defined below.
- CapacityRebalance FleetSpot Options Maintenance Strategies Capacity Rebalance 
- Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacityRebalance FleetSpot Options Maintenance Strategies Capacity Rebalance 
- Nested argument containing the capacity rebalance for your fleet request. Defined below.
- capacityRebalance 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.
- capacityRebalance Property Map
- Nested argument containing the capacity rebalance for your fleet request. Defined below.
FleetSpotOptionsMaintenanceStrategiesCapacityRebalance, FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs              
- ReplacementStrategy string
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- TerminationDelay int
- ReplacementStrategy string
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- TerminationDelay int
- replacementStrategy String
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- terminationDelay Integer
- replacementStrategy string
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- terminationDelay number
- replacement_strategy str
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- termination_delay int
- replacementStrategy String
- The replacement strategy to use. Only available for fleets of typeset tomaintain. Valid values:launch.
- terminationDelay Number
FleetTargetCapacitySpecification, FleetTargetCapacitySpecificationArgs        
- DefaultTarget stringCapacity Type 
- Default target capacity type. Valid values: on-demand,spot.
- TotalTarget intCapacity 
- The number of units to request, filled using default_target_capacity_type.
- OnDemand intTarget Capacity 
- The number of On-Demand units to request.
- SpotTarget intCapacity 
- The number of Spot units to request.
- TargetCapacity stringUnit Type 
- The unit for the target capacity.
If you specify target_capacity_unit_type,instance_requirementsmust be specified.
- DefaultTarget stringCapacity Type 
- Default target capacity type. Valid values: on-demand,spot.
- TotalTarget intCapacity 
- The number of units to request, filled using default_target_capacity_type.
- OnDemand intTarget Capacity 
- The number of On-Demand units to request.
- SpotTarget intCapacity 
- The number of Spot units to request.
- TargetCapacity stringUnit Type 
- The unit for the target capacity.
If you specify target_capacity_unit_type,instance_requirementsmust be specified.
- defaultTarget StringCapacity Type 
- Default target capacity type. Valid values: on-demand,spot.
- totalTarget IntegerCapacity 
- The number of units to request, filled using default_target_capacity_type.
- onDemand IntegerTarget Capacity 
- The number of On-Demand units to request.
- spotTarget IntegerCapacity 
- The number of Spot units to request.
- targetCapacity StringUnit Type 
- The unit for the target capacity.
If you specify target_capacity_unit_type,instance_requirementsmust be specified.
- defaultTarget stringCapacity Type 
- Default target capacity type. Valid values: on-demand,spot.
- totalTarget numberCapacity 
- The number of units to request, filled using default_target_capacity_type.
- onDemand numberTarget Capacity 
- The number of On-Demand units to request.
- spotTarget numberCapacity 
- The number of Spot units to request.
- targetCapacity stringUnit Type 
- The unit for the target capacity.
If you specify target_capacity_unit_type,instance_requirementsmust 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_requirementsmust be specified.
- defaultTarget StringCapacity Type 
- Default target capacity type. Valid values: on-demand,spot.
- totalTarget NumberCapacity 
- The number of units to request, filled using default_target_capacity_type.
- onDemand NumberTarget Capacity 
- The number of On-Demand units to request.
- spotTarget NumberCapacity 
- The number of Spot units to request.
- targetCapacity StringUnit Type 
- The unit for the target capacity.
If you specify target_capacity_unit_type,instance_requirementsmust 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 awsTerraform Provider.