Show / Hide Table of Contents

Class CfnCluster.InstanceTypeConfigProperty

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

Inheritance
System.Object
CfnCluster.InstanceTypeConfigProperty
Implements
CfnCluster.IInstanceTypeConfigProperty
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.AWS.EMR.dll
Syntax (csharp)
public class InstanceTypeConfigProperty : Object, CfnCluster.IInstanceTypeConfigProperty
Syntax (vb)
Public Class InstanceTypeConfigProperty
    Inherits Object
    Implements CfnCluster.IInstanceTypeConfigProperty
Remarks

InstanceTypeConfig is a sub-property of InstanceFleetConfig . InstanceTypeConfig determines the EC2 instances that Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-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_;

InstanceTypeConfigProperty 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
            },

            // the properties below are optional
            VolumesPerInstance = 123
        } },
        EbsOptimized = false
    },
    WeightedCapacity = 123
};

Synopsis

Constructors

InstanceTypeConfigProperty()

Properties

BidPrice

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

BidPriceAsPercentageOfOnDemandPrice

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

Configurations

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

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 EC2 instance type, such as m3.xlarge .

WeightedCapacity

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

Constructors

InstanceTypeConfigProperty()

public InstanceTypeConfigProperty()

Properties

BidPrice

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

public string BidPrice { get; set; }
Property Value

System.String

Remarks

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-bidprice

BidPriceAsPercentageOfOnDemandPrice

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

public Nullable<double> BidPriceAsPercentageOfOnDemandPrice { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-bidpriceaspercentageofondemandprice

Configurations

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

public object Configurations { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-configurations

CustomAmiId

The custom AMI ID to use for the instance type.

public string CustomAmiId { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-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

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-ebsconfiguration

InstanceType

An EC2 instance type, such as m3.xlarge .

public string InstanceType { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-instancetype

WeightedCapacity

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

public Nullable<double> WeightedCapacity { get; set; }
Property Value

System.Nullable<System.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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-instancetypeconfig.html#cfn-elasticmapreduce-cluster-instancetypeconfig-weightedcapacity

Implements

CfnCluster.IInstanceTypeConfigProperty
Back to top Generated by DocFX