Interface CfnInstanceGroupConfigMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstanceGroupConfigMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.emr.*;
ConfigurationProperty configurationProperty_;
CfnInstanceGroupConfigMixinProps cfnInstanceGroupConfigMixinProps = CfnInstanceGroupConfigMixinProps.builder()
.autoScalingPolicy(AutoScalingPolicyProperty.builder()
.constraints(ScalingConstraintsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build())
.rules(List.of(ScalingRuleProperty.builder()
.action(ScalingActionProperty.builder()
.market("market")
.simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder()
.adjustmentType("adjustmentType")
.coolDown(123)
.scalingAdjustment(123)
.build())
.build())
.description("description")
.name("name")
.trigger(ScalingTriggerProperty.builder()
.cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder()
.comparisonOperator("comparisonOperator")
.dimensions(List.of(MetricDimensionProperty.builder()
.key("key")
.value("value")
.build()))
.evaluationPeriods(123)
.metricName("metricName")
.namespace("namespace")
.period(123)
.statistic("statistic")
.threshold(123)
.unit("unit")
.build())
.build())
.build()))
.build())
.bidPrice("bidPrice")
.configurations(List.of(ConfigurationProperty.builder()
.classification("classification")
.configurationProperties(Map.of(
"configurationPropertiesKey", "configurationProperties"))
.configurations(List.of(configurationProperty_))
.build()))
.customAmiId("customAmiId")
.ebsConfiguration(EbsConfigurationProperty.builder()
.ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
.volumeSpecification(VolumeSpecificationProperty.builder()
.iops(123)
.sizeInGb(123)
.throughput(123)
.volumeType("volumeType")
.build())
.volumesPerInstance(123)
.build()))
.ebsOptimized(false)
.build())
.instanceCount(123)
.instanceRole("instanceRole")
.instanceType("instanceType")
.jobFlowId("jobFlowId")
.market("market")
.name("name")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstanceGroupConfigMixinPropsstatic final classAn implementation forCfnInstanceGroupConfigMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAutoScalingPolicyis a subproperty ofInstanceGroupConfig.default StringIf specified, indicates that the instance group uses Spot Instances.default Objectdefault StringThe custom AMI ID to use for the provisioned instance group.default ObjectEbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.default NumberTarget number of instances for the instance group.default StringThe role of the instance group in the cluster.default StringThe Amazon EC2 instance type for all instances in the instance group.default StringThe ID of an Amazon EMR cluster that you want to associate this instance group with.default StringMarket type of the Amazon EC2 instances used to create a cluster node.default StringgetName()Friendly name given to the instance group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingPolicy
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 .Returns union: either
IResolvableorCfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty- See Also:
-
getBidPrice
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.- See Also:
-
getConfigurations
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).
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstanceGroupConfigPropsMixin.ConfigurationProperty>- See Also:
-
getCustomAmiId
The custom AMI ID to use for the provisioned instance group.- See Also:
-
getEbsConfiguration
EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.Returns union: either
IResolvableorCfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty- See Also:
-
getInstanceCount
Target number of instances for the instance group.- See Also:
-
getInstanceRole
The role of the instance group in the cluster.Allowed Values : TASK
- See Also:
-
getInstanceType
The Amazon EC2 instance type for all instances in the instance group.- See Also:
-
getJobFlowId
The ID of an Amazon EMR cluster that you want to associate this instance group with.- See Also:
-
getMarket
Market type of the Amazon EC2 instances used to create a cluster node.- See Also:
-
getName
Friendly name given to the instance group.- See Also:
-
builder
-