start_notebook_execution
async
¶
start_notebook_execution(
*,
config_overrides: Optional[AsyncEMRClientConfig] = None,
editor_id: Optional[XmlStringMaxLen256] = None,
relative_path: Optional[XmlString] = None,
notebook_execution_name: Optional[XmlStringMaxLen256] = None,
notebook_params: Optional[XmlString] = None,
execution_engine: Optional[ExecutionEngineConfig] = None,
service_role: Optional[XmlString] = None,
notebook_instance_security_group_id: Optional[XmlStringMaxLen256] = None,
tags: Optional[TagList] = None,
notebook_s3_location: Optional[NotebookS3LocationFromInput] = None,
output_notebook_s3_location: Optional[OutputNotebookS3LocationFromInput] = None,
output_notebook_format: Optional[OutputNotebookFormat] = None,
environment_variables: Optional[EnvironmentVariablesMap] = None,
) -> StartNotebookExecutionOutput
Starts a notebook execution.
Parameters:
-
editor_id(Optional[XmlStringMaxLen256], default:None) –The unique identifier of the Amazon EMR Notebook to use for notebook execution.
-
relative_path(Optional[XmlString], default:None) –The path and file name of the notebook file for this execution, relative to the path specified for the Amazon EMR Notebook. For example, if you specify a path of
s3://MyBucket/MyNotebookswhen you create an Amazon EMR Notebook for a notebook with an ID ofe-ABCDEFGHIJK1234567890ABCD(theEditorIDof this request), and you specify aRelativePathofmy_notebook_executions/notebook_execution.ipynb, the location of the file for the notebook execution iss3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb. -
notebook_execution_name(Optional[XmlStringMaxLen256], default:None) –An optional name for the notebook execution.
-
notebook_params(Optional[XmlString], default:None) –Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution.
-
execution_engine(Optional[ExecutionEngineConfig], default:None) –Specifies the execution engine (cluster) that runs the notebook execution.
-
service_role(Optional[XmlString], default:None) –The name or ARN of the IAM role that is used as the service role for Amazon EMR (the Amazon EMR role) for the notebook execution.
-
notebook_instance_security_group_id(Optional[XmlStringMaxLen256], default:None) –The unique identifier of the Amazon EC2 security group to associate with the Amazon EMR Notebook for this notebook execution.
-
tags(Optional[TagList], default:None) –A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters and an optional value string with a maximum of 256 characters.
-
notebook_s3_location(Optional[NotebookS3LocationFromInput], default:None) –The Amazon S3 location for the notebook execution input.
-
output_notebook_s3_location(Optional[OutputNotebookS3LocationFromInput], default:None) –The Amazon S3 location for the notebook execution output.
-
output_notebook_format(Optional[OutputNotebookFormat], default:None) –The output format for the notebook execution.
-
environment_variables(Optional[EnvironmentVariablesMap], default:None) –The environment variables associated with the notebook execution.
Raises:
-
InternalServerException–This exception occurs when there is an internal failure in the Amazon EMR service.
-
InvalidRequestException–This exception occurs when there is something wrong with user input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr/_services/async_emr.py
4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 | |