@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";
@@ -118,6 +122,10 @@ export declare class Comprehend extends ComprehendClient {
118
122
  deleteEntityRecognizer(args: DeleteEntityRecognizerCommandInput, cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void): void;
119
123
  deleteEntityRecognizer(args: DeleteEntityRecognizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEntityRecognizerCommandOutput) => void): void;
120
124
 
125
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
126
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
127
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
128
+
121
129
  describeDocumentClassificationJob(args: DescribeDocumentClassificationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDocumentClassificationJobCommandOutput>;
122
130
  describeDocumentClassificationJob(args: DescribeDocumentClassificationJobCommandInput, cb: (err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void): void;
123
131
  describeDocumentClassificationJob(args: DescribeDocumentClassificationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDocumentClassificationJobCommandOutput) => void): void;
@@ -154,6 +162,10 @@ export declare class Comprehend extends ComprehendClient {
154
162
  describePiiEntitiesDetectionJob(args: DescribePiiEntitiesDetectionJobCommandInput, cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void): void;
155
163
  describePiiEntitiesDetectionJob(args: DescribePiiEntitiesDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePiiEntitiesDetectionJobCommandOutput) => void): void;
156
164
 
165
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DescribeResourcePolicyCommandOutput>;
166
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void): void;
167
+ describeResourcePolicy(args: DescribeResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeResourcePolicyCommandOutput) => void): void;
168
+
157
169
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSentimentDetectionJobCommandOutput>;
158
170
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void): void;
159
171
  describeSentimentDetectionJob(args: DescribeSentimentDetectionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSentimentDetectionJobCommandOutput) => void): void;
@@ -186,6 +198,10 @@ export declare class Comprehend extends ComprehendClient {
186
198
  detectSyntax(args: DetectSyntaxCommandInput, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
187
199
  detectSyntax(args: DetectSyntaxCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectSyntaxCommandOutput) => void): void;
188
200
 
201
+ importModel(args: ImportModelCommandInput, options?: __HttpHandlerOptions): Promise<ImportModelCommandOutput>;
202
+ importModel(args: ImportModelCommandInput, cb: (err: any, data?: ImportModelCommandOutput) => void): void;
203
+ importModel(args: ImportModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportModelCommandOutput) => void): void;
204
+
189
205
  listDocumentClassificationJobs(args: ListDocumentClassificationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListDocumentClassificationJobsCommandOutput>;
190
206
  listDocumentClassificationJobs(args: ListDocumentClassificationJobsCommandInput, cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void): void;
191
207
  listDocumentClassificationJobs(args: ListDocumentClassificationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDocumentClassificationJobsCommandOutput) => void): void;
@@ -242,6 +258,10 @@ export declare class Comprehend extends ComprehendClient {
242
258
  listTopicsDetectionJobs(args: ListTopicsDetectionJobsCommandInput, cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void): void;
243
259
  listTopicsDetectionJobs(args: ListTopicsDetectionJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTopicsDetectionJobsCommandOutput) => void): void;
244
260
 
261
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
262
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
263
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
264
+
245
265
  startDocumentClassificationJob(args: StartDocumentClassificationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentClassificationJobCommandOutput>;
246
266
  startDocumentClassificationJob(args: StartDocumentClassificationJobCommandInput, cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void): void;
247
267
  startDocumentClassificationJob(args: StartDocumentClassificationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentClassificationJobCommandOutput) => void): void;
@@ -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
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
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
+ export declare class DeleteResourcePolicyCommand extends $Command<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
11
+ readonly input: DeleteResourcePolicyCommandInput;
12
+ constructor(input: DeleteResourcePolicyCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
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
+ export declare class DescribeResourcePolicyCommand extends $Command<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
11
+ readonly input: DescribeResourcePolicyCommandInput;
12
+ constructor(input: DescribeResourcePolicyCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
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
+ export declare class ImportModelCommand extends $Command<ImportModelCommandInput, ImportModelCommandOutput, ComprehendClientResolvedConfig> {
11
+ readonly input: ImportModelCommandInput;
12
+ constructor(input: ImportModelCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportModelCommandInput, ImportModelCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
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
+ export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, ComprehendClientResolvedConfig> {
11
+ readonly input: PutResourcePolicyCommandInput;
12
+ constructor(input: PutResourcePolicyCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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";
@@ -592,6 +592,8 @@ export interface CreateDocumentClassifierRequest {
592
592
  Mode?: DocumentClassifierMode | string;
593
593
 
594
594
  ModelKmsKeyId?: string;
595
+
596
+ ModelPolicy?: string;
595
597
  }
596
598
  export declare namespace CreateDocumentClassifierRequest {
597
599
 
@@ -757,6 +759,8 @@ export interface CreateEntityRecognizerRequest {
757
759
  VpcConfig?: VpcConfig;
758
760
 
759
761
  ModelKmsKeyId?: string;
762
+
763
+ ModelPolicy?: string;
760
764
  }
761
765
  export declare namespace CreateEntityRecognizerRequest {
762
766
 
@@ -812,6 +816,22 @@ export declare namespace DeleteEntityRecognizerResponse {
812
816
 
813
817
  const filterSensitiveLog: (obj: DeleteEntityRecognizerResponse) => any;
814
818
  }
819
+ export interface DeleteResourcePolicyRequest {
820
+
821
+ ResourceArn: string | undefined;
822
+
823
+ PolicyRevisionId?: string;
824
+ }
825
+ export declare namespace DeleteResourcePolicyRequest {
826
+
827
+ const filterSensitiveLog: (obj: DeleteResourcePolicyRequest) => any;
828
+ }
829
+ export interface DeleteResourcePolicyResponse {
830
+ }
831
+ export declare namespace DeleteResourcePolicyResponse {
832
+
833
+ const filterSensitiveLog: (obj: DeleteResourcePolicyResponse) => any;
834
+ }
815
835
  export interface DescribeDocumentClassificationJobRequest {
816
836
 
817
837
  JobId: string | undefined;
@@ -977,6 +997,8 @@ export interface DocumentClassifierProperties {
977
997
  ModelKmsKeyId?: string;
978
998
 
979
999
  VersionName?: string;
1000
+
1001
+ SourceModelArn?: string;
980
1002
  }
981
1003
  export declare namespace DocumentClassifierProperties {
982
1004
 
@@ -1234,6 +1256,8 @@ export interface EntityRecognizerProperties {
1234
1256
  ModelKmsKeyId?: string;
1235
1257
 
1236
1258
  VersionName?: string;
1259
+
1260
+ SourceModelArn?: string;
1237
1261
  }
1238
1262
  export declare namespace EntityRecognizerProperties {
1239
1263
 
@@ -1424,6 +1448,28 @@ export declare namespace DescribePiiEntitiesDetectionJobResponse {
1424
1448
 
1425
1449
  const filterSensitiveLog: (obj: DescribePiiEntitiesDetectionJobResponse) => any;
1426
1450
  }
1451
+ export interface DescribeResourcePolicyRequest {
1452
+
1453
+ ResourceArn: string | undefined;
1454
+ }
1455
+ export declare namespace DescribeResourcePolicyRequest {
1456
+
1457
+ const filterSensitiveLog: (obj: DescribeResourcePolicyRequest) => any;
1458
+ }
1459
+ export interface DescribeResourcePolicyResponse {
1460
+
1461
+ ResourcePolicy?: string;
1462
+
1463
+ CreationTime?: Date;
1464
+
1465
+ LastModifiedTime?: Date;
1466
+
1467
+ PolicyRevisionId?: string;
1468
+ }
1469
+ export declare namespace DescribeResourcePolicyResponse {
1470
+
1471
+ const filterSensitiveLog: (obj: DescribeResourcePolicyResponse) => any;
1472
+ }
1427
1473
  export interface DescribeSentimentDetectionJobRequest {
1428
1474
 
1429
1475
  JobId: string | undefined;
@@ -1647,6 +1693,32 @@ export declare namespace DetectSyntaxResponse {
1647
1693
 
1648
1694
  const filterSensitiveLog: (obj: DetectSyntaxResponse) => any;
1649
1695
  }
1696
+ export interface ImportModelRequest {
1697
+
1698
+ SourceModelArn: string | undefined;
1699
+
1700
+ ModelName?: string;
1701
+
1702
+ VersionName?: string;
1703
+
1704
+ ModelKmsKeyId?: string;
1705
+
1706
+ DataAccessRoleArn?: string;
1707
+
1708
+ Tags?: Tag[];
1709
+ }
1710
+ export declare namespace ImportModelRequest {
1711
+
1712
+ const filterSensitiveLog: (obj: ImportModelRequest) => any;
1713
+ }
1714
+ export interface ImportModelResponse {
1715
+
1716
+ ModelArn?: string;
1717
+ }
1718
+ export declare namespace ImportModelResponse {
1719
+
1720
+ const filterSensitiveLog: (obj: ImportModelResponse) => any;
1721
+ }
1650
1722
 
1651
1723
  export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
1652
1724
  name: "InvalidFilterException";
@@ -2152,6 +2224,26 @@ export declare namespace ListTopicsDetectionJobsResponse {
2152
2224
 
2153
2225
  const filterSensitiveLog: (obj: ListTopicsDetectionJobsResponse) => any;
2154
2226
  }
2227
+ export interface PutResourcePolicyRequest {
2228
+
2229
+ ResourceArn: string | undefined;
2230
+
2231
+ ResourcePolicy: string | undefined;
2232
+
2233
+ PolicyRevisionId?: string;
2234
+ }
2235
+ export declare namespace PutResourcePolicyRequest {
2236
+
2237
+ const filterSensitiveLog: (obj: PutResourcePolicyRequest) => any;
2238
+ }
2239
+ export interface PutResourcePolicyResponse {
2240
+
2241
+ PolicyRevisionId?: string;
2242
+ }
2243
+ export declare namespace PutResourcePolicyResponse {
2244
+
2245
+ const filterSensitiveLog: (obj: PutResourcePolicyResponse) => any;
2246
+ }
2155
2247
  export interface StartDocumentClassificationJobRequest {
2156
2248
 
2157
2249
  JobName?: string;
@@ -13,6 +13,7 @@ import { CreateEntityRecognizerCommandInput, CreateEntityRecognizerCommandOutput
13
13
  import { DeleteDocumentClassifierCommandInput, DeleteDocumentClassifierCommandOutput } from "../commands/DeleteDocumentClassifierCommand";
14
14
  import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "../commands/DeleteEndpointCommand";
15
15
  import { DeleteEntityRecognizerCommandInput, DeleteEntityRecognizerCommandOutput } from "../commands/DeleteEntityRecognizerCommand";
16
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand";
16
17
  import { DescribeDocumentClassificationJobCommandInput, DescribeDocumentClassificationJobCommandOutput } from "../commands/DescribeDocumentClassificationJobCommand";
17
18
  import { DescribeDocumentClassifierCommandInput, DescribeDocumentClassifierCommandOutput } from "../commands/DescribeDocumentClassifierCommand";
18
19
  import { DescribeDominantLanguageDetectionJobCommandInput, DescribeDominantLanguageDetectionJobCommandOutput } from "../commands/DescribeDominantLanguageDetectionJobCommand";
@@ -22,6 +23,7 @@ import { DescribeEntityRecognizerCommandInput, DescribeEntityRecognizerCommandOu
22
23
  import { DescribeEventsDetectionJobCommandInput, DescribeEventsDetectionJobCommandOutput } from "../commands/DescribeEventsDetectionJobCommand";
23
24
  import { DescribeKeyPhrasesDetectionJobCommandInput, DescribeKeyPhrasesDetectionJobCommandOutput } from "../commands/DescribeKeyPhrasesDetectionJobCommand";
24
25
  import { DescribePiiEntitiesDetectionJobCommandInput, DescribePiiEntitiesDetectionJobCommandOutput } from "../commands/DescribePiiEntitiesDetectionJobCommand";
26
+ import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "../commands/DescribeResourcePolicyCommand";
25
27
  import { DescribeSentimentDetectionJobCommandInput, DescribeSentimentDetectionJobCommandOutput } from "../commands/DescribeSentimentDetectionJobCommand";
26
28
  import { DescribeTopicsDetectionJobCommandInput, DescribeTopicsDetectionJobCommandOutput } from "../commands/DescribeTopicsDetectionJobCommand";
27
29
  import { DetectDominantLanguageCommandInput, DetectDominantLanguageCommandOutput } from "../commands/DetectDominantLanguageCommand";
@@ -30,6 +32,7 @@ import { DetectKeyPhrasesCommandInput, DetectKeyPhrasesCommandOutput } from "../
30
32
  import { DetectPiiEntitiesCommandInput, DetectPiiEntitiesCommandOutput } from "../commands/DetectPiiEntitiesCommand";
31
33
  import { DetectSentimentCommandInput, DetectSentimentCommandOutput } from "../commands/DetectSentimentCommand";
32
34
  import { DetectSyntaxCommandInput, DetectSyntaxCommandOutput } from "../commands/DetectSyntaxCommand";
35
+ import { ImportModelCommandInput, ImportModelCommandOutput } from "../commands/ImportModelCommand";
33
36
  import { ListDocumentClassificationJobsCommandInput, ListDocumentClassificationJobsCommandOutput } from "../commands/ListDocumentClassificationJobsCommand";
34
37
  import { ListDocumentClassifiersCommandInput, ListDocumentClassifiersCommandOutput } from "../commands/ListDocumentClassifiersCommand";
35
38
  import { ListDocumentClassifierSummariesCommandInput, ListDocumentClassifierSummariesCommandOutput } from "../commands/ListDocumentClassifierSummariesCommand";
@@ -44,6 +47,7 @@ import { ListPiiEntitiesDetectionJobsCommandInput, ListPiiEntitiesDetectionJobsC
44
47
  import { ListSentimentDetectionJobsCommandInput, ListSentimentDetectionJobsCommandOutput } from "../commands/ListSentimentDetectionJobsCommand";
45
48
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
46
49
  import { ListTopicsDetectionJobsCommandInput, ListTopicsDetectionJobsCommandOutput } from "../commands/ListTopicsDetectionJobsCommand";
50
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
47
51
  import { StartDocumentClassificationJobCommandInput, StartDocumentClassificationJobCommandOutput } from "../commands/StartDocumentClassificationJobCommand";
48
52
  import { StartDominantLanguageDetectionJobCommandInput, StartDominantLanguageDetectionJobCommandOutput } from "../commands/StartDominantLanguageDetectionJobCommand";
49
53
  import { StartEntitiesDetectionJobCommandInput, StartEntitiesDetectionJobCommandOutput } from "../commands/StartEntitiesDetectionJobCommand";
@@ -76,6 +80,7 @@ export declare const serializeAws_json1_1CreateEntityRecognizerCommand: (input:
76
80
  export declare const serializeAws_json1_1DeleteDocumentClassifierCommand: (input: DeleteDocumentClassifierCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
81
  export declare const serializeAws_json1_1DeleteEndpointCommand: (input: DeleteEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
82
  export declare const serializeAws_json1_1DeleteEntityRecognizerCommand: (input: DeleteEntityRecognizerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
+ export declare const serializeAws_json1_1DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
84
  export declare const serializeAws_json1_1DescribeDocumentClassificationJobCommand: (input: DescribeDocumentClassificationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
85
  export declare const serializeAws_json1_1DescribeDocumentClassifierCommand: (input: DescribeDocumentClassifierCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
81
86
  export declare const serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand: (input: DescribeDominantLanguageDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -85,6 +90,7 @@ export declare const serializeAws_json1_1DescribeEntityRecognizerCommand: (input
85
90
  export declare const serializeAws_json1_1DescribeEventsDetectionJobCommand: (input: DescribeEventsDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
86
91
  export declare const serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand: (input: DescribeKeyPhrasesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
92
  export declare const serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand: (input: DescribePiiEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
93
+ export declare const serializeAws_json1_1DescribeResourcePolicyCommand: (input: DescribeResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
88
94
  export declare const serializeAws_json1_1DescribeSentimentDetectionJobCommand: (input: DescribeSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
89
95
  export declare const serializeAws_json1_1DescribeTopicsDetectionJobCommand: (input: DescribeTopicsDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
90
96
  export declare const serializeAws_json1_1DetectDominantLanguageCommand: (input: DetectDominantLanguageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -93,6 +99,7 @@ export declare const serializeAws_json1_1DetectKeyPhrasesCommand: (input: Detect
93
99
  export declare const serializeAws_json1_1DetectPiiEntitiesCommand: (input: DetectPiiEntitiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
94
100
  export declare const serializeAws_json1_1DetectSentimentCommand: (input: DetectSentimentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
95
101
  export declare const serializeAws_json1_1DetectSyntaxCommand: (input: DetectSyntaxCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
+ export declare const serializeAws_json1_1ImportModelCommand: (input: ImportModelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
96
103
  export declare const serializeAws_json1_1ListDocumentClassificationJobsCommand: (input: ListDocumentClassificationJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
104
  export declare const serializeAws_json1_1ListDocumentClassifiersCommand: (input: ListDocumentClassifiersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
98
105
  export declare const serializeAws_json1_1ListDocumentClassifierSummariesCommand: (input: ListDocumentClassifierSummariesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -107,6 +114,7 @@ export declare const serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand: (i
107
114
  export declare const serializeAws_json1_1ListSentimentDetectionJobsCommand: (input: ListSentimentDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
108
115
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
109
116
  export declare const serializeAws_json1_1ListTopicsDetectionJobsCommand: (input: ListTopicsDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
+ export declare const serializeAws_json1_1PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
110
118
  export declare const serializeAws_json1_1StartDocumentClassificationJobCommand: (input: StartDocumentClassificationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
119
  export declare const serializeAws_json1_1StartDominantLanguageDetectionJobCommand: (input: StartDominantLanguageDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
120
  export declare const serializeAws_json1_1StartEntitiesDetectionJobCommand: (input: StartEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -139,6 +147,7 @@ export declare const deserializeAws_json1_1CreateEntityRecognizerCommand: (outpu
139
147
  export declare const deserializeAws_json1_1DeleteDocumentClassifierCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDocumentClassifierCommandOutput>;
140
148
  export declare const deserializeAws_json1_1DeleteEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEndpointCommandOutput>;
141
149
  export declare const deserializeAws_json1_1DeleteEntityRecognizerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEntityRecognizerCommandOutput>;
150
+ export declare const deserializeAws_json1_1DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourcePolicyCommandOutput>;
142
151
  export declare const deserializeAws_json1_1DescribeDocumentClassificationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDocumentClassificationJobCommandOutput>;
143
152
  export declare const deserializeAws_json1_1DescribeDocumentClassifierCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDocumentClassifierCommandOutput>;
144
153
  export declare const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDominantLanguageDetectionJobCommandOutput>;
@@ -148,6 +157,7 @@ export declare const deserializeAws_json1_1DescribeEntityRecognizerCommand: (out
148
157
  export declare const deserializeAws_json1_1DescribeEventsDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventsDetectionJobCommandOutput>;
149
158
  export declare const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeKeyPhrasesDetectionJobCommandOutput>;
150
159
  export declare const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribePiiEntitiesDetectionJobCommandOutput>;
160
+ export declare const deserializeAws_json1_1DescribeResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeResourcePolicyCommandOutput>;
151
161
  export declare const deserializeAws_json1_1DescribeSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSentimentDetectionJobCommandOutput>;
152
162
  export declare const deserializeAws_json1_1DescribeTopicsDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTopicsDetectionJobCommandOutput>;
153
163
  export declare const deserializeAws_json1_1DetectDominantLanguageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDominantLanguageCommandOutput>;
@@ -156,6 +166,7 @@ export declare const deserializeAws_json1_1DetectKeyPhrasesCommand: (output: __H
156
166
  export declare const deserializeAws_json1_1DetectPiiEntitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectPiiEntitiesCommandOutput>;
157
167
  export declare const deserializeAws_json1_1DetectSentimentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectSentimentCommandOutput>;
158
168
  export declare const deserializeAws_json1_1DetectSyntaxCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectSyntaxCommandOutput>;
169
+ export declare const deserializeAws_json1_1ImportModelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportModelCommandOutput>;
159
170
  export declare const deserializeAws_json1_1ListDocumentClassificationJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDocumentClassificationJobsCommandOutput>;
160
171
  export declare const deserializeAws_json1_1ListDocumentClassifiersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDocumentClassifiersCommandOutput>;
161
172
  export declare const deserializeAws_json1_1ListDocumentClassifierSummariesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDocumentClassifierSummariesCommandOutput>;
@@ -170,6 +181,7 @@ export declare const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand:
170
181
  export declare const deserializeAws_json1_1ListSentimentDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSentimentDetectionJobsCommandOutput>;
171
182
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
172
183
  export declare const deserializeAws_json1_1ListTopicsDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTopicsDetectionJobsCommandOutput>;
184
+ export declare const deserializeAws_json1_1PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
173
185
  export declare const deserializeAws_json1_1StartDocumentClassificationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentClassificationJobCommandOutput>;
174
186
  export declare const deserializeAws_json1_1StartDominantLanguageDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDominantLanguageDetectionJobCommandOutput>;
175
187
  export declare const deserializeAws_json1_1StartEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartEntitiesDetectionJobCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-comprehend",
3
3
  "description": "AWS SDK for JavaScript Comprehend Client for Node.js, Browser and React Native",
4
- "version": "3.47.2",
4
+ "version": "3.51.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,43 +18,49 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.47.2",
22
- "@aws-sdk/config-resolver": "3.47.2",
23
- "@aws-sdk/credential-provider-node": "3.47.2",
24
- "@aws-sdk/fetch-http-handler": "3.47.2",
25
- "@aws-sdk/hash-node": "3.47.2",
26
- "@aws-sdk/invalid-dependency": "3.47.2",
27
- "@aws-sdk/middleware-content-length": "3.47.2",
28
- "@aws-sdk/middleware-host-header": "3.47.2",
29
- "@aws-sdk/middleware-logger": "3.47.2",
30
- "@aws-sdk/middleware-retry": "3.47.2",
31
- "@aws-sdk/middleware-serde": "3.47.2",
32
- "@aws-sdk/middleware-signing": "3.47.2",
33
- "@aws-sdk/middleware-stack": "3.47.2",
34
- "@aws-sdk/middleware-user-agent": "3.47.2",
35
- "@aws-sdk/node-config-provider": "3.47.2",
36
- "@aws-sdk/node-http-handler": "3.47.2",
37
- "@aws-sdk/protocol-http": "3.47.2",
38
- "@aws-sdk/smithy-client": "3.47.2",
39
- "@aws-sdk/types": "3.47.1",
40
- "@aws-sdk/url-parser": "3.47.2",
41
- "@aws-sdk/util-base64-browser": "3.47.1",
42
- "@aws-sdk/util-base64-node": "3.47.2",
43
- "@aws-sdk/util-body-length-browser": "3.47.1",
44
- "@aws-sdk/util-body-length-node": "3.47.1",
45
- "@aws-sdk/util-defaults-mode-browser": "3.47.2",
46
- "@aws-sdk/util-defaults-mode-node": "3.47.2",
47
- "@aws-sdk/util-user-agent-browser": "3.47.2",
48
- "@aws-sdk/util-user-agent-node": "3.47.2",
49
- "@aws-sdk/util-utf8-browser": "3.47.1",
50
- "@aws-sdk/util-utf8-node": "3.47.2",
21
+ "@aws-sdk/client-sts": "3.51.0",
22
+ "@aws-sdk/config-resolver": "3.51.0",
23
+ "@aws-sdk/credential-provider-node": "3.51.0",
24
+ "@aws-sdk/fetch-http-handler": "3.50.0",
25
+ "@aws-sdk/hash-node": "3.50.0",
26
+ "@aws-sdk/invalid-dependency": "3.50.0",
27
+ "@aws-sdk/middleware-content-length": "3.50.0",
28
+ "@aws-sdk/middleware-host-header": "3.50.0",
29
+ "@aws-sdk/middleware-logger": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.51.0",
31
+ "@aws-sdk/middleware-serde": "3.50.0",
32
+ "@aws-sdk/middleware-signing": "3.50.0",
33
+ "@aws-sdk/middleware-stack": "3.50.0",
34
+ "@aws-sdk/middleware-user-agent": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.51.0",
36
+ "@aws-sdk/node-http-handler": "3.50.0",
37
+ "@aws-sdk/protocol-http": "3.50.0",
38
+ "@aws-sdk/smithy-client": "3.50.0",
39
+ "@aws-sdk/types": "3.50.0",
40
+ "@aws-sdk/url-parser": "3.50.0",
41
+ "@aws-sdk/util-base64-browser": "3.49.0",
42
+ "@aws-sdk/util-base64-node": "3.49.0",
43
+ "@aws-sdk/util-body-length-browser": "3.49.0",
44
+ "@aws-sdk/util-body-length-node": "3.49.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.51.0",
49
+ "@aws-sdk/util-utf8-browser": "3.49.0",
50
+ "@aws-sdk/util-utf8-node": "3.49.0",
51
51
  "tslib": "^2.3.0",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
+ "@aws-sdk/service-client-documentation-generator": "3.49.0",
56
+ "@tsconfig/recommended": "1.0.1",
56
57
  "@types/node": "^12.7.5",
57
- "@types/uuid": "^8.3.0"
58
+ "@types/uuid": "^8.3.0",
59
+ "concurrently": "7.0.0",
60
+ "downlevel-dts": "0.7.0",
61
+ "rimraf": "3.0.2",
62
+ "typedoc": "0.19.2",
63
+ "typescript": "~4.3.5"
58
64
  },
59
65
  "engines": {
60
66
  "node": ">=12.0.0"