Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the operation to track the status of a job.
Synopsis
- data StartTargetedSentimentDetectionJob = StartTargetedSentimentDetectionJob' {}
- newStartTargetedSentimentDetectionJob :: InputDataConfig -> OutputDataConfig -> Text -> LanguageCode -> StartTargetedSentimentDetectionJob
- startTargetedSentimentDetectionJob_clientRequestToken :: Lens' StartTargetedSentimentDetectionJob (Maybe Text)
- startTargetedSentimentDetectionJob_jobName :: Lens' StartTargetedSentimentDetectionJob (Maybe Text)
- startTargetedSentimentDetectionJob_tags :: Lens' StartTargetedSentimentDetectionJob (Maybe [Tag])
- startTargetedSentimentDetectionJob_volumeKmsKeyId :: Lens' StartTargetedSentimentDetectionJob (Maybe Text)
- startTargetedSentimentDetectionJob_vpcConfig :: Lens' StartTargetedSentimentDetectionJob (Maybe VpcConfig)
- startTargetedSentimentDetectionJob_inputDataConfig :: Lens' StartTargetedSentimentDetectionJob InputDataConfig
- startTargetedSentimentDetectionJob_outputDataConfig :: Lens' StartTargetedSentimentDetectionJob OutputDataConfig
- startTargetedSentimentDetectionJob_dataAccessRoleArn :: Lens' StartTargetedSentimentDetectionJob Text
- startTargetedSentimentDetectionJob_languageCode :: Lens' StartTargetedSentimentDetectionJob LanguageCode
- data StartTargetedSentimentDetectionJobResponse = StartTargetedSentimentDetectionJobResponse' {}
- newStartTargetedSentimentDetectionJobResponse :: Int -> StartTargetedSentimentDetectionJobResponse
- startTargetedSentimentDetectionJobResponse_jobArn :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe Text)
- startTargetedSentimentDetectionJobResponse_jobId :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe Text)
- startTargetedSentimentDetectionJobResponse_jobStatus :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe JobStatus)
- startTargetedSentimentDetectionJobResponse_httpStatus :: Lens' StartTargetedSentimentDetectionJobResponse Int
Creating a Request
data StartTargetedSentimentDetectionJob Source #
See: newStartTargetedSentimentDetectionJob
smart constructor.
StartTargetedSentimentDetectionJob' | |
|
Instances
newStartTargetedSentimentDetectionJob Source #
Create a value of StartTargetedSentimentDetectionJob
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientRequestToken:StartTargetedSentimentDetectionJob'
, startTargetedSentimentDetectionJob_clientRequestToken
- A unique identifier for the request. If you don't set the client
request token, Amazon Comprehend generates one.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_jobName
- The identifier of the job.
$sel:tags:StartTargetedSentimentDetectionJob'
, startTargetedSentimentDetectionJob_tags
- Tags to be associated with the targeted 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.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_volumeKmsKeyId
- ID for the 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:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_vpcConfig
- Undocumented member.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_inputDataConfig
- Undocumented member.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_outputDataConfig
- Specifies where to send the output files.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
For more information, see
Role-based permissions.
StartTargetedSentimentDetectionJob
, startTargetedSentimentDetectionJob_languageCode
- The language of the input documents. Currently, English is the only
supported language.
Request Lenses
startTargetedSentimentDetectionJob_clientRequestToken :: Lens' StartTargetedSentimentDetectionJob (Maybe Text) Source #
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
startTargetedSentimentDetectionJob_jobName :: Lens' StartTargetedSentimentDetectionJob (Maybe Text) Source #
The identifier of the job.
startTargetedSentimentDetectionJob_tags :: Lens' StartTargetedSentimentDetectionJob (Maybe [Tag]) Source #
Tags to be associated with the targeted 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.
startTargetedSentimentDetectionJob_volumeKmsKeyId :: Lens' StartTargetedSentimentDetectionJob (Maybe Text) Source #
ID for the 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:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
startTargetedSentimentDetectionJob_vpcConfig :: Lens' StartTargetedSentimentDetectionJob (Maybe VpcConfig) Source #
Undocumented member.
startTargetedSentimentDetectionJob_inputDataConfig :: Lens' StartTargetedSentimentDetectionJob InputDataConfig Source #
Undocumented member.
startTargetedSentimentDetectionJob_outputDataConfig :: Lens' StartTargetedSentimentDetectionJob OutputDataConfig Source #
Specifies where to send the output files.
startTargetedSentimentDetectionJob_dataAccessRoleArn :: Lens' StartTargetedSentimentDetectionJob Text Source #
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
startTargetedSentimentDetectionJob_languageCode :: Lens' StartTargetedSentimentDetectionJob LanguageCode Source #
The language of the input documents. Currently, English is the only supported language.
Destructuring the Response
data StartTargetedSentimentDetectionJobResponse Source #
See: newStartTargetedSentimentDetectionJobResponse
smart constructor.
StartTargetedSentimentDetectionJobResponse' | |
|
Instances
newStartTargetedSentimentDetectionJobResponse Source #
Create a value of StartTargetedSentimentDetectionJobResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StartTargetedSentimentDetectionJobResponse
, startTargetedSentimentDetectionJobResponse_jobArn
- The Amazon Resource Name (ARN) of the targeted sentiment detection job.
It is a unique, fully qualified identifier for the job. It includes the
AWS account, Region, and the job ID. The format of the ARN is as
follows:
arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>
The following is an example job ARN:
arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab
StartTargetedSentimentDetectionJobResponse
, startTargetedSentimentDetectionJobResponse_jobId
- The identifier generated for the job. To get the status of a job, use
this identifier with the operation.
StartTargetedSentimentDetectionJobResponse
, startTargetedSentimentDetectionJobResponse_jobStatus
- The status of the job.
- SUBMITTED - The job has been received and is queued for processing.
- IN_PROGRESS - Amazon Comprehend is processing the job.
- COMPLETED - The job was successfully completed and the output is available.
- FAILED - The job did not complete. To get details, use the operation.
$sel:httpStatus:StartTargetedSentimentDetectionJobResponse'
, startTargetedSentimentDetectionJobResponse_httpStatus
- The response's http status code.
Response Lenses
startTargetedSentimentDetectionJobResponse_jobArn :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the targeted sentiment detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:
arn:<partition>:comprehend:<region>:<account-id>:targeted-sentiment-detection-job/<job-id>
The following is an example job ARN:
arn:aws:comprehend:us-west-2:111122223333:targeted-sentiment-detection-job/1234abcd12ab34cd56ef1234567890ab
startTargetedSentimentDetectionJobResponse_jobId :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe Text) Source #
The identifier generated for the job. To get the status of a job, use this identifier with the operation.
startTargetedSentimentDetectionJobResponse_jobStatus :: Lens' StartTargetedSentimentDetectionJobResponse (Maybe JobStatus) Source #
The status of the job.
- SUBMITTED - The job has been received and is queued for processing.
- IN_PROGRESS - Amazon Comprehend is processing the job.
- COMPLETED - The job was successfully completed and the output is available.
- FAILED - The job did not complete. To get details, use the operation.
startTargetedSentimentDetectionJobResponse_httpStatus :: Lens' StartTargetedSentimentDetectionJobResponse Int Source #
The response's http status code.