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
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 | |