aws-cdk-lib.aws_stepfunctions_tasks.EmrCreateCluster.InstanceFleetConfigProperty

interface InstanceFleetConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.EmrCreateCluster.InstanceFleetConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#EmrCreateCluster_InstanceFleetConfigProperty
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetConfigProperty
Pythonaws_cdk.aws_stepfunctions_tasks.EmrCreateCluster.InstanceFleetConfigProperty
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » EmrCreateCluster » InstanceFleetConfigProperty

The configuration that defines an instance fleet.

See also: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetConfig.html

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const configurationProperty_: stepfunctions_tasks.EmrCreateCluster.ConfigurationProperty;
declare const size: cdk.Size;
const instanceFleetConfigProperty: stepfunctions_tasks.EmrCreateCluster.InstanceFleetConfigProperty = {
  instanceFleetType: stepfunctions_tasks.EmrCreateCluster.InstanceRoleType.MASTER,

  // the properties below are optional
  instanceTypeConfigs: [{
    instanceType: 'instanceType',

    // the properties below are optional
    bidPrice: 'bidPrice',
    bidPriceAsPercentageOfOnDemandPrice: 123,
    configurations: [{
      classification: 'classification',
      configurations: [configurationProperty_],
      properties: {
        propertiesKey: 'properties',
      },
    }],
    ebsConfiguration: {
      ebsBlockDeviceConfigs: [{
        volumeSpecification: {
          volumeSize: size,
          volumeType: stepfunctions_tasks.EmrCreateCluster.EbsBlockDeviceVolumeType.GP2,

          // the properties below are optional
          iops: 123,
        },

        // the properties below are optional
        volumesPerInstance: 123,
      }],
      ebsOptimized: false,
    },
    weightedCapacity: 123,
  }],
  launchSpecifications: {
    spotSpecification: {
      timeoutAction: stepfunctions_tasks.EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
      timeoutDurationMinutes: 123,

      // the properties below are optional
      allocationStrategy: stepfunctions_tasks.EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
      blockDurationMinutes: 123,
    },
  },
  name: 'name',
  targetOnDemandCapacity: 123,
  targetSpotCapacity: 123,
};

Properties

NameTypeDescription
instanceFleetTypeInstanceRoleTypeThe node type that the instance fleet hosts.
instanceTypeConfigs?InstanceTypeConfigProperty[]The instance type configurations that define the EC2 instances in the instance fleet.
launchSpecifications?InstanceFleetProvisioningSpecificationsPropertyThe launch specification for the instance fleet.
name?stringThe friendly name of the instance fleet.
targetOnDemandCapacity?numberThe target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
targetSpotCapacity?numberThe target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.

instanceFleetType

Type: InstanceRoleType

The node type that the instance fleet hosts.

Valid values are MASTER,CORE,and TASK.


instanceTypeConfigs?

Type: InstanceTypeConfigProperty[] (optional, default: No instanceTpeConfigs)

The instance type configurations that define the EC2 instances in the instance fleet.


launchSpecifications?

Type: InstanceFleetProvisioningSpecificationsProperty (optional, default: No launchSpecifications)

The launch specification for the instance fleet.


name?

Type: string (optional, default: No name)

The friendly name of the instance fleet.


targetOnDemandCapacity?

Type: number (optional, default: No targetOnDemandCapacity)

The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.


targetSpotCapacity?

Type: number (optional, default: No targetSpotCapacity)

The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.