start_notebook_execution
¶
start_notebook_execution(
*,
config_overrides: Optional[EMRClientConfig] = 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/emr.py
4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 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 | |