@aws-sdk/client-comprehend 3.47.2 → 3.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/Comprehend.js +60 -0
  3. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +36 -0
  5. package/dist-cjs/commands/ImportModelCommand.js +36 -0
  6. package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +52 -4
  9. package/dist-cjs/protocols/Aws_json1_1.js +405 -3
  10. package/dist-es/Comprehend.js +60 -0
  11. package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
  12. package/dist-es/commands/DescribeResourcePolicyCommand.js +39 -0
  13. package/dist-es/commands/ImportModelCommand.js +39 -0
  14. package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
  15. package/dist-es/commands/index.js +4 -0
  16. package/dist-es/models/models_0.js +32 -0
  17. package/dist-es/protocols/Aws_json1_1.js +428 -4
  18. package/dist-types/Comprehend.d.ts +37 -2
  19. package/dist-types/ComprehendClient.d.ts +6 -2
  20. package/dist-types/commands/CreateEndpointCommand.d.ts +1 -2
  21. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
  22. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +36 -0
  23. package/dist-types/commands/ImportModelCommand.d.ts +40 -0
  24. package/dist-types/commands/PutResourcePolicyCommand.d.ts +37 -0
  25. package/dist-types/commands/index.d.ts +4 -0
  26. package/dist-types/models/models_0.d.ts +279 -43
  27. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  28. package/dist-types/ts3.4/Comprehend.d.ts +20 -0
  29. package/dist-types/ts3.4/ComprehendClient.d.ts +6 -2
  30. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/ImportModelCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +92 -0
  36. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  37. package/package.json +39 -33
@@ -12,6 +12,7 @@ import { CreateEntityRecognizerCommandInput, CreateEntityRecognizerCommandOutput
12
12
  import { DeleteDocumentClassifierCommandInput, DeleteDocumentClassifierCommandOutput } from "./commands/DeleteDocumentClassifierCommand";
13
13
  import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
14
14
  import { DeleteEntityRecognizerCommandInput, DeleteEntityRecognizerCommandOutput } from "./commands/DeleteEntityRecognizerCommand";
15
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
15
16
  import { DescribeDocumentClassificationJobCommandInput, DescribeDocumentClassificationJobCommandOutput } from "./commands/DescribeDocumentClassificationJobCommand";
16
17
  import { DescribeDocumentClassifierCommandInput, DescribeDocumentClassifierCommandOutput } from "./commands/DescribeDocumentClassifierCommand";
17
18
  import { DescribeDominantLanguageDetectionJobCommandInput, DescribeDominantLanguageDetectionJobCommandOutput } from "./commands/DescribeDominantLanguageDetectionJobCommand";
@@ -21,6 +22,7 @@ import { DescribeEntityRecognizerCommandInput, DescribeEntityRecognizerCommandOu
21
22
  import { DescribeEventsDetectionJobCommandInput, DescribeEventsDetectionJobCommandOutput } from "./commands/DescribeEventsDetectionJobCommand";
22
23
  import { DescribeKeyPhrasesDetectionJobCommandInput, DescribeKeyPhrasesDetectionJobCommandOutput } from "./commands/DescribeKeyPhrasesDetectionJobCommand";
23
24
  import { DescribePiiEntitiesDetectionJobCommandInput, DescribePiiEntitiesDetectionJobCommandOutput } from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
+ import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "./commands/DescribeResourcePolicyCommand";
24
26
  import { DescribeSentimentDetectionJobCommandInput, DescribeSentimentDetectionJobCommandOutput } from "./commands/DescribeSentimentDetectionJobCommand";
25
27
  import { DescribeTopicsDetectionJobCommandInput, DescribeTopicsDetectionJobCommandOutput } from "./commands/DescribeTopicsDetectionJobCommand";
26
28
  import { DetectDominantLanguageCommandInput, DetectDominantLanguageCommandOutput } from "./commands/DetectDominantLanguageCommand";
@@ -29,6 +31,7 @@ import { DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput } from "./c
29
31
  import { DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput } from "./commands/DetectPiiEntitiesCommand";
30
32
  import { DetectSentimentCommandInput, DetectSentimentCommandOutput } from "./commands/DetectSentimentCommand";
31
33
  import { DetectSyntaxCommandInput, DetectSyntaxCommandOutput } from "./commands/DetectSyntaxCommand";
34
+ import { ImportModelCommandInput, ImportModelCommandOutput } from "./commands/ImportModelCommand";
32
35
  import { ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput } from "./commands/ListDocumentClassificationJobsCommand";
33
36
  import { ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput } from "./commands/ListDocumentClassifiersCommand";
34
37
  import { ListDocumentClassifierSummariesCommandInput, ListDocumentClassifierSummariesCommandOutput } from "./commands/ListDocumentClassifierSummariesCommand";
@@ -43,6 +46,7 @@ import { ListPiiEntitiesDetectionJobsCommandInput, ListPiiEntitiesDetectionJobsC
43
46
  import { ListSentimentDetectionJobsCommandInput, ListSentimentDetectionJobsCommandOutput } from "./commands/ListSentimentDetectionJobsCommand";
44
47
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
45
48
  import { ListTopicsDetectionJobsCommandInput, ListTopicsDetectionJobsCommandOutput } from "./commands/ListTopicsDetectionJobsCommand";
49
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
46
50
  import { StartDocumentClassificationJobCommandInput, StartDocumentClassificationJobCommandOutput } from "./commands/StartDocumentClassificationJobCommand";
47
51
  import { StartDominantLanguageDetectionJobCommandInput, StartDominantLanguageDetectionJobCommandOutput } from "./commands/StartDominantLanguageDetectionJobCommand";
48
52
  import { StartEntitiesDetectionJobCommandInput, StartEntitiesDetectionJobCommandOutput } from "./commands/StartEntitiesDetectionJobCommand";
@@ -133,8 +137,7 @@ export declare class Comprehend extends ComprehendClient {
133
137
  createDocumentClassifier(args: CreateDocumentClassifierCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDocumentClassifierCommandOutput) => void): void;
134
138
  /**
135
139
  * <p>Creates a model-specific endpoint for synchronous inference for a previously trained
136
- * custom model
137
- * </p>
140
+ * custom model </p>
138
141
  */
139
142
  createEndpoint(args: CreateEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreateEndpointCommandOutput>;
140
143
  createEndpoint(args: CreateEndpointCommandInput, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
@@ -178,6 +181,12 @@ export declare class Comprehend extends ComprehendClient {
178
181
  deleteEntityRecognizer(args: DeleteEntityRecognizerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEntityRecognizerCommandOutput>;
179
182
  deleteEntityRecognizer(args: DeleteEntityRecognizerCommandInput, cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void): void;
180
183
  deleteEntityRecognizer(args: DeleteEntityRecognizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void): void;
184
+ /**
185
+ * <p>Deletes a resource-based policy that is attached to a custom model.</p>
186
+ */
187
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
188
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
189
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
181
190
  /**
182
191
  * <p>Gets the properties associated with a document classification job. Use this operation to
183
192
  * get the status of a classification job.</p>
@@ -239,6 +248,13 @@ export declare class Comprehend extends ComprehendClient {
239
248
  describePiiEntitiesDetectionJob(args: DescribePiiEntitiesDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribePiiEntitiesDetectionJobCommandOutput>;
240
249
  describePiiEntitiesDetectionJob(args: DescribePiiEntitiesDetectionJobCommandInput, cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void): void;
241
250
  describePiiEntitiesDetectionJob(args: DescribePiiEntitiesDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void): void;
251
+ /**
252
+ * <p>Gets the details of a resource-based policy that is attached to a custom model, including
253
+ * the JSON body of the policy.</p>
254
+ */
255
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DescribeResourcePolicyCommandOutput>;
256
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void): void;
257
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void): void;
242
258
  /**
243
259
  * <p>Gets the properties associated with a sentiment detection job. Use this operation to get
244
260
  * the status of a detection job.</p>
@@ -294,6 +310,17 @@ export declare class Comprehend extends ComprehendClient {
294
310
  detectSyntax(args: DetectSyntaxCommandInput, options?: __HttpHandlerOptions): Promise<DetectSyntaxCommandOutput>;
295
311
  detectSyntax(args: DetectSyntaxCommandInput, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
296
312
  detectSyntax(args: DetectSyntaxCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
313
+ /**
314
+ * <p>Creates a new custom model that replicates a source custom model that you import. The
315
+ * source model can be in your AWS account or another one.</p>
316
+ * <p>If the source model is in another AWS account, then it must have a resource-based policy
317
+ * that authorizes you to import it.</p>
318
+ * <p>The source model must be in the same AWS region that you're using when you import. You
319
+ * can't import a model that's in a different region.</p>
320
+ */
321
+ importModel(args: ImportModelCommandInput, options?: __HttpHandlerOptions): Promise<ImportModelCommandOutput>;
322
+ importModel(args: ImportModelCommandInput, cb: (err: any, data?: ImportModelCommandOutput) => void): void;
323
+ importModel(args: ImportModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportModelCommandOutput) => void): void;
297
324
  /**
298
325
  * <p>Gets a list of the documentation classification jobs that you have submitted.</p>
299
326
  */
@@ -383,6 +410,14 @@ export declare class Comprehend extends ComprehendClient {
383
410
  listTopicsDetectionJobs(args: ListTopicsDetectionJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTopicsDetectionJobsCommandOutput>;
384
411
  listTopicsDetectionJobs(args: ListTopicsDetectionJobsCommandInput, cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void): void;
385
412
  listTopicsDetectionJobs(args: ListTopicsDetectionJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void): void;
413
+ /**
414
+ * <p>Attaches a resource-based policy to a custom model. You can use this policy to authorize
415
+ * an entity in another AWS account to import the custom model, which replicates it in Amazon
416
+ * Comprehend in their account.</p>
417
+ */
418
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
419
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
420
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
386
421
  /**
387
422
  * <p>Starts an asynchronous document classification job. Use the operation to track the progress of the
388
423
  * job.</p>
@@ -19,6 +19,7 @@ import { CreateEntityRecognizerCommandInput, CreateEntityRecognizerCommandOutput
19
19
  import { DeleteDocumentClassifierCommandInput, DeleteDocumentClassifierCommandOutput } from "./commands/DeleteDocumentClassifierCommand";
20
20
  import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
21
21
  import { DeleteEntityRecognizerCommandInput, DeleteEntityRecognizerCommandOutput } from "./commands/DeleteEntityRecognizerCommand";
22
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
22
23
  import { DescribeDocumentClassificationJobCommandInput, DescribeDocumentClassificationJobCommandOutput } from "./commands/DescribeDocumentClassificationJobCommand";
23
24
  import { DescribeDocumentClassifierCommandInput, DescribeDocumentClassifierCommandOutput } from "./commands/DescribeDocumentClassifierCommand";
24
25
  import { DescribeDominantLanguageDetectionJobCommandInput, DescribeDominantLanguageDetectionJobCommandOutput } from "./commands/DescribeDominantLanguageDetectionJobCommand";
@@ -28,6 +29,7 @@ import { DescribeEntityRecognizerCommandInput, DescribeEntityRecognizerCommandOu
28
29
  import { DescribeEventsDetectionJobCommandInput, DescribeEventsDetectionJobCommandOutput } from "./commands/DescribeEventsDetectionJobCommand";
29
30
  import { DescribeKeyPhrasesDetectionJobCommandInput, DescribeKeyPhrasesDetectionJobCommandOutput } from "./commands/DescribeKeyPhrasesDetectionJobCommand";
30
31
  import { DescribePiiEntitiesDetectionJobCommandInput, DescribePiiEntitiesDetectionJobCommandOutput } from "./commands/DescribePiiEntitiesDetectionJobCommand";
32
+ import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "./commands/DescribeResourcePolicyCommand";
31
33
  import { DescribeSentimentDetectionJobCommandInput, DescribeSentimentDetectionJobCommandOutput } from "./commands/DescribeSentimentDetectionJobCommand";
32
34
  import { DescribeTopicsDetectionJobCommandInput, DescribeTopicsDetectionJobCommandOutput } from "./commands/DescribeTopicsDetectionJobCommand";
33
35
  import { DetectDominantLanguageCommandInput, DetectDominantLanguageCommandOutput } from "./commands/DetectDominantLanguageCommand";
@@ -36,6 +38,7 @@ import { DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput } from "./c
36
38
  import { DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput } from "./commands/DetectPiiEntitiesCommand";
37
39
  import { DetectSentimentCommandInput, DetectSentimentCommandOutput } from "./commands/DetectSentimentCommand";
38
40
  import { DetectSyntaxCommandInput, DetectSyntaxCommandOutput } from "./commands/DetectSyntaxCommand";
41
+ import { ImportModelCommandInput, ImportModelCommandOutput } from "./commands/ImportModelCommand";
39
42
  import { ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput } from "./commands/ListDocumentClassificationJobsCommand";
40
43
  import { ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput } from "./commands/ListDocumentClassifiersCommand";
41
44
  import { ListDocumentClassifierSummariesCommandInput, ListDocumentClassifierSummariesCommandOutput } from "./commands/ListDocumentClassifierSummariesCommand";
@@ -50,6 +53,7 @@ import { ListPiiEntitiesDetectionJobsCommandInput, ListPiiEntitiesDetectionJobsC
50
53
  import { ListSentimentDetectionJobsCommandInput, ListSentimentDetectionJobsCommandOutput } from "./commands/ListSentimentDetectionJobsCommand";
51
54
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
52
55
  import { ListTopicsDetectionJobsCommandInput, ListTopicsDetectionJobsCommandOutput } from "./commands/ListTopicsDetectionJobsCommand";
56
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
53
57
  import { StartDocumentClassificationJobCommandInput, StartDocumentClassificationJobCommandOutput } from "./commands/StartDocumentClassificationJobCommand";
54
58
  import { StartDominantLanguageDetectionJobCommandInput, StartDominantLanguageDetectionJobCommandOutput } from "./commands/StartDominantLanguageDetectionJobCommand";
55
59
  import { StartEntitiesDetectionJobCommandInput, StartEntitiesDetectionJobCommandOutput } from "./commands/StartEntitiesDetectionJobCommand";
@@ -69,8 +73,8 @@ import { StopTrainingEntityRecognizerCommandInput, StopTrainingEntityRecognizerC
69
73
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
70
74
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
71
75
  import { UpdateEndpointCommandInput, UpdateEndpointCommandOutput } from "./commands/UpdateEndpointCommand";
72
- export declare type ServiceInputTypes = BatchDetectDominantLanguageCommandInput | BatchDetectEntitiesCommandInput | BatchDetectKeyPhrasesCommandInput | BatchDetectSentimentCommandInput | BatchDetectSyntaxCommandInput | ClassifyDocumentCommandInput | ContainsPiiEntitiesCommandInput | CreateDocumentClassifierCommandInput | CreateEndpointCommandInput | CreateEntityRecognizerCommandInput | DeleteDocumentClassifierCommandInput | DeleteEndpointCommandInput | DeleteEntityRecognizerCommandInput | DescribeDocumentClassificationJobCommandInput | DescribeDocumentClassifierCommandInput | DescribeDominantLanguageDetectionJobCommandInput | DescribeEndpointCommandInput | DescribeEntitiesDetectionJobCommandInput | DescribeEntityRecognizerCommandInput | DescribeEventsDetectionJobCommandInput | DescribeKeyPhrasesDetectionJobCommandInput | DescribePiiEntitiesDetectionJobCommandInput | DescribeSentimentDetectionJobCommandInput | DescribeTopicsDetectionJobCommandInput | DetectDominantLanguageCommandInput | DetectEntitiesCommandInput | DetectKeyPhrasesCommandInput | DetectPiiEntitiesCommandInput | DetectSentimentCommandInput | DetectSyntaxCommandInput | ListDocumentClassificationJobsCommandInput | ListDocumentClassifierSummariesCommandInput | ListDocumentClassifiersCommandInput | ListDominantLanguageDetectionJobsCommandInput | ListEndpointsCommandInput | ListEntitiesDetectionJobsCommandInput | ListEntityRecognizerSummariesCommandInput | ListEntityRecognizersCommandInput | ListEventsDetectionJobsCommandInput | ListKeyPhrasesDetectionJobsCommandInput | ListPiiEntitiesDetectionJobsCommandInput | ListSentimentDetectionJobsCommandInput | ListTagsForResourceCommandInput | ListTopicsDetectionJobsCommandInput | StartDocumentClassificationJobCommandInput | StartDominantLanguageDetectionJobCommandInput | StartEntitiesDetectionJobCommandInput | StartEventsDetectionJobCommandInput | StartKeyPhrasesDetectionJobCommandInput | StartPiiEntitiesDetectionJobCommandInput | StartSentimentDetectionJobCommandInput | StartTopicsDetectionJobCommandInput | StopDominantLanguageDetectionJobCommandInput | StopEntitiesDetectionJobCommandInput | StopEventsDetectionJobCommandInput | StopKeyPhrasesDetectionJobCommandInput | StopPiiEntitiesDetectionJobCommandInput | StopSentimentDetectionJobCommandInput | StopTrainingDocumentClassifierCommandInput | StopTrainingEntityRecognizerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointCommandInput;
73
- export declare type ServiceOutputTypes = BatchDetectDominantLanguageCommandOutput | BatchDetectEntitiesCommandOutput | BatchDetectKeyPhrasesCommandOutput | BatchDetectSentimentCommandOutput | BatchDetectSyntaxCommandOutput | ClassifyDocumentCommandOutput | ContainsPiiEntitiesCommandOutput | CreateDocumentClassifierCommandOutput | CreateEndpointCommandOutput | CreateEntityRecognizerCommandOutput | DeleteDocumentClassifierCommandOutput | DeleteEndpointCommandOutput | DeleteEntityRecognizerCommandOutput | DescribeDocumentClassificationJobCommandOutput | DescribeDocumentClassifierCommandOutput | DescribeDominantLanguageDetectionJobCommandOutput | DescribeEndpointCommandOutput | DescribeEntitiesDetectionJobCommandOutput | DescribeEntityRecognizerCommandOutput | DescribeEventsDetectionJobCommandOutput | DescribeKeyPhrasesDetectionJobCommandOutput | DescribePiiEntitiesDetectionJobCommandOutput | DescribeSentimentDetectionJobCommandOutput | DescribeTopicsDetectionJobCommandOutput | DetectDominantLanguageCommandOutput | DetectEntitiesCommandOutput | DetectKeyPhrasesCommandOutput | DetectPiiEntitiesCommandOutput | DetectSentimentCommandOutput | DetectSyntaxCommandOutput | ListDocumentClassificationJobsCommandOutput | ListDocumentClassifierSummariesCommandOutput | ListDocumentClassifiersCommandOutput | ListDominantLanguageDetectionJobsCommandOutput | ListEndpointsCommandOutput | ListEntitiesDetectionJobsCommandOutput | ListEntityRecognizerSummariesCommandOutput | ListEntityRecognizersCommandOutput | ListEventsDetectionJobsCommandOutput | ListKeyPhrasesDetectionJobsCommandOutput | ListPiiEntitiesDetectionJobsCommandOutput | ListSentimentDetectionJobsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsDetectionJobsCommandOutput | StartDocumentClassificationJobCommandOutput | StartDominantLanguageDetectionJobCommandOutput | StartEntitiesDetectionJobCommandOutput | StartEventsDetectionJobCommandOutput | StartKeyPhrasesDetectionJobCommandOutput | StartPiiEntitiesDetectionJobCommandOutput | StartSentimentDetectionJobCommandOutput | StartTopicsDetectionJobCommandOutput | StopDominantLanguageDetectionJobCommandOutput | StopEntitiesDetectionJobCommandOutput | StopEventsDetectionJobCommandOutput | StopKeyPhrasesDetectionJobCommandOutput | StopPiiEntitiesDetectionJobCommandOutput | StopSentimentDetectionJobCommandOutput | StopTrainingDocumentClassifierCommandOutput | StopTrainingEntityRecognizerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointCommandOutput;
76
+ export declare type ServiceInputTypes = BatchDetectDominantLanguageCommandInput | BatchDetectEntitiesCommandInput | BatchDetectKeyPhrasesCommandInput | BatchDetectSentimentCommandInput | BatchDetectSyntaxCommandInput | ClassifyDocumentCommandInput | ContainsPiiEntitiesCommandInput | CreateDocumentClassifierCommandInput | CreateEndpointCommandInput | CreateEntityRecognizerCommandInput | DeleteDocumentClassifierCommandInput | DeleteEndpointCommandInput | DeleteEntityRecognizerCommandInput | DeleteResourcePolicyCommandInput | DescribeDocumentClassificationJobCommandInput | DescribeDocumentClassifierCommandInput | DescribeDominantLanguageDetectionJobCommandInput | DescribeEndpointCommandInput | DescribeEntitiesDetectionJobCommandInput | DescribeEntityRecognizerCommandInput | DescribeEventsDetectionJobCommandInput | DescribeKeyPhrasesDetectionJobCommandInput | DescribePiiEntitiesDetectionJobCommandInput | DescribeResourcePolicyCommandInput | DescribeSentimentDetectionJobCommandInput | DescribeTopicsDetectionJobCommandInput | DetectDominantLanguageCommandInput | DetectEntitiesCommandInput | DetectKeyPhrasesCommandInput | DetectPiiEntitiesCommandInput | DetectSentimentCommandInput | DetectSyntaxCommandInput | ImportModelCommandInput | ListDocumentClassificationJobsCommandInput | ListDocumentClassifierSummariesCommandInput | ListDocumentClassifiersCommandInput | ListDominantLanguageDetectionJobsCommandInput | ListEndpointsCommandInput | ListEntitiesDetectionJobsCommandInput | ListEntityRecognizerSummariesCommandInput | ListEntityRecognizersCommandInput | ListEventsDetectionJobsCommandInput | ListKeyPhrasesDetectionJobsCommandInput | ListPiiEntitiesDetectionJobsCommandInput | ListSentimentDetectionJobsCommandInput | ListTagsForResourceCommandInput | ListTopicsDetectionJobsCommandInput | PutResourcePolicyCommandInput | StartDocumentClassificationJobCommandInput | StartDominantLanguageDetectionJobCommandInput | StartEntitiesDetectionJobCommandInput | StartEventsDetectionJobCommandInput | StartKeyPhrasesDetectionJobCommandInput | StartPiiEntitiesDetectionJobCommandInput | StartSentimentDetectionJobCommandInput | StartTopicsDetectionJobCommandInput | StopDominantLanguageDetectionJobCommandInput | StopEntitiesDetectionJobCommandInput | StopEventsDetectionJobCommandInput | StopKeyPhrasesDetectionJobCommandInput | StopPiiEntitiesDetectionJobCommandInput | StopSentimentDetectionJobCommandInput | StopTrainingDocumentClassifierCommandInput | StopTrainingEntityRecognizerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointCommandInput;
77
+ export declare type ServiceOutputTypes = BatchDetectDominantLanguageCommandOutput | BatchDetectEntitiesCommandOutput | BatchDetectKeyPhrasesCommandOutput | BatchDetectSentimentCommandOutput | BatchDetectSyntaxCommandOutput | ClassifyDocumentCommandOutput | ContainsPiiEntitiesCommandOutput | CreateDocumentClassifierCommandOutput | CreateEndpointCommandOutput | CreateEntityRecognizerCommandOutput | DeleteDocumentClassifierCommandOutput | DeleteEndpointCommandOutput | DeleteEntityRecognizerCommandOutput | DeleteResourcePolicyCommandOutput | DescribeDocumentClassificationJobCommandOutput | DescribeDocumentClassifierCommandOutput | DescribeDominantLanguageDetectionJobCommandOutput | DescribeEndpointCommandOutput | DescribeEntitiesDetectionJobCommandOutput | DescribeEntityRecognizerCommandOutput | DescribeEventsDetectionJobCommandOutput | DescribeKeyPhrasesDetectionJobCommandOutput | DescribePiiEntitiesDetectionJobCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSentimentDetectionJobCommandOutput | DescribeTopicsDetectionJobCommandOutput | DetectDominantLanguageCommandOutput | DetectEntitiesCommandOutput | DetectKeyPhrasesCommandOutput | DetectPiiEntitiesCommandOutput | DetectSentimentCommandOutput | DetectSyntaxCommandOutput | ImportModelCommandOutput | ListDocumentClassificationJobsCommandOutput | ListDocumentClassifierSummariesCommandOutput | ListDocumentClassifiersCommandOutput | ListDominantLanguageDetectionJobsCommandOutput | ListEndpointsCommandOutput | ListEntitiesDetectionJobsCommandOutput | ListEntityRecognizerSummariesCommandOutput | ListEntityRecognizersCommandOutput | ListEventsDetectionJobsCommandOutput | ListKeyPhrasesDetectionJobsCommandOutput | ListPiiEntitiesDetectionJobsCommandOutput | ListSentimentDetectionJobsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsDetectionJobsCommandOutput | PutResourcePolicyCommandOutput | StartDocumentClassificationJobCommandOutput | StartDominantLanguageDetectionJobCommandOutput | StartEntitiesDetectionJobCommandOutput | StartEventsDetectionJobCommandOutput | StartKeyPhrasesDetectionJobCommandOutput | StartPiiEntitiesDetectionJobCommandOutput | StartSentimentDetectionJobCommandOutput | StartTopicsDetectionJobCommandOutput | StopDominantLanguageDetectionJobCommandOutput | StopEntitiesDetectionJobCommandOutput | StopEventsDetectionJobCommandOutput | StopKeyPhrasesDetectionJobCommandOutput | StopPiiEntitiesDetectionJobCommandOutput | StopSentimentDetectionJobCommandOutput | StopTrainingDocumentClassifierCommandOutput | StopTrainingEntityRecognizerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointCommandOutput;
74
78
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
75
79
  /**
76
80
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -8,8 +8,7 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __M
8
8
  }
9
9
  /**
10
10
  * <p>Creates a model-specific endpoint for synchronous inference for a previously trained
11
- * custom model
12
- * </p>
11
+ * custom model </p>
13
12
  * @example
14
13
  * Use a bare-bones client and the command you need to make an API call.
15
14
  * ```javascript
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
4
+ import { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0";
5
+ export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
6
+ }
7
+ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Deletes a resource-based policy that is attached to a custom model.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { ComprehendClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
15
+ * // const { ComprehendClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
16
+ * const client = new ComprehendClient(config);
17
+ * const command = new DeleteResourcePolicyCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
22
+ * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
23
+ * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class DeleteResourcePolicyCommand extends $Command<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
27
+ readonly input: DeleteResourcePolicyCommandInput;
28
+ constructor(input: DeleteResourcePolicyCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
4
+ import { DescribeResourcePolicyRequest, DescribeResourcePolicyResponse } from "../models/models_0";
5
+ export interface DescribeResourcePolicyCommandInput extends DescribeResourcePolicyRequest {
6
+ }
7
+ export interface DescribeResourcePolicyCommandOutput extends DescribeResourcePolicyResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets the details of a resource-based policy that is attached to a custom model, including
11
+ * the JSON body of the policy.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { ComprehendClient, DescribeResourcePolicyCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
16
+ * // const { ComprehendClient, DescribeResourcePolicyCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
17
+ * const client = new ComprehendClient(config);
18
+ * const command = new DescribeResourcePolicyCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DescribeResourcePolicyCommandInput} for command's `input` shape.
23
+ * @see {@link DescribeResourcePolicyCommandOutput} for command's `response` shape.
24
+ * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DescribeResourcePolicyCommand extends $Command<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
28
+ readonly input: DescribeResourcePolicyCommandInput;
29
+ constructor(input: DescribeResourcePolicyCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -0,0 +1,40 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
4
+ import { ImportModelRequest, ImportModelResponse } from "../models/models_0";
5
+ export interface ImportModelCommandInput extends ImportModelRequest {
6
+ }
7
+ export interface ImportModelCommandOutput extends ImportModelResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Creates a new custom model that replicates a source custom model that you import. The
11
+ * source model can be in your AWS account or another one.</p>
12
+ * <p>If the source model is in another AWS account, then it must have a resource-based policy
13
+ * that authorizes you to import it.</p>
14
+ * <p>The source model must be in the same AWS region that you're using when you import. You
15
+ * can't import a model that's in a different region.</p>
16
+ * @example
17
+ * Use a bare-bones client and the command you need to make an API call.
18
+ * ```javascript
19
+ * import { ComprehendClient, ImportModelCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
20
+ * // const { ComprehendClient, ImportModelCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
21
+ * const client = new ComprehendClient(config);
22
+ * const command = new ImportModelCommand(input);
23
+ * const response = await client.send(command);
24
+ * ```
25
+ *
26
+ * @see {@link ImportModelCommandInput} for command's `input` shape.
27
+ * @see {@link ImportModelCommandOutput} for command's `response` shape.
28
+ * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
29
+ *
30
+ */
31
+ export declare class ImportModelCommand extends $Command<ImportModelCommandInput, ImportModelCommandOutput, ComprehendClientResolvedConfig> {
32
+ readonly input: ImportModelCommandInput;
33
+ constructor(input: ImportModelCommandInput);
34
+ /**
35
+ * @internal
36
+ */
37
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportModelCommandInput, ImportModelCommandOutput>;
38
+ private serialize;
39
+ private deserialize;
40
+ }
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
4
+ import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
5
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
6
+ }
7
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Attaches a resource-based policy to a custom model. You can use this policy to authorize
11
+ * an entity in another AWS account to import the custom model, which replicates it in Amazon
12
+ * Comprehend in their account.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { ComprehendClient, PutResourcePolicyCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
17
+ * // const { ComprehendClient, PutResourcePolicyCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
18
+ * const client = new ComprehendClient(config);
19
+ * const command = new PutResourcePolicyCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
24
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
25
+ * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
29
+ readonly input: PutResourcePolicyCommandInput;
30
+ constructor(input: PutResourcePolicyCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -11,6 +11,7 @@ export * from "./CreateEntityRecognizerCommand";
11
11
  export * from "./DeleteDocumentClassifierCommand";
12
12
  export * from "./DeleteEndpointCommand";
13
13
  export * from "./DeleteEntityRecognizerCommand";
14
+ export * from "./DeleteResourcePolicyCommand";
14
15
  export * from "./DescribeDocumentClassificationJobCommand";
15
16
  export * from "./DescribeDocumentClassifierCommand";
16
17
  export * from "./DescribeDominantLanguageDetectionJobCommand";
@@ -20,6 +21,7 @@ export * from "./DescribeEntityRecognizerCommand";
20
21
  export * from "./DescribeEventsDetectionJobCommand";
21
22
  export * from "./DescribeKeyPhrasesDetectionJobCommand";
22
23
  export * from "./DescribePiiEntitiesDetectionJobCommand";
24
+ export * from "./DescribeResourcePolicyCommand";
23
25
  export * from "./DescribeSentimentDetectionJobCommand";
24
26
  export * from "./DescribeTopicsDetectionJobCommand";
25
27
  export * from "./DetectDominantLanguageCommand";
@@ -28,6 +30,7 @@ export * from "./DetectKeyPhrasesCommand";
28
30
  export * from "./DetectPiiEntitiesCommand";
29
31
  export * from "./DetectSentimentCommand";
30
32
  export * from "./DetectSyntaxCommand";
33
+ export * from "./ImportModelCommand";
31
34
  export * from "./ListDocumentClassificationJobsCommand";
32
35
  export * from "./ListDocumentClassifierSummariesCommand";
33
36
  export * from "./ListDocumentClassifiersCommand";
@@ -42,6 +45,7 @@ export * from "./ListPiiEntitiesDetectionJobsCommand";
42
45
  export * from "./ListSentimentDetectionJobsCommand";
43
46
  export * from "./ListTagsForResourceCommand";
44
47
  export * from "./ListTopicsDetectionJobsCommand";
48
+ export * from "./PutResourcePolicyCommand";
45
49
  export * from "./StartDocumentClassificationJobCommand";
46
50
  export * from "./StartDominantLanguageDetectionJobCommand";
47
51
  export * from "./StartEntitiesDetectionJobCommand";