aws_sdk_comprehend/client/
start_sentiment_detection_job.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`StartSentimentDetectionJob`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`input_data_config(InputDataConfig)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::input_data_config) / [`set_input_data_config(Option<InputDataConfig>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_input_data_config):<br>required: **true**<br><p>Specifies the format and location of the input data for the job.</p><br>
7    ///   - [`output_data_config(OutputDataConfig)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::output_data_config) / [`set_output_data_config(Option<OutputDataConfig>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_output_data_config):<br>required: **true**<br><p>Specifies where to send the output files.</p><br>
8    ///   - [`data_access_role_arn(impl Into<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::data_access_role_arn) / [`set_data_access_role_arn(Option<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::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. For more information, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/security_iam_id-based-policy-examples.html#auth-role-permissions">Role-based permissions</a>.</p><br>
9    ///   - [`job_name(impl Into<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::job_name) / [`set_job_name(Option<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_job_name):<br>required: **false**<br><p>The identifier of the job.</p><br>
10    ///   - [`language_code(LanguageCode)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::language_code) / [`set_language_code(Option<LanguageCode>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_language_code):<br>required: **true**<br><p>The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.</p><br>
11    ///   - [`client_request_token(impl Into<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_client_request_token):<br>required: **false**<br><p>A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.</p><br>
12    ///   - [`volume_kms_key_id(impl Into<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::volume_kms_key_id) / [`set_volume_kms_key_id(Option<String>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_volume_kms_key_id):<br>required: **false**<br><p>ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:</p> <ul>  <li>   <p>KMS Key ID: <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code></p></li>  <li>   <p>Amazon Resource Name (ARN) of a KMS Key: <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code></p></li> </ul><br>
13    ///   - [`vpc_config(VpcConfig)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::vpc_config) / [`set_vpc_config(Option<VpcConfig>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_vpc_config):<br>required: **false**<br><p>Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your sentiment detection job. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon VPC</a>.</p><br>
14    ///   - [`tags(Tag)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to associate with the sentiment 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>
15    /// - On success, responds with [`StartSentimentDetectionJobOutput`](crate::operation::start_sentiment_detection_job::StartSentimentDetectionJobOutput) with field(s):
16    ///   - [`job_id(Option<String>)`](crate::operation::start_sentiment_detection_job::StartSentimentDetectionJobOutput::job_id): <p>The identifier generated for the job. To get the status of a job, use this identifier with the operation.</p>
17    ///   - [`job_arn(Option<String>)`](crate::operation::start_sentiment_detection_job::StartSentimentDetectionJobOutput::job_arn): <p>The Amazon Resource Name (ARN) of the sentiment 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>      :sentiment-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:sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab</code></p>
18    ///   - [`job_status(Option<JobStatus>)`](crate::operation::start_sentiment_detection_job::StartSentimentDetectionJobOutput::job_status): <p>The status of the job.</p> <ul>  <li>   <p>SUBMITTED - The job has been received and is queued for processing.</p></li>  <li>   <p>IN_PROGRESS - Amazon Comprehend is processing the job.</p></li>  <li>   <p>COMPLETED - The job was successfully completed and the output is available.</p></li>  <li>   <p>FAILED - The job did not complete. To get details, use the operation.</p></li> </ul>
19    /// - On failure, responds with [`SdkError<StartSentimentDetectionJobError>`](crate::operation::start_sentiment_detection_job::StartSentimentDetectionJobError)
20    pub fn start_sentiment_detection_job(
21        &self,
22    ) -> crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder {
23        crate::operation::start_sentiment_detection_job::builders::StartSentimentDetectionJobFluentBuilder::new(self.handle.clone())
24    }
25}