Interface EmrCreateCluster.IInstanceTypeConfigProperty
An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface IInstanceTypeConfigProperty
Syntax (vb)
Public Interface IInstanceTypeConfigProperty
Remarks
See: https://docs.aws.amazon.com/emr/latest/APIReference/API_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.StepFunctions.Tasks;
using Amazon.CDK;
ConfigurationProperty configurationProperty_;
Size size;
var instanceTypeConfigProperty = new InstanceTypeConfigProperty {
InstanceType = "instanceType",
// the properties below are optional
BidPrice = "bidPrice",
BidPriceAsPercentageOfOnDemandPrice = 123,
Configurations = new [] { new ConfigurationProperty {
Classification = "classification",
Configurations = new [] { configurationProperty_ },
Properties = new Dictionary<string, string> {
{ "propertiesKey", "properties" }
}
} },
EbsConfiguration = new EbsConfigurationProperty {
EbsBlockDeviceConfigs = new [] { new EbsBlockDeviceConfigProperty {
VolumeSpecification = new VolumeSpecificationProperty {
VolumeSize = size,
VolumeType = EmrCreateCluster.EbsBlockDeviceVolumeType.GP2,
// the properties below are optional
Iops = 123
},
// the properties below are optional
VolumesPerInstance = 123
} },
EbsOptimized = false
},
WeightedCapacity = 123
};
Synopsis
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. |
Configurations | A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. |
EbsConfiguration | The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType. |
InstanceType | An EC2 instance type. |
WeightedCapacity | The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig. |
Properties
BidPrice
The bid price for each EC2 Spot instance type as defined by InstanceType.
virtual string BidPrice { get; }
Property Value
System.String
Remarks
Expressed in USD.
Default: - None
BidPriceAsPercentageOfOnDemandPrice
The bid price, as a percentage of On-Demand price.
virtual Nullable<double> BidPriceAsPercentageOfOnDemandPrice { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - None
Configurations
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
virtual EmrCreateCluster.IConfigurationProperty[] Configurations { get; }
Property Value
EmrCreateCluster.IConfigurationProperty[]
Remarks
Default: - None
EbsConfiguration
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.
virtual EmrCreateCluster.IEbsConfigurationProperty EbsConfiguration { get; }
Property Value
EmrCreateCluster.IEbsConfigurationProperty
Remarks
Default: - None
InstanceType
An EC2 instance type.
string InstanceType { get; }
Property Value
System.String
WeightedCapacity
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig.
virtual Nullable<double> WeightedCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - None