1. Packages
  2. AWS
  3. API Docs
  4. ec2
  5. Fleet
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ec2.Fleet

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    public Fleet(String name, FleetArgs args)
    public Fleet(String name, FleetArgs args, CustomResourceOptions options)
    
    type: aws:ec2:Fleet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplefleetResourceResourceFromEc2fleet = new Aws.Ec2.Fleet("examplefleetResourceResourceFromEc2fleet", new()
    {
        LaunchTemplateConfigs = new[]
        {
            new Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs
            {
                LaunchTemplateSpecification = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs
                {
                    Version = "string",
                    LaunchTemplateId = "string",
                    LaunchTemplateName = "string",
                },
                Overrides = new[]
                {
                    new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideArgs
                    {
                        AvailabilityZone = "string",
                        InstanceRequirements = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs
                        {
                            MemoryMib = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs
                            {
                                Min = 0,
                                Max = 0,
                            },
                            VcpuCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs
                            {
                                Min = 0,
                                Max = 0,
                            },
                            LocalStorage = "string",
                            AcceleratorTypes = new[]
                            {
                                "string",
                            },
                            LocalStorageTypes = new[]
                            {
                                "string",
                            },
                            AllowedInstanceTypes = new[]
                            {
                                "string",
                            },
                            BareMetal = "string",
                            BaselineEbsBandwidthMbps = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            BurstablePerformance = "string",
                            CpuManufacturers = new[]
                            {
                                "string",
                            },
                            MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 0,
                            InstanceGenerations = new[]
                            {
                                "string",
                            },
                            AcceleratorManufacturers = new[]
                            {
                                "string",
                            },
                            AcceleratorTotalMemoryMib = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            ExcludedInstanceTypes = new[]
                            {
                                "string",
                            },
                            MemoryGibPerVcpu = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            AcceleratorNames = new[]
                            {
                                "string",
                            },
                            NetworkBandwidthGbps = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            NetworkInterfaceCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            OnDemandMaxPricePercentageOverLowestPrice = 0,
                            RequireHibernateSupport = false,
                            SpotMaxPricePercentageOverLowestPrice = 0,
                            TotalLocalStorageGb = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                            AcceleratorCount = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs
                            {
                                Max = 0,
                                Min = 0,
                            },
                        },
                        InstanceType = "string",
                        MaxPrice = "string",
                        Priority = 0,
                        SubnetId = "string",
                        WeightedCapacity = 0,
                    },
                },
            },
        },
        TargetCapacitySpecification = new Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs
        {
            DefaultTargetCapacityType = "string",
            TotalTargetCapacity = 0,
            OnDemandTargetCapacity = 0,
            SpotTargetCapacity = 0,
            TargetCapacityUnitType = "string",
        },
        ReplaceUnhealthyInstances = false,
        SpotOptions = new Aws.Ec2.Inputs.FleetSpotOptionsArgs
        {
            AllocationStrategy = "string",
            InstanceInterruptionBehavior = "string",
            InstancePoolsToUseCount = 0,
            MaintenanceStrategies = new Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategiesArgs
            {
                CapacityRebalance = new Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs
                {
                    ReplacementStrategy = "string",
                    TerminationDelay = 0,
                },
            },
        },
        FulfilledCapacity = 0,
        FulfilledOnDemandCapacity = 0,
        FleetInstanceSets = new[]
        {
            new Aws.Ec2.Inputs.FleetFleetInstanceSetArgs
            {
                InstanceIds = new[]
                {
                    "string",
                },
                InstanceType = "string",
                Lifecycle = "string",
                Platform = "string",
            },
        },
        OnDemandOptions = new Aws.Ec2.Inputs.FleetOnDemandOptionsArgs
        {
            AllocationStrategy = "string",
            CapacityReservationOptions = new Aws.Ec2.Inputs.FleetOnDemandOptionsCapacityReservationOptionsArgs
            {
                UsageStrategy = "string",
            },
            MaxTotalPrice = "string",
            MinTargetCapacity = 0,
            SingleAvailabilityZone = false,
            SingleInstanceType = false,
        },
        Context = "string",
        State = "string",
        Tags = 
        {
            { "string", "string" },
        },
        ExcessCapacityTerminationPolicy = "string",
        TerminateInstances = false,
        TerminateInstancesWithExpiration = false,
        Type = "string",
        ValidFrom = "string",
        ValidUntil = "string",
    });
    
    example, err := ec2.NewFleet(ctx, "examplefleetResourceResourceFromEc2fleet", &ec2.FleetArgs{
    	LaunchTemplateConfigs: ec2.FleetLaunchTemplateConfigArray{
    		&ec2.FleetLaunchTemplateConfigArgs{
    			LaunchTemplateSpecification: &ec2.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs{
    				Version:            pulumi.String("string"),
    				LaunchTemplateId:   pulumi.String("string"),
    				LaunchTemplateName: pulumi.String("string"),
    			},
    			Overrides: ec2.FleetLaunchTemplateConfigOverrideArray{
    				&ec2.FleetLaunchTemplateConfigOverrideArgs{
    					AvailabilityZone: pulumi.String("string"),
    					InstanceRequirements: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs{
    						MemoryMib: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs{
    							Min: pulumi.Int(0),
    							Max: pulumi.Int(0),
    						},
    						VcpuCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs{
    							Min: pulumi.Int(0),
    							Max: pulumi.Int(0),
    						},
    						LocalStorage: pulumi.String("string"),
    						AcceleratorTypes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						LocalStorageTypes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						AllowedInstanceTypes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						BareMetal: pulumi.String("string"),
    						BaselineEbsBandwidthMbps: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs{
    							Max: pulumi.Int(0),
    							Min: pulumi.Int(0),
    						},
    						BurstablePerformance: pulumi.String("string"),
    						CpuManufacturers: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: pulumi.Int(0),
    						InstanceGenerations: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						AcceleratorManufacturers: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						AcceleratorTotalMemoryMib: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs{
    							Max: pulumi.Int(0),
    							Min: pulumi.Int(0),
    						},
    						ExcludedInstanceTypes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						MemoryGibPerVcpu: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs{
    							Max: pulumi.Float64(0),
    							Min: pulumi.Float64(0),
    						},
    						AcceleratorNames: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						NetworkBandwidthGbps: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs{
    							Max: pulumi.Float64(0),
    							Min: pulumi.Float64(0),
    						},
    						NetworkInterfaceCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs{
    							Max: pulumi.Int(0),
    							Min: pulumi.Int(0),
    						},
    						OnDemandMaxPricePercentageOverLowestPrice: pulumi.Int(0),
    						RequireHibernateSupport:                   pulumi.Bool(false),
    						SpotMaxPricePercentageOverLowestPrice:     pulumi.Int(0),
    						TotalLocalStorageGb: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs{
    							Max: pulumi.Float64(0),
    							Min: pulumi.Float64(0),
    						},
    						AcceleratorCount: &ec2.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs{
    							Max: pulumi.Int(0),
    							Min: pulumi.Int(0),
    						},
    					},
    					InstanceType:     pulumi.String("string"),
    					MaxPrice:         pulumi.String("string"),
    					Priority:         pulumi.Float64(0),
    					SubnetId:         pulumi.String("string"),
    					WeightedCapacity: pulumi.Float64(0),
    				},
    			},
    		},
    	},
    	TargetCapacitySpecification: &ec2.FleetTargetCapacitySpecificationArgs{
    		DefaultTargetCapacityType: pulumi.String("string"),
    		TotalTargetCapacity:       pulumi.Int(0),
    		OnDemandTargetCapacity:    pulumi.Int(0),
    		SpotTargetCapacity:        pulumi.Int(0),
    		TargetCapacityUnitType:    pulumi.String("string"),
    	},
    	ReplaceUnhealthyInstances: pulumi.Bool(false),
    	SpotOptions: &ec2.FleetSpotOptionsArgs{
    		AllocationStrategy:           pulumi.String("string"),
    		InstanceInterruptionBehavior: pulumi.String("string"),
    		InstancePoolsToUseCount:      pulumi.Int(0),
    		MaintenanceStrategies: &ec2.FleetSpotOptionsMaintenanceStrategiesArgs{
    			CapacityRebalance: &ec2.FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs{
    				ReplacementStrategy: pulumi.String("string"),
    				TerminationDelay:    pulumi.Int(0),
    			},
    		},
    	},
    	FulfilledCapacity:         pulumi.Float64(0),
    	FulfilledOnDemandCapacity: pulumi.Float64(0),
    	FleetInstanceSets: ec2.FleetFleetInstanceSetArray{
    		&ec2.FleetFleetInstanceSetArgs{
    			InstanceIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			InstanceType: pulumi.String("string"),
    			Lifecycle:    pulumi.String("string"),
    			Platform:     pulumi.String("string"),
    		},
    	},
    	OnDemandOptions: &ec2.FleetOnDemandOptionsArgs{
    		AllocationStrategy: pulumi.String("string"),
    		CapacityReservationOptions: &ec2.FleetOnDemandOptionsCapacityReservationOptionsArgs{
    			UsageStrategy: pulumi.String("string"),
    		},
    		MaxTotalPrice:          pulumi.String("string"),
    		MinTargetCapacity:      pulumi.Int(0),
    		SingleAvailabilityZone: pulumi.Bool(false),
    		SingleInstanceType:     pulumi.Bool(false),
    	},
    	Context:    pulumi.String("string"),
    	FleetState: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ExcessCapacityTerminationPolicy:  pulumi.String("string"),
    	TerminateInstances:               pulumi.Bool(false),
    	TerminateInstancesWithExpiration: pulumi.Bool(false),
    	Type:                             pulumi.String("string"),
    	ValidFrom:                        pulumi.String("string"),
    	ValidUntil:                       pulumi.String("string"),
    })
    
    var examplefleetResourceResourceFromEc2fleet = new Fleet("examplefleetResourceResourceFromEc2fleet", FleetArgs.builder()
        .launchTemplateConfigs(FleetLaunchTemplateConfigArgs.builder()
            .launchTemplateSpecification(FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs.builder()
                .version("string")
                .launchTemplateId("string")
                .launchTemplateName("string")
                .build())
            .overrides(FleetLaunchTemplateConfigOverrideArgs.builder()
                .availabilityZone("string")
                .instanceRequirements(FleetLaunchTemplateConfigOverrideInstanceRequirementsArgs.builder()
                    .memoryMib(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs.builder()
                        .min(0)
                        .max(0)
                        .build())
                    .vcpuCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs.builder()
                        .min(0)
                        .max(0)
                        .build())
                    .localStorage("string")
                    .acceleratorTypes("string")
                    .localStorageTypes("string")
                    .allowedInstanceTypes("string")
                    .bareMetal("string")
                    .baselineEbsBandwidthMbps(FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .burstablePerformance("string")
                    .cpuManufacturers("string")
                    .maxSpotPriceAsPercentageOfOptimalOnDemandPrice(0)
                    .instanceGenerations("string")
                    .acceleratorManufacturers("string")
                    .acceleratorTotalMemoryMib(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .excludedInstanceTypes("string")
                    .memoryGibPerVcpu(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .acceleratorNames("string")
                    .networkBandwidthGbps(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .networkInterfaceCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .onDemandMaxPricePercentageOverLowestPrice(0)
                    .requireHibernateSupport(false)
                    .spotMaxPricePercentageOverLowestPrice(0)
                    .totalLocalStorageGb(FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .acceleratorCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs.builder()
                        .max(0)
                        .min(0)
                        .build())
                    .build())
                .instanceType("string")
                .maxPrice("string")
                .priority(0)
                .subnetId("string")
                .weightedCapacity(0)
                .build())
            .build())
        .targetCapacitySpecification(FleetTargetCapacitySpecificationArgs.builder()
            .defaultTargetCapacityType("string")
            .totalTargetCapacity(0)
            .onDemandTargetCapacity(0)
            .spotTargetCapacity(0)
            .targetCapacityUnitType("string")
            .build())
        .replaceUnhealthyInstances(false)
        .spotOptions(FleetSpotOptionsArgs.builder()
            .allocationStrategy("string")
            .instanceInterruptionBehavior("string")
            .instancePoolsToUseCount(0)
            .maintenanceStrategies(FleetSpotOptionsMaintenanceStrategiesArgs.builder()
                .capacityRebalance(FleetSpotOptionsMaintenanceStrategiesCapacityRebalanceArgs.builder()
                    .replacementStrategy("string")
                    .terminationDelay(0)
                    .build())
                .build())
            .build())
        .fulfilledCapacity(0)
        .fulfilledOnDemandCapacity(0)
        .fleetInstanceSets(FleetFleetInstanceSetArgs.builder()
            .instanceIds("string")
            .instanceType("string")
            .lifecycle("string")
            .platform("string")
            .build())
        .onDemandOptions(FleetOnDemandOptionsArgs.builder()
            .allocationStrategy("string")
            .capacityReservationOptions(FleetOnDemandOptionsCapacityReservationOptionsArgs.builder()
                .usageStrategy("string")
                .build())
            .maxTotalPrice("string")
            .minTargetCapacity(0)
            .singleAvailabilityZone(false)
            .singleInstanceType(false)
            .build())
        .context("string")
        .fleetState("string")
        .tags(Map.of("string", "string"))
        .excessCapacityTerminationPolicy("string")
        .terminateInstances(false)
        .terminateInstancesWithExpiration(false)
        .type("string")
        .validFrom("string")
        .validUntil("string")
        .build());
    
    examplefleet_resource_resource_from_ec2fleet = aws.ec2.Fleet("examplefleetResourceResourceFromEc2fleet",
        launch_template_configs=[{
            "launch_template_specification": {
                "version": "string",
                "launch_template_id": "string",
                "launch_template_name": "string",
            },
            "overrides": [{
                "availability_zone": "string",
                "instance_requirements": {
                    "memory_mib": {
                        "min": 0,
                        "max": 0,
                    },
                    "vcpu_count": {
                        "min": 0,
                        "max": 0,
                    },
                    "local_storage": "string",
                    "accelerator_types": ["string"],
                    "local_storage_types": ["string"],
                    "allowed_instance_types": ["string"],
                    "bare_metal": "string",
                    "baseline_ebs_bandwidth_mbps": {
                        "max": 0,
                        "min": 0,
                    },
                    "burstable_performance": "string",
                    "cpu_manufacturers": ["string"],
                    "max_spot_price_as_percentage_of_optimal_on_demand_price": 0,
                    "instance_generations": ["string"],
                    "accelerator_manufacturers": ["string"],
                    "accelerator_total_memory_mib": {
                        "max": 0,
                        "min": 0,
                    },
                    "excluded_instance_types": ["string"],
                    "memory_gib_per_vcpu": {
                        "max": 0,
                        "min": 0,
                    },
                    "accelerator_names": ["string"],
                    "network_bandwidth_gbps": {
                        "max": 0,
                        "min": 0,
                    },
                    "network_interface_count": {
                        "max": 0,
                        "min": 0,
                    },
                    "on_demand_max_price_percentage_over_lowest_price": 0,
                    "require_hibernate_support": False,
                    "spot_max_price_percentage_over_lowest_price": 0,
                    "total_local_storage_gb": {
                        "max": 0,
                        "min": 0,
                    },
                    "accelerator_count": {
                        "max": 0,
                        "min": 0,
                    },
                },
                "instance_type": "string",
                "max_price": "string",
                "priority": 0,
                "subnet_id": "string",
                "weighted_capacity": 0,
            }],
        }],
        target_capacity_specification={
            "default_target_capacity_type": "string",
            "total_target_capacity": 0,
            "on_demand_target_capacity": 0,
            "spot_target_capacity": 0,
            "target_capacity_unit_type": "string",
        },
        replace_unhealthy_instances=False,
        spot_options={
            "allocation_strategy": "string",
            "instance_interruption_behavior": "string",
            "instance_pools_to_use_count": 0,
            "maintenance_strategies": {
                "capacity_rebalance": {
                    "replacement_strategy": "string",
                    "termination_delay": 0,
                },
            },
        },
        fulfilled_capacity=0,
        fulfilled_on_demand_capacity=0,
        fleet_instance_sets=[{
            "instance_ids": ["string"],
            "instance_type": "string",
            "lifecycle": "string",
            "platform": "string",
        }],
        on_demand_options={
            "allocation_strategy": "string",
            "capacity_reservation_options": {
                "usage_strategy": "string",
            },
            "max_total_price": "string",
            "min_target_capacity": 0,
            "single_availability_zone": False,
            "single_instance_type": False,
        },
        context="string",
        fleet_state="string",
        tags={
            "string": "string",
        },
        excess_capacity_termination_policy="string",
        terminate_instances=False,
        terminate_instances_with_expiration=False,
        type="string",
        valid_from="string",
        valid_until="string")
    
    const examplefleetResourceResourceFromEc2fleet = new aws.ec2.Fleet("examplefleetResourceResourceFromEc2fleet", {
        launchTemplateConfigs: [{
            launchTemplateSpecification: {
                version: "string",
                launchTemplateId: "string",
                launchTemplateName: "string",
            },
            overrides: [{
                availabilityZone: "string",
                instanceRequirements: {
                    memoryMib: {
                        min: 0,
                        max: 0,
                    },
                    vcpuCount: {
                        min: 0,
                        max: 0,
                    },
                    localStorage: "string",
                    acceleratorTypes: ["string"],
                    localStorageTypes: ["string"],
                    allowedInstanceTypes: ["string"],
                    bareMetal: "string",
                    baselineEbsBandwidthMbps: {
                        max: 0,
                        min: 0,
                    },
                    burstablePerformance: "string",
                    cpuManufacturers: ["string"],
                    maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0,
                    instanceGenerations: ["string"],
                    acceleratorManufacturers: ["string"],
                    acceleratorTotalMemoryMib: {
                        max: 0,
                        min: 0,
                    },
                    excludedInstanceTypes: ["string"],
                    memoryGibPerVcpu: {
                        max: 0,
                        min: 0,
                    },
                    acceleratorNames: ["string"],
                    networkBandwidthGbps: {
                        max: 0,
                        min: 0,
                    },
                    networkInterfaceCount: {
                        max: 0,
                        min: 0,
                    },
                    onDemandMaxPricePercentageOverLowestPrice: 0,
                    requireHibernateSupport: false,
                    spotMaxPricePercentageOverLowestPrice: 0,
                    totalLocalStorageGb: {
                        max: 0,
                        min: 0,
                    },
                    acceleratorCount: {
                        max: 0,
                        min: 0,
                    },
                },
                instanceType: "string",
                maxPrice: "string",
                priority: 0,
                subnetId: "string",
                weightedCapacity: 0,
            }],
        }],
        targetCapacitySpecification: {
            defaultTargetCapacityType: "string",
            totalTargetCapacity: 0,
            onDemandTargetCapacity: 0,
            spotTargetCapacity: 0,
            targetCapacityUnitType: "string",
        },
        replaceUnhealthyInstances: false,
        spotOptions: {
            allocationStrategy: "string",
            instanceInterruptionBehavior: "string",
            instancePoolsToUseCount: 0,
            maintenanceStrategies: {
                capacityRebalance: {
                    replacementStrategy: "string",
                    terminationDelay: 0,
                },
            },
        },
        fulfilledCapacity: 0,
        fulfilledOnDemandCapacity: 0,
        fleetInstanceSets: [{
            instanceIds: ["string"],
            instanceType: "string",
            lifecycle: "string",
            platform: "string",
        }],
        onDemandOptions: {
            allocationStrategy: "string",
            capacityReservationOptions: {
                usageStrategy: "string",
            },
            maxTotalPrice: "string",
            minTargetCapacity: 0,
            singleAvailabilityZone: false,
            singleInstanceType: false,
        },
        context: "string",
        fleetState: "string",
        tags: {
            string: "string",
        },
        excessCapacityTerminationPolicy: "string",
        terminateInstances: false,
        terminateInstancesWithExpiration: false,
        type: "string",
        validFrom: "string",
        validUntil: "string",
    });
    
    type: aws:ec2:Fleet
    properties:
        context: string
        excessCapacityTerminationPolicy: string
        fleetInstanceSets:
            - instanceIds:
                - string
              instanceType: string
              lifecycle: string
              platform: string
        fleetState: string
        fulfilledCapacity: 0
        fulfilledOnDemandCapacity: 0
        launchTemplateConfigs:
            - launchTemplateSpecification:
                launchTemplateId: string
                launchTemplateName: string
                version: string
              overrides:
                - availabilityZone: string
                  instanceRequirements:
                    acceleratorCount:
                        max: 0
                        min: 0
                    acceleratorManufacturers:
                        - string
                    acceleratorNames:
                        - string
                    acceleratorTotalMemoryMib:
                        max: 0
                        min: 0
                    acceleratorTypes:
                        - string
                    allowedInstanceTypes:
                        - string
                    bareMetal: string
                    baselineEbsBandwidthMbps:
                        max: 0
                        min: 0
                    burstablePerformance: string
                    cpuManufacturers:
                        - string
                    excludedInstanceTypes:
                        - string
                    instanceGenerations:
                        - string
                    localStorage: string
                    localStorageTypes:
                        - string
                    maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0
                    memoryGibPerVcpu:
                        max: 0
                        min: 0
                    memoryMib:
                        max: 0
                        min: 0
                    networkBandwidthGbps:
                        max: 0
                        min: 0
                    networkInterfaceCount:
                        max: 0
                        min: 0
                    onDemandMaxPricePercentageOverLowestPrice: 0
                    requireHibernateSupport: false
                    spotMaxPricePercentageOverLowestPrice: 0
                    totalLocalStorageGb:
                        max: 0
                        min: 0
                    vcpuCount:
                        max: 0
                        min: 0
                  instanceType: string
                  maxPrice: string
                  priority: 0
                  subnetId: string
                  weightedCapacity: 0
        onDemandOptions:
            allocationStrategy: string
            capacityReservationOptions:
                usageStrategy: string
            maxTotalPrice: string
            minTargetCapacity: 0
            singleAvailabilityZone: false
            singleInstanceType: false
        replaceUnhealthyInstances: false
        spotOptions:
            allocationStrategy: string
            instanceInterruptionBehavior: string
            instancePoolsToUseCount: 0
            maintenanceStrategies:
                capacityRebalance:
                    replacementStrategy: string
                    terminationDelay: 0
        tags:
            string: string
        targetCapacitySpecification:
            defaultTargetCapacityType: string
            onDemandTargetCapacity: 0
            spotTargetCapacity: 0
            targetCapacityUnitType: string
            totalTargetCapacity: 0
        terminateInstances: false
        terminateInstancesWithExpiration: false
        type: string
        validFrom: string
        validUntil: string
    

    Fleet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Fleet resource accepts the following input properties:

    LaunchTemplateConfigs List<FleetLaunchTemplateConfig>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    TargetCapacitySpecification FleetTargetCapacitySpecification
    Nested argument containing target capacity configurations. Defined below.
    Context string
    Reserved.
    ExcessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    FleetInstanceSets List<FleetFleetInstanceSet>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    FulfilledCapacity double
    The number of units fulfilled by this request compared to the set target capacity.
    FulfilledOnDemandCapacity double
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    OnDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    ReplaceUnhealthyInstances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    SpotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    State string
    The state of the EC2 Fleet.
    Tags Dictionary<string, string>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TerminateInstances bool
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    TerminateInstancesWithExpiration bool
    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 to maintain.
    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.
    LaunchTemplateConfigs []FleetLaunchTemplateConfigArgs
    Nested argument containing EC2 Launch Template configurations. Defined below.
    TargetCapacitySpecification FleetTargetCapacitySpecificationArgs
    Nested argument containing target capacity configurations. Defined below.
    Context string
    Reserved.
    ExcessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    FleetInstanceSets []FleetFleetInstanceSetArgs
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    FleetState string
    The state of the EC2 Fleet.
    FulfilledCapacity float64
    The number of units fulfilled by this request compared to the set target capacity.
    FulfilledOnDemandCapacity float64
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    OnDemandOptions FleetOnDemandOptionsArgs
    Nested argument containing On-Demand configurations. Defined below.
    ReplaceUnhealthyInstances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    SpotOptions FleetSpotOptionsArgs
    Nested argument containing Spot configurations. Defined below.
    Tags map[string]string
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TerminateInstances bool
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    TerminateInstancesWithExpiration bool
    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 to maintain.
    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.
    launchTemplateConfigs List<FleetLaunchTemplateConfig>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    targetCapacitySpecification FleetTargetCapacitySpecification
    Nested argument containing target capacity configurations. Defined below.
    context String
    Reserved.
    excessCapacityTerminationPolicy String
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets List<FleetFleetInstanceSet>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState String
    The state of the EC2 Fleet.
    fulfilledCapacity Double
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity Double
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    onDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances Boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    tags Map<String,String>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    terminateInstances Boolean
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    terminateInstancesWithExpiration Boolean
    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 to maintain.
    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.
    launchTemplateConfigs FleetLaunchTemplateConfig[]
    Nested argument containing EC2 Launch Template configurations. Defined below.
    targetCapacitySpecification FleetTargetCapacitySpecification
    Nested argument containing target capacity configurations. Defined below.
    context string
    Reserved.
    excessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets FleetFleetInstanceSet[]
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState string
    The state of the EC2 Fleet.
    fulfilledCapacity number
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity number
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    onDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    tags {[key: string]: string}
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    terminateInstances boolean
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    terminateInstancesWithExpiration boolean
    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 to maintain.
    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_configs Sequence[FleetLaunchTemplateConfigArgs]
    Nested argument containing EC2 Launch Template configurations. Defined below.
    target_capacity_specification FleetTargetCapacitySpecificationArgs
    Nested argument containing target capacity configurations. Defined below.
    context str
    Reserved.
    excess_capacity_termination_policy str
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleet_instance_sets Sequence[FleetFleetInstanceSetArgs]
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    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_demand_capacity float
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    on_demand_options FleetOnDemandOptionsArgs
    Nested argument containing On-Demand configurations. Defined below.
    replace_unhealthy_instances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spot_options FleetSpotOptionsArgs
    Nested argument containing Spot configurations. Defined below.
    tags Mapping[str, str]
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    terminate_instances bool
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    terminate_instances_with_expiration bool
    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 to maintain.
    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.
    launchTemplateConfigs List<Property Map>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    targetCapacitySpecification Property Map
    Nested argument containing target capacity configurations. Defined below.
    context String
    Reserved.
    excessCapacityTerminationPolicy String
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets List<Property Map>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState String
    The state of the EC2 Fleet.
    fulfilledCapacity Number
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity Number
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    onDemandOptions Property Map
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances Boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions Property Map
    Nested argument containing Spot configurations. Defined below.
    tags Map<String>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    terminateInstances Boolean
    Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.
    terminateInstancesWithExpiration Boolean
    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 to maintain.
    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:

    Arn string
    The ARN of the fleet
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The ARN of the fleet
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the fleet
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The ARN of the fleet
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The ARN of the fleet
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the fleet
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing Fleet Resource

    Get an existing Fleet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FleetState, opts?: CustomResourceOptions): Fleet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            context: Optional[str] = None,
            excess_capacity_termination_policy: Optional[str] = None,
            fleet_instance_sets: Optional[Sequence[FleetFleetInstanceSetArgs]] = None,
            fleet_state: Optional[str] = None,
            fulfilled_capacity: Optional[float] = None,
            fulfilled_on_demand_capacity: Optional[float] = None,
            launch_template_configs: Optional[Sequence[FleetLaunchTemplateConfigArgs]] = None,
            on_demand_options: Optional[FleetOnDemandOptionsArgs] = None,
            replace_unhealthy_instances: Optional[bool] = None,
            spot_options: Optional[FleetSpotOptionsArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            target_capacity_specification: Optional[FleetTargetCapacitySpecificationArgs] = None,
            terminate_instances: Optional[bool] = None,
            terminate_instances_with_expiration: Optional[bool] = None,
            type: Optional[str] = None,
            valid_from: Optional[str] = None,
            valid_until: Optional[str] = None) -> Fleet
    func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
    public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
    public static Fleet get(String name, Output<String> id, FleetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The ARN of the fleet
    Context string
    Reserved.
    ExcessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    FleetInstanceSets List<FleetFleetInstanceSet>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    FulfilledCapacity double
    The number of units fulfilled by this request compared to the set target capacity.
    FulfilledOnDemandCapacity double
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    LaunchTemplateConfigs List<FleetLaunchTemplateConfig>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    OnDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    ReplaceUnhealthyInstances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    SpotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    State string
    The state of the EC2 Fleet.
    Tags Dictionary<string, string>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TargetCapacitySpecification FleetTargetCapacitySpecification
    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.
    TerminateInstancesWithExpiration bool
    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 to maintain.
    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.
    ExcessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    FleetInstanceSets []FleetFleetInstanceSetArgs
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    FleetState string
    The state of the EC2 Fleet.
    FulfilledCapacity float64
    The number of units fulfilled by this request compared to the set target capacity.
    FulfilledOnDemandCapacity float64
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    LaunchTemplateConfigs []FleetLaunchTemplateConfigArgs
    Nested argument containing EC2 Launch Template configurations. Defined below.
    OnDemandOptions FleetOnDemandOptionsArgs
    Nested argument containing On-Demand configurations. Defined below.
    ReplaceUnhealthyInstances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    SpotOptions FleetSpotOptionsArgs
    Nested argument containing Spot configurations. Defined below.
    Tags map[string]string
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TargetCapacitySpecification FleetTargetCapacitySpecificationArgs
    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.
    TerminateInstancesWithExpiration bool
    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 to maintain.
    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.
    excessCapacityTerminationPolicy String
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets List<FleetFleetInstanceSet>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState String
    The state of the EC2 Fleet.
    fulfilledCapacity Double
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity Double
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    launchTemplateConfigs List<FleetLaunchTemplateConfig>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    onDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances Boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    tags Map<String,String>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    targetCapacitySpecification FleetTargetCapacitySpecification
    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.
    terminateInstancesWithExpiration Boolean
    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 to maintain.
    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.
    excessCapacityTerminationPolicy string
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets FleetFleetInstanceSet[]
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState string
    The state of the EC2 Fleet.
    fulfilledCapacity number
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity number
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    launchTemplateConfigs FleetLaunchTemplateConfig[]
    Nested argument containing EC2 Launch Template configurations. Defined below.
    onDemandOptions FleetOnDemandOptions
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions FleetSpotOptions
    Nested argument containing Spot configurations. Defined below.
    tags {[key: string]: string}
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    targetCapacitySpecification FleetTargetCapacitySpecification
    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.
    terminateInstancesWithExpiration boolean
    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 to maintain.
    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_termination_policy str
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleet_instance_sets Sequence[FleetFleetInstanceSetArgs]
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    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_demand_capacity float
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    launch_template_configs Sequence[FleetLaunchTemplateConfigArgs]
    Nested argument containing EC2 Launch Template configurations. Defined below.
    on_demand_options FleetOnDemandOptionsArgs
    Nested argument containing On-Demand configurations. Defined below.
    replace_unhealthy_instances bool
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spot_options FleetSpotOptionsArgs
    Nested argument containing Spot configurations. Defined below.
    tags Mapping[str, str]
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    target_capacity_specification FleetTargetCapacitySpecificationArgs
    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_with_expiration bool
    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 to maintain.
    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.
    excessCapacityTerminationPolicy String
    Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.
    fleetInstanceSets List<Property Map>
    Information about the instances that were launched by the fleet. Available only when type is set to instant.
    fleetState String
    The state of the EC2 Fleet.
    fulfilledCapacity Number
    The number of units fulfilled by this request compared to the set target capacity.
    fulfilledOnDemandCapacity Number
    The number of units fulfilled by this request compared to the set target On-Demand capacity.
    launchTemplateConfigs List<Property Map>
    Nested argument containing EC2 Launch Template configurations. Defined below.
    onDemandOptions Property Map
    Nested argument containing On-Demand configurations. Defined below.
    replaceUnhealthyInstances Boolean
    Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.
    spotOptions Property Map
    Nested argument containing Spot configurations. Defined below.
    tags Map<String>
    Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    targetCapacitySpecification Property Map
    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.
    terminateInstancesWithExpiration Boolean
    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 to maintain.
    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 Windows for 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 Windows for 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 Windows for 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 Windows for Windows instances. Otherwise, the value is blank.
    instance_ids Sequence[str]
    The IDs of the instances.
    instance_type str
    The instance type.
    lifecycle str
    Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
    platform str
    The value is Windows for Windows instances. Otherwise, the value is blank.
    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 Windows for Windows instances. Otherwise, the value is blank.

    FleetLaunchTemplateConfig, FleetLaunchTemplateConfigArgs

    LaunchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification
    Nested argument containing EC2 Launch Template to use. Defined below.
    Overrides List<FleetLaunchTemplateConfigOverride>
    Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
    LaunchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification
    Nested argument containing EC2 Launch Template to use. Defined below.
    Overrides []FleetLaunchTemplateConfigOverride
    Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
    launchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification
    Nested argument containing EC2 Launch Template to use. Defined below.
    overrides List<FleetLaunchTemplateConfigOverride>
    Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
    launchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification
    Nested argument containing EC2 Launch Template to use. Defined below.
    overrides FleetLaunchTemplateConfigOverride[]
    Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
    launch_template_specification FleetLaunchTemplateConfigLaunchTemplateSpecification
    Nested argument containing EC2 Launch Template to use. Defined below.
    overrides Sequence[FleetLaunchTemplateConfigOverride]
    Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
    launchTemplateSpecification Property Map
    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.
    LaunchTemplateId string
    The ID of the launch template.
    LaunchTemplateName string
    The name of the launch template.
    Version string
    The launch template version number, $Latest, or $Default.
    LaunchTemplateId string
    The ID of the launch template.
    LaunchTemplateName string
    The name of the launch template.
    version String
    The launch template version number, $Latest, or $Default.
    launchTemplateId String
    The ID of the launch template.
    launchTemplateName String
    The name of the launch template.
    version string
    The launch template version number, $Latest, or $Default.
    launchTemplateId string
    The ID of the launch template.
    launchTemplateName string
    The name of the launch template.
    version str
    The launch template version number, $Latest, or $Default.
    launch_template_id str
    The ID of the launch template.
    launch_template_name str
    The name of the launch template.
    version String
    The launch template version number, $Latest, or $Default.
    launchTemplateId String
    The ID of the launch template.
    launchTemplateName String
    The name of the launch template.

    FleetLaunchTemplateConfigOverride, FleetLaunchTemplateConfigOverrideArgs

    AvailabilityZone string
    Availability Zone in which to launch the instances.
    InstanceRequirements FleetLaunchTemplateConfigOverrideInstanceRequirements
    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_options allocation_strategy is set to prioritized, 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 FleetLaunchTemplateConfigOverrideInstanceRequirements
    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_options allocation_strategy is set to prioritized, 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 FleetLaunchTemplateConfigOverrideInstanceRequirements
    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_options allocation_strategy is set to prioritized, 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 FleetLaunchTemplateConfigOverrideInstanceRequirements
    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_options allocation_strategy is set to prioritized, 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 FleetLaunchTemplateConfigOverrideInstanceRequirements
    Override the instance type in the Launch Template with instance types that satisfy the requirements.
    instance_type str
    Instance type.
    max_price str
    Maximum price per unit hour that you are willing to pay for a Spot Instance.
    priority float
    Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, 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_options allocation_strategy is set to prioritized, 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 FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib
    The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
    VcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount
    Block describing the minimum and maximum number of vCPUs. Default is no maximum.
    AcceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount
    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.
    AcceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib
    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.
    AllowedInstanceTypes List<string>

    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, or required. Default is excluded.
    BaselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps
    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, or required. Default is excluded.
    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.

    ExcludedInstanceTypes List<string>

    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 current and previous. Default is current and previous generation instance types.
    LocalStorage string
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    LocalStorageTypes List<string>
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    MaxSpotPriceAsPercentageOfOptimalOnDemandPrice int
    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
    MemoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    NetworkBandwidthGbps FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    NetworkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    OnDemandMaxPricePercentageOverLowestPrice int

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    RequireHibernateSupport bool
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    SpotMaxPricePercentageOverLowestPrice int

    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.

    TotalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb
    Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
    MemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib
    The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
    VcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount
    Block describing the minimum and maximum number of vCPUs. Default is no maximum.
    AcceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount
    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.
    AcceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib
    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.
    AllowedInstanceTypes []string

    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, or required. Default is excluded.
    BaselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps
    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, or required. Default is excluded.
    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.

    ExcludedInstanceTypes []string

    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 current and previous. Default is current and previous generation instance types.
    LocalStorage string
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    LocalStorageTypes []string
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    MaxSpotPriceAsPercentageOfOptimalOnDemandPrice int
    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
    MemoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    NetworkBandwidthGbps FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    NetworkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    OnDemandMaxPricePercentageOverLowestPrice int

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    RequireHibernateSupport bool
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    SpotMaxPricePercentageOverLowestPrice int

    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.

    TotalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb
    Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
    memoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib
    The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
    vcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount
    Block describing the minimum and maximum number of vCPUs. Default is no maximum.
    acceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount
    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.
    acceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib
    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.
    allowedInstanceTypes List<String>

    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, or required. Default is excluded.
    baselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps
    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, or required. Default is excluded.
    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.

    excludedInstanceTypes List<String>

    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 current and previous. Default is current and previous generation instance types.
    localStorage String
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    localStorageTypes List<String>
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    maxSpotPriceAsPercentageOfOptimalOnDemandPrice Integer
    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
    memoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    networkBandwidthGbps FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    networkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    onDemandMaxPricePercentageOverLowestPrice Integer

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    requireHibernateSupport Boolean
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    spotMaxPricePercentageOverLowestPrice Integer

    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.

    totalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb
    Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
    memoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib
    The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
    vcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount
    Block describing the minimum and maximum number of vCPUs. Default is no maximum.
    acceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount
    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.
    acceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib
    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.
    allowedInstanceTypes string[]

    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, or required. Default is excluded.
    baselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps
    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, or required. Default is excluded.
    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.

    excludedInstanceTypes string[]

    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 current and previous. Default is current and previous generation instance types.
    localStorage string
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    localStorageTypes string[]
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    maxSpotPriceAsPercentageOfOptimalOnDemandPrice number
    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
    memoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    networkBandwidthGbps FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    networkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    onDemandMaxPricePercentageOverLowestPrice number

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    requireHibernateSupport boolean
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    spotMaxPricePercentageOverLowestPrice number

    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.

    totalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb
    Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
    memory_mib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib
    The minimum and maximum amount of memory per vCPU, in GiB. Default is no minimum or maximum limits.
    vcpu_count FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount
    Block describing the minimum and maximum number of vCPUs. Default is no maximum.
    accelerator_count FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount
    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_memory_mib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib
    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_types Sequence[str]

    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, or required. Default is excluded.
    baseline_ebs_bandwidth_mbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps
    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, or required. Default is excluded.
    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_types Sequence[str]

    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 current and previous. Default is current and previous generation instance types.
    local_storage str
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    local_storage_types Sequence[str]
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    max_spot_price_as_percentage_of_optimal_on_demand_price int
    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_per_vcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    network_bandwidth_gbps FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    network_interface_count FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    on_demand_max_price_percentage_over_lowest_price int

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    require_hibernate_support bool
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    spot_max_price_percentage_over_lowest_price int

    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_storage_gb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb
    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.
    acceleratorTotalMemoryMib Property Map
    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.
    allowedInstanceTypes List<String>

    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, or required. Default is excluded.
    baselineEbsBandwidthMbps Property Map
    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, or required. Default is excluded.
    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.

    excludedInstanceTypes List<String>

    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 current and previous. Default is current and previous generation instance types.
    localStorage String
    Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
    localStorageTypes List<String>
    List of local storage type names. Valid values are hdd and ssd. Default any storage type.
    maxSpotPriceAsPercentageOfOptimalOnDemandPrice Number
    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
    memoryGibPerVcpu Property Map
    Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
    networkBandwidthGbps Property Map
    The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is No minimum or maximum.
    networkInterfaceCount Property Map
    Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
    onDemandMaxPricePercentageOverLowestPrice Number

    The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

    If you set target_capacity_unit_type 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.

    requireHibernateSupport Boolean
    Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
    spotMaxPricePercentageOverLowestPrice Number

    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.

    totalLocalStorageGb Property Map
    Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCountArgs

    Max int
    Maximum. Set to 0 to exclude instance types with accelerators.
    Min int
    Minimum.
    Max int
    Maximum. Set to 0 to exclude instance types with accelerators.
    Min int
    Minimum.
    max Integer
    Maximum. Set to 0 to exclude instance types with accelerators.
    min Integer
    Minimum.
    max number
    Maximum. Set to 0 to exclude instance types with accelerators.
    min number
    Minimum.
    max int
    Maximum. Set to 0 to exclude instance types with accelerators.
    min int
    Minimum.
    max Number
    Maximum. Set to 0 to exclude instance types with accelerators.
    min Number
    Minimum.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib, FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMibArgs

    Max int
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    Min int
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.
    Max int
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    Min int
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.
    max Integer
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    min Integer
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.
    max number
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    min number
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.
    max int
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    min int
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.
    max Number
    The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.
    min Number
    The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps, FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbpsArgs

    Max int
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    Min int
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..
    Max int
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    Min int
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..
    max Integer
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    min Integer
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..
    max number
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    min number
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..
    max int
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    min int
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..
    max Number
    The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter..
    min Number
    The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter..

    FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu, FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpuArgs

    Max double
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    Min double
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.
    Max float64
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    Min float64
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.
    max Double
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    min Double
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.
    max number
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    min number
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.
    max float
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    min float
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.
    max Number
    The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.
    min Number
    The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib, FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMibArgs

    Min int
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    Max int
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
    Min int
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    Max int
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
    min Integer
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    max Integer
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
    min number
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    max number
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
    min int
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    max int
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
    min Number
    The minimum amount of memory, in MiB. To specify no minimum limit, specify 0.
    max Number
    The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbps, FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkBandwidthGbpsArgs

    Max double
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    Min double
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.
    Max float64
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    Min float64
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.
    max Double
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    min Double
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.
    max number
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    min number
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.
    max float
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    min float
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.
    max Number
    The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.
    min Number
    The minimum amount of network bandwidth, in Gbps. To specify no minimum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCountArgs

    Max int
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    Min int
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.
    Max int
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    Min int
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.
    max Integer
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    min Integer
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.
    max number
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    min number
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.
    max int
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    min int
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.
    max Number
    The maximum number of network interfaces. To specify no maximum limit, omit this parameter.
    min Number
    The minimum number of network interfaces. To specify no minimum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb, FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGbArgs

    Max double
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    Min double
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.
    Max float64
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    Min float64
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.
    max Double
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    min Double
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.
    max number
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    min number
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.
    max float
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    min float
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.
    max Number
    The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.
    min Number
    The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.

    FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount, FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCountArgs

    Min int
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    Max int
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.
    Min int
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    Max int
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.
    min Integer
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    max Integer
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.
    min number
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    max number
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.
    min int
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    max int
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.
    min Number
    The minimum number of vCPUs. To specify no minimum limit, specify 0.
    max Number
    The maximum number of vCPUs. To specify no maximum limit, omit this parameter.

    FleetOnDemandOptions, FleetOnDemandOptionsArgs

    AllocationStrategy string
    The order of the launch template overrides to use in fulfilling On-Demand capacity. Valid values: lowestPrice, prioritized. Default: lowestPrice.
    CapacityReservationOptions FleetOnDemandOptionsCapacityReservationOptions
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    MaxTotalPrice string
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    MinTargetCapacity int
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    SingleAvailabilityZone bool
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    SingleInstanceType bool
    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.
    CapacityReservationOptions FleetOnDemandOptionsCapacityReservationOptions
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    MaxTotalPrice string
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    MinTargetCapacity int
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    SingleAvailabilityZone bool
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    SingleInstanceType bool
    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.
    capacityReservationOptions FleetOnDemandOptionsCapacityReservationOptions
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    maxTotalPrice String
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    minTargetCapacity Integer
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    singleAvailabilityZone Boolean
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    singleInstanceType Boolean
    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.
    capacityReservationOptions FleetOnDemandOptionsCapacityReservationOptions
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    maxTotalPrice string
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    minTargetCapacity number
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    singleAvailabilityZone boolean
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    singleInstanceType boolean
    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_options FleetOnDemandOptionsCapacityReservationOptions
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    max_total_price str
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    min_target_capacity int
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    single_availability_zone bool
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    single_instance_type bool
    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.
    capacityReservationOptions Property Map
    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.
    maxTotalPrice String
    The maximum amount per hour for On-Demand Instances that you're willing to pay.
    minTargetCapacity Number
    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 specify min_target_capacity, at least one of the following must be specified: single_availability_zone or single_instance_type.
    singleAvailabilityZone Boolean
    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.
    singleInstanceType Boolean
    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-prioritized and price-capacity-optimized. Default: lowestPrice.
    InstanceInterruptionBehavior string
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    InstancePoolsToUseCount int
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.
    MaintenanceStrategies FleetSpotOptionsMaintenanceStrategies
    Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
    AllocationStrategy string
    How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.
    InstanceInterruptionBehavior string
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    InstancePoolsToUseCount int
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.
    MaintenanceStrategies FleetSpotOptionsMaintenanceStrategies
    Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
    allocationStrategy String
    How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.
    instanceInterruptionBehavior String
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    instancePoolsToUseCount Integer
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.
    maintenanceStrategies FleetSpotOptionsMaintenanceStrategies
    Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
    allocationStrategy string
    How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.
    instanceInterruptionBehavior string
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    instancePoolsToUseCount number
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.
    maintenanceStrategies FleetSpotOptionsMaintenanceStrategies
    Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
    allocation_strategy str
    How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.
    instance_interruption_behavior str
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    instance_pools_to_use_count int
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.
    maintenance_strategies FleetSpotOptionsMaintenanceStrategies
    Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
    allocationStrategy String
    How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized, capacity-optimized-prioritized and price-capacity-optimized. Default: lowestPrice.
    instanceInterruptionBehavior String
    Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.
    instancePoolsToUseCount Number
    Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. 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.

    FleetSpotOptionsMaintenanceStrategies, FleetSpotOptionsMaintenanceStrategiesArgs

    CapacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance
    Nested argument containing the capacity rebalance for your fleet request. Defined below.
    CapacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance
    Nested argument containing the capacity rebalance for your fleet request. Defined below.
    capacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance
    Nested argument containing the capacity rebalance for your fleet request. Defined below.
    capacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance
    Nested argument containing the capacity rebalance for your fleet request. Defined below.
    capacity_rebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance
    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 type set to maintain. Valid values: launch.
    TerminationDelay int
    ReplacementStrategy string
    The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.
    TerminationDelay int
    replacementStrategy String
    The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.
    terminationDelay Integer
    replacementStrategy string
    The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.
    terminationDelay number
    replacement_strategy str
    The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.
    termination_delay int
    replacementStrategy String
    The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.
    terminationDelay Number

    FleetTargetCapacitySpecification, FleetTargetCapacitySpecificationArgs

    DefaultTargetCapacityType string
    Default target capacity type. Valid values: on-demand, spot.
    TotalTargetCapacity int
    The number of units to request, filled using default_target_capacity_type.
    OnDemandTargetCapacity int
    The number of On-Demand units to request.
    SpotTargetCapacity int
    The number of Spot units to request.
    TargetCapacityUnitType string
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.
    DefaultTargetCapacityType string
    Default target capacity type. Valid values: on-demand, spot.
    TotalTargetCapacity int
    The number of units to request, filled using default_target_capacity_type.
    OnDemandTargetCapacity int
    The number of On-Demand units to request.
    SpotTargetCapacity int
    The number of Spot units to request.
    TargetCapacityUnitType string
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.
    defaultTargetCapacityType String
    Default target capacity type. Valid values: on-demand, spot.
    totalTargetCapacity Integer
    The number of units to request, filled using default_target_capacity_type.
    onDemandTargetCapacity Integer
    The number of On-Demand units to request.
    spotTargetCapacity Integer
    The number of Spot units to request.
    targetCapacityUnitType String
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.
    defaultTargetCapacityType string
    Default target capacity type. Valid values: on-demand, spot.
    totalTargetCapacity number
    The number of units to request, filled using default_target_capacity_type.
    onDemandTargetCapacity number
    The number of On-Demand units to request.
    spotTargetCapacity number
    The number of Spot units to request.
    targetCapacityUnitType string
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.
    default_target_capacity_type str
    Default target capacity type. Valid values: on-demand, spot.
    total_target_capacity int
    The number of units to request, filled using default_target_capacity_type.
    on_demand_target_capacity int
    The number of On-Demand units to request.
    spot_target_capacity int
    The number of Spot units to request.
    target_capacity_unit_type str
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.
    defaultTargetCapacityType String
    Default target capacity type. Valid values: on-demand, spot.
    totalTargetCapacity Number
    The number of units to request, filled using default_target_capacity_type.
    onDemandTargetCapacity Number
    The number of On-Demand units to request.
    spotTargetCapacity Number
    The number of Spot units to request.
    targetCapacityUnitType String
    The unit for the target capacity. If you specify target_capacity_unit_type, instance_requirements must be specified.

    Import

    Using pulumi import, import aws_ec2_fleet using the Fleet identifier. For example:

    $ pulumi import aws:ec2/fleet:Fleet example fleet-b9b55d27-c5fc-41ac-a6f3-48fcc91f080c
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi