aws.emr.InstanceFleet
Explore with Pulumi AI
Provides an Elastic MapReduce Cluster Instance Fleet configuration. See Amazon Elastic MapReduce Documentation for more information.
NOTE: At this time, Instance Fleets cannot be destroyed through the API nor web interface. Instance Fleets are destroyed when the EMR Cluster is destroyed. the provider will resize any Instance Fleet to zero when destroying the resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const task = new aws.emr.InstanceFleet("task", {
    clusterId: cluster.id,
    instanceTypeConfigs: [
        {
            bidPriceAsPercentageOfOnDemandPrice: 100,
            ebsConfigs: [{
                size: 100,
                type: "gp2",
                volumesPerInstance: 1,
            }],
            instanceType: "m4.xlarge",
            weightedCapacity: 1,
        },
        {
            bidPriceAsPercentageOfOnDemandPrice: 100,
            ebsConfigs: [{
                size: 100,
                type: "gp2",
                volumesPerInstance: 1,
            }],
            instanceType: "m4.2xlarge",
            weightedCapacity: 2,
        },
    ],
    launchSpecifications: {
        spotSpecifications: [{
            allocationStrategy: "capacity-optimized",
            blockDurationMinutes: 0,
            timeoutAction: "TERMINATE_CLUSTER",
            timeoutDurationMinutes: 10,
        }],
    },
    name: "task fleet",
    targetOnDemandCapacity: 1,
    targetSpotCapacity: 1,
});
import pulumi
import pulumi_aws as aws
task = aws.emr.InstanceFleet("task",
    cluster_id=cluster["id"],
    instance_type_configs=[
        {
            "bid_price_as_percentage_of_on_demand_price": 100,
            "ebs_configs": [{
                "size": 100,
                "type": "gp2",
                "volumes_per_instance": 1,
            }],
            "instance_type": "m4.xlarge",
            "weighted_capacity": 1,
        },
        {
            "bid_price_as_percentage_of_on_demand_price": 100,
            "ebs_configs": [{
                "size": 100,
                "type": "gp2",
                "volumes_per_instance": 1,
            }],
            "instance_type": "m4.2xlarge",
            "weighted_capacity": 2,
        },
    ],
    launch_specifications={
        "spot_specifications": [{
            "allocation_strategy": "capacity-optimized",
            "block_duration_minutes": 0,
            "timeout_action": "TERMINATE_CLUSTER",
            "timeout_duration_minutes": 10,
        }],
    },
    name="task fleet",
    target_on_demand_capacity=1,
    target_spot_capacity=1)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emr"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := emr.NewInstanceFleet(ctx, "task", &emr.InstanceFleetArgs{
			ClusterId: pulumi.Any(cluster.Id),
			InstanceTypeConfigs: emr.InstanceFleetInstanceTypeConfigArray{
				&emr.InstanceFleetInstanceTypeConfigArgs{
					BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(100),
					EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
						&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
							Size:               pulumi.Int(100),
							Type:               pulumi.String("gp2"),
							VolumesPerInstance: pulumi.Int(1),
						},
					},
					InstanceType:     pulumi.String("m4.xlarge"),
					WeightedCapacity: pulumi.Int(1),
				},
				&emr.InstanceFleetInstanceTypeConfigArgs{
					BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(100),
					EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
						&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
							Size:               pulumi.Int(100),
							Type:               pulumi.String("gp2"),
							VolumesPerInstance: pulumi.Int(1),
						},
					},
					InstanceType:     pulumi.String("m4.2xlarge"),
					WeightedCapacity: pulumi.Int(2),
				},
			},
			LaunchSpecifications: &emr.InstanceFleetLaunchSpecificationsArgs{
				SpotSpecifications: emr.InstanceFleetLaunchSpecificationsSpotSpecificationArray{
					&emr.InstanceFleetLaunchSpecificationsSpotSpecificationArgs{
						AllocationStrategy:     pulumi.String("capacity-optimized"),
						BlockDurationMinutes:   pulumi.Int(0),
						TimeoutAction:          pulumi.String("TERMINATE_CLUSTER"),
						TimeoutDurationMinutes: pulumi.Int(10),
					},
				},
			},
			Name:                   pulumi.String("task fleet"),
			TargetOnDemandCapacity: pulumi.Int(1),
			TargetSpotCapacity:     pulumi.Int(1),
		})
		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 task = new Aws.Emr.InstanceFleet("task", new()
    {
        ClusterId = cluster.Id,
        InstanceTypeConfigs = new[]
        {
            new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
            {
                BidPriceAsPercentageOfOnDemandPrice = 100,
                EbsConfigs = new[]
                {
                    new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
                    {
                        Size = 100,
                        Type = "gp2",
                        VolumesPerInstance = 1,
                    },
                },
                InstanceType = "m4.xlarge",
                WeightedCapacity = 1,
            },
            new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
            {
                BidPriceAsPercentageOfOnDemandPrice = 100,
                EbsConfigs = new[]
                {
                    new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
                    {
                        Size = 100,
                        Type = "gp2",
                        VolumesPerInstance = 1,
                    },
                },
                InstanceType = "m4.2xlarge",
                WeightedCapacity = 2,
            },
        },
        LaunchSpecifications = new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsArgs
        {
            SpotSpecifications = new[]
            {
                new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsSpotSpecificationArgs
                {
                    AllocationStrategy = "capacity-optimized",
                    BlockDurationMinutes = 0,
                    TimeoutAction = "TERMINATE_CLUSTER",
                    TimeoutDurationMinutes = 10,
                },
            },
        },
        Name = "task fleet",
        TargetOnDemandCapacity = 1,
        TargetSpotCapacity = 1,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.emr.InstanceFleet;
import com.pulumi.aws.emr.InstanceFleetArgs;
import com.pulumi.aws.emr.inputs.InstanceFleetInstanceTypeConfigArgs;
import com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs;
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 task = new InstanceFleet("task", InstanceFleetArgs.builder()
            .clusterId(cluster.id())
            .instanceTypeConfigs(            
                InstanceFleetInstanceTypeConfigArgs.builder()
                    .bidPriceAsPercentageOfOnDemandPrice(100)
                    .ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
                        .size(100)
                        .type("gp2")
                        .volumesPerInstance(1)
                        .build())
                    .instanceType("m4.xlarge")
                    .weightedCapacity(1)
                    .build(),
                InstanceFleetInstanceTypeConfigArgs.builder()
                    .bidPriceAsPercentageOfOnDemandPrice(100)
                    .ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
                        .size(100)
                        .type("gp2")
                        .volumesPerInstance(1)
                        .build())
                    .instanceType("m4.2xlarge")
                    .weightedCapacity(2)
                    .build())
            .launchSpecifications(InstanceFleetLaunchSpecificationsArgs.builder()
                .spotSpecifications(InstanceFleetLaunchSpecificationsSpotSpecificationArgs.builder()
                    .allocationStrategy("capacity-optimized")
                    .blockDurationMinutes(0)
                    .timeoutAction("TERMINATE_CLUSTER")
                    .timeoutDurationMinutes(10)
                    .build())
                .build())
            .name("task fleet")
            .targetOnDemandCapacity(1)
            .targetSpotCapacity(1)
            .build());
    }
}
resources:
  task:
    type: aws:emr:InstanceFleet
    properties:
      clusterId: ${cluster.id}
      instanceTypeConfigs:
        - bidPriceAsPercentageOfOnDemandPrice: 100
          ebsConfigs:
            - size: 100
              type: gp2
              volumesPerInstance: 1
          instanceType: m4.xlarge
          weightedCapacity: 1
        - bidPriceAsPercentageOfOnDemandPrice: 100
          ebsConfigs:
            - size: 100
              type: gp2
              volumesPerInstance: 1
          instanceType: m4.2xlarge
          weightedCapacity: 2
      launchSpecifications:
        spotSpecifications:
          - allocationStrategy: capacity-optimized
            blockDurationMinutes: 0
            timeoutAction: TERMINATE_CLUSTER
            timeoutDurationMinutes: 10
      name: task fleet
      targetOnDemandCapacity: 1
      targetSpotCapacity: 1
Create InstanceFleet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceFleet(name: string, args: InstanceFleetArgs, opts?: CustomResourceOptions);@overload
def InstanceFleet(resource_name: str,
                  args: InstanceFleetArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def InstanceFleet(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cluster_id: Optional[str] = None,
                  instance_type_configs: Optional[Sequence[InstanceFleetInstanceTypeConfigArgs]] = None,
                  launch_specifications: Optional[InstanceFleetLaunchSpecificationsArgs] = None,
                  name: Optional[str] = None,
                  target_on_demand_capacity: Optional[int] = None,
                  target_spot_capacity: Optional[int] = None)func NewInstanceFleet(ctx *Context, name string, args InstanceFleetArgs, opts ...ResourceOption) (*InstanceFleet, error)public InstanceFleet(string name, InstanceFleetArgs args, CustomResourceOptions? opts = null)
public InstanceFleet(String name, InstanceFleetArgs args)
public InstanceFleet(String name, InstanceFleetArgs args, CustomResourceOptions options)
type: aws:emr:InstanceFleet
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 InstanceFleetArgs
- 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 InstanceFleetArgs
- 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 InstanceFleetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceFleetArgs
- 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 instanceFleetResource = new Aws.Emr.InstanceFleet("instanceFleetResource", new()
{
    ClusterId = "string",
    InstanceTypeConfigs = new[]
    {
        new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
        {
            InstanceType = "string",
            BidPrice = "string",
            BidPriceAsPercentageOfOnDemandPrice = 0,
            Configurations = new[]
            {
                new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigConfigurationArgs
                {
                    Classification = "string",
                    Properties = 
                    {
                        { "string", "string" },
                    },
                },
            },
            EbsConfigs = new[]
            {
                new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
                {
                    Size = 0,
                    Type = "string",
                    Iops = 0,
                    VolumesPerInstance = 0,
                },
            },
            WeightedCapacity = 0,
        },
    },
    LaunchSpecifications = new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsArgs
    {
        OnDemandSpecifications = new[]
        {
            new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs
            {
                AllocationStrategy = "string",
            },
        },
        SpotSpecifications = new[]
        {
            new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsSpotSpecificationArgs
            {
                AllocationStrategy = "string",
                TimeoutAction = "string",
                TimeoutDurationMinutes = 0,
                BlockDurationMinutes = 0,
            },
        },
    },
    Name = "string",
    TargetOnDemandCapacity = 0,
    TargetSpotCapacity = 0,
});
example, err := emr.NewInstanceFleet(ctx, "instanceFleetResource", &emr.InstanceFleetArgs{
	ClusterId: pulumi.String("string"),
	InstanceTypeConfigs: emr.InstanceFleetInstanceTypeConfigArray{
		&emr.InstanceFleetInstanceTypeConfigArgs{
			InstanceType:                        pulumi.String("string"),
			BidPrice:                            pulumi.String("string"),
			BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(0),
			Configurations: emr.InstanceFleetInstanceTypeConfigConfigurationArray{
				&emr.InstanceFleetInstanceTypeConfigConfigurationArgs{
					Classification: pulumi.String("string"),
					Properties: pulumi.StringMap{
						"string": pulumi.String("string"),
					},
				},
			},
			EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
				&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
					Size:               pulumi.Int(0),
					Type:               pulumi.String("string"),
					Iops:               pulumi.Int(0),
					VolumesPerInstance: pulumi.Int(0),
				},
			},
			WeightedCapacity: pulumi.Int(0),
		},
	},
	LaunchSpecifications: &emr.InstanceFleetLaunchSpecificationsArgs{
		OnDemandSpecifications: emr.InstanceFleetLaunchSpecificationsOnDemandSpecificationArray{
			&emr.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs{
				AllocationStrategy: pulumi.String("string"),
			},
		},
		SpotSpecifications: emr.InstanceFleetLaunchSpecificationsSpotSpecificationArray{
			&emr.InstanceFleetLaunchSpecificationsSpotSpecificationArgs{
				AllocationStrategy:     pulumi.String("string"),
				TimeoutAction:          pulumi.String("string"),
				TimeoutDurationMinutes: pulumi.Int(0),
				BlockDurationMinutes:   pulumi.Int(0),
			},
		},
	},
	Name:                   pulumi.String("string"),
	TargetOnDemandCapacity: pulumi.Int(0),
	TargetSpotCapacity:     pulumi.Int(0),
})
var instanceFleetResource = new InstanceFleet("instanceFleetResource", InstanceFleetArgs.builder()
    .clusterId("string")
    .instanceTypeConfigs(InstanceFleetInstanceTypeConfigArgs.builder()
        .instanceType("string")
        .bidPrice("string")
        .bidPriceAsPercentageOfOnDemandPrice(0)
        .configurations(InstanceFleetInstanceTypeConfigConfigurationArgs.builder()
            .classification("string")
            .properties(Map.of("string", "string"))
            .build())
        .ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
            .size(0)
            .type("string")
            .iops(0)
            .volumesPerInstance(0)
            .build())
        .weightedCapacity(0)
        .build())
    .launchSpecifications(InstanceFleetLaunchSpecificationsArgs.builder()
        .onDemandSpecifications(InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs.builder()
            .allocationStrategy("string")
            .build())
        .spotSpecifications(InstanceFleetLaunchSpecificationsSpotSpecificationArgs.builder()
            .allocationStrategy("string")
            .timeoutAction("string")
            .timeoutDurationMinutes(0)
            .blockDurationMinutes(0)
            .build())
        .build())
    .name("string")
    .targetOnDemandCapacity(0)
    .targetSpotCapacity(0)
    .build());
instance_fleet_resource = aws.emr.InstanceFleet("instanceFleetResource",
    cluster_id="string",
    instance_type_configs=[{
        "instance_type": "string",
        "bid_price": "string",
        "bid_price_as_percentage_of_on_demand_price": 0,
        "configurations": [{
            "classification": "string",
            "properties": {
                "string": "string",
            },
        }],
        "ebs_configs": [{
            "size": 0,
            "type": "string",
            "iops": 0,
            "volumes_per_instance": 0,
        }],
        "weighted_capacity": 0,
    }],
    launch_specifications={
        "on_demand_specifications": [{
            "allocation_strategy": "string",
        }],
        "spot_specifications": [{
            "allocation_strategy": "string",
            "timeout_action": "string",
            "timeout_duration_minutes": 0,
            "block_duration_minutes": 0,
        }],
    },
    name="string",
    target_on_demand_capacity=0,
    target_spot_capacity=0)
const instanceFleetResource = new aws.emr.InstanceFleet("instanceFleetResource", {
    clusterId: "string",
    instanceTypeConfigs: [{
        instanceType: "string",
        bidPrice: "string",
        bidPriceAsPercentageOfOnDemandPrice: 0,
        configurations: [{
            classification: "string",
            properties: {
                string: "string",
            },
        }],
        ebsConfigs: [{
            size: 0,
            type: "string",
            iops: 0,
            volumesPerInstance: 0,
        }],
        weightedCapacity: 0,
    }],
    launchSpecifications: {
        onDemandSpecifications: [{
            allocationStrategy: "string",
        }],
        spotSpecifications: [{
            allocationStrategy: "string",
            timeoutAction: "string",
            timeoutDurationMinutes: 0,
            blockDurationMinutes: 0,
        }],
    },
    name: "string",
    targetOnDemandCapacity: 0,
    targetSpotCapacity: 0,
});
type: aws:emr:InstanceFleet
properties:
    clusterId: string
    instanceTypeConfigs:
        - bidPrice: string
          bidPriceAsPercentageOfOnDemandPrice: 0
          configurations:
            - classification: string
              properties:
                string: string
          ebsConfigs:
            - iops: 0
              size: 0
              type: string
              volumesPerInstance: 0
          instanceType: string
          weightedCapacity: 0
    launchSpecifications:
        onDemandSpecifications:
            - allocationStrategy: string
        spotSpecifications:
            - allocationStrategy: string
              blockDurationMinutes: 0
              timeoutAction: string
              timeoutDurationMinutes: 0
    name: string
    targetOnDemandCapacity: 0
    targetSpotCapacity: 0
InstanceFleet 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 InstanceFleet resource accepts the following input properties:
- ClusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- InstanceType List<InstanceConfigs Fleet Instance Type Config> 
- Configuration block for instance fleet
- LaunchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- TargetOn intDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- TargetSpot intCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- ClusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- InstanceType []InstanceConfigs Fleet Instance Type Config Args 
- Configuration block for instance fleet
- LaunchSpecifications InstanceFleet Launch Specifications Args 
- Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- TargetOn intDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- TargetSpot intCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId String
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType List<InstanceConfigs Fleet Instance Type Config> 
- Configuration block for instance fleet
- launchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- targetOn IntegerDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot IntegerCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType InstanceConfigs Fleet Instance Type Config[] 
- Configuration block for instance fleet
- launchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- name string
- Friendly name given to the instance fleet.
- targetOn numberDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot numberCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster_id str
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance_type_ Sequence[Instanceconfigs Fleet Instance Type Config Args] 
- Configuration block for instance fleet
- launch_specifications InstanceFleet Launch Specifications Args 
- Configuration block for launch specification
- name str
- Friendly name given to the instance fleet.
- target_on_ intdemand_ capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target_spot_ intcapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId String
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType List<Property Map>Configs 
- Configuration block for instance fleet
- launchSpecifications Property Map
- Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- targetOn NumberDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot NumberCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceFleet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- ProvisionedOn intDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- ProvisionedSpot intCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProvisionedOn intDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- ProvisionedSpot intCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisionedOn IntegerDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot IntegerCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id string
- The provider-assigned unique ID for this managed resource.
- provisionedOn numberDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot numberCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioned_on_ intdemand_ capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned_spot_ intcapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisionedOn NumberDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot NumberCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
Look up Existing InstanceFleet Resource
Get an existing InstanceFleet 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?: InstanceFleetState, opts?: CustomResourceOptions): InstanceFleet@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        instance_type_configs: Optional[Sequence[InstanceFleetInstanceTypeConfigArgs]] = None,
        launch_specifications: Optional[InstanceFleetLaunchSpecificationsArgs] = None,
        name: Optional[str] = None,
        provisioned_on_demand_capacity: Optional[int] = None,
        provisioned_spot_capacity: Optional[int] = None,
        target_on_demand_capacity: Optional[int] = None,
        target_spot_capacity: Optional[int] = None) -> InstanceFleetfunc GetInstanceFleet(ctx *Context, name string, id IDInput, state *InstanceFleetState, opts ...ResourceOption) (*InstanceFleet, error)public static InstanceFleet Get(string name, Input<string> id, InstanceFleetState? state, CustomResourceOptions? opts = null)public static InstanceFleet get(String name, Output<String> id, InstanceFleetState state, CustomResourceOptions options)resources:  _:    type: aws:emr:InstanceFleet    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- ClusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- InstanceType List<InstanceConfigs Fleet Instance Type Config> 
- Configuration block for instance fleet
- LaunchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- ProvisionedOn intDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- ProvisionedSpot intCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- TargetOn intDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- TargetSpot intCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- ClusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- InstanceType []InstanceConfigs Fleet Instance Type Config Args 
- Configuration block for instance fleet
- LaunchSpecifications InstanceFleet Launch Specifications Args 
- Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- ProvisionedOn intDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- ProvisionedSpot intCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- TargetOn intDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- TargetSpot intCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId String
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType List<InstanceConfigs Fleet Instance Type Config> 
- Configuration block for instance fleet
- launchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- provisionedOn IntegerDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot IntegerCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- targetOn IntegerDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot IntegerCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId string
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType InstanceConfigs Fleet Instance Type Config[] 
- Configuration block for instance fleet
- launchSpecifications InstanceFleet Launch Specifications 
- Configuration block for launch specification
- name string
- Friendly name given to the instance fleet.
- provisionedOn numberDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot numberCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- targetOn numberDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot numberCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster_id str
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance_type_ Sequence[Instanceconfigs Fleet Instance Type Config Args] 
- Configuration block for instance fleet
- launch_specifications InstanceFleet Launch Specifications Args 
- Configuration block for launch specification
- name str
- Friendly name given to the instance fleet.
- provisioned_on_ intdemand_ capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned_spot_ intcapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- target_on_ intdemand_ capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target_spot_ intcapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- clusterId String
- ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instanceType List<Property Map>Configs 
- Configuration block for instance fleet
- launchSpecifications Property Map
- Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- provisionedOn NumberDemand Capacity 
- The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisionedSpot NumberCapacity 
- The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- targetOn NumberDemand Capacity 
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- targetSpot NumberCapacity 
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
Supporting Types
InstanceFleetInstanceTypeConfig, InstanceFleetInstanceTypeConfigArgs          
- InstanceType string
- An EC2 instance type, such as m4.xlarge.
- BidPrice string
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- BidPrice doubleAs Percentage Of On Demand Price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- Configurations
List<InstanceFleet Instance Type Config Configuration> 
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- EbsConfigs List<InstanceFleet Instance Type Config Ebs Config> 
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- WeightedCapacity int
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
- InstanceType string
- An EC2 instance type, such as m4.xlarge.
- BidPrice string
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- BidPrice float64As Percentage Of On Demand Price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- Configurations
[]InstanceFleet Instance Type Config Configuration 
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- EbsConfigs []InstanceFleet Instance Type Config Ebs Config 
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- WeightedCapacity int
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
- instanceType String
- An EC2 instance type, such as m4.xlarge.
- bidPrice String
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- bidPrice DoubleAs Percentage Of On Demand Price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- configurations
List<InstanceFleet Instance Type Config Configuration> 
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- ebsConfigs List<InstanceFleet Instance Type Config Ebs Config> 
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weightedCapacity Integer
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
- instanceType string
- An EC2 instance type, such as m4.xlarge.
- bidPrice string
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- bidPrice numberAs Percentage Of On Demand Price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- configurations
InstanceFleet Instance Type Config Configuration[] 
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- ebsConfigs InstanceFleet Instance Type Config Ebs Config[] 
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weightedCapacity number
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
- instance_type str
- An EC2 instance type, such as m4.xlarge.
- bid_price str
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- bid_price_ floatas_ percentage_ of_ on_ demand_ price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- configurations
Sequence[InstanceFleet Instance Type Config Configuration] 
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- ebs_configs Sequence[InstanceFleet Instance Type Config Ebs Config] 
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weighted_capacity int
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
- instanceType String
- An EC2 instance type, such as m4.xlarge.
- bidPrice String
- The bid price for each EC2 Spot instance type as defined by instance_type. Expressed in USD. If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- bidPrice NumberAs Percentage Of On Demand Price 
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by instance_type. Expressed as a number (for example, 20 specifies 20%). If neitherbid_pricenorbid_price_as_percentage_of_on_demand_priceis provided,bid_price_as_percentage_of_on_demand_pricedefaults to 100%.
- configurations List<Property Map>
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of configurationblocks.
- ebsConfigs List<Property Map>
- Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weightedCapacity Number
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in aws.emr.InstanceFleet.
InstanceFleetInstanceTypeConfigConfiguration, InstanceFleetInstanceTypeConfigConfigurationArgs            
- Classification string
- The classification within a configuration.
- Properties Dictionary<string, string>
- A map of properties specified within a configuration classification
- Classification string
- The classification within a configuration.
- Properties map[string]string
- A map of properties specified within a configuration classification
- classification String
- The classification within a configuration.
- properties Map<String,String>
- A map of properties specified within a configuration classification
- classification string
- The classification within a configuration.
- properties {[key: string]: string}
- A map of properties specified within a configuration classification
- classification str
- The classification within a configuration.
- properties Mapping[str, str]
- A map of properties specified within a configuration classification
- classification String
- The classification within a configuration.
- properties Map<String>
- A map of properties specified within a configuration classification
InstanceFleetInstanceTypeConfigEbsConfig, InstanceFleetInstanceTypeConfigEbsConfigArgs              
- Size int
- The volume size, in gibibytes (GiB).
- Type string
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- Iops int
- The number of I/O operations per second (IOPS) that the volume supports
- VolumesPer intInstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- Size int
- The volume size, in gibibytes (GiB).
- Type string
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- Iops int
- The number of I/O operations per second (IOPS) that the volume supports
- VolumesPer intInstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size Integer
- The volume size, in gibibytes (GiB).
- type String
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- iops Integer
- The number of I/O operations per second (IOPS) that the volume supports
- volumesPer IntegerInstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size number
- The volume size, in gibibytes (GiB).
- type string
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- iops number
- The number of I/O operations per second (IOPS) that the volume supports
- volumesPer numberInstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size int
- The volume size, in gibibytes (GiB).
- type str
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- iops int
- The number of I/O operations per second (IOPS) that the volume supports
- volumes_per_ intinstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size Number
- The volume size, in gibibytes (GiB).
- type String
- The volume type. Valid options are gp2,io1,standardandst1. See EBS Volume Types.
- iops Number
- The number of I/O operations per second (IOPS) that the volume supports
- volumesPer NumberInstance 
- The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
InstanceFleetLaunchSpecifications, InstanceFleetLaunchSpecificationsArgs        
- OnDemand List<InstanceSpecifications Fleet Launch Specifications On Demand Specification> 
- Configuration block for on demand instances launch specifications
- SpotSpecifications List<InstanceFleet Launch Specifications Spot Specification> 
- Configuration block for spot instances launch specifications
- OnDemand []InstanceSpecifications Fleet Launch Specifications On Demand Specification 
- Configuration block for on demand instances launch specifications
- SpotSpecifications []InstanceFleet Launch Specifications Spot Specification 
- Configuration block for spot instances launch specifications
- onDemand List<InstanceSpecifications Fleet Launch Specifications On Demand Specification> 
- Configuration block for on demand instances launch specifications
- spotSpecifications List<InstanceFleet Launch Specifications Spot Specification> 
- Configuration block for spot instances launch specifications
- onDemand InstanceSpecifications Fleet Launch Specifications On Demand Specification[] 
- Configuration block for on demand instances launch specifications
- spotSpecifications InstanceFleet Launch Specifications Spot Specification[] 
- Configuration block for spot instances launch specifications
- on_demand_ Sequence[Instancespecifications Fleet Launch Specifications On Demand Specification] 
- Configuration block for on demand instances launch specifications
- spot_specifications Sequence[InstanceFleet Launch Specifications Spot Specification] 
- Configuration block for spot instances launch specifications
- onDemand List<Property Map>Specifications 
- Configuration block for on demand instances launch specifications
- spotSpecifications List<Property Map>
- Configuration block for spot instances launch specifications
InstanceFleetLaunchSpecificationsOnDemandSpecification, InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs              
- AllocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- AllocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocationStrategy String
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocation_strategy str
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocationStrategy String
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
InstanceFleetLaunchSpecificationsSpotSpecification, InstanceFleetLaunchSpecificationsSpotSpecificationArgs            
- AllocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- TimeoutAction string
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- TimeoutDuration intMinutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- BlockDuration intMinutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- AllocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- TimeoutAction string
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- TimeoutDuration intMinutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- BlockDuration intMinutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocationStrategy String
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- timeoutAction String
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- timeoutDuration IntegerMinutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- blockDuration IntegerMinutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocationStrategy string
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- timeoutAction string
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- timeoutDuration numberMinutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- blockDuration numberMinutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocation_strategy str
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- timeout_action str
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- timeout_duration_ intminutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- block_duration_ intminutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocationStrategy String
- Specifies one of the following strategies to launch Spot Instance fleets: price-capacity-optimized,capacity-optimized,lowest-price, ordiversified. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- timeoutAction String
- The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTERandSWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
- timeoutDuration NumberMinutes 
- The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- blockDuration NumberMinutes 
- The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
Import
Using pulumi import, import EMR Instance Fleet using the EMR Cluster identifier and Instance Fleet identifier separated by a forward slash (/). For example:
$ pulumi import aws:emr/instanceFleet:InstanceFleet example j-123456ABCDEF/if-15EK4O09RZLNR
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.