Interface EmrCreateCluster.IInstanceFleetConfigProperty
The configuration that defines an instance fleet.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface IInstanceFleetConfigProperty
Syntax (vb)
Public Interface IInstanceFleetConfigProperty
Remarks
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 instanceFleetConfigProperty = new InstanceFleetConfigProperty {
InstanceFleetType = EmrCreateCluster.InstanceRoleType.MASTER,
// the properties below are optional
InstanceTypeConfigs = new [] { 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
} },
LaunchSpecifications = new InstanceFleetProvisioningSpecificationsProperty {
SpotSpecification = new SpotProvisioningSpecificationProperty {
TimeoutAction = EmrCreateCluster.SpotTimeoutAction.SWITCH_TO_ON_DEMAND,
TimeoutDurationMinutes = 123,
// the properties below are optional
AllocationStrategy = EmrCreateCluster.SpotAllocationStrategy.CAPACITY_OPTIMIZED,
BlockDurationMinutes = 123
}
},
Name = "name",
TargetOnDemandCapacity = 123,
TargetSpotCapacity = 123
};
Synopsis
Properties
InstanceFleetType | The node type that the instance fleet hosts. |
InstanceTypeConfigs | The instance type configurations that define the EC2 instances in the instance fleet. |
LaunchSpecifications | The launch specification for the instance fleet. |
Name | The friendly name of 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. |
Properties
InstanceFleetType
The node type that the instance fleet hosts.
EmrCreateCluster.InstanceRoleType InstanceFleetType { get; }
Property Value
EmrCreateCluster.InstanceRoleType
Remarks
Valid values are MASTER,CORE,and TASK.
InstanceTypeConfigs
The instance type configurations that define the EC2 instances in the instance fleet.
virtual EmrCreateCluster.IInstanceTypeConfigProperty[] InstanceTypeConfigs { get; }
Property Value
EmrCreateCluster.IInstanceTypeConfigProperty[]
Remarks
Default: No instanceTpeConfigs
LaunchSpecifications
The launch specification for the instance fleet.
virtual EmrCreateCluster.IInstanceFleetProvisioningSpecificationsProperty LaunchSpecifications { get; }
Property Value
EmrCreateCluster.IInstanceFleetProvisioningSpecificationsProperty
Remarks
Default: No launchSpecifications
Name
The friendly name of the instance fleet.
virtual string Name { get; }
Property Value
System.String
Remarks
Default: No name
TargetOnDemandCapacity
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
virtual Nullable<double> TargetOnDemandCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: No targetOnDemandCapacity
TargetSpotCapacity
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
virtual Nullable<double> TargetSpotCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: No targetSpotCapacity