Show / Hide Table of Contents

Class CfnCluster.InstanceFleetConfigProperty

Use InstanceFleetConfig to define instance fleets for an EMR cluster.

Inheritance
object
CfnCluster.InstanceFleetConfigProperty
Implements
CfnCluster.IInstanceFleetConfigProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster.InstanceFleetConfigProperty : CfnCluster.IInstanceFleetConfigProperty
Syntax (vb)
Public Class CfnCluster.InstanceFleetConfigProperty Implements CfnCluster.IInstanceFleetConfigProperty
Remarks

A cluster can not use both instance fleets and instance groups. For more information, see Configure Instance Fleets in the Amazon EMR Management Guide .

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EMR;

             ConfigurationProperty configurationProperty_;

             var instanceFleetConfigProperty = new InstanceFleetConfigProperty {
                 InstanceTypeConfigs = new [] { new InstanceTypeConfigProperty {
                     InstanceType = "instanceType",

                     // the properties below are optional
                     BidPrice = "bidPrice",
                     BidPriceAsPercentageOfOnDemandPrice = 123,
                     Configurations = new [] { new ConfigurationProperty {
                         Classification = "classification",
                         ConfigurationProperties = new Dictionary<string, string> {
                             { "configurationPropertiesKey", "configurationProperties" }
                         },
                         Configurations = new [] { configurationProperty_ }
                     } },
                     CustomAmiId = "customAmiId",
                     EbsConfiguration = new EbsConfigurationProperty {
                         EbsBlockDeviceConfigs = new [] { new EbsBlockDeviceConfigProperty {
                             VolumeSpecification = new VolumeSpecificationProperty {
                                 SizeInGb = 123,
                                 VolumeType = "volumeType",

                                 // the properties below are optional
                                 Iops = 123,
                                 Throughput = 123
                             },

                             // the properties below are optional
                             VolumesPerInstance = 123
                         } },
                         EbsOptimized = false
                     },
                     Priority = 123,
                     WeightedCapacity = 123
                 } },
                 LaunchSpecifications = new InstanceFleetProvisioningSpecificationsProperty {
                     OnDemandSpecification = new OnDemandProvisioningSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",

                         // the properties below are optional
                         CapacityReservationOptions = new OnDemandCapacityReservationOptionsProperty {
                             CapacityReservationPreference = "capacityReservationPreference",
                             CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn",
                             UsageStrategy = "usageStrategy"
                         }
                     },
                     SpotSpecification = new SpotProvisioningSpecificationProperty {
                         TimeoutAction = "timeoutAction",
                         TimeoutDurationMinutes = 123,

                         // the properties below are optional
                         AllocationStrategy = "allocationStrategy",
                         BlockDurationMinutes = 123
                     }
                 },
                 Name = "name",
                 ResizeSpecifications = new InstanceFleetResizingSpecificationsProperty {
                     OnDemandResizeSpecification = new OnDemandResizingSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",
                         CapacityReservationOptions = new OnDemandCapacityReservationOptionsProperty {
                             CapacityReservationPreference = "capacityReservationPreference",
                             CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn",
                             UsageStrategy = "usageStrategy"
                         },
                         TimeoutDurationMinutes = 123
                     },
                     SpotResizeSpecification = new SpotResizingSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",
                         TimeoutDurationMinutes = 123
                     }
                 },
                 TargetOnDemandCapacity = 123,
                 TargetSpotCapacity = 123
             };

Synopsis

Constructors

InstanceFleetConfigProperty()

Use InstanceFleetConfig to define instance fleets for an EMR cluster.

Properties

InstanceTypeConfigs

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

LaunchSpecifications

The launch specification for the instance fleet.

Name

The friendly name of the instance fleet.

ResizeSpecifications

The resize specification for the instance fleet.

TargetOnDemandCapacity

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

TargetSpotCapacity

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

Constructors

InstanceFleetConfigProperty()

Use InstanceFleetConfig to define instance fleets for an EMR cluster.

public InstanceFleetConfigProperty()
Remarks

A cluster can not use both instance fleets and instance groups. For more information, see Configure Instance Fleets in the Amazon EMR Management Guide .

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EMR;

             ConfigurationProperty configurationProperty_;

             var instanceFleetConfigProperty = new InstanceFleetConfigProperty {
                 InstanceTypeConfigs = new [] { new InstanceTypeConfigProperty {
                     InstanceType = "instanceType",

                     // the properties below are optional
                     BidPrice = "bidPrice",
                     BidPriceAsPercentageOfOnDemandPrice = 123,
                     Configurations = new [] { new ConfigurationProperty {
                         Classification = "classification",
                         ConfigurationProperties = new Dictionary<string, string> {
                             { "configurationPropertiesKey", "configurationProperties" }
                         },
                         Configurations = new [] { configurationProperty_ }
                     } },
                     CustomAmiId = "customAmiId",
                     EbsConfiguration = new EbsConfigurationProperty {
                         EbsBlockDeviceConfigs = new [] { new EbsBlockDeviceConfigProperty {
                             VolumeSpecification = new VolumeSpecificationProperty {
                                 SizeInGb = 123,
                                 VolumeType = "volumeType",

                                 // the properties below are optional
                                 Iops = 123,
                                 Throughput = 123
                             },

                             // the properties below are optional
                             VolumesPerInstance = 123
                         } },
                         EbsOptimized = false
                     },
                     Priority = 123,
                     WeightedCapacity = 123
                 } },
                 LaunchSpecifications = new InstanceFleetProvisioningSpecificationsProperty {
                     OnDemandSpecification = new OnDemandProvisioningSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",

                         // the properties below are optional
                         CapacityReservationOptions = new OnDemandCapacityReservationOptionsProperty {
                             CapacityReservationPreference = "capacityReservationPreference",
                             CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn",
                             UsageStrategy = "usageStrategy"
                         }
                     },
                     SpotSpecification = new SpotProvisioningSpecificationProperty {
                         TimeoutAction = "timeoutAction",
                         TimeoutDurationMinutes = 123,

                         // the properties below are optional
                         AllocationStrategy = "allocationStrategy",
                         BlockDurationMinutes = 123
                     }
                 },
                 Name = "name",
                 ResizeSpecifications = new InstanceFleetResizingSpecificationsProperty {
                     OnDemandResizeSpecification = new OnDemandResizingSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",
                         CapacityReservationOptions = new OnDemandCapacityReservationOptionsProperty {
                             CapacityReservationPreference = "capacityReservationPreference",
                             CapacityReservationResourceGroupArn = "capacityReservationResourceGroupArn",
                             UsageStrategy = "usageStrategy"
                         },
                         TimeoutDurationMinutes = 123
                     },
                     SpotResizeSpecification = new SpotResizingSpecificationProperty {
                         AllocationStrategy = "allocationStrategy",
                         TimeoutDurationMinutes = 123
                     }
                 },
                 TargetOnDemandCapacity = 123,
                 TargetSpotCapacity = 123
             };

Properties

InstanceTypeConfigs

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

public object? InstanceTypeConfigs { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-instancetypeconfigs

LaunchSpecifications

The launch specification for the instance fleet.

public object? LaunchSpecifications { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-launchspecifications

Name

The friendly name of the instance fleet.

public string? Name { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-name

ResizeSpecifications

The resize specification for the instance fleet.

public object? ResizeSpecifications { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-resizespecifications

TargetOnDemandCapacity

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

public double? TargetOnDemandCapacity { get; set; }
Property Value

double?

Remarks

When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig . Each instance configuration has a specified WeightedCapacity . When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only Spot instances are provisioned for the instance fleet using <code>TargetSpotCapacity</code> . At least one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0. For a master instance fleet, only one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> can be specified, and its value must be 1.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-targetondemandcapacity

TargetSpotCapacity

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

public double? TargetSpotCapacity { get; set; }
Property Value

double?

Remarks

When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig . Each instance configuration has a specified WeightedCapacity . When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0. For a master instance fleet, only one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> can be specified, and its value must be 1.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-instancefleetconfig.html#cfn-emr-cluster-instancefleetconfig-targetspotcapacity

Implements

CfnCluster.IInstanceFleetConfigProperty
Back to top Generated by DocFX