Show / Hide Table of Contents

Class CfnInstanceFleetConfig.InstanceTypeConfigProperty

InstanceType config is a subproperty of InstanceFleetConfig .

Inheritance
object
CfnInstanceFleetConfig.InstanceTypeConfigProperty
Implements
CfnInstanceFleetConfig.IInstanceTypeConfigProperty
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 CfnInstanceFleetConfig.InstanceTypeConfigProperty : CfnInstanceFleetConfig.IInstanceTypeConfigProperty
Syntax (vb)
Public Class CfnInstanceFleetConfig.InstanceTypeConfigProperty Implements CfnInstanceFleetConfig.IInstanceTypeConfigProperty
Remarks

An instance type configuration specifies each instance type in an instance fleet. The configuration determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.

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-instancefleetconfig-instancetypeconfig.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 instanceTypeConfigProperty = 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
             };

Synopsis

Constructors

InstanceTypeConfigProperty()

InstanceType config is a subproperty of InstanceFleetConfig .

Properties

BidPrice

The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType .

BidPriceAsPercentageOfOnDemandPrice

The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by InstanceType .

Configurations

Amazon EMR releases 4.x or later.

CustomAmiId

The custom AMI ID to use for the instance type.

EbsConfiguration

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType .

InstanceType

An Amazon EC2 instance type, such as m3.xlarge .

Priority

The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.

WeightedCapacity

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig .

Constructors

InstanceTypeConfigProperty()

InstanceType config is a subproperty of InstanceFleetConfig .

public InstanceTypeConfigProperty()
Remarks

An instance type configuration specifies each instance type in an instance fleet. The configuration determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.

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-instancefleetconfig-instancetypeconfig.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 instanceTypeConfigProperty = 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
             };

Properties

BidPrice

The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType .

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

string

Remarks

Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

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

BidPriceAsPercentageOfOnDemandPrice

The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by InstanceType .

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

double?

Remarks

Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

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

Configurations

Amazon EMR releases 4.x or later.

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

object

Remarks

An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications .

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

CustomAmiId

The custom AMI ID to use for the instance type.

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

string

Remarks

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

EbsConfiguration

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType .

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

object

Remarks

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

InstanceType

An Amazon EC2 instance type, such as m3.xlarge .

public string InstanceType { get; set; }
Property Value

string

Remarks

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

Priority

The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.

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

double?

Remarks

Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.

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

WeightedCapacity

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig .

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

double?

Remarks

This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.

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

Implements

CfnInstanceFleetConfig.IInstanceTypeConfigProperty
Back to top Generated by DocFX