AWS.Comprehend reference
BatchDetectDominantLanguage
Section titled “BatchDetectDominantLanguage”Source:
src/AWS/Comprehend/BatchDetectDominantLanguage.ts
Runtime binding for comprehend:BatchDetectDominantLanguage — determine the dominant language for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectDominantLanguage: Batch Real-Time Analysis
Section titled “BatchDetectDominantLanguage: Batch Real-Time Analysis”// initconst batchDetectDominantLanguage = yield* AWS.Comprehend.BatchDetectDominantLanguage();
// runtimeconst result = yield* batchDetectDominantLanguage({ TextList: ["I love this product!", "The delivery was late."],});// result.ResultList[0].Languages[0].LanguageCode === "en"BatchDetectEntities
Section titled “BatchDetectEntities”Source:
src/AWS/Comprehend/BatchDetectEntities.ts
Runtime binding for comprehend:BatchDetectEntities — detect named entities for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectEntities: Batch Real-Time Analysis
Section titled “BatchDetectEntities: Batch Real-Time Analysis”// initconst batchDetectEntities = yield* AWS.Comprehend.BatchDetectEntities();
// runtimeconst result = yield* batchDetectEntities({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].EntitiesBatchDetectKeyPhrases
Section titled “BatchDetectKeyPhrases”Source:
src/AWS/Comprehend/BatchDetectKeyPhrases.ts
Runtime binding for comprehend:BatchDetectKeyPhrases — extract key phrases for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectKeyPhrases: Batch Real-Time Analysis
Section titled “BatchDetectKeyPhrases: Batch Real-Time Analysis”// initconst batchDetectKeyPhrases = yield* AWS.Comprehend.BatchDetectKeyPhrases();
// runtimeconst result = yield* batchDetectKeyPhrases({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].KeyPhrasesBatchDetectSentiment
Section titled “BatchDetectSentiment”Source:
src/AWS/Comprehend/BatchDetectSentiment.ts
Runtime binding for comprehend:BatchDetectSentiment — infer the prevailing sentiment for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectSentiment: Batch Real-Time Analysis
Section titled “BatchDetectSentiment: Batch Real-Time Analysis”// initconst batchDetectSentiment = yield* AWS.Comprehend.BatchDetectSentiment();
// runtimeconst result = yield* batchDetectSentiment({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].Sentiment === "POSITIVE"BatchDetectSyntax
Section titled “BatchDetectSyntax”Source:
src/AWS/Comprehend/BatchDetectSyntax.ts
Runtime binding for comprehend:BatchDetectSyntax — tokenize and label parts of speech for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectSyntax: Batch Real-Time Analysis
Section titled “BatchDetectSyntax: Batch Real-Time Analysis”// initconst batchDetectSyntax = yield* AWS.Comprehend.BatchDetectSyntax();
// runtimeconst result = yield* batchDetectSyntax({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].SyntaxTokensBatchDetectTargetedSentiment
Section titled “BatchDetectTargetedSentiment”Source:
src/AWS/Comprehend/BatchDetectTargetedSentiment.ts
Runtime binding for comprehend:BatchDetectTargetedSentiment — analyze entity-level (targeted) sentiment for a batch of up to 25 documents in a single call.
The response carries a ResultList (index-aligned with TextList) and an
ErrorList for documents that could not be processed. Like all Comprehend
real-time APIs the action has no resource-level IAM, so the binding takes
no arguments and grants the action on *.
BatchDetectTargetedSentiment: Batch Real-Time Analysis
Section titled “BatchDetectTargetedSentiment: Batch Real-Time Analysis”// initconst batchDetectTargetedSentiment = yield* AWS.Comprehend.BatchDetectTargetedSentiment();
// runtimeconst result = yield* batchDetectTargetedSentiment({ TextList: ["I love this product!", "The delivery was late."], LanguageCode: "en",});// result.ResultList[0].Entities[…].MentionsClassifyDocument
Section titled “ClassifyDocument”Source:
src/AWS/Comprehend/ClassifyDocument.ts
Runtime binding for comprehend:ClassifyDocument — classify a single
document in real time against a custom classifier endpoint or a
Comprehend prebuilt model ARN (EndpointArn).
The binding takes no arguments and grants the action on * — endpoints
are addressed per-request via EndpointArn, so the grant cannot be
scoped tighter at deploy time.
ClassifyDocument: Real-Time Analysis
Section titled “ClassifyDocument: Real-Time Analysis”// initconst classifyDocument = yield* AWS.Comprehend.ClassifyDocument();
// runtimeconst result = yield* classifyDocument({ Text: "Subject: your invoice for March is attached", EndpointArn: endpointArn,});// result.Classes: [{ Name: "INVOICE", Score: 0.98 }, …]ContainsPiiEntities
Section titled “ContainsPiiEntities”Source:
src/AWS/Comprehend/ContainsPiiEntities.ts
Runtime binding for comprehend:ContainsPiiEntities — check whether the
input text contains personally identifiable information, returning the
PII entity-type labels present (without offsets; use
DetectPiiEntities to locate them).
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
ContainsPiiEntities: Real-Time Analysis
Section titled “ContainsPiiEntities: Real-Time Analysis”// initconst containsPiiEntities = yield* AWS.Comprehend.ContainsPiiEntities();
// runtimeconst result = yield* containsPiiEntities({ Text: "My name is Jane Doe and my email is jane@example.com.", LanguageCode: "en",});// result.Labels: [{ Name: "NAME" }, { Name: "EMAIL" }]DescribeDocumentClassificationJob
Section titled “DescribeDocumentClassificationJob”Source:
src/AWS/Comprehend/DescribeDocumentClassificationJob.ts
Runtime binding for comprehend:DescribeDocumentClassificationJob — get the
properties (status, input/output config, timings) of an asynchronous
document classification job started with StartDocumentClassificationJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeDocumentClassificationJob: Monitoring Analysis Jobs
Section titled “DescribeDocumentClassificationJob: Monitoring Analysis Jobs”// initconst describeDocumentClassificationJob = yield* AWS.Comprehend.DescribeDocumentClassificationJob();
// runtimeconst job = yield* describeDocumentClassificationJob({ JobId: jobId });// job.DocumentClassificationJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeDominantLanguageDetectionJob
Section titled “DescribeDominantLanguageDetectionJob”Source:
src/AWS/Comprehend/DescribeDominantLanguageDetectionJob.ts
Runtime binding for comprehend:DescribeDominantLanguageDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
dominant-language detection job started with StartDominantLanguageDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeDominantLanguageDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeDominantLanguageDetectionJob: Monitoring Analysis Jobs”// initconst describeDominantLanguageDetectionJob = yield* AWS.Comprehend.DescribeDominantLanguageDetectionJob();
// runtimeconst job = yield* describeDominantLanguageDetectionJob({ JobId: jobId });// job.DominantLanguageDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeEntitiesDetectionJob
Section titled “DescribeEntitiesDetectionJob”Source:
src/AWS/Comprehend/DescribeEntitiesDetectionJob.ts
Runtime binding for comprehend:DescribeEntitiesDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
entity detection job started with StartEntitiesDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeEntitiesDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeEntitiesDetectionJob: Monitoring Analysis Jobs”// initconst describeEntitiesDetectionJob = yield* AWS.Comprehend.DescribeEntitiesDetectionJob();
// runtimeconst job = yield* describeEntitiesDetectionJob({ JobId: jobId });// job.EntitiesDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeEventsDetectionJob
Section titled “DescribeEventsDetectionJob”Source:
src/AWS/Comprehend/DescribeEventsDetectionJob.ts
Runtime binding for comprehend:DescribeEventsDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
event detection job started with StartEventsDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeEventsDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeEventsDetectionJob: Monitoring Analysis Jobs”// initconst describeEventsDetectionJob = yield* AWS.Comprehend.DescribeEventsDetectionJob();
// runtimeconst job = yield* describeEventsDetectionJob({ JobId: jobId });// job.EventsDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeKeyPhrasesDetectionJob
Section titled “DescribeKeyPhrasesDetectionJob”Source:
src/AWS/Comprehend/DescribeKeyPhrasesDetectionJob.ts
Runtime binding for comprehend:DescribeKeyPhrasesDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
key-phrase detection job started with StartKeyPhrasesDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeKeyPhrasesDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeKeyPhrasesDetectionJob: Monitoring Analysis Jobs”// initconst describeKeyPhrasesDetectionJob = yield* AWS.Comprehend.DescribeKeyPhrasesDetectionJob();
// runtimeconst job = yield* describeKeyPhrasesDetectionJob({ JobId: jobId });// job.KeyPhrasesDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribePiiEntitiesDetectionJob
Section titled “DescribePiiEntitiesDetectionJob”Source:
src/AWS/Comprehend/DescribePiiEntitiesDetectionJob.ts
Runtime binding for comprehend:DescribePiiEntitiesDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
PII entity detection job started with StartPiiEntitiesDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribePiiEntitiesDetectionJob: Monitoring Analysis Jobs
Section titled “DescribePiiEntitiesDetectionJob: Monitoring Analysis Jobs”// initconst describePiiEntitiesDetectionJob = yield* AWS.Comprehend.DescribePiiEntitiesDetectionJob();
// runtimeconst job = yield* describePiiEntitiesDetectionJob({ JobId: jobId });// job.PiiEntitiesDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeSentimentDetectionJob
Section titled “DescribeSentimentDetectionJob”Source:
src/AWS/Comprehend/DescribeSentimentDetectionJob.ts
Runtime binding for comprehend:DescribeSentimentDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
sentiment detection job started with StartSentimentDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeSentimentDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeSentimentDetectionJob: Monitoring Analysis Jobs”// initconst describeSentimentDetectionJob = yield* AWS.Comprehend.DescribeSentimentDetectionJob();
// runtimeconst job = yield* describeSentimentDetectionJob({ JobId: jobId });// job.SentimentDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeTargetedSentimentDetectionJob
Section titled “DescribeTargetedSentimentDetectionJob”Source:
src/AWS/Comprehend/DescribeTargetedSentimentDetectionJob.ts
Runtime binding for comprehend:DescribeTargetedSentimentDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
targeted-sentiment detection job started with StartTargetedSentimentDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeTargetedSentimentDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeTargetedSentimentDetectionJob: Monitoring Analysis Jobs”// initconst describeTargetedSentimentDetectionJob = yield* AWS.Comprehend.DescribeTargetedSentimentDetectionJob();
// runtimeconst job = yield* describeTargetedSentimentDetectionJob({ JobId: jobId });// job.TargetedSentimentDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DescribeTopicsDetectionJob
Section titled “DescribeTopicsDetectionJob”Source:
src/AWS/Comprehend/DescribeTopicsDetectionJob.ts
Runtime binding for comprehend:DescribeTopicsDetectionJob — get the
properties (status, input/output config, timings) of an asynchronous
topic modeling job started with StartTopicsDetectionJob.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
DescribeTopicsDetectionJob: Monitoring Analysis Jobs
Section titled “DescribeTopicsDetectionJob: Monitoring Analysis Jobs”// initconst describeTopicsDetectionJob = yield* AWS.Comprehend.DescribeTopicsDetectionJob();
// runtimeconst job = yield* describeTopicsDetectionJob({ JobId: jobId });// job.TopicsDetectionJobProperties?.JobStatus: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | …DetectDominantLanguage
Section titled “DetectDominantLanguage”Source:
src/AWS/Comprehend/DetectDominantLanguage.ts
Runtime binding for comprehend:DetectDominantLanguage — determine the
dominant language of the input text (returns RFC 5646 language codes with
confidence scores).
Comprehend’s synchronous detect APIs are pure pay-per-call with no
resource to manage: the binding takes no arguments and grants the action
on * (it has no resource-level IAM).
DetectDominantLanguage: Real-Time Analysis
Section titled “DetectDominantLanguage: Real-Time Analysis”// initconst detectDominantLanguage = yield* AWS.Comprehend.DetectDominantLanguage();
// runtimeconst result = yield* detectDominantLanguage({ Text: "Bob ordered two sandwiches yesterday.",});// result.Languages[0].LanguageCode === "en"DetectEntities
Section titled “DetectEntities”Source:
src/AWS/Comprehend/DetectEntities.ts
Runtime binding for comprehend:DetectEntities — detect named entities
(people, places, organizations, dates, quantities, …) in the input text
using the pre-trained model, or custom entities via a custom entity
recognizer endpoint (EndpointArn).
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM for the pre-trained model).
DetectEntities: Real-Time Analysis
Section titled “DetectEntities: Real-Time Analysis”// initconst detectEntities = yield* AWS.Comprehend.DetectEntities();
// runtimeconst result = yield* detectEntities({ Text: "Bob moved to Seattle in 2017.", LanguageCode: "en",});// result.Entities: [{ Type: "PERSON", Text: "Bob" }, { Type: "LOCATION", Text: "Seattle" }, …]DetectKeyPhrases
Section titled “DetectKeyPhrases”Source:
src/AWS/Comprehend/DetectKeyPhrases.ts
Runtime binding for comprehend:DetectKeyPhrases — extract the key noun
phrases of the input text with confidence scores and offsets.
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
DetectKeyPhrases: Real-Time Analysis
Section titled “DetectKeyPhrases: Real-Time Analysis”// initconst detectKeyPhrases = yield* AWS.Comprehend.DetectKeyPhrases();
// runtimeconst result = yield* detectKeyPhrases({ Text: "The quarterly earnings report exceeded analyst expectations.", LanguageCode: "en",});// result.KeyPhrases: [{ Text: "The quarterly earnings report" }, …]DetectPiiEntities
Section titled “DetectPiiEntities”Source:
src/AWS/Comprehend/DetectPiiEntities.ts
Runtime binding for comprehend:DetectPiiEntities — locate personally
identifiable information (names, addresses, bank account numbers, …) in
the input text, with entity type, score, and character offsets.
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM). To only test whether a document contains
PII, use the cheaper ContainsPiiEntities.
DetectPiiEntities: Real-Time Analysis
Section titled “DetectPiiEntities: Real-Time Analysis”// initconst detectPiiEntities = yield* AWS.Comprehend.DetectPiiEntities();
// runtimeconst result = yield* detectPiiEntities({ Text: "My name is Jane Doe and my email is jane@example.com.", LanguageCode: "en",});// result.Entities: [{ Type: "NAME", BeginOffset: 11, … }, { Type: "EMAIL", … }]DetectSentiment
Section titled “DetectSentiment”Source:
src/AWS/Comprehend/DetectSentiment.ts
Runtime binding for comprehend:DetectSentiment — infer the prevailing
sentiment of a piece of text (POSITIVE, NEGATIVE, NEUTRAL, or
MIXED).
Comprehend’s synchronous detect APIs are pure pay-per-call with no
resource to manage: the binding takes no arguments and grants the
function comprehend:DetectSentiment (the action has no resource-level
IAM).
DetectSentiment: Real-Time Analysis
Section titled “DetectSentiment: Real-Time Analysis”// initconst detectSentiment = yield* AWS.Comprehend.DetectSentiment();
// runtimeconst result = yield* detectSentiment({ Text: "I love this product, it works wonderfully!", LanguageCode: "en",});// result.Sentiment === "POSITIVE"// result.SentimentScore.Positive ~ 0.99DetectSyntax
Section titled “DetectSyntax”Source:
src/AWS/Comprehend/DetectSyntax.ts
Runtime binding for comprehend:DetectSyntax — tokenize the input text
and label each token with its part of speech (noun, verb, adjective, …).
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
DetectSyntax: Real-Time Analysis
Section titled “DetectSyntax: Real-Time Analysis”// initconst detectSyntax = yield* AWS.Comprehend.DetectSyntax();
// runtimeconst result = yield* detectSyntax({ Text: "The cat sat on the mat.", LanguageCode: "en",});// result.SyntaxTokens: [{ Text: "cat", PartOfSpeech: { Tag: "NOUN" } }, …]DetectTargetedSentiment
Section titled “DetectTargetedSentiment”Source:
src/AWS/Comprehend/DetectTargetedSentiment.ts
Runtime binding for comprehend:DetectTargetedSentiment — analyze the
sentiment expressed toward each entity mentioned in the input text
(entity-level sentiment rather than whole-document sentiment).
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
DetectTargetedSentiment: Real-Time Analysis
Section titled “DetectTargetedSentiment: Real-Time Analysis”// initconst detectTargetedSentiment = yield* AWS.Comprehend.DetectTargetedSentiment();
// runtimeconst result = yield* detectTargetedSentiment({ Text: "The screen is gorgeous but the battery life is disappointing.", LanguageCode: "en",});// result.Entities[…].Mentions[…].MentionSentiment.SentimentDetectToxicContent
Section titled “DetectToxicContent”Source:
src/AWS/Comprehend/DetectToxicContent.ts
Runtime binding for comprehend:DetectToxicContent — run toxicity
analysis over a list of text segments; the response carries one result per
segment with per-label scores (profanity, hate speech, harassment, …).
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM).
DetectToxicContent: Real-Time Analysis
Section titled “DetectToxicContent: Real-Time Analysis”// initconst detectToxicContent = yield* AWS.Comprehend.DetectToxicContent();
// runtimeconst result = yield* detectToxicContent({ TextSegments: [{ Text: "You are a wonderful person." }], LanguageCode: "en",});// result.ResultList[0].Toxicity ~ 0.01ListDocumentClassificationJobs
Section titled “ListDocumentClassificationJobs”Source:
src/AWS/Comprehend/ListDocumentClassificationJobs.ts
Runtime binding for comprehend:ListDocumentClassificationJobs — list the account’s
asynchronous document classification jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListDocumentClassificationJobs: Monitoring Analysis Jobs
Section titled “ListDocumentClassificationJobs: Monitoring Analysis Jobs”// initconst listDocumentClassificationJobs = yield* AWS.Comprehend.ListDocumentClassificationJobs();
// runtimeconst page = yield* listDocumentClassificationJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.DocumentClassificationJobPropertiesListListDominantLanguageDetectionJobs
Section titled “ListDominantLanguageDetectionJobs”Source:
src/AWS/Comprehend/ListDominantLanguageDetectionJobs.ts
Runtime binding for comprehend:ListDominantLanguageDetectionJobs — list the account’s
asynchronous dominant-language detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListDominantLanguageDetectionJobs: Monitoring Analysis Jobs
Section titled “ListDominantLanguageDetectionJobs: Monitoring Analysis Jobs”// initconst listDominantLanguageDetectionJobs = yield* AWS.Comprehend.ListDominantLanguageDetectionJobs();
// runtimeconst page = yield* listDominantLanguageDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.DominantLanguageDetectionJobPropertiesListListEntitiesDetectionJobs
Section titled “ListEntitiesDetectionJobs”Source:
src/AWS/Comprehend/ListEntitiesDetectionJobs.ts
Runtime binding for comprehend:ListEntitiesDetectionJobs — list the account’s
asynchronous entity detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListEntitiesDetectionJobs: Monitoring Analysis Jobs
Section titled “ListEntitiesDetectionJobs: Monitoring Analysis Jobs”// initconst listEntitiesDetectionJobs = yield* AWS.Comprehend.ListEntitiesDetectionJobs();
// runtimeconst page = yield* listEntitiesDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.EntitiesDetectionJobPropertiesListListEventsDetectionJobs
Section titled “ListEventsDetectionJobs”Source:
src/AWS/Comprehend/ListEventsDetectionJobs.ts
Runtime binding for comprehend:ListEventsDetectionJobs — list the account’s
asynchronous event detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListEventsDetectionJobs: Monitoring Analysis Jobs
Section titled “ListEventsDetectionJobs: Monitoring Analysis Jobs”// initconst listEventsDetectionJobs = yield* AWS.Comprehend.ListEventsDetectionJobs();
// runtimeconst page = yield* listEventsDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.EventsDetectionJobPropertiesListListKeyPhrasesDetectionJobs
Section titled “ListKeyPhrasesDetectionJobs”Source:
src/AWS/Comprehend/ListKeyPhrasesDetectionJobs.ts
Runtime binding for comprehend:ListKeyPhrasesDetectionJobs — list the account’s
asynchronous key-phrase detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListKeyPhrasesDetectionJobs: Monitoring Analysis Jobs
Section titled “ListKeyPhrasesDetectionJobs: Monitoring Analysis Jobs”// initconst listKeyPhrasesDetectionJobs = yield* AWS.Comprehend.ListKeyPhrasesDetectionJobs();
// runtimeconst page = yield* listKeyPhrasesDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.KeyPhrasesDetectionJobPropertiesListListPiiEntitiesDetectionJobs
Section titled “ListPiiEntitiesDetectionJobs”Source:
src/AWS/Comprehend/ListPiiEntitiesDetectionJobs.ts
Runtime binding for comprehend:ListPiiEntitiesDetectionJobs — list the account’s
asynchronous PII entity detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListPiiEntitiesDetectionJobs: Monitoring Analysis Jobs
Section titled “ListPiiEntitiesDetectionJobs: Monitoring Analysis Jobs”// initconst listPiiEntitiesDetectionJobs = yield* AWS.Comprehend.ListPiiEntitiesDetectionJobs();
// runtimeconst page = yield* listPiiEntitiesDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.PiiEntitiesDetectionJobPropertiesListListSentimentDetectionJobs
Section titled “ListSentimentDetectionJobs”Source:
src/AWS/Comprehend/ListSentimentDetectionJobs.ts
Runtime binding for comprehend:ListSentimentDetectionJobs — list the account’s
asynchronous sentiment detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListSentimentDetectionJobs: Monitoring Analysis Jobs
Section titled “ListSentimentDetectionJobs: Monitoring Analysis Jobs”// initconst listSentimentDetectionJobs = yield* AWS.Comprehend.ListSentimentDetectionJobs();
// runtimeconst page = yield* listSentimentDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.SentimentDetectionJobPropertiesListListTargetedSentimentDetectionJobs
Section titled “ListTargetedSentimentDetectionJobs”Source:
src/AWS/Comprehend/ListTargetedSentimentDetectionJobs.ts
Runtime binding for comprehend:ListTargetedSentimentDetectionJobs — list the account’s
asynchronous targeted-sentiment detection jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListTargetedSentimentDetectionJobs: Monitoring Analysis Jobs
Section titled “ListTargetedSentimentDetectionJobs: Monitoring Analysis Jobs”// initconst listTargetedSentimentDetectionJobs = yield* AWS.Comprehend.ListTargetedSentimentDetectionJobs();
// runtimeconst page = yield* listTargetedSentimentDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.TargetedSentimentDetectionJobPropertiesListListTopicsDetectionJobs
Section titled “ListTopicsDetectionJobs”Source:
src/AWS/Comprehend/ListTopicsDetectionJobs.ts
Runtime binding for comprehend:ListTopicsDetectionJobs — list the account’s
asynchronous topic modeling jobs, with optional status/name/time filters.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
ListTopicsDetectionJobs: Monitoring Analysis Jobs
Section titled “ListTopicsDetectionJobs: Monitoring Analysis Jobs”// initconst listTopicsDetectionJobs = yield* AWS.Comprehend.ListTopicsDetectionJobs();
// runtimeconst page = yield* listTopicsDetectionJobs({ Filter: { JobStatus: "IN_PROGRESS" }, MaxResults: 25,});// page.TopicsDetectionJobPropertiesListStartDocumentClassificationJob
Section titled “StartDocumentClassificationJob”Source:
src/AWS/Comprehend/StartDocumentClassificationJob.ts
Runtime binding for comprehend:StartDocumentClassificationJob — start an asynchronous
document classification job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartDocumentClassificationJob
action (which has no resource-level IAM). Track the job with
DescribeDocumentClassificationJob.
StartDocumentClassificationJob: Starting Analysis Jobs
Section titled “StartDocumentClassificationJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startDocumentClassificationJob = yield* AWS.Comprehend.StartDocumentClassificationJob(dataAccessRole);
// runtimeconst job = yield* startDocumentClassificationJob({ DocumentClassifierArn: classifierArn, InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" },});// job.JobId, job.JobStatus === "SUBMITTED"StartDominantLanguageDetectionJob
Section titled “StartDominantLanguageDetectionJob”Source:
src/AWS/Comprehend/StartDominantLanguageDetectionJob.ts
Runtime binding for comprehend:StartDominantLanguageDetectionJob — start an asynchronous
dominant-language detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartDominantLanguageDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeDominantLanguageDetectionJob and stop it with
StopDominantLanguageDetectionJob.
StartDominantLanguageDetectionJob: Starting Analysis Jobs
Section titled “StartDominantLanguageDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startDominantLanguageDetectionJob = yield* AWS.Comprehend.StartDominantLanguageDetectionJob(dataAccessRole);
// runtimeconst job = yield* startDominantLanguageDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartEntitiesDetectionJob
Section titled “StartEntitiesDetectionJob”Source:
src/AWS/Comprehend/StartEntitiesDetectionJob.ts
Runtime binding for comprehend:StartEntitiesDetectionJob — start an asynchronous
entity detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartEntitiesDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeEntitiesDetectionJob and stop it with
StopEntitiesDetectionJob.
StartEntitiesDetectionJob: Starting Analysis Jobs
Section titled “StartEntitiesDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startEntitiesDetectionJob = yield* AWS.Comprehend.StartEntitiesDetectionJob(dataAccessRole);
// runtimeconst job = yield* startEntitiesDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartEventsDetectionJob
Section titled “StartEventsDetectionJob”Source:
src/AWS/Comprehend/StartEventsDetectionJob.ts
Runtime binding for comprehend:StartEventsDetectionJob — start an asynchronous
event detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartEventsDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeEventsDetectionJob and stop it with
StopEventsDetectionJob.
StartEventsDetectionJob: Starting Analysis Jobs
Section titled “StartEventsDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startEventsDetectionJob = yield* AWS.Comprehend.StartEventsDetectionJob(dataAccessRole);
// runtimeconst job = yield* startEventsDetectionJob({ TargetEventTypes: ["BANKRUPTCY", "EMPLOYMENT"], InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartKeyPhrasesDetectionJob
Section titled “StartKeyPhrasesDetectionJob”Source:
src/AWS/Comprehend/StartKeyPhrasesDetectionJob.ts
Runtime binding for comprehend:StartKeyPhrasesDetectionJob — start an asynchronous
key-phrase detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartKeyPhrasesDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeKeyPhrasesDetectionJob and stop it with
StopKeyPhrasesDetectionJob.
StartKeyPhrasesDetectionJob: Starting Analysis Jobs
Section titled “StartKeyPhrasesDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startKeyPhrasesDetectionJob = yield* AWS.Comprehend.StartKeyPhrasesDetectionJob(dataAccessRole);
// runtimeconst job = yield* startKeyPhrasesDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartPiiEntitiesDetectionJob
Section titled “StartPiiEntitiesDetectionJob”Source:
src/AWS/Comprehend/StartPiiEntitiesDetectionJob.ts
Runtime binding for comprehend:StartPiiEntitiesDetectionJob — start an asynchronous
PII entity detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartPiiEntitiesDetectionJob
action (which has no resource-level IAM). Track the job with
DescribePiiEntitiesDetectionJob and stop it with
StopPiiEntitiesDetectionJob.
StartPiiEntitiesDetectionJob: Starting Analysis Jobs
Section titled “StartPiiEntitiesDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startPiiEntitiesDetectionJob = yield* AWS.Comprehend.StartPiiEntitiesDetectionJob(dataAccessRole);
// runtimeconst job = yield* startPiiEntitiesDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartSentimentDetectionJob
Section titled “StartSentimentDetectionJob”Source:
src/AWS/Comprehend/StartSentimentDetectionJob.ts
Runtime binding for comprehend:StartSentimentDetectionJob — start an asynchronous
sentiment detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartSentimentDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeSentimentDetectionJob and stop it with
StopSentimentDetectionJob.
StartSentimentDetectionJob: Starting Analysis Jobs
Section titled “StartSentimentDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startSentimentDetectionJob = yield* AWS.Comprehend.StartSentimentDetectionJob(dataAccessRole);
// runtimeconst job = yield* startSentimentDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartTargetedSentimentDetectionJob
Section titled “StartTargetedSentimentDetectionJob”Source:
src/AWS/Comprehend/StartTargetedSentimentDetectionJob.ts
Runtime binding for comprehend:StartTargetedSentimentDetectionJob — start an asynchronous
targeted-sentiment detection job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartTargetedSentimentDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeTargetedSentimentDetectionJob and stop it with
StopTargetedSentimentDetectionJob.
StartTargetedSentimentDetectionJob: Starting Analysis Jobs
Section titled “StartTargetedSentimentDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startTargetedSentimentDetectionJob = yield* AWS.Comprehend.StartTargetedSentimentDetectionJob(dataAccessRole);
// runtimeconst job = yield* startTargetedSentimentDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" }, LanguageCode: "en",});// job.JobId, job.JobStatus === "SUBMITTED"StartTopicsDetectionJob
Section titled “StartTopicsDetectionJob”Source:
src/AWS/Comprehend/StartTopicsDetectionJob.ts
Runtime binding for comprehend:StartTopicsDetectionJob — start an asynchronous
topic modeling job over a collection of documents in S3.
The binding is constructed with the data-access role (the IAM role
Amazon Comprehend assumes to read the input documents and write results;
its trust policy must allow comprehend.amazonaws.com). The role’s ARN is
injected as DataAccessRoleArn on every runtime request and the host is
granted iam:PassRole on it alongside the comprehend:StartTopicsDetectionJob
action (which has no resource-level IAM). Track the job with
DescribeTopicsDetectionJob.
StartTopicsDetectionJob: Starting Analysis Jobs
Section titled “StartTopicsDetectionJob: Starting Analysis Jobs”// deploy time — bind the Comprehend data-access roleconst startTopicsDetectionJob = yield* AWS.Comprehend.StartTopicsDetectionJob(dataAccessRole);
// runtimeconst job = yield* startTopicsDetectionJob({ InputDataConfig: { S3Uri: "s3://my-bucket/input/", InputFormat: "ONE_DOC_PER_LINE" }, OutputDataConfig: { S3Uri: "s3://my-bucket/output/" },});// job.JobId, job.JobStatus === "SUBMITTED"StopDominantLanguageDetectionJob
Section titled “StopDominantLanguageDetectionJob”Source:
src/AWS/Comprehend/StopDominantLanguageDetectionJob.ts
Runtime binding for comprehend:StopDominantLanguageDetectionJob — request termination
of an in-progress asynchronous dominant-language detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopDominantLanguageDetectionJob: Stopping Analysis Jobs
Section titled “StopDominantLanguageDetectionJob: Stopping Analysis Jobs”// initconst stopDominantLanguageDetectionJob = yield* AWS.Comprehend.StopDominantLanguageDetectionJob();
// runtimeconst result = yield* stopDominantLanguageDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopEntitiesDetectionJob
Section titled “StopEntitiesDetectionJob”Source:
src/AWS/Comprehend/StopEntitiesDetectionJob.ts
Runtime binding for comprehend:StopEntitiesDetectionJob — request termination
of an in-progress asynchronous entity detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopEntitiesDetectionJob: Stopping Analysis Jobs
Section titled “StopEntitiesDetectionJob: Stopping Analysis Jobs”// initconst stopEntitiesDetectionJob = yield* AWS.Comprehend.StopEntitiesDetectionJob();
// runtimeconst result = yield* stopEntitiesDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopEventsDetectionJob
Section titled “StopEventsDetectionJob”Source:
src/AWS/Comprehend/StopEventsDetectionJob.ts
Runtime binding for comprehend:StopEventsDetectionJob — request termination
of an in-progress asynchronous event detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopEventsDetectionJob: Stopping Analysis Jobs
Section titled “StopEventsDetectionJob: Stopping Analysis Jobs”// initconst stopEventsDetectionJob = yield* AWS.Comprehend.StopEventsDetectionJob();
// runtimeconst result = yield* stopEventsDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopKeyPhrasesDetectionJob
Section titled “StopKeyPhrasesDetectionJob”Source:
src/AWS/Comprehend/StopKeyPhrasesDetectionJob.ts
Runtime binding for comprehend:StopKeyPhrasesDetectionJob — request termination
of an in-progress asynchronous key-phrase detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopKeyPhrasesDetectionJob: Stopping Analysis Jobs
Section titled “StopKeyPhrasesDetectionJob: Stopping Analysis Jobs”// initconst stopKeyPhrasesDetectionJob = yield* AWS.Comprehend.StopKeyPhrasesDetectionJob();
// runtimeconst result = yield* stopKeyPhrasesDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopPiiEntitiesDetectionJob
Section titled “StopPiiEntitiesDetectionJob”Source:
src/AWS/Comprehend/StopPiiEntitiesDetectionJob.ts
Runtime binding for comprehend:StopPiiEntitiesDetectionJob — request termination
of an in-progress asynchronous PII entity detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopPiiEntitiesDetectionJob: Stopping Analysis Jobs
Section titled “StopPiiEntitiesDetectionJob: Stopping Analysis Jobs”// initconst stopPiiEntitiesDetectionJob = yield* AWS.Comprehend.StopPiiEntitiesDetectionJob();
// runtimeconst result = yield* stopPiiEntitiesDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopSentimentDetectionJob
Section titled “StopSentimentDetectionJob”Source:
src/AWS/Comprehend/StopSentimentDetectionJob.ts
Runtime binding for comprehend:StopSentimentDetectionJob — request termination
of an in-progress asynchronous sentiment detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopSentimentDetectionJob: Stopping Analysis Jobs
Section titled “StopSentimentDetectionJob: Stopping Analysis Jobs”// initconst stopSentimentDetectionJob = yield* AWS.Comprehend.StopSentimentDetectionJob();
// runtimeconst result = yield* stopSentimentDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"StopTargetedSentimentDetectionJob
Section titled “StopTargetedSentimentDetectionJob”Source:
src/AWS/Comprehend/StopTargetedSentimentDetectionJob.ts
Runtime binding for comprehend:StopTargetedSentimentDetectionJob — request termination
of an in-progress asynchronous targeted-sentiment detection job. The job moves to
STOP_REQUESTED and then STOPPED; documents already processed are
written to the output location.
The binding takes no arguments and grants the action on * (job APIs
have no resource-level IAM).
StopTargetedSentimentDetectionJob: Stopping Analysis Jobs
Section titled “StopTargetedSentimentDetectionJob: Stopping Analysis Jobs”// initconst stopTargetedSentimentDetectionJob = yield* AWS.Comprehend.StopTargetedSentimentDetectionJob();
// runtimeconst result = yield* stopTargetedSentimentDetectionJob({ JobId: jobId });// result.JobStatus === "STOP_REQUESTED"