class CfnInstanceFleetConfigPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins.CfnInstanceFleetConfigPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsemr/mixins#CfnInstanceFleetConfigPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceFleetConfigPropsMixin |
Python | aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceFleetConfigPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_emr » mixins » 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as emr_mixins } from '@aws-cdk/mixins-preview/aws-emr';
declare const configurationProperty_: emr_mixins.CfnInstanceFleetConfigPropsMixin.ConfigurationProperty;
const cfnInstanceFleetConfigPropsMixin = new emr_mixins.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: mixins.PropertyMergeStrategy.OVERRIDE,
});
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 | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
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): IConstruct
Parameters
- construct
IConstruct
Returns
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