start_job_run
¶
start_job_run(
application_id: ApplicationId,
client_token: ClientToken,
execution_role_arn: IAMRoleArn,
*,
config_overrides: Optional[EMRServerlessClientConfig] = None,
execution_iam_policy: Optional[JobRunExecutionIamPolicy] = None,
job_driver: Optional[JobDriver] = None,
configuration_overrides: Optional[ConfigurationOverrides] = None,
tags: Optional[TagMap] = None,
execution_timeout_minutes: Optional[Duration] = None,
name: Optional[String256] = None,
mode: Optional[JobRunMode] = None,
retry_policy: Optional[RetryPolicy] = None,
) -> StartJobRunResponse
Starts a job run.
Parameters:
-
application_id(ApplicationId) –The ID of the application on which to run the job.
-
client_token(ClientToken) –The client idempotency token of the job run to start. Its value must be unique for each request.
-
execution_role_arn(IAMRoleArn) –The execution role ARN for the job run.
-
execution_iam_policy(Optional[JobRunExecutionIamPolicy], default:None) –You can pass an optional IAM policy. The resulting job IAM role permissions will be an intersection of this policy and the policy associated with your job execution role.
-
job_driver(Optional[JobDriver], default:None) –The job driver for the job run.
-
configuration_overrides(Optional[ConfigurationOverrides], default:None) –The configuration overrides for the job run.
-
tags(Optional[TagMap], default:None) –The tags assigned to the job run.
-
execution_timeout_minutes(Optional[Duration], default:None) –The maximum duration, in minutes, for the job run. If the job run exceeds this duration, Amazon EMR Serverless cancels it automatically.
For BATCH mode job runs, the maximum value is 10080 minutes (7 days) starting with Amazon EMR release 7.11. Setting a value of 0 to disable the timeout is no longer supported for BATCH mode job runs.
-
name(Optional[String256], default:None) –The optional job run name. This doesn't have to be unique.
-
mode(Optional[JobRunMode], default:None) –The mode of the job run when it starts.
-
retry_policy(Optional[RetryPolicy], default:None) –The retry policy when job run starts.
Raises:
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
InternalServerException–Request processing failed because of an error or failure with the service.
-
ResourceNotFoundException–The specified resource was not found.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr_serverless/_services/emr_serverless.py
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 | |