@aws-sdk/client-comprehend 3.52.0 → 3.54.1

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 (59) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/Comprehend.js +60 -0
  3. package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
  4. package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
  5. package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
  6. package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/index.js +3 -0
  9. package/dist-cjs/models/ComprehendServiceException.js +11 -0
  10. package/dist-cjs/models/models_0.js +290 -5
  11. package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_json1_1.js +1043 -2586
  14. package/dist-es/Comprehend.js +60 -0
  15. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +39 -0
  16. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +39 -0
  17. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +39 -0
  18. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +39 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/index.js +1 -0
  21. package/dist-es/models/ComprehendServiceException.js +12 -0
  22. package/dist-es/models/models_0.js +250 -1
  23. package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_1.js +1917 -2813
  26. package/dist-types/Comprehend.d.ts +41 -1
  27. package/dist-types/ComprehendClient.d.ts +8 -4
  28. package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +36 -0
  29. package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +35 -0
  30. package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
  31. package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +37 -0
  32. package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +44 -0
  33. package/dist-types/commands/index.d.ts +4 -0
  34. package/dist-types/index.d.ts +1 -0
  35. package/dist-types/models/ComprehendServiceException.d.ts +10 -0
  36. package/dist-types/models/models_0.d.ts +450 -51
  37. package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/runtimeConfig.d.ts +1 -1
  42. package/dist-types/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/ts3.4/Comprehend.d.ts +20 -0
  44. package/dist-types/ts3.4/ComprehendClient.d.ts +8 -4
  45. package/dist-types/ts3.4/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/StartTargetedSentimentDetectionJobCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  50. package/dist-types/ts3.4/index.d.ts +1 -0
  51. package/dist-types/ts3.4/models/ComprehendServiceException.d.ts +6 -0
  52. package/dist-types/ts3.4/models/models_0.d.ts +222 -49
  53. package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  55. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  56. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  57. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  58. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  59. package/package.json +27 -27
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ComprehendServiceException as __BaseException } from "./ComprehendServiceException";
2
3
  export declare enum AugmentedManifestsDocumentTypeFormat {
3
4
  PLAIN_TEXT_DOCUMENT = "PLAIN_TEXT_DOCUMENT",
4
5
  SEMI_STRUCTURED_DOCUMENT = "SEMI_STRUCTURED_DOCUMENT"
@@ -80,28 +81,36 @@ export declare namespace BatchDetectDominantLanguageResponse {
80
81
  const filterSensitiveLog: (obj: BatchDetectDominantLanguageResponse) => any;
81
82
  }
82
83
 
83
- export interface BatchSizeLimitExceededException extends __SmithyException, $MetadataBearer {
84
- name: "BatchSizeLimitExceededException";
85
- $fault: "client";
84
+ export declare class BatchSizeLimitExceededException extends __BaseException {
85
+ readonly name: "BatchSizeLimitExceededException";
86
+ readonly $fault: "client";
86
87
  Message?: string;
88
+
89
+ constructor(opts: __ExceptionOptionType<BatchSizeLimitExceededException, __BaseException>);
87
90
  }
88
91
 
89
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
90
- name: "InternalServerException";
91
- $fault: "server";
92
+ export declare class InternalServerException extends __BaseException {
93
+ readonly name: "InternalServerException";
94
+ readonly $fault: "server";
92
95
  Message?: string;
96
+
97
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
93
98
  }
94
99
 
95
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
96
- name: "InvalidRequestException";
97
- $fault: "client";
100
+ export declare class InvalidRequestException extends __BaseException {
101
+ readonly name: "InvalidRequestException";
102
+ readonly $fault: "client";
98
103
  Message?: string;
104
+
105
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
99
106
  }
100
107
 
101
- export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
102
- name: "TextSizeLimitExceededException";
103
- $fault: "client";
108
+ export declare class TextSizeLimitExceededException extends __BaseException {
109
+ readonly name: "TextSizeLimitExceededException";
110
+ readonly $fault: "client";
104
111
  Message?: string;
112
+
113
+ constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
105
114
  }
106
115
  export declare enum LanguageCode {
107
116
  AR = "ar",
@@ -177,10 +186,12 @@ export declare namespace BatchDetectEntitiesResponse {
177
186
  const filterSensitiveLog: (obj: BatchDetectEntitiesResponse) => any;
178
187
  }
179
188
 
180
- export interface UnsupportedLanguageException extends __SmithyException, $MetadataBearer {
181
- name: "UnsupportedLanguageException";
182
- $fault: "client";
189
+ export declare class UnsupportedLanguageException extends __BaseException {
190
+ readonly name: "UnsupportedLanguageException";
191
+ readonly $fault: "client";
183
192
  Message?: string;
193
+
194
+ constructor(opts: __ExceptionOptionType<UnsupportedLanguageException, __BaseException>);
184
195
  }
185
196
  export interface BatchDetectKeyPhrasesRequest {
186
197
 
@@ -450,10 +461,12 @@ export declare namespace ClassifyDocumentResponse {
450
461
  const filterSensitiveLog: (obj: ClassifyDocumentResponse) => any;
451
462
  }
452
463
 
453
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
454
- name: "ResourceUnavailableException";
455
- $fault: "client";
464
+ export declare class ResourceUnavailableException extends __BaseException {
465
+ readonly name: "ResourceUnavailableException";
466
+ readonly $fault: "client";
456
467
  Message?: string;
468
+
469
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
457
470
  }
458
471
  export interface ContainsPiiEntitiesRequest {
459
472
 
@@ -608,34 +621,44 @@ export declare namespace CreateDocumentClassifierResponse {
608
621
  const filterSensitiveLog: (obj: CreateDocumentClassifierResponse) => any;
609
622
  }
610
623
 
611
- export interface KmsKeyValidationException extends __SmithyException, $MetadataBearer {
612
- name: "KmsKeyValidationException";
613
- $fault: "client";
624
+ export declare class KmsKeyValidationException extends __BaseException {
625
+ readonly name: "KmsKeyValidationException";
626
+ readonly $fault: "client";
614
627
  Message?: string;
628
+
629
+ constructor(opts: __ExceptionOptionType<KmsKeyValidationException, __BaseException>);
615
630
  }
616
631
 
617
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
618
- name: "ResourceInUseException";
619
- $fault: "client";
632
+ export declare class ResourceInUseException extends __BaseException {
633
+ readonly name: "ResourceInUseException";
634
+ readonly $fault: "client";
620
635
  Message?: string;
636
+
637
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
621
638
  }
622
639
 
623
- export interface ResourceLimitExceededException extends __SmithyException, $MetadataBearer {
624
- name: "ResourceLimitExceededException";
625
- $fault: "client";
640
+ export declare class ResourceLimitExceededException extends __BaseException {
641
+ readonly name: "ResourceLimitExceededException";
642
+ readonly $fault: "client";
626
643
  Message?: string;
644
+
645
+ constructor(opts: __ExceptionOptionType<ResourceLimitExceededException, __BaseException>);
627
646
  }
628
647
 
629
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
630
- name: "TooManyRequestsException";
631
- $fault: "client";
648
+ export declare class TooManyRequestsException extends __BaseException {
649
+ readonly name: "TooManyRequestsException";
650
+ readonly $fault: "client";
632
651
  Message?: string;
652
+
653
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
633
654
  }
634
655
 
635
- export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
636
- name: "TooManyTagsException";
637
- $fault: "client";
656
+ export declare class TooManyTagsException extends __BaseException {
657
+ readonly name: "TooManyTagsException";
658
+ readonly $fault: "client";
638
659
  Message?: string;
660
+
661
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
639
662
  }
640
663
  export interface CreateEndpointRequest {
641
664
 
@@ -664,10 +687,12 @@ export declare namespace CreateEndpointResponse {
664
687
  const filterSensitiveLog: (obj: CreateEndpointResponse) => any;
665
688
  }
666
689
 
667
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
668
- name: "ResourceNotFoundException";
669
- $fault: "client";
690
+ export declare class ResourceNotFoundException extends __BaseException {
691
+ readonly name: "ResourceNotFoundException";
692
+ readonly $fault: "client";
670
693
  Message?: string;
694
+
695
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
671
696
  }
672
697
 
673
698
  export interface EntityRecognizerAnnotations {
@@ -939,10 +964,12 @@ export declare namespace DescribeDocumentClassificationJobResponse {
939
964
  const filterSensitiveLog: (obj: DescribeDocumentClassificationJobResponse) => any;
940
965
  }
941
966
 
942
- export interface JobNotFoundException extends __SmithyException, $MetadataBearer {
943
- name: "JobNotFoundException";
944
- $fault: "client";
967
+ export declare class JobNotFoundException extends __BaseException {
968
+ readonly name: "JobNotFoundException";
969
+ readonly $fault: "client";
945
970
  Message?: string;
971
+
972
+ constructor(opts: __ExceptionOptionType<JobNotFoundException, __BaseException>);
946
973
  }
947
974
  export interface DescribeDocumentClassifierRequest {
948
975
 
@@ -1519,6 +1546,55 @@ export declare namespace DescribeSentimentDetectionJobResponse {
1519
1546
 
1520
1547
  const filterSensitiveLog: (obj: DescribeSentimentDetectionJobResponse) => any;
1521
1548
  }
1549
+ export interface DescribeTargetedSentimentDetectionJobRequest {
1550
+
1551
+ JobId: string | undefined;
1552
+ }
1553
+ export declare namespace DescribeTargetedSentimentDetectionJobRequest {
1554
+
1555
+ const filterSensitiveLog: (obj: DescribeTargetedSentimentDetectionJobRequest) => any;
1556
+ }
1557
+
1558
+ export interface TargetedSentimentDetectionJobProperties {
1559
+
1560
+ JobId?: string;
1561
+
1562
+ JobArn?: string;
1563
+
1564
+ JobName?: string;
1565
+
1566
+ JobStatus?: JobStatus | string;
1567
+
1568
+ Message?: string;
1569
+
1570
+ SubmitTime?: Date;
1571
+
1572
+ EndTime?: Date;
1573
+
1574
+ InputDataConfig?: InputDataConfig;
1575
+
1576
+ OutputDataConfig?: OutputDataConfig;
1577
+
1578
+ LanguageCode?: LanguageCode | string;
1579
+
1580
+ DataAccessRoleArn?: string;
1581
+
1582
+ VolumeKmsKeyId?: string;
1583
+
1584
+ VpcConfig?: VpcConfig;
1585
+ }
1586
+ export declare namespace TargetedSentimentDetectionJobProperties {
1587
+
1588
+ const filterSensitiveLog: (obj: TargetedSentimentDetectionJobProperties) => any;
1589
+ }
1590
+ export interface DescribeTargetedSentimentDetectionJobResponse {
1591
+
1592
+ TargetedSentimentDetectionJobProperties?: TargetedSentimentDetectionJobProperties;
1593
+ }
1594
+ export declare namespace DescribeTargetedSentimentDetectionJobResponse {
1595
+
1596
+ const filterSensitiveLog: (obj: DescribeTargetedSentimentDetectionJobResponse) => any;
1597
+ }
1522
1598
  export interface DescribeTopicsDetectionJobRequest {
1523
1599
 
1524
1600
  JobId: string | undefined;
@@ -1720,10 +1796,12 @@ export declare namespace ImportModelResponse {
1720
1796
  const filterSensitiveLog: (obj: ImportModelResponse) => any;
1721
1797
  }
1722
1798
 
1723
- export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
1724
- name: "InvalidFilterException";
1725
- $fault: "client";
1799
+ export declare class InvalidFilterException extends __BaseException {
1800
+ readonly name: "InvalidFilterException";
1801
+ readonly $fault: "client";
1726
1802
  Message?: string;
1803
+
1804
+ constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
1727
1805
  }
1728
1806
 
1729
1807
  export interface DocumentClassificationJobFilter {
@@ -2188,6 +2266,43 @@ export declare namespace ListTagsForResourceResponse {
2188
2266
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2189
2267
  }
2190
2268
 
2269
+ export interface TargetedSentimentDetectionJobFilter {
2270
+
2271
+ JobName?: string;
2272
+
2273
+ JobStatus?: JobStatus | string;
2274
+
2275
+ SubmitTimeBefore?: Date;
2276
+
2277
+ SubmitTimeAfter?: Date;
2278
+ }
2279
+ export declare namespace TargetedSentimentDetectionJobFilter {
2280
+
2281
+ const filterSensitiveLog: (obj: TargetedSentimentDetectionJobFilter) => any;
2282
+ }
2283
+ export interface ListTargetedSentimentDetectionJobsRequest {
2284
+
2285
+ Filter?: TargetedSentimentDetectionJobFilter;
2286
+
2287
+ NextToken?: string;
2288
+
2289
+ MaxResults?: number;
2290
+ }
2291
+ export declare namespace ListTargetedSentimentDetectionJobsRequest {
2292
+
2293
+ const filterSensitiveLog: (obj: ListTargetedSentimentDetectionJobsRequest) => any;
2294
+ }
2295
+ export interface ListTargetedSentimentDetectionJobsResponse {
2296
+
2297
+ TargetedSentimentDetectionJobPropertiesList?: TargetedSentimentDetectionJobProperties[];
2298
+
2299
+ NextToken?: string;
2300
+ }
2301
+ export declare namespace ListTargetedSentimentDetectionJobsResponse {
2302
+
2303
+ const filterSensitiveLog: (obj: ListTargetedSentimentDetectionJobsResponse) => any;
2304
+ }
2305
+
2191
2306
  export interface TopicsDetectionJobFilter {
2192
2307
 
2193
2308
  JobName?: string;
@@ -2494,6 +2609,42 @@ export declare namespace StartSentimentDetectionJobResponse {
2494
2609
 
2495
2610
  const filterSensitiveLog: (obj: StartSentimentDetectionJobResponse) => any;
2496
2611
  }
2612
+ export interface StartTargetedSentimentDetectionJobRequest {
2613
+
2614
+ InputDataConfig: InputDataConfig | undefined;
2615
+
2616
+ OutputDataConfig: OutputDataConfig | undefined;
2617
+
2618
+ DataAccessRoleArn: string | undefined;
2619
+
2620
+ JobName?: string;
2621
+
2622
+ LanguageCode: LanguageCode | string | undefined;
2623
+
2624
+ ClientRequestToken?: string;
2625
+
2626
+ VolumeKmsKeyId?: string;
2627
+
2628
+ VpcConfig?: VpcConfig;
2629
+
2630
+ Tags?: Tag[];
2631
+ }
2632
+ export declare namespace StartTargetedSentimentDetectionJobRequest {
2633
+
2634
+ const filterSensitiveLog: (obj: StartTargetedSentimentDetectionJobRequest) => any;
2635
+ }
2636
+ export interface StartTargetedSentimentDetectionJobResponse {
2637
+
2638
+ JobId?: string;
2639
+
2640
+ JobArn?: string;
2641
+
2642
+ JobStatus?: JobStatus | string;
2643
+ }
2644
+ export declare namespace StartTargetedSentimentDetectionJobResponse {
2645
+
2646
+ const filterSensitiveLog: (obj: StartTargetedSentimentDetectionJobResponse) => any;
2647
+ }
2497
2648
  export interface StartTopicsDetectionJobRequest {
2498
2649
 
2499
2650
  InputDataConfig: InputDataConfig | undefined;
@@ -2638,6 +2789,24 @@ export declare namespace StopSentimentDetectionJobResponse {
2638
2789
 
2639
2790
  const filterSensitiveLog: (obj: StopSentimentDetectionJobResponse) => any;
2640
2791
  }
2792
+ export interface StopTargetedSentimentDetectionJobRequest {
2793
+
2794
+ JobId: string | undefined;
2795
+ }
2796
+ export declare namespace StopTargetedSentimentDetectionJobRequest {
2797
+
2798
+ const filterSensitiveLog: (obj: StopTargetedSentimentDetectionJobRequest) => any;
2799
+ }
2800
+ export interface StopTargetedSentimentDetectionJobResponse {
2801
+
2802
+ JobId?: string;
2803
+
2804
+ JobStatus?: JobStatus | string;
2805
+ }
2806
+ export declare namespace StopTargetedSentimentDetectionJobResponse {
2807
+
2808
+ const filterSensitiveLog: (obj: StopTargetedSentimentDetectionJobResponse) => any;
2809
+ }
2641
2810
  export interface StopTrainingDocumentClassifierRequest {
2642
2811
 
2643
2812
  DocumentClassifierArn: string | undefined;
@@ -2667,10 +2836,12 @@ export declare namespace StopTrainingEntityRecognizerResponse {
2667
2836
  const filterSensitiveLog: (obj: StopTrainingEntityRecognizerResponse) => any;
2668
2837
  }
2669
2838
 
2670
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
2671
- name: "ConcurrentModificationException";
2672
- $fault: "client";
2839
+ export declare class ConcurrentModificationException extends __BaseException {
2840
+ readonly name: "ConcurrentModificationException";
2841
+ readonly $fault: "client";
2673
2842
  Message?: string;
2843
+
2844
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
2674
2845
  }
2675
2846
  export interface TagResourceRequest {
2676
2847
 
@@ -2689,10 +2860,12 @@ export declare namespace TagResourceResponse {
2689
2860
  const filterSensitiveLog: (obj: TagResourceResponse) => any;
2690
2861
  }
2691
2862
 
2692
- export interface TooManyTagKeysException extends __SmithyException, $MetadataBearer {
2693
- name: "TooManyTagKeysException";
2694
- $fault: "client";
2863
+ export declare class TooManyTagKeysException extends __BaseException {
2864
+ readonly name: "TooManyTagKeysException";
2865
+ readonly $fault: "client";
2695
2866
  Message?: string;
2867
+
2868
+ constructor(opts: __ExceptionOptionType<TooManyTagKeysException, __BaseException>);
2696
2869
  }
2697
2870
  export interface UntagResourceRequest {
2698
2871
 
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListTargetedSentimentDetectionJobsCommandInput, ListTargetedSentimentDetectionJobsCommandOutput } from "../commands/ListTargetedSentimentDetectionJobsCommand";
3
+ import { ComprehendPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListTargetedSentimentDetectionJobs(config: ComprehendPaginationConfiguration, input: ListTargetedSentimentDetectionJobsCommandInput, ...additionalArguments: any): Paginator<ListTargetedSentimentDetectionJobsCommandOutput>;
@@ -9,4 +9,5 @@ export * from "./ListEntityRecognizersPaginator";
9
9
  export * from "./ListEventsDetectionJobsPaginator";
10
10
  export * from "./ListKeyPhrasesDetectionJobsPaginator";
11
11
  export * from "./ListSentimentDetectionJobsPaginator";
12
+ export * from "./ListTargetedSentimentDetectionJobsPaginator";
12
13
  export * from "./ListTopicsDetectionJobsPaginator";
@@ -25,6 +25,7 @@ import { DescribeKeyPhrasesDetectionJobCommandInput, DescribeKeyPhrasesDetection
25
25
  import { DescribePiiEntitiesDetectionJobCommandInput, DescribePiiEntitiesDetectionJobCommandOutput } from "../commands/DescribePiiEntitiesDetectionJobCommand";
26
26
  import { DescribeResourcePolicyCommandInput, DescribeResourcePolicyCommandOutput } from "../commands/DescribeResourcePolicyCommand";
27
27
  import { DescribeSentimentDetectionJobCommandInput, DescribeSentimentDetectionJobCommandOutput } from "../commands/DescribeSentimentDetectionJobCommand";
28
+ import { DescribeTargetedSentimentDetectionJobCommandInput, DescribeTargetedSentimentDetectionJobCommandOutput } from "../commands/DescribeTargetedSentimentDetectionJobCommand";
28
29
  import { DescribeTopicsDetectionJobCommandInput, DescribeTopicsDetectionJobCommandOutput } from "../commands/DescribeTopicsDetectionJobCommand";
29
30
  import { DetectDominantLanguageCommandInput, DetectDominantLanguageCommandOutput } from "../commands/DetectDominantLanguageCommand";
30
31
  import { DetectEntitiesCommandInput, DetectEntitiesCommandOutput } from "../commands/DetectEntitiesCommand";
@@ -46,6 +47,7 @@ import { ListKeyPhrasesDetectionJobsCommandInput, ListKeyPhrasesDetectionJobsCom
46
47
  import { ListPiiEntitiesDetectionJobsCommandInput, ListPiiEntitiesDetectionJobsCommandOutput } from "../commands/ListPiiEntitiesDetectionJobsCommand";
47
48
  import { ListSentimentDetectionJobsCommandInput, ListSentimentDetectionJobsCommandOutput } from "../commands/ListSentimentDetectionJobsCommand";
48
49
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
50
+ import { ListTargetedSentimentDetectionJobsCommandInput, ListTargetedSentimentDetectionJobsCommandOutput } from "../commands/ListTargetedSentimentDetectionJobsCommand";
49
51
  import { ListTopicsDetectionJobsCommandInput, ListTopicsDetectionJobsCommandOutput } from "../commands/ListTopicsDetectionJobsCommand";
50
52
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
51
53
  import { StartDocumentClassificationJobCommandInput, StartDocumentClassificationJobCommandOutput } from "../commands/StartDocumentClassificationJobCommand";
@@ -55,6 +57,7 @@ import { StartEventsDetectionJobCommandInput, StartEventsDetectionJobCommandOutp
55
57
  import { StartKeyPhrasesDetectionJobCommandInput, StartKeyPhrasesDetectionJobCommandOutput } from "../commands/StartKeyPhrasesDetectionJobCommand";
56
58
  import { StartPiiEntitiesDetectionJobCommandInput, StartPiiEntitiesDetectionJobCommandOutput } from "../commands/StartPiiEntitiesDetectionJobCommand";
57
59
  import { StartSentimentDetectionJobCommandInput, StartSentimentDetectionJobCommandOutput } from "../commands/StartSentimentDetectionJobCommand";
60
+ import { StartTargetedSentimentDetectionJobCommandInput, StartTargetedSentimentDetectionJobCommandOutput } from "../commands/StartTargetedSentimentDetectionJobCommand";
58
61
  import { StartTopicsDetectionJobCommandInput, StartTopicsDetectionJobCommandOutput } from "../commands/StartTopicsDetectionJobCommand";
59
62
  import { StopDominantLanguageDetectionJobCommandInput, StopDominantLanguageDetectionJobCommandOutput } from "../commands/StopDominantLanguageDetectionJobCommand";
60
63
  import { StopEntitiesDetectionJobCommandInput, StopEntitiesDetectionJobCommandOutput } from "../commands/StopEntitiesDetectionJobCommand";
@@ -62,6 +65,7 @@ import { StopEventsDetectionJobCommandInput, StopEventsDetectionJobCommandOutput
62
65
  import { StopKeyPhrasesDetectionJobCommandInput, StopKeyPhrasesDetectionJobCommandOutput } from "../commands/StopKeyPhrasesDetectionJobCommand";
63
66
  import { StopPiiEntitiesDetectionJobCommandInput, StopPiiEntitiesDetectionJobCommandOutput } from "../commands/StopPiiEntitiesDetectionJobCommand";
64
67
  import { StopSentimentDetectionJobCommandInput, StopSentimentDetectionJobCommandOutput } from "../commands/StopSentimentDetectionJobCommand";
68
+ import { StopTargetedSentimentDetectionJobCommandInput, StopTargetedSentimentDetectionJobCommandOutput } from "../commands/StopTargetedSentimentDetectionJobCommand";
65
69
  import { StopTrainingDocumentClassifierCommandInput, StopTrainingDocumentClassifierCommandOutput } from "../commands/StopTrainingDocumentClassifierCommand";
66
70
  import { StopTrainingEntityRecognizerCommandInput, StopTrainingEntityRecognizerCommandOutput } from "../commands/StopTrainingEntityRecognizerCommand";
67
71
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -92,6 +96,7 @@ export declare const serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand:
92
96
  export declare const serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand: (input: DescribePiiEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
93
97
  export declare const serializeAws_json1_1DescribeResourcePolicyCommand: (input: DescribeResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
94
98
  export declare const serializeAws_json1_1DescribeSentimentDetectionJobCommand: (input: DescribeSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
+ export declare const serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand: (input: DescribeTargetedSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
95
100
  export declare const serializeAws_json1_1DescribeTopicsDetectionJobCommand: (input: DescribeTopicsDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
96
101
  export declare const serializeAws_json1_1DetectDominantLanguageCommand: (input: DetectDominantLanguageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
102
  export declare const serializeAws_json1_1DetectEntitiesCommand: (input: DetectEntitiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -113,6 +118,7 @@ export declare const serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand: (in
113
118
  export declare const serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand: (input: ListPiiEntitiesDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
119
  export declare const serializeAws_json1_1ListSentimentDetectionJobsCommand: (input: ListSentimentDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
120
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
121
+ export declare const serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand: (input: ListTargetedSentimentDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
122
  export declare const serializeAws_json1_1ListTopicsDetectionJobsCommand: (input: ListTopicsDetectionJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
123
  export declare const serializeAws_json1_1PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
118
124
  export declare const serializeAws_json1_1StartDocumentClassificationJobCommand: (input: StartDocumentClassificationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -122,6 +128,7 @@ export declare const serializeAws_json1_1StartEventsDetectionJobCommand: (input:
122
128
  export declare const serializeAws_json1_1StartKeyPhrasesDetectionJobCommand: (input: StartKeyPhrasesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
123
129
  export declare const serializeAws_json1_1StartPiiEntitiesDetectionJobCommand: (input: StartPiiEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
124
130
  export declare const serializeAws_json1_1StartSentimentDetectionJobCommand: (input: StartSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
131
+ export declare const serializeAws_json1_1StartTargetedSentimentDetectionJobCommand: (input: StartTargetedSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
125
132
  export declare const serializeAws_json1_1StartTopicsDetectionJobCommand: (input: StartTopicsDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
126
133
  export declare const serializeAws_json1_1StopDominantLanguageDetectionJobCommand: (input: StopDominantLanguageDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
127
134
  export declare const serializeAws_json1_1StopEntitiesDetectionJobCommand: (input: StopEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -129,6 +136,7 @@ export declare const serializeAws_json1_1StopEventsDetectionJobCommand: (input:
129
136
  export declare const serializeAws_json1_1StopKeyPhrasesDetectionJobCommand: (input: StopKeyPhrasesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
130
137
  export declare const serializeAws_json1_1StopPiiEntitiesDetectionJobCommand: (input: StopPiiEntitiesDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
131
138
  export declare const serializeAws_json1_1StopSentimentDetectionJobCommand: (input: StopSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
139
+ export declare const serializeAws_json1_1StopTargetedSentimentDetectionJobCommand: (input: StopTargetedSentimentDetectionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
132
140
  export declare const serializeAws_json1_1StopTrainingDocumentClassifierCommand: (input: StopTrainingDocumentClassifierCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
133
141
  export declare const serializeAws_json1_1StopTrainingEntityRecognizerCommand: (input: StopTrainingEntityRecognizerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
134
142
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -159,6 +167,7 @@ export declare const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand
159
167
  export declare const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribePiiEntitiesDetectionJobCommandOutput>;
160
168
  export declare const deserializeAws_json1_1DescribeResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeResourcePolicyCommandOutput>;
161
169
  export declare const deserializeAws_json1_1DescribeSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSentimentDetectionJobCommandOutput>;
170
+ export declare const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTargetedSentimentDetectionJobCommandOutput>;
162
171
  export declare const deserializeAws_json1_1DescribeTopicsDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTopicsDetectionJobCommandOutput>;
163
172
  export declare const deserializeAws_json1_1DetectDominantLanguageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDominantLanguageCommandOutput>;
164
173
  export declare const deserializeAws_json1_1DetectEntitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectEntitiesCommandOutput>;
@@ -180,6 +189,7 @@ export declare const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand: (
180
189
  export declare const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPiiEntitiesDetectionJobsCommandOutput>;
181
190
  export declare const deserializeAws_json1_1ListSentimentDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSentimentDetectionJobsCommandOutput>;
182
191
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
192
+ export declare const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTargetedSentimentDetectionJobsCommandOutput>;
183
193
  export declare const deserializeAws_json1_1ListTopicsDetectionJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTopicsDetectionJobsCommandOutput>;
184
194
  export declare const deserializeAws_json1_1PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
185
195
  export declare const deserializeAws_json1_1StartDocumentClassificationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentClassificationJobCommandOutput>;
@@ -189,6 +199,7 @@ export declare const deserializeAws_json1_1StartEventsDetectionJobCommand: (outp
189
199
  export declare const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartKeyPhrasesDetectionJobCommandOutput>;
190
200
  export declare const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartPiiEntitiesDetectionJobCommandOutput>;
191
201
  export declare const deserializeAws_json1_1StartSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartSentimentDetectionJobCommandOutput>;
202
+ export declare const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartTargetedSentimentDetectionJobCommandOutput>;
192
203
  export declare const deserializeAws_json1_1StartTopicsDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartTopicsDetectionJobCommandOutput>;
193
204
  export declare const deserializeAws_json1_1StopDominantLanguageDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopDominantLanguageDetectionJobCommandOutput>;
194
205
  export declare const deserializeAws_json1_1StopEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopEntitiesDetectionJobCommandOutput>;
@@ -196,6 +207,7 @@ export declare const deserializeAws_json1_1StopEventsDetectionJobCommand: (outpu
196
207
  export declare const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopKeyPhrasesDetectionJobCommandOutput>;
197
208
  export declare const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopPiiEntitiesDetectionJobCommandOutput>;
198
209
  export declare const deserializeAws_json1_1StopSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopSentimentDetectionJobCommandOutput>;
210
+ export declare const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopTargetedSentimentDetectionJobCommandOutput>;
199
211
  export declare const deserializeAws_json1_1StopTrainingDocumentClassifierCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopTrainingDocumentClassifierCommandOutput>;
200
212
  export declare const deserializeAws_json1_1StopTrainingEntityRecognizerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopTrainingEntityRecognizerCommandOutput>;
201
213
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
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.52.0",
4
+ "version": "3.54.1",
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,34 +18,34 @@
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.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",