class CfnInstanceFleetConfigPropsMixin (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EMR.CfnInstanceFleetConfigPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsemr#CfnInstanceFleetConfigPropsMixin |
Java | software.amazon.awscdk.cfnpropertymixins.services.emr.CfnInstanceFleetConfigPropsMixin |
Python | aws_cdk.cfn_property_mixins.aws_emr.CfnInstanceFleetConfigPropsMixin |
TypeScript | @aws-cdk/cfn-property-mixins » aws_emr » CfnInstanceFleetConfigPropsMixin |
Implements
IMixin
Extends
Mixin
Use InstanceFleetConfig to define instance fleets for an EMR cluster.
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. > You can currently only add a task instance fleet to a cluster with this resource. If you use this resource, CloudFormation waits for the cluster launch to complete before adding the task instance fleet to the cluster. In order to add a task instance fleet to the cluster as part of the cluster launch and minimize delays in provisioning task nodes, use the
TaskInstanceFleetssubproperty for the AWS::EMR::Cluster JobFlowInstancesConfig property instead. To use this subproperty, see AWS::EMR::Cluster for examples.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from '@aws-cdk/cfn-property-mixins';
import * as cdk from 'aws-cdk-lib';
declare const configurationProperty_: emr.CfnInstanceFleetConfigPropsMixin.ConfigurationProperty;
declare const mergeStrategy: cdk.IMergeStrategy;
const cfnInstanceFleetConfigPropsMixin = new emr.CfnInstanceFleetConfigPropsMixin({
clusterId: 'clusterId',
instanceFleetType: 'instanceFleetType',
instanceTypeConfigs: [{
bidPrice: 'bidPrice',
bidPriceAsPercentageOfOnDemandPrice: 123,
configurations: [{
classification: 'classification',
configurationProperties: {
configurationPropertiesKey: 'configurationProperties',
},
configurations: [configurationProperty_],
}],
customAmiId: 'customAmiId',
ebsConfiguration: {
ebsBlockDeviceConfigs: [{
volumeSpecification: {
iops: 123,
sizeInGb: 123,
throughput: 123,
volumeType: 'volumeType',
},
volumesPerInstance: 123,
}],
ebsOptimized: false,
},
instanceType: 'instanceType',
priority: 123,
weightedCapacity: 123,
}],
launchSpecifications: {
onDemandSpecification: {
allocationStrategy: 'allocationStrategy',
capacityReservationOptions: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
usageStrategy: 'usageStrategy',
},
},
spotSpecification: {
allocationStrategy: 'allocationStrategy',
blockDurationMinutes: 123,
timeoutAction: 'timeoutAction',
timeoutDurationMinutes: 123,
},
},
name: 'name',
resizeSpecifications: {
onDemandResizeSpecification: {
allocationStrategy: 'allocationStrategy',
capacityReservationOptions: {
capacityReservationPreference: 'capacityReservationPreference',
capacityReservationResourceGroupArn: 'capacityReservationResourceGroupArn',
usageStrategy: 'usageStrategy',
},
timeoutDurationMinutes: 123,
},
spotResizeSpecification: {
allocationStrategy: 'allocationStrategy',
timeoutDurationMinutes: 123,
},
},
targetOnDemandCapacity: 123,
targetSpotCapacity: 123,
}, /* all optional props */ {
strategy: mergeStrategy,
});
Initializer
new CfnInstanceFleetConfigPropsMixin(props: CfnInstanceFleetConfigMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Instance Fleet Config Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::EMR::InstanceFleetConfig.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | IMerge | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
IMerge
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript