Amazon EMR · Schema
RunJobFlowInput
Amazon Web ServicesAnalyticsApache SparkBig DataData ProcessingHadoop
Properties
| Name | Type | Description |
|---|---|---|
| Name | string | The name of the job flow. |
| LogUri | string | The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created. |
| LogEncryptionKmsKeyId | string | The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR releases 5.30.0 and later, excluding Amazo |
| AdditionalInfo | string | A JSON string for selecting additional features. |
| AmiVersion | string | Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel is used. To specify a custom AMI, use CustomAmiID. |
| ReleaseLabel | string | The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x, where x.x.x is an Amazon EMR release |
| Instances | object | |
| Steps | array | A list of steps to run. |
| StepExecutionRoleArn | string | The Amazon Resource Name (ARN) of the runtime role for steps specified in the RunJobFlow request. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, |
| BootstrapActions | array | A list of bootstrap actions to run before Hadoop starts on the cluster nodes. |
| SupportedProducts | array | For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications. A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Dev |
| NewSupportedProducts | array | For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications. A list of strings that indicates third-party software to use with the job flow that accepts a user argumen |
| Applications | array | Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each |
| Configurations | array | For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating. |
| VisibleToAllUsers | boolean | The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true. Setting it to false now has no effect. Set this value to true so that IAM principals in the Amazon Web Ser |
| JobFlowRole | string | Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster. The Amazon EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. In order to |
| ServiceRole | string | The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. If you've created a custom service role path, you must specify it for the service role when you la |
| Tags | array | A list of tags to associate with a cluster and propagate to Amazon EC2 instances. |
| SecurityConfiguration | string | The name of a security configuration to apply to the cluster. |
| AutoScalingRole | string | An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazo |
| ScaleDownBehavior | string | Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR termin |
| CustomAmiId | string | Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster Amazon EC2 instances. For more in |
| EbsRootVolumeSize | integer | The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 4.x and later. |
| RepoUpgradeOnBoot | string | Applies only when CustomAmiID is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is S |
| KerberosAttributes | object | |
| StepConcurrencyLevel | integer | Specifies the number of steps that can be executed concurrently. The default value is 1. The maximum value is 256. |
| ManagedScalingPolicy | object | |
| PlacementGroupConfigs | array | The specified placement group configuration for an Amazon EMR cluster. |
| AutoTerminationPolicy | object | |
| OSReleaseLabel | string | Specifies a particular Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If a release is not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster l |
| EbsRootVolumeIops | integer | The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later. |
| EbsRootVolumeThroughput | integer | The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later. |
| ExtendedSupport | boolean | Reserved. |
| MonitoringConfiguration | object | |
| SessionEnabled | boolean | Indicates whether Spark Connect sessions are enabled on the cluster. When set to true, you can start Spark Connect sessions using the StartSession operation. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-run-job-flow-input-schema.json",
"title": "RunJobFlowInput",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/amazon-emr-operations-api-openapi.yml#/components/schemas/RunJobFlowInput",
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "The name of the job flow."
},
"LogUri": {
"type": "string",
"description": "The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created."
},
"LogEncryptionKmsKeyId": {
"type": "string",
"description": "The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR releases 5.30.0 and later, excluding Amazon EMR 6.0.0."
},
"AdditionalInfo": {
"type": "string",
"description": "A JSON string for selecting additional features."
},
"AmiVersion": {
"type": "string",
"description": "Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel is used. To specify a custom AMI, use CustomAmiID."
},
"ReleaseLabel": {
"type": "string",
"description": "The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x, where x.x.x is an Amazon EMR release version such as emr-5.14.0. For more information about Amazon EMR release versions and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion."
},
"Instances": {
"$ref": "#/$defs/JobFlowInstancesConfig"
},
"Steps": {
"type": "array",
"items": {
"$ref": "#/$defs/StepConfig"
},
"description": "A list of steps to run."
},
"StepExecutionRoleArn": {
"type": "string",
"description": "The Amazon Resource Name (ARN) of the runtime role for steps specified in the RunJobFlow request. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:iam::account-id:role/role-name. For example, arn:aws:iam::1234567890:role/ReadOnly is a correctly formatted runtime role ARN. This parameter applies only to steps included in the Steps parameter of this RunJobFlow request. It does not apply to steps added later to the cluster."
},
"BootstrapActions": {
"type": "array",
"items": {
"$ref": "#/$defs/BootstrapActionConfig"
},
"description": "A list of bootstrap actions to run before Hadoop starts on the cluster nodes."
},
"SupportedProducts": {
"type": "array",
"items": {
"type": "string"
},
"description": "For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications. A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently supported values are: \"mapr-m3\" - launch the job flow using MapR M3 Edition. \"mapr-m5\" - launch the job flow using MapR M5 Edition."
},
"NewSupportedProducts": {
"type": "array",
"items": {
"$ref": "#/$defs/SupportedProductConfig"
},
"description": "For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications. A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see \"Launch a Job Flow on the MapR Distribution for Hadoop\" in the Amazon EMR Developer Guide. Supported values are: \"mapr-m3\" - launch the cluster using MapR M3 Edition. \"mapr-m5\" - launch the cluster using MapR M5 Edition. \"mapr\" with the user ar"
},
"Applications": {
"type": "array",
"items": {
"$ref": "#/$defs/Application"
},
"description": "Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the Amazon EMRRelease Guide."
},
"Configurations": {
"type": "array",
"items": {
"$ref": "#/$defs/Configuration"
},
"description": "For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating."
},
"VisibleToAllUsers": {
"type": "boolean",
"description": "The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true. Setting it to false now has no effect. Set this value to true so that IAM principals in the Amazon Web Services account associated with the cluster can perform Amazon EMR actions on the cluster that their IAM policies allow. This value defaults to true for clusters created using the Amazon EMR API or the CLI create-cluster command. When set to false, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions for the cluster, regardless "
},
"JobFlowRole": {
"type": "string",
"description": "Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster. The Amazon EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. In order to use the default role, you must have already created it using the CLI or console."
},
"ServiceRole": {
"type": "string",
"description": "The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. If you've created a custom service role path, you must specify it for the service role when you launch your cluster."
},
"Tags": {
"type": "array",
"items": {
"$ref": "#/$defs/Tag"
},
"description": "A list of tags to associate with a cluster and propagate to Amazon EC2 instances."
},
"SecurityConfiguration": {
"type": "string",
"description": "The name of a security configuration to apply to the cluster."
},
"AutoScalingRole": {
"type": "string",
"description": "An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group."
},
"ScaleDownBehavior": {
"type": "string",
"enum": [
"TERMINATE_AT_INSTANCE_HOUR",
"TERMINATE_AT_TASK_COMPLETION"
],
"description": "Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless"
},
"CustomAmiId": {
"type": "string",
"description": "Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster Amazon EC2 instances. For more information about custom AMIs in Amazon EMR, see Using a Custom AMI in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the ReleaseLabel specified. For Amazon EMR releases 2.x and 3.x, use AmiVersion instead. For information about creating a custom AMI, see Creating an Amazon EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. "
},
"EbsRootVolumeSize": {
"type": "integer",
"description": "The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 4.x and later."
},
"RepoUpgradeOnBoot": {
"type": "string",
"enum": [
"SECURITY",
"NONE"
],
"description": "Applies only when CustomAmiID is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is SECURITY, which indicates that only security updates are applied. If NONE is specified, no updates are applied, and all updates must be applied manually."
},
"KerberosAttributes": {
"$ref": "#/$defs/KerberosAttributes"
},
"StepConcurrencyLevel": {
"type": "integer",
"description": "Specifies the number of steps that can be executed concurrently. The default value is 1. The maximum value is 256."
},
"ManagedScalingPolicy": {
"$ref": "#/$defs/ManagedScalingPolicy"
},
"PlacementGroupConfigs": {
"type": "array",
"items": {
"$ref": "#/$defs/PlacementGroupConfig"
},
"description": "The specified placement group configuration for an Amazon EMR cluster."
},
"AutoTerminationPolicy": {
"$ref": "#/$defs/AutoTerminationPolicy"
},
"OSReleaseLabel": {
"type": "string",
"description": "Specifies a particular Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If a release is not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster launch."
},
"EbsRootVolumeIops": {
"type": "integer",
"description": "The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later."
},
"EbsRootVolumeThroughput": {
"type": "integer",
"description": "The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later."
},
"ExtendedSupport": {
"type": "boolean",
"description": "Reserved."
},
"MonitoringConfiguration": {
"$ref": "#/$defs/MonitoringConfiguration"
},
"SessionEnabled": {
"type": "boolean",
"description": "Indicates whether Spark Connect sessions are enabled on the cluster. When set to true, you can start Spark Connect sessions using the StartSession operation."
}
},
"required": [
"Name",
"Instances"
],
"$defs": {
"Application": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "The name of the application."
},
"Version": {
"type": "string",
"description": "The version of the application."
},
"Args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments for Amazon EMR to pass to the application."
},
"AdditionalInfo": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes."
}
}
},
"AutoScalingPolicy": {
"type": "object",
"properties": {
"Constraints": {
"$ref": "#/$defs/ScalingConstraints"
},
"Rules": {
"type": "array",
"items": {
"$ref": "#/$defs/ScalingRule"
},
"description": "The scale-in and scale-out rules that comprise the automatic scaling policy."
}
},
"required": [
"Constraints",
"Rules"
]
},
"AutoTerminationPolicy": {
"type": "object",
"properties": {
"IdleTimeout": {
"type": "integer",
"description": "Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days)."
}
}
},
"BootstrapActionConfig": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "The name of the bootstrap action."
},
"ScriptBootstrapAction": {
"$ref": "#/$defs/ScriptBootstrapActionConfig"
}
},
"required": [
"Name",
"ScriptBootstrapAction"
]
},
"CloudWatchAlarmDefinition": {
"type": "object",
"properties": {
"ComparisonOperator": {
"type": "string",
"enum": [
"GREATER_THAN_OR_EQUAL",
"GREATER_THAN",
"LESS_THAN",
"LESS_THAN_OR_EQUAL"
],
"description": "Determines how the metric specified by MetricName is compared to the value specified by Threshold."
},
"EvaluationPeriods": {
"type": "integer",
"description": "The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1."
},
"MetricName": {
"type": "string",
"description": "The name of the CloudWatch metric that is watched to determine an alarm condition."
},
"Namespace": {
"type": "string",
"description": "The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce."
},
"Period": {
"type": "integer",
"description": "The period, in seconds, over which the statistic is applied. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify 300."
},
"Statistic": {
"type": "string",
"enum": [
"SAMPLE_COUNT",
"AVERAGE",
"SUM",
"MINIMUM",
"MAXIMUM"
],
"description": "The statistic to apply to the metric associated with the alarm. The default is AVERAGE."
},
"Threshold": {
"type": "number",
"description": "The value against which the specified statistic is compared."
},
"Unit": {
"type": "string",
"enum": [
"NONE",
"SECONDS",
"MICRO_SECONDS",
"MILLI_SECONDS",
"BYTES",
"KILO_BYTES",
"MEGA_BYTES",
"GIGA_BYTES",
"TERA_BYTES",
"BITS",
"KILO_BITS",
"MEGA_BITS",
"GIGA_BITS",
"TERA_BITS",
"PERCENT",
"COUNT",
"BYTES_PER_SECOND",
"KILO_BYTES_PER_SECOND",
"MEGA_BYTES_PER_SECOND",
"GIGA_BYTES_PER_SECOND",
"TERA_BYTES_PER_SECOND",
"BITS_PER_SECOND",
"KILO_BITS_PER_SECOND",
"MEGA_BITS_PER_SECOND",
"GIGA_BITS_PER_SECOND",
"TERA_BITS_PER_SECOND",
"COUNT_PER_SECOND"
],
"description": "The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric."
},
"Dimensions": {
"type": "array",
"items": {
"$ref": "#/$defs/MetricDimension"
},
"description": "A CloudWatch metric dimension."
}
},
"required": [
"ComparisonOperator",
"MetricName",
"Period",
"Threshold"
]
},
"CloudWatchLogConfiguration": {
"type": "object",
"properties": {
"Enabled": {
"type": "boolean",
"description": "Specifies if CloudWatch logging is enabled."
},
"LogGroupName": {
"type": "string",
"description": "The name of the CloudWatch log group where logs are published."
},
"LogStreamNamePrefix": {
"type": "string",
"description": "The prefix of the log stream name."
},
"EncryptionKeyArn": {
"type": "string",
"description": "The ARN of the encryption key used to encrypt the logs."
},
"LogTypes": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "A map of log types to file names for publishing logs to the standard output or standard error streams for CloudWatch. Valid log types include STEP_LOGS, SPARK_DRIVER, and SPARK_EXECUTOR. Valid file names for each type include STDOUT and STDERR."
}
},
"required": [
"Enabled"
]
},
"ComputeLimits": {
"type": "object",
"properties": {
"UnitType": {
"type": "string",
"enum": [
"InstanceFleetUnits",
"Instances",
"VCPU"
],
"description": "The unit type used for specifying a managed scaling policy."
},
"MinimumCapacityUnits": {
"type": "integer",
"description": "The lower boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration."
},
"MaximumCapacityUnits": {
"type": "integer",
"description": "The upper boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration."
},
"MaximumOnDemandCapacityUnits": {
"type": "integer",
"description": "The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances."
},
"MaximumCoreCapacityUnits": {
"type": "integer",
"description": "The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes."
}
},
"required": [
"UnitType",
"MinimumCapacityUnits",
"MaximumCapacityUnits"
]
},
"Configuration": {
"type": "object",
"properties": {
"Classification": {
"type": "string",
"description": "The classification within a configuration."
},
"Configurations": {
"type": "array",
"items": {
"$ref": "#/$defs/Configuration"
},
"description": "A list of additional configurations to apply within a configuration object."
},
"Properties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "A set of properties specified within a configuration classification."
}
}
},
"EbsBlockDeviceConfig": {
"type": "object",
"properties": {
"VolumeSpecification": {
"$ref": "#/$defs/VolumeSpecification"
},
"VolumesPerInstance": {
"type": "integer",
"description": "Number of EBS volumes with a specific volume configuration that are associated with every instance in the instance group"
}
},
"required": [
"VolumeSpecification"
]
},
"EbsConfiguration": {
"type": "object",
"properties": {
"EbsBlockDeviceConfigs": {
"type": "array",
"items": {
"$ref": "#/$defs/EbsBlockDeviceConfig"
},
"description": "An array of Amazon EBS volume specifications attached to a cluster instance."
},
"EbsOptimized": {
"type": "boolean",
"description": "Indicates whether an Amazon EBS volume is EBS-optimized. The default is false. You should explicitly set this value to true to enable the Amazon EBS-optimized setting for an EC2 instance."
}
}
},
"HadoopJarStepConfig": {
"type": "object",
"properties": {
"Properties": {
"type": "array",
"items": {
"$ref": "#/$defs/KeyValue"
},
"description": "A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function."
},
"Jar": {
"type": "string",
"description": "A path to a JAR file run during the step."
},
"MainClass": {
"type": "string",
"description": "The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file."
},
"Args": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of command line arguments passed to the JAR file's main function when executed."
}
},
"required": [
"Jar"
]
},
"InstanceFleetConfig": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "The friendly name of the instance fleet."
},
"InstanceFleetType": {
"type": "string",
"enum": [
"MASTER",
"CORE",
"TASK"
],
"description": "The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK."
},
"TargetOnDemandCapacity": {
"type": "integer",
"description": "The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon"
},
"TargetSpotCapacity": {
"type": "integer",
"description": "The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provisi"
},
"InstanceTypeConfigs": {
"type": "array",
"items": {
"$ref": "#/$defs/InstanceTypeConfig"
},
"description": "The instance type configurations that define the Amazon EC2 instances in the instance fleet."
},
"LaunchSpecifications": {
"$ref": "#/$defs/InstanceFleetProvisioningSpecifications"
},
"ResizeSpecifications": {
"$ref": "#/$defs/InstanceFleetResizingSpecifications"
},
"Context": {
"type": "string",
"description": "Reserved."
}
},
"required": [
"InstanceFleetType"
]
},
"InstanceFleetProvisioningSpecifications": {
"type": "object",
"properties": {
"SpotSpecification": {
"$ref": "#/$defs/SpotProvisioningSpecification"
},
"OnDemandSpecification": {
"$ref": "#/$defs/OnDemandProvisioningSpecification"
}
}
},
"InstanceFleetResizingSpecifications": {
"type": "object",
"properties": {
"SpotResizeSpecification": {
"$ref": "#/$defs/SpotResizingSpecification"
},
"OnDemandResizeSpecification": {
"$ref": "#/$defs/OnDemandResizingSpecification"
}
}
},
"InstanceGroupConfig": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Friendly name given to the instance group."
},
"Market": {
"type": "string",
"enum": [
"ON_DEMAND",
"SPOT"
],
"description": "Market type of the Amazon EC2 instances used to create a cluster node."
},
"InstanceRole": {
"type": "string",
"enum": [
"MASTER",
"CORE",
"TASK"
],
"description": "The role of the instance group in the cluster."
},
"BidPrice": {
"type": "string",
"description": "The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%."
},
"InstanceType": {
"type": "string",
"description": "The Amazon EC2 instance type for all instances in the instance group."
},
"InstanceCount": {
"type": "integer",
"description": "Target number of instances for the instance group."
},
"Configurations": {
"type": "array",
"items": {
"$ref": "#/$defs/Configuration"
},
"description": "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)."
},
"EbsConfiguration": {
"$ref": "#/$defs/EbsConfiguration"
},
"AutoScalingPolicy": {
"$ref": "#/$defs/AutoScalingPolicy"
},
"CustomAmiId": {
"type": "string",
"description": "The custom AMI ID to use for the provisioned instance group."
}
},
"required": [
"InstanceRole",
"InstanceType",
"InstanceCount"
]
},
"InstanceTypeConfig": {
"type": "object",
"properties": {
"InstanceType": {
"type": "string",
"description": "An Amazon EC2 instance type, such as m3.xlarge."
},
"WeightedCapacity": {
"type": "integer",
"description": "The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified."
},
"BidPrice": {
"type": "string",
"description": "The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%."
},
"BidPriceAsPercentageOfOnDemandPrice": {
"type": "number",
"description": "The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%."
},
"EbsConfiguration": {
"$ref": "#/$defs/EbsConfiguration"
},
"Configurations": {
"type": "array",
"items": {
"$ref": "#/$defs/Configuration"
},
"description": "A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster."
},
"CustomAmiId": {
"type": "string",
"description": "The custom AMI ID to use for the instance type."
},
"Priority": {
"type": "number",
"description": "The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first."
}
},
"required": [
"InstanceType"
]
},
"JobFlowInstancesConfig": {
"type": "object",
"properties": {
"MasterInstanceType": {
"type": "string",
"description": "The Amazon EC2 instance type of the master node."
},
"SlaveInstanceType": {
"type": "string",
"description": "The Amazon EC2 instance type of the core and task nodes."
},
"InstanceCount": {
"type": "integer",
"description": "The number of Amazon EC2 instances in the cluster."
},
"InstanceGroups": {
"type": "array",
"items": {
"$ref": "#/$defs/InstanceGroupConfig"
},
"description": "Configuration for the instance groups in a cluster."
},
"InstanceFleets": {
"type": "array",
"items": {
"$ref": "#/$defs/InstanceFleetConfig"
},
"description": "The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration."
},
"Ec2KeyName": {
"type": "string",
"description": "The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called \"hadoop.\""
},
"Placement": {
"$ref": "#/$defs/PlacementType"
},
"KeepJobFlowAliveWhenNoSteps": {
"type": "boolean",
"description": "Specifies whether the cluster should remain available after completing all steps. Defaults to false. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide."
},
"TerminationProtected": {
"type": "boolean",
"description": "Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error."
},
"UnhealthyNodeReplacement": {
"type": "boolean",
"description": "Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster."
},
"HadoopVersion": {
"type": "string",
"description": "Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are \"0.18\" (no longer maintained), \"0.20\" (no longer maintained), \"0.20.205\" (no longer maintained), \"1.0.3\", \"2.2.0\", or \"2.4.0\". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in w
# --- truncated at 32 KB (55 KB total) ---
# Full source: https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-run-job-flow-input-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-emr-run-job-flow-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.