1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartEventsDetectionJob`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`input_data_config(InputDataConfig)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::input_data_config) / [`set_input_data_config(Option<InputDataConfig>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_input_data_config):<br>required: **true**<br><p>Specifies the format and location of the input data for the job.</p><br>
    ///   - [`output_data_config(OutputDataConfig)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::output_data_config) / [`set_output_data_config(Option<OutputDataConfig>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_output_data_config):<br>required: **true**<br><p>Specifies where to send the output files.</p><br>
    ///   - [`data_access_role_arn(impl Into<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::data_access_role_arn) / [`set_data_access_role_arn(Option<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_data_access_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.</p><br>
    ///   - [`job_name(impl Into<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::job_name) / [`set_job_name(Option<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_job_name):<br>required: **false**<br><p>The identifier of the events detection job.</p><br>
    ///   - [`language_code(LanguageCode)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::language_code) / [`set_language_code(Option<LanguageCode>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_language_code):<br>required: **true**<br><p>The language code of the input documents.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_client_request_token):<br>required: **false**<br><p>An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.</p><br>
    ///   - [`target_event_types(impl Into<String>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::target_event_types) / [`set_target_event_types(Option<Vec::<String>>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_target_event_types):<br>required: **true**<br><p>The types of events to detect in the input documents.</p><br>
    ///   - [`tags(Tag)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to associate with the events detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.</p><br>
    /// - On success, responds with [`StartEventsDetectionJobOutput`](crate::operation::start_events_detection_job::StartEventsDetectionJobOutput) with field(s):
    ///   - [`job_id(Option<String>)`](crate::operation::start_events_detection_job::StartEventsDetectionJobOutput::job_id): <p>An unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.</p>
    ///   - [`job_arn(Option<String>)`](crate::operation::start_events_detection_job::StartEventsDetectionJobOutput::job_arn): <p>The Amazon Resource Name (ARN) of the events detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:</p>  <p> <code>arn:   <partition>    :comprehend:    <region>     :     <account-id>      :events-detection-job/      <job-id></job-id>     </account-id>    </region>   </partition></code> </p>  <p>The following is an example job ARN:</p>  <p> <code>arn:aws:comprehend:us-west-2:111122223333:events-detection-job/1234abcd12ab34cd56ef1234567890ab</code> </p>
    ///   - [`job_status(Option<JobStatus>)`](crate::operation::start_events_detection_job::StartEventsDetectionJobOutput::job_status): <p>The status of the events detection job.</p>
    /// - On failure, responds with [`SdkError<StartEventsDetectionJobError>`](crate::operation::start_events_detection_job::StartEventsDetectionJobError)
    pub fn start_events_detection_job(&self) -> crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder {
        crate::operation::start_events_detection_job::builders::StartEventsDetectionJobFluentBuilder::new(self.handle.clone())
    }
}