CfnInstanceGroupConfigMixinProps
- class aws_cdk.mixins_preview.aws_emr.mixins.CfnInstanceGroupConfigMixinProps(*, auto_scaling_policy=None, bid_price=None, configurations=None, custom_ami_id=None, ebs_configuration=None, instance_count=None, instance_role=None, instance_type=None, job_flow_id=None, market=None, name=None)
Bases:
objectProperties for CfnInstanceGroupConfigPropsMixin.
- Parameters:
auto_scaling_policy (
Union[IResolvable,AutoScalingPolicyProperty,Dict[str,Any],None]) –AutoScalingPolicyis a subproperty ofInstanceGroupConfig.AutoScalingPolicydefines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .bid_price (
Optional[str]) – If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. SpecifyOnDemandPriceto set the amount equal to the On-Demand price, or specify an amount in USD.configurations (
Union[IResolvable,Sequence[Union[IResolvable,ConfigurationProperty,Dict[str,Any]]],None]) –Amazon EMR releases 4.x or later. The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
custom_ami_id (
Optional[str]) – The custom AMI ID to use for the provisioned instance group.ebs_configuration (
Union[IResolvable,EbsConfigurationProperty,Dict[str,Any],None]) –EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.instance_count (
Union[int,float,None]) – Target number of instances for the instance group.instance_role (
Optional[str]) – The role of the instance group in the cluster. Allowed Values : TASKinstance_type (
Optional[str]) – The Amazon EC2 instance type for all instances in the instance group.job_flow_id (
Optional[str]) – The ID of an Amazon EMR cluster that you want to associate this instance group with.market (
Optional[str]) – Market type of the Amazon EC2 instances used to create a cluster node.name (
Optional[str]) – Friendly name given to the instance group.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_emr import mixins as emr_mixins # configuration_property_: emr_mixins.CfnInstanceGroupConfigPropsMixin.ConfigurationProperty cfn_instance_group_config_mixin_props = emr_mixins.CfnInstanceGroupConfigMixinProps( auto_scaling_policy=emr_mixins.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty( constraints=emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty( max_capacity=123, min_capacity=123 ), rules=[emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingRuleProperty( action=emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingActionProperty( market="market", simple_scaling_policy_configuration=emr_mixins.CfnInstanceGroupConfigPropsMixin.SimpleScalingPolicyConfigurationProperty( adjustment_type="adjustmentType", cool_down=123, scaling_adjustment=123 ) ), description="description", name="name", trigger=emr_mixins.CfnInstanceGroupConfigPropsMixin.ScalingTriggerProperty( cloud_watch_alarm_definition=emr_mixins.CfnInstanceGroupConfigPropsMixin.CloudWatchAlarmDefinitionProperty( comparison_operator="comparisonOperator", dimensions=[emr_mixins.CfnInstanceGroupConfigPropsMixin.MetricDimensionProperty( key="key", value="value" )], evaluation_periods=123, metric_name="metricName", namespace="namespace", period=123, statistic="statistic", threshold=123, unit="unit" ) ) )] ), bid_price="bidPrice", configurations=[emr_mixins.CfnInstanceGroupConfigPropsMixin.ConfigurationProperty( classification="classification", configuration_properties={ "configuration_properties_key": "configurationProperties" }, configurations=[configuration_property_] )], custom_ami_id="customAmiId", ebs_configuration=emr_mixins.CfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty( ebs_block_device_configs=[emr_mixins.CfnInstanceGroupConfigPropsMixin.EbsBlockDeviceConfigProperty( volume_specification=emr_mixins.CfnInstanceGroupConfigPropsMixin.VolumeSpecificationProperty( iops=123, size_in_gb=123, throughput=123, volume_type="volumeType" ), volumes_per_instance=123 )], ebs_optimized=False ), instance_count=123, instance_role="instanceRole", instance_type="instanceType", job_flow_id="jobFlowId", market="market", name="name" )
Attributes
- auto_scaling_policy
AutoScalingPolicyis a subproperty ofInstanceGroupConfig.AutoScalingPolicydefines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .
- bid_price
If specified, indicates that the instance group uses Spot Instances.
This is the maximum price you are willing to pay for Spot Instances. Specify
OnDemandPriceto set the amount equal to the On-Demand price, or specify an amount in USD.
- configurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- custom_ami_id
The custom AMI ID to use for the provisioned instance group.
- ebs_configuration
EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.
- instance_count
Target number of instances for the instance group.
- instance_role
The role of the instance group in the cluster.
Allowed Values : TASK
- instance_type
The Amazon EC2 instance type for all instances in the instance group.
- job_flow_id
The ID of an Amazon EMR cluster that you want to associate this instance group with.
- market
Market type of the Amazon EC2 instances used to create a cluster node.
- name
Friendly name given to the instance group.