@aws-sdk/client-comprehend 3.45.0 → 3.47.2
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.
- package/CHANGELOG.md +44 -0
- package/dist-cjs/endpoints.js +0 -16
- package/dist-cjs/models/models_0.js +5 -101
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -16
- package/dist-es/models/models_0.js +0 -64
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/ComprehendClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -96
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -64
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
44
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
51
|
|
|
8
52
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "comprehend.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "comprehend-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "comprehend.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "comprehend-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-west-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "comprehend.us-gov-west-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-west-2": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "comprehend.us-west-2.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "comprehend-fips.us-west-2.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DocumentClassifierOutputDataConfig = exports.DocumentClassifierMode = exports.DocumentClassifierInputDataConfig = exports.DocumentClassifierDataFormat = exports.ContainsPiiEntitiesResponse = exports.EntityLabel = exports.PiiEntityType = exports.ContainsPiiEntitiesRequest = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.
|
|
3
|
+
exports.CreateEndpointResponse = exports.CreateEndpointRequest = exports.CreateDocumentClassifierResponse = exports.CreateDocumentClassifierRequest = exports.VpcConfig = exports.Tag = exports.DocumentClassifierOutputDataConfig = exports.DocumentClassifierMode = exports.DocumentClassifierInputDataConfig = exports.DocumentClassifierDataFormat = exports.ContainsPiiEntitiesResponse = exports.EntityLabel = exports.PiiEntityType = exports.ContainsPiiEntitiesRequest = exports.ClassifyDocumentResponse = exports.DocumentLabel = exports.DocumentClass = exports.ClassifyDocumentRequest = exports.ClassifierMetadata = exports.ClassifierEvaluationMetrics = exports.BatchDetectSyntaxResponse = exports.BatchDetectSyntaxItemResult = exports.SyntaxToken = exports.PartOfSpeechTag = exports.PartOfSpeechTagType = exports.BatchDetectSyntaxRequest = exports.SyntaxLanguageCode = exports.BatchDetectSentimentResponse = exports.BatchDetectSentimentItemResult = exports.SentimentScore = exports.SentimentType = exports.BatchDetectSentimentRequest = exports.BatchDetectKeyPhrasesResponse = exports.BatchDetectKeyPhrasesItemResult = exports.KeyPhrase = exports.BatchDetectKeyPhrasesRequest = exports.BatchDetectEntitiesResponse = exports.BatchDetectEntitiesItemResult = exports.Entity = exports.EntityType = exports.BatchDetectEntitiesRequest = exports.LanguageCode = exports.BatchDetectDominantLanguageResponse = exports.BatchDetectDominantLanguageItemResult = exports.DominantLanguage = exports.BatchItemError = exports.BatchDetectDominantLanguageRequest = exports.AugmentedManifestsListItem = exports.Split = exports.AugmentedManifestsDocumentTypeFormat = void 0;
|
|
4
|
+
exports.DescribeKeyPhrasesDetectionJobRequest = exports.DescribeEventsDetectionJobResponse = exports.EventsDetectionJobProperties = exports.DescribeEventsDetectionJobRequest = exports.DescribeEntityRecognizerResponse = exports.EntityRecognizerProperties = exports.EntityRecognizerMetadata = exports.EntityRecognizerEvaluationMetrics = exports.EntityRecognizerMetadataEntityTypesListItem = exports.EntityTypesEvaluationMetrics = exports.DescribeEntityRecognizerRequest = exports.DescribeEntitiesDetectionJobResponse = exports.EntitiesDetectionJobProperties = exports.DescribeEntitiesDetectionJobRequest = exports.DescribeEndpointResponse = exports.EndpointProperties = exports.EndpointStatus = exports.DescribeEndpointRequest = exports.DescribeDominantLanguageDetectionJobResponse = exports.DominantLanguageDetectionJobProperties = exports.DescribeDominantLanguageDetectionJobRequest = exports.DescribeDocumentClassifierResponse = exports.DocumentClassifierProperties = exports.ModelStatus = exports.DescribeDocumentClassifierRequest = exports.DescribeDocumentClassificationJobResponse = exports.DocumentClassificationJobProperties = exports.OutputDataConfig = exports.JobStatus = exports.InputDataConfig = exports.DocumentReaderConfig = exports.DocumentReadFeatureTypes = exports.DocumentReadMode = exports.DocumentReadAction = exports.DescribeDocumentClassificationJobRequest = exports.DeleteEntityRecognizerResponse = exports.DeleteEntityRecognizerRequest = exports.DeleteEndpointResponse = exports.DeleteEndpointRequest = exports.DeleteDocumentClassifierResponse = exports.DeleteDocumentClassifierRequest = exports.CreateEntityRecognizerResponse = exports.CreateEntityRecognizerRequest = exports.EntityRecognizerInputDataConfig = exports.EntityTypesListItem = exports.EntityRecognizerEntityList = exports.EntityRecognizerDocuments = exports.InputFormat = exports.EntityRecognizerDataFormat = exports.EntityRecognizerAnnotations = void 0;
|
|
5
|
+
exports.ListEntityRecognizerSummariesRequest = exports.ListEntityRecognizersResponse = exports.ListEntityRecognizersRequest = exports.EntityRecognizerFilter = exports.ListEntitiesDetectionJobsResponse = exports.ListEntitiesDetectionJobsRequest = exports.EntitiesDetectionJobFilter = exports.ListEndpointsResponse = exports.ListEndpointsRequest = exports.EndpointFilter = exports.ListDominantLanguageDetectionJobsResponse = exports.ListDominantLanguageDetectionJobsRequest = exports.DominantLanguageDetectionJobFilter = exports.ListDocumentClassifierSummariesResponse = exports.DocumentClassifierSummary = exports.ListDocumentClassifierSummariesRequest = exports.ListDocumentClassifiersResponse = exports.ListDocumentClassifiersRequest = exports.DocumentClassifierFilter = exports.ListDocumentClassificationJobsResponse = exports.ListDocumentClassificationJobsRequest = exports.DocumentClassificationJobFilter = exports.DetectSyntaxResponse = exports.DetectSyntaxRequest = exports.DetectSentimentResponse = exports.DetectSentimentRequest = exports.DetectPiiEntitiesResponse = exports.PiiEntity = exports.DetectPiiEntitiesRequest = exports.DetectKeyPhrasesResponse = exports.DetectKeyPhrasesRequest = exports.DetectEntitiesResponse = exports.DetectEntitiesRequest = exports.DetectDominantLanguageResponse = exports.DetectDominantLanguageRequest = exports.DescribeTopicsDetectionJobResponse = exports.TopicsDetectionJobProperties = exports.DescribeTopicsDetectionJobRequest = exports.DescribeSentimentDetectionJobResponse = exports.SentimentDetectionJobProperties = exports.DescribeSentimentDetectionJobRequest = exports.DescribePiiEntitiesDetectionJobResponse = exports.PiiEntitiesDetectionJobProperties = exports.RedactionConfig = exports.PiiEntitiesDetectionMaskMode = exports.PiiOutputDataConfig = exports.PiiEntitiesDetectionMode = exports.DescribePiiEntitiesDetectionJobRequest = exports.DescribeKeyPhrasesDetectionJobResponse = exports.KeyPhrasesDetectionJobProperties = void 0;
|
|
6
|
+
exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = exports.StopKeyPhrasesDetectionJobRequest = exports.StopEventsDetectionJobResponse = exports.StopEventsDetectionJobRequest = exports.StopEntitiesDetectionJobResponse = exports.StopEntitiesDetectionJobRequest = exports.StopDominantLanguageDetectionJobResponse = exports.StopDominantLanguageDetectionJobRequest = exports.StartTopicsDetectionJobResponse = exports.StartTopicsDetectionJobRequest = exports.StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobRequest = exports.StartPiiEntitiesDetectionJobResponse = exports.StartPiiEntitiesDetectionJobRequest = exports.StartKeyPhrasesDetectionJobResponse = exports.StartKeyPhrasesDetectionJobRequest = exports.StartEventsDetectionJobResponse = exports.StartEventsDetectionJobRequest = exports.StartEntitiesDetectionJobResponse = exports.StartEntitiesDetectionJobRequest = exports.StartDominantLanguageDetectionJobResponse = exports.StartDominantLanguageDetectionJobRequest = exports.StartDocumentClassificationJobResponse = exports.StartDocumentClassificationJobRequest = exports.ListTopicsDetectionJobsResponse = exports.ListTopicsDetectionJobsRequest = exports.TopicsDetectionJobFilter = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSentimentDetectionJobsResponse = exports.ListSentimentDetectionJobsRequest = exports.SentimentDetectionJobFilter = exports.ListPiiEntitiesDetectionJobsResponse = exports.ListPiiEntitiesDetectionJobsRequest = exports.PiiEntitiesDetectionJobFilter = exports.ListKeyPhrasesDetectionJobsResponse = exports.ListKeyPhrasesDetectionJobsRequest = exports.KeyPhrasesDetectionJobFilter = exports.ListEventsDetectionJobsResponse = exports.ListEventsDetectionJobsRequest = exports.EventsDetectionJobFilter = exports.ListEntityRecognizerSummariesResponse = exports.EntityRecognizerSummary = void 0;
|
|
7
|
+
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopTrainingEntityRecognizerResponse = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
var AugmentedManifestsDocumentTypeFormat;
|
|
10
10
|
(function (AugmentedManifestsDocumentTypeFormat) {
|
|
@@ -53,30 +53,6 @@ var BatchDetectDominantLanguageResponse;
|
|
|
53
53
|
...obj,
|
|
54
54
|
});
|
|
55
55
|
})(BatchDetectDominantLanguageResponse = exports.BatchDetectDominantLanguageResponse || (exports.BatchDetectDominantLanguageResponse = {}));
|
|
56
|
-
var BatchSizeLimitExceededException;
|
|
57
|
-
(function (BatchSizeLimitExceededException) {
|
|
58
|
-
BatchSizeLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
59
|
-
...obj,
|
|
60
|
-
});
|
|
61
|
-
})(BatchSizeLimitExceededException = exports.BatchSizeLimitExceededException || (exports.BatchSizeLimitExceededException = {}));
|
|
62
|
-
var InternalServerException;
|
|
63
|
-
(function (InternalServerException) {
|
|
64
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
65
|
-
...obj,
|
|
66
|
-
});
|
|
67
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
68
|
-
var InvalidRequestException;
|
|
69
|
-
(function (InvalidRequestException) {
|
|
70
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
71
|
-
...obj,
|
|
72
|
-
});
|
|
73
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
74
|
-
var TextSizeLimitExceededException;
|
|
75
|
-
(function (TextSizeLimitExceededException) {
|
|
76
|
-
TextSizeLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
77
|
-
...obj,
|
|
78
|
-
});
|
|
79
|
-
})(TextSizeLimitExceededException = exports.TextSizeLimitExceededException || (exports.TextSizeLimitExceededException = {}));
|
|
80
56
|
var LanguageCode;
|
|
81
57
|
(function (LanguageCode) {
|
|
82
58
|
LanguageCode["AR"] = "ar";
|
|
@@ -129,12 +105,6 @@ var BatchDetectEntitiesResponse;
|
|
|
129
105
|
...obj,
|
|
130
106
|
});
|
|
131
107
|
})(BatchDetectEntitiesResponse = exports.BatchDetectEntitiesResponse || (exports.BatchDetectEntitiesResponse = {}));
|
|
132
|
-
var UnsupportedLanguageException;
|
|
133
|
-
(function (UnsupportedLanguageException) {
|
|
134
|
-
UnsupportedLanguageException.filterSensitiveLog = (obj) => ({
|
|
135
|
-
...obj,
|
|
136
|
-
});
|
|
137
|
-
})(UnsupportedLanguageException = exports.UnsupportedLanguageException || (exports.UnsupportedLanguageException = {}));
|
|
138
108
|
var BatchDetectKeyPhrasesRequest;
|
|
139
109
|
(function (BatchDetectKeyPhrasesRequest) {
|
|
140
110
|
BatchDetectKeyPhrasesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -290,12 +260,6 @@ var ClassifyDocumentResponse;
|
|
|
290
260
|
...obj,
|
|
291
261
|
});
|
|
292
262
|
})(ClassifyDocumentResponse = exports.ClassifyDocumentResponse || (exports.ClassifyDocumentResponse = {}));
|
|
293
|
-
var ResourceUnavailableException;
|
|
294
|
-
(function (ResourceUnavailableException) {
|
|
295
|
-
ResourceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
296
|
-
...obj,
|
|
297
|
-
});
|
|
298
|
-
})(ResourceUnavailableException = exports.ResourceUnavailableException || (exports.ResourceUnavailableException = {}));
|
|
299
263
|
var ContainsPiiEntitiesRequest;
|
|
300
264
|
(function (ContainsPiiEntitiesRequest) {
|
|
301
265
|
ContainsPiiEntitiesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -386,36 +350,6 @@ var CreateDocumentClassifierResponse;
|
|
|
386
350
|
...obj,
|
|
387
351
|
});
|
|
388
352
|
})(CreateDocumentClassifierResponse = exports.CreateDocumentClassifierResponse || (exports.CreateDocumentClassifierResponse = {}));
|
|
389
|
-
var KmsKeyValidationException;
|
|
390
|
-
(function (KmsKeyValidationException) {
|
|
391
|
-
KmsKeyValidationException.filterSensitiveLog = (obj) => ({
|
|
392
|
-
...obj,
|
|
393
|
-
});
|
|
394
|
-
})(KmsKeyValidationException = exports.KmsKeyValidationException || (exports.KmsKeyValidationException = {}));
|
|
395
|
-
var ResourceInUseException;
|
|
396
|
-
(function (ResourceInUseException) {
|
|
397
|
-
ResourceInUseException.filterSensitiveLog = (obj) => ({
|
|
398
|
-
...obj,
|
|
399
|
-
});
|
|
400
|
-
})(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
|
|
401
|
-
var ResourceLimitExceededException;
|
|
402
|
-
(function (ResourceLimitExceededException) {
|
|
403
|
-
ResourceLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
});
|
|
406
|
-
})(ResourceLimitExceededException = exports.ResourceLimitExceededException || (exports.ResourceLimitExceededException = {}));
|
|
407
|
-
var TooManyRequestsException;
|
|
408
|
-
(function (TooManyRequestsException) {
|
|
409
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
410
|
-
...obj,
|
|
411
|
-
});
|
|
412
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
413
|
-
var TooManyTagsException;
|
|
414
|
-
(function (TooManyTagsException) {
|
|
415
|
-
TooManyTagsException.filterSensitiveLog = (obj) => ({
|
|
416
|
-
...obj,
|
|
417
|
-
});
|
|
418
|
-
})(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
|
|
419
353
|
var CreateEndpointRequest;
|
|
420
354
|
(function (CreateEndpointRequest) {
|
|
421
355
|
CreateEndpointRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -428,12 +362,6 @@ var CreateEndpointResponse;
|
|
|
428
362
|
...obj,
|
|
429
363
|
});
|
|
430
364
|
})(CreateEndpointResponse = exports.CreateEndpointResponse || (exports.CreateEndpointResponse = {}));
|
|
431
|
-
var ResourceNotFoundException;
|
|
432
|
-
(function (ResourceNotFoundException) {
|
|
433
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
434
|
-
...obj,
|
|
435
|
-
});
|
|
436
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
437
365
|
var EntityRecognizerAnnotations;
|
|
438
366
|
(function (EntityRecognizerAnnotations) {
|
|
439
367
|
EntityRecognizerAnnotations.filterSensitiveLog = (obj) => ({
|
|
@@ -582,12 +510,6 @@ var DescribeDocumentClassificationJobResponse;
|
|
|
582
510
|
...obj,
|
|
583
511
|
});
|
|
584
512
|
})(DescribeDocumentClassificationJobResponse = exports.DescribeDocumentClassificationJobResponse || (exports.DescribeDocumentClassificationJobResponse = {}));
|
|
585
|
-
var JobNotFoundException;
|
|
586
|
-
(function (JobNotFoundException) {
|
|
587
|
-
JobNotFoundException.filterSensitiveLog = (obj) => ({
|
|
588
|
-
...obj,
|
|
589
|
-
});
|
|
590
|
-
})(JobNotFoundException = exports.JobNotFoundException || (exports.JobNotFoundException = {}));
|
|
591
513
|
var DescribeDocumentClassifierRequest;
|
|
592
514
|
(function (DescribeDocumentClassifierRequest) {
|
|
593
515
|
DescribeDocumentClassifierRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -923,12 +845,6 @@ var DetectSyntaxResponse;
|
|
|
923
845
|
...obj,
|
|
924
846
|
});
|
|
925
847
|
})(DetectSyntaxResponse = exports.DetectSyntaxResponse || (exports.DetectSyntaxResponse = {}));
|
|
926
|
-
var InvalidFilterException;
|
|
927
|
-
(function (InvalidFilterException) {
|
|
928
|
-
InvalidFilterException.filterSensitiveLog = (obj) => ({
|
|
929
|
-
...obj,
|
|
930
|
-
});
|
|
931
|
-
})(InvalidFilterException = exports.InvalidFilterException || (exports.InvalidFilterException = {}));
|
|
932
848
|
var DocumentClassificationJobFilter;
|
|
933
849
|
(function (DocumentClassificationJobFilter) {
|
|
934
850
|
DocumentClassificationJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -1373,12 +1289,6 @@ var StopTrainingEntityRecognizerResponse;
|
|
|
1373
1289
|
...obj,
|
|
1374
1290
|
});
|
|
1375
1291
|
})(StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerResponse || (exports.StopTrainingEntityRecognizerResponse = {}));
|
|
1376
|
-
var ConcurrentModificationException;
|
|
1377
|
-
(function (ConcurrentModificationException) {
|
|
1378
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
1379
|
-
...obj,
|
|
1380
|
-
});
|
|
1381
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
1382
1292
|
var TagResourceRequest;
|
|
1383
1293
|
(function (TagResourceRequest) {
|
|
1384
1294
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1391,12 +1301,6 @@ var TagResourceResponse;
|
|
|
1391
1301
|
...obj,
|
|
1392
1302
|
});
|
|
1393
1303
|
})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
|
|
1394
|
-
var TooManyTagKeysException;
|
|
1395
|
-
(function (TooManyTagKeysException) {
|
|
1396
|
-
TooManyTagKeysException.filterSensitiveLog = (obj) => ({
|
|
1397
|
-
...obj,
|
|
1398
|
-
});
|
|
1399
|
-
})(TooManyTagKeysException = exports.TooManyTagKeysException || (exports.TooManyTagKeysException = {}));
|
|
1400
1304
|
var UntagResourceRequest;
|
|
1401
1305
|
(function (UntagResourceRequest) {
|
|
1402
1306
|
UntagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "comprehend.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "comprehend-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "comprehend.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "comprehend-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "comprehend.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-2": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "comprehend.us-west-2.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "comprehend-fips.us-west-2.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -34,22 +34,6 @@ export var BatchDetectDominantLanguageResponse;
|
|
|
34
34
|
(function (BatchDetectDominantLanguageResponse) {
|
|
35
35
|
BatchDetectDominantLanguageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
36
|
})(BatchDetectDominantLanguageResponse || (BatchDetectDominantLanguageResponse = {}));
|
|
37
|
-
export var BatchSizeLimitExceededException;
|
|
38
|
-
(function (BatchSizeLimitExceededException) {
|
|
39
|
-
BatchSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
40
|
-
})(BatchSizeLimitExceededException || (BatchSizeLimitExceededException = {}));
|
|
41
|
-
export var InternalServerException;
|
|
42
|
-
(function (InternalServerException) {
|
|
43
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
44
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
45
|
-
export var InvalidRequestException;
|
|
46
|
-
(function (InvalidRequestException) {
|
|
47
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
48
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
49
|
-
export var TextSizeLimitExceededException;
|
|
50
|
-
(function (TextSizeLimitExceededException) {
|
|
51
|
-
TextSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
|
-
})(TextSizeLimitExceededException || (TextSizeLimitExceededException = {}));
|
|
53
37
|
export var LanguageCode;
|
|
54
38
|
(function (LanguageCode) {
|
|
55
39
|
LanguageCode["AR"] = "ar";
|
|
@@ -93,10 +77,6 @@ export var BatchDetectEntitiesResponse;
|
|
|
93
77
|
(function (BatchDetectEntitiesResponse) {
|
|
94
78
|
BatchDetectEntitiesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
79
|
})(BatchDetectEntitiesResponse || (BatchDetectEntitiesResponse = {}));
|
|
96
|
-
export var UnsupportedLanguageException;
|
|
97
|
-
(function (UnsupportedLanguageException) {
|
|
98
|
-
UnsupportedLanguageException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
99
|
-
})(UnsupportedLanguageException || (UnsupportedLanguageException = {}));
|
|
100
80
|
export var BatchDetectKeyPhrasesRequest;
|
|
101
81
|
(function (BatchDetectKeyPhrasesRequest) {
|
|
102
82
|
BatchDetectKeyPhrasesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TextList && { TextList: SENSITIVE_STRING }))); };
|
|
@@ -210,10 +190,6 @@ export var ClassifyDocumentResponse;
|
|
|
210
190
|
(function (ClassifyDocumentResponse) {
|
|
211
191
|
ClassifyDocumentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
192
|
})(ClassifyDocumentResponse || (ClassifyDocumentResponse = {}));
|
|
213
|
-
export var ResourceUnavailableException;
|
|
214
|
-
(function (ResourceUnavailableException) {
|
|
215
|
-
ResourceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
-
})(ResourceUnavailableException || (ResourceUnavailableException = {}));
|
|
217
193
|
export var ContainsPiiEntitiesRequest;
|
|
218
194
|
(function (ContainsPiiEntitiesRequest) {
|
|
219
195
|
ContainsPiiEntitiesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -286,26 +262,6 @@ export var CreateDocumentClassifierResponse;
|
|
|
286
262
|
(function (CreateDocumentClassifierResponse) {
|
|
287
263
|
CreateDocumentClassifierResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
288
264
|
})(CreateDocumentClassifierResponse || (CreateDocumentClassifierResponse = {}));
|
|
289
|
-
export var KmsKeyValidationException;
|
|
290
|
-
(function (KmsKeyValidationException) {
|
|
291
|
-
KmsKeyValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
|
-
})(KmsKeyValidationException || (KmsKeyValidationException = {}));
|
|
293
|
-
export var ResourceInUseException;
|
|
294
|
-
(function (ResourceInUseException) {
|
|
295
|
-
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
296
|
-
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
297
|
-
export var ResourceLimitExceededException;
|
|
298
|
-
(function (ResourceLimitExceededException) {
|
|
299
|
-
ResourceLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
300
|
-
})(ResourceLimitExceededException || (ResourceLimitExceededException = {}));
|
|
301
|
-
export var TooManyRequestsException;
|
|
302
|
-
(function (TooManyRequestsException) {
|
|
303
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
304
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
305
|
-
export var TooManyTagsException;
|
|
306
|
-
(function (TooManyTagsException) {
|
|
307
|
-
TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
308
|
-
})(TooManyTagsException || (TooManyTagsException = {}));
|
|
309
265
|
export var CreateEndpointRequest;
|
|
310
266
|
(function (CreateEndpointRequest) {
|
|
311
267
|
CreateEndpointRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -314,10 +270,6 @@ export var CreateEndpointResponse;
|
|
|
314
270
|
(function (CreateEndpointResponse) {
|
|
315
271
|
CreateEndpointResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
316
272
|
})(CreateEndpointResponse || (CreateEndpointResponse = {}));
|
|
317
|
-
export var ResourceNotFoundException;
|
|
318
|
-
(function (ResourceNotFoundException) {
|
|
319
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
320
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
321
273
|
export var EntityRecognizerAnnotations;
|
|
322
274
|
(function (EntityRecognizerAnnotations) {
|
|
323
275
|
EntityRecognizerAnnotations.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -428,10 +380,6 @@ export var DescribeDocumentClassificationJobResponse;
|
|
|
428
380
|
(function (DescribeDocumentClassificationJobResponse) {
|
|
429
381
|
DescribeDocumentClassificationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
430
382
|
})(DescribeDocumentClassificationJobResponse || (DescribeDocumentClassificationJobResponse = {}));
|
|
431
|
-
export var JobNotFoundException;
|
|
432
|
-
(function (JobNotFoundException) {
|
|
433
|
-
JobNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
434
|
-
})(JobNotFoundException || (JobNotFoundException = {}));
|
|
435
383
|
export var DescribeDocumentClassifierRequest;
|
|
436
384
|
(function (DescribeDocumentClassifierRequest) {
|
|
437
385
|
DescribeDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -660,10 +608,6 @@ export var DetectSyntaxResponse;
|
|
|
660
608
|
(function (DetectSyntaxResponse) {
|
|
661
609
|
DetectSyntaxResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
662
610
|
})(DetectSyntaxResponse || (DetectSyntaxResponse = {}));
|
|
663
|
-
export var InvalidFilterException;
|
|
664
|
-
(function (InvalidFilterException) {
|
|
665
|
-
InvalidFilterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
666
|
-
})(InvalidFilterException || (InvalidFilterException = {}));
|
|
667
611
|
export var DocumentClassificationJobFilter;
|
|
668
612
|
(function (DocumentClassificationJobFilter) {
|
|
669
613
|
DocumentClassificationJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -964,10 +908,6 @@ export var StopTrainingEntityRecognizerResponse;
|
|
|
964
908
|
(function (StopTrainingEntityRecognizerResponse) {
|
|
965
909
|
StopTrainingEntityRecognizerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
966
910
|
})(StopTrainingEntityRecognizerResponse || (StopTrainingEntityRecognizerResponse = {}));
|
|
967
|
-
export var ConcurrentModificationException;
|
|
968
|
-
(function (ConcurrentModificationException) {
|
|
969
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
970
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
971
911
|
export var TagResourceRequest;
|
|
972
912
|
(function (TagResourceRequest) {
|
|
973
913
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -976,10 +916,6 @@ export var TagResourceResponse;
|
|
|
976
916
|
(function (TagResourceResponse) {
|
|
977
917
|
TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
978
918
|
})(TagResourceResponse || (TagResourceResponse = {}));
|
|
979
|
-
export var TooManyTagKeysException;
|
|
980
|
-
(function (TooManyTagKeysException) {
|
|
981
|
-
TooManyTagKeysException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
982
|
-
})(TooManyTagKeysException || (TooManyTagKeysException = {}));
|
|
983
919
|
export var UntagResourceRequest;
|
|
984
920
|
(function (UntagResourceRequest) {
|
|
985
921
|
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchDetectDominantLanguageCommandInput, BatchDetectDominantLanguageCommandOutput } from "./commands/BatchDetectDominantLanguageCommand";
|
|
10
10
|
import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } from "./commands/BatchDetectEntitiesCommand";
|
|
@@ -171,6 +171,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
171
171
|
* @internal
|
|
172
172
|
*/
|
|
173
173
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
174
|
+
/**
|
|
175
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
176
|
+
*/
|
|
177
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
174
178
|
}
|
|
175
179
|
declare type ComprehendClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
176
180
|
/**
|
|
@@ -178,12 +178,6 @@ export interface BatchSizeLimitExceededException extends __SmithyException, $Met
|
|
|
178
178
|
$fault: "client";
|
|
179
179
|
Message?: string;
|
|
180
180
|
}
|
|
181
|
-
export declare namespace BatchSizeLimitExceededException {
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
*/
|
|
185
|
-
const filterSensitiveLog: (obj: BatchSizeLimitExceededException) => any;
|
|
186
|
-
}
|
|
187
181
|
/**
|
|
188
182
|
* <p>An internal server error occurred. Retry your request.</p>
|
|
189
183
|
*/
|
|
@@ -192,12 +186,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
192
186
|
$fault: "server";
|
|
193
187
|
Message?: string;
|
|
194
188
|
}
|
|
195
|
-
export declare namespace InternalServerException {
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
200
|
-
}
|
|
201
189
|
/**
|
|
202
190
|
* <p>The request is invalid.</p>
|
|
203
191
|
*/
|
|
@@ -206,12 +194,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
|
|
|
206
194
|
$fault: "client";
|
|
207
195
|
Message?: string;
|
|
208
196
|
}
|
|
209
|
-
export declare namespace InvalidRequestException {
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
214
|
-
}
|
|
215
197
|
/**
|
|
216
198
|
* <p>The size of the input text exceeds the limit. Use a smaller document.</p>
|
|
217
199
|
*/
|
|
@@ -220,12 +202,6 @@ export interface TextSizeLimitExceededException extends __SmithyException, $Meta
|
|
|
220
202
|
$fault: "client";
|
|
221
203
|
Message?: string;
|
|
222
204
|
}
|
|
223
|
-
export declare namespace TextSizeLimitExceededException {
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
|
|
228
|
-
}
|
|
229
205
|
export declare enum LanguageCode {
|
|
230
206
|
AR = "ar",
|
|
231
207
|
DE = "de",
|
|
@@ -364,12 +340,6 @@ export interface UnsupportedLanguageException extends __SmithyException, $Metada
|
|
|
364
340
|
$fault: "client";
|
|
365
341
|
Message?: string;
|
|
366
342
|
}
|
|
367
|
-
export declare namespace UnsupportedLanguageException {
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
*/
|
|
371
|
-
const filterSensitiveLog: (obj: UnsupportedLanguageException) => any;
|
|
372
|
-
}
|
|
373
343
|
export interface BatchDetectKeyPhrasesRequest {
|
|
374
344
|
/**
|
|
375
345
|
* <p>A list containing the text of the input documents. The list can contain a maximum of 25
|
|
@@ -899,12 +869,6 @@ export interface ResourceUnavailableException extends __SmithyException, $Metada
|
|
|
899
869
|
$fault: "client";
|
|
900
870
|
Message?: string;
|
|
901
871
|
}
|
|
902
|
-
export declare namespace ResourceUnavailableException {
|
|
903
|
-
/**
|
|
904
|
-
* @internal
|
|
905
|
-
*/
|
|
906
|
-
const filterSensitiveLog: (obj: ResourceUnavailableException) => any;
|
|
907
|
-
}
|
|
908
872
|
export interface ContainsPiiEntitiesRequest {
|
|
909
873
|
/**
|
|
910
874
|
* <p>Creates a new document classification request to analyze a single document in real-time,
|
|
@@ -1278,12 +1242,6 @@ export interface KmsKeyValidationException extends __SmithyException, $MetadataB
|
|
|
1278
1242
|
$fault: "client";
|
|
1279
1243
|
Message?: string;
|
|
1280
1244
|
}
|
|
1281
|
-
export declare namespace KmsKeyValidationException {
|
|
1282
|
-
/**
|
|
1283
|
-
* @internal
|
|
1284
|
-
*/
|
|
1285
|
-
const filterSensitiveLog: (obj: KmsKeyValidationException) => any;
|
|
1286
|
-
}
|
|
1287
1245
|
/**
|
|
1288
1246
|
* <p>The specified resource name is already in use. Use a different name and try your request
|
|
1289
1247
|
* again.</p>
|
|
@@ -1293,12 +1251,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
|
|
|
1293
1251
|
$fault: "client";
|
|
1294
1252
|
Message?: string;
|
|
1295
1253
|
}
|
|
1296
|
-
export declare namespace ResourceInUseException {
|
|
1297
|
-
/**
|
|
1298
|
-
* @internal
|
|
1299
|
-
*/
|
|
1300
|
-
const filterSensitiveLog: (obj: ResourceInUseException) => any;
|
|
1301
|
-
}
|
|
1302
1254
|
/**
|
|
1303
1255
|
* <p>The maximum number of resources per account has been exceeded. Review the resources, and
|
|
1304
1256
|
* then try your request again.</p>
|
|
@@ -1308,12 +1260,6 @@ export interface ResourceLimitExceededException extends __SmithyException, $Meta
|
|
|
1308
1260
|
$fault: "client";
|
|
1309
1261
|
Message?: string;
|
|
1310
1262
|
}
|
|
1311
|
-
export declare namespace ResourceLimitExceededException {
|
|
1312
|
-
/**
|
|
1313
|
-
* @internal
|
|
1314
|
-
*/
|
|
1315
|
-
const filterSensitiveLog: (obj: ResourceLimitExceededException) => any;
|
|
1316
|
-
}
|
|
1317
1263
|
/**
|
|
1318
1264
|
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
1319
1265
|
*/
|
|
@@ -1322,12 +1268,6 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
|
|
|
1322
1268
|
$fault: "client";
|
|
1323
1269
|
Message?: string;
|
|
1324
1270
|
}
|
|
1325
|
-
export declare namespace TooManyRequestsException {
|
|
1326
|
-
/**
|
|
1327
|
-
* @internal
|
|
1328
|
-
*/
|
|
1329
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
1330
|
-
}
|
|
1331
1271
|
/**
|
|
1332
1272
|
* <p>The request contains more tags than can be associated with a resource (50 tags per
|
|
1333
1273
|
* resource). The maximum number of tags includes both existing tags and those included in your
|
|
@@ -1338,12 +1278,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
|
|
|
1338
1278
|
$fault: "client";
|
|
1339
1279
|
Message?: string;
|
|
1340
1280
|
}
|
|
1341
|
-
export declare namespace TooManyTagsException {
|
|
1342
|
-
/**
|
|
1343
|
-
* @internal
|
|
1344
|
-
*/
|
|
1345
|
-
const filterSensitiveLog: (obj: TooManyTagsException) => any;
|
|
1346
|
-
}
|
|
1347
1281
|
export interface CreateEndpointRequest {
|
|
1348
1282
|
/**
|
|
1349
1283
|
* <p>This is the descriptive suffix that becomes part of the <code>EndpointArn</code> used for
|
|
@@ -1406,12 +1340,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
1406
1340
|
$fault: "client";
|
|
1407
1341
|
Message?: string;
|
|
1408
1342
|
}
|
|
1409
|
-
export declare namespace ResourceNotFoundException {
|
|
1410
|
-
/**
|
|
1411
|
-
* @internal
|
|
1412
|
-
*/
|
|
1413
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
1414
|
-
}
|
|
1415
1343
|
/**
|
|
1416
1344
|
* <p>Describes the annotations associated with a entity recognizer.</p>
|
|
1417
1345
|
*/
|
|
@@ -2019,12 +1947,6 @@ export interface JobNotFoundException extends __SmithyException, $MetadataBearer
|
|
|
2019
1947
|
$fault: "client";
|
|
2020
1948
|
Message?: string;
|
|
2021
1949
|
}
|
|
2022
|
-
export declare namespace JobNotFoundException {
|
|
2023
|
-
/**
|
|
2024
|
-
* @internal
|
|
2025
|
-
*/
|
|
2026
|
-
const filterSensitiveLog: (obj: JobNotFoundException) => any;
|
|
2027
|
-
}
|
|
2028
1950
|
export interface DescribeDocumentClassifierRequest {
|
|
2029
1951
|
/**
|
|
2030
1952
|
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The operation returns this identifier in its
|
|
@@ -3593,12 +3515,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
|
|
|
3593
3515
|
$fault: "client";
|
|
3594
3516
|
Message?: string;
|
|
3595
3517
|
}
|
|
3596
|
-
export declare namespace InvalidFilterException {
|
|
3597
|
-
/**
|
|
3598
|
-
* @internal
|
|
3599
|
-
*/
|
|
3600
|
-
const filterSensitiveLog: (obj: InvalidFilterException) => any;
|
|
3601
|
-
}
|
|
3602
3518
|
/**
|
|
3603
3519
|
* <p>Provides information for filtering a list of document classification jobs. For more
|
|
3604
3520
|
* information, see the operation. You can
|
|
@@ -5576,12 +5492,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
5576
5492
|
$fault: "client";
|
|
5577
5493
|
Message?: string;
|
|
5578
5494
|
}
|
|
5579
|
-
export declare namespace ConcurrentModificationException {
|
|
5580
|
-
/**
|
|
5581
|
-
* @internal
|
|
5582
|
-
*/
|
|
5583
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
5584
|
-
}
|
|
5585
5495
|
export interface TagResourceRequest {
|
|
5586
5496
|
/**
|
|
5587
5497
|
* <p>The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want
|
|
@@ -5617,12 +5527,6 @@ export interface TooManyTagKeysException extends __SmithyException, $MetadataBea
|
|
|
5617
5527
|
$fault: "client";
|
|
5618
5528
|
Message?: string;
|
|
5619
5529
|
}
|
|
5620
|
-
export declare namespace TooManyTagKeysException {
|
|
5621
|
-
/**
|
|
5622
|
-
* @internal
|
|
5623
|
-
*/
|
|
5624
|
-
const filterSensitiveLog: (obj: TooManyTagKeysException) => any;
|
|
5625
|
-
}
|
|
5626
5530
|
export interface UntagResourceRequest {
|
|
5627
5531
|
/**
|
|
5628
5532
|
* <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { ComprehendClientConfig } from "./ComprehendClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { ComprehendClientConfig } from "./ComprehendClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchDetectDominantLanguageCommandInput, BatchDetectDominantLanguageCommandOutput } from "./commands/BatchDetectDominantLanguageCommand";
|
|
10
10
|
import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } from "./commands/BatchDetectEntitiesCommand";
|
|
@@ -114,6 +114,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
114
114
|
regionInfoProvider?: RegionInfoProvider;
|
|
115
115
|
|
|
116
116
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
117
|
+
|
|
118
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
117
119
|
}
|
|
118
120
|
declare type ComprehendClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
119
121
|
|
|
@@ -85,40 +85,24 @@ export interface BatchSizeLimitExceededException extends __SmithyException, $Met
|
|
|
85
85
|
$fault: "client";
|
|
86
86
|
Message?: string;
|
|
87
87
|
}
|
|
88
|
-
export declare namespace BatchSizeLimitExceededException {
|
|
89
|
-
|
|
90
|
-
const filterSensitiveLog: (obj: BatchSizeLimitExceededException) => any;
|
|
91
|
-
}
|
|
92
88
|
|
|
93
89
|
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
94
90
|
name: "InternalServerException";
|
|
95
91
|
$fault: "server";
|
|
96
92
|
Message?: string;
|
|
97
93
|
}
|
|
98
|
-
export declare namespace InternalServerException {
|
|
99
|
-
|
|
100
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
101
|
-
}
|
|
102
94
|
|
|
103
95
|
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
104
96
|
name: "InvalidRequestException";
|
|
105
97
|
$fault: "client";
|
|
106
98
|
Message?: string;
|
|
107
99
|
}
|
|
108
|
-
export declare namespace InvalidRequestException {
|
|
109
|
-
|
|
110
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
111
|
-
}
|
|
112
100
|
|
|
113
101
|
export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
114
102
|
name: "TextSizeLimitExceededException";
|
|
115
103
|
$fault: "client";
|
|
116
104
|
Message?: string;
|
|
117
105
|
}
|
|
118
|
-
export declare namespace TextSizeLimitExceededException {
|
|
119
|
-
|
|
120
|
-
const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
|
|
121
|
-
}
|
|
122
106
|
export declare enum LanguageCode {
|
|
123
107
|
AR = "ar",
|
|
124
108
|
DE = "de",
|
|
@@ -198,10 +182,6 @@ export interface UnsupportedLanguageException extends __SmithyException, $Metada
|
|
|
198
182
|
$fault: "client";
|
|
199
183
|
Message?: string;
|
|
200
184
|
}
|
|
201
|
-
export declare namespace UnsupportedLanguageException {
|
|
202
|
-
|
|
203
|
-
const filterSensitiveLog: (obj: UnsupportedLanguageException) => any;
|
|
204
|
-
}
|
|
205
185
|
export interface BatchDetectKeyPhrasesRequest {
|
|
206
186
|
|
|
207
187
|
TextList: string[] | undefined;
|
|
@@ -475,10 +455,6 @@ export interface ResourceUnavailableException extends __SmithyException, $Metada
|
|
|
475
455
|
$fault: "client";
|
|
476
456
|
Message?: string;
|
|
477
457
|
}
|
|
478
|
-
export declare namespace ResourceUnavailableException {
|
|
479
|
-
|
|
480
|
-
const filterSensitiveLog: (obj: ResourceUnavailableException) => any;
|
|
481
|
-
}
|
|
482
458
|
export interface ContainsPiiEntitiesRequest {
|
|
483
459
|
|
|
484
460
|
Text: string | undefined;
|
|
@@ -635,50 +611,30 @@ export interface KmsKeyValidationException extends __SmithyException, $MetadataB
|
|
|
635
611
|
$fault: "client";
|
|
636
612
|
Message?: string;
|
|
637
613
|
}
|
|
638
|
-
export declare namespace KmsKeyValidationException {
|
|
639
|
-
|
|
640
|
-
const filterSensitiveLog: (obj: KmsKeyValidationException) => any;
|
|
641
|
-
}
|
|
642
614
|
|
|
643
615
|
export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
|
|
644
616
|
name: "ResourceInUseException";
|
|
645
617
|
$fault: "client";
|
|
646
618
|
Message?: string;
|
|
647
619
|
}
|
|
648
|
-
export declare namespace ResourceInUseException {
|
|
649
|
-
|
|
650
|
-
const filterSensitiveLog: (obj: ResourceInUseException) => any;
|
|
651
|
-
}
|
|
652
620
|
|
|
653
621
|
export interface ResourceLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
654
622
|
name: "ResourceLimitExceededException";
|
|
655
623
|
$fault: "client";
|
|
656
624
|
Message?: string;
|
|
657
625
|
}
|
|
658
|
-
export declare namespace ResourceLimitExceededException {
|
|
659
|
-
|
|
660
|
-
const filterSensitiveLog: (obj: ResourceLimitExceededException) => any;
|
|
661
|
-
}
|
|
662
626
|
|
|
663
627
|
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
664
628
|
name: "TooManyRequestsException";
|
|
665
629
|
$fault: "client";
|
|
666
630
|
Message?: string;
|
|
667
631
|
}
|
|
668
|
-
export declare namespace TooManyRequestsException {
|
|
669
|
-
|
|
670
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
671
|
-
}
|
|
672
632
|
|
|
673
633
|
export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
|
|
674
634
|
name: "TooManyTagsException";
|
|
675
635
|
$fault: "client";
|
|
676
636
|
Message?: string;
|
|
677
637
|
}
|
|
678
|
-
export declare namespace TooManyTagsException {
|
|
679
|
-
|
|
680
|
-
const filterSensitiveLog: (obj: TooManyTagsException) => any;
|
|
681
|
-
}
|
|
682
638
|
export interface CreateEndpointRequest {
|
|
683
639
|
|
|
684
640
|
EndpointName: string | undefined;
|
|
@@ -711,10 +667,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
711
667
|
$fault: "client";
|
|
712
668
|
Message?: string;
|
|
713
669
|
}
|
|
714
|
-
export declare namespace ResourceNotFoundException {
|
|
715
|
-
|
|
716
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
717
|
-
}
|
|
718
670
|
|
|
719
671
|
export interface EntityRecognizerAnnotations {
|
|
720
672
|
|
|
@@ -972,10 +924,6 @@ export interface JobNotFoundException extends __SmithyException, $MetadataBearer
|
|
|
972
924
|
$fault: "client";
|
|
973
925
|
Message?: string;
|
|
974
926
|
}
|
|
975
|
-
export declare namespace JobNotFoundException {
|
|
976
|
-
|
|
977
|
-
const filterSensitiveLog: (obj: JobNotFoundException) => any;
|
|
978
|
-
}
|
|
979
927
|
export interface DescribeDocumentClassifierRequest {
|
|
980
928
|
|
|
981
929
|
DocumentClassifierArn: string | undefined;
|
|
@@ -1705,10 +1653,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
|
|
|
1705
1653
|
$fault: "client";
|
|
1706
1654
|
Message?: string;
|
|
1707
1655
|
}
|
|
1708
|
-
export declare namespace InvalidFilterException {
|
|
1709
|
-
|
|
1710
|
-
const filterSensitiveLog: (obj: InvalidFilterException) => any;
|
|
1711
|
-
}
|
|
1712
1656
|
|
|
1713
1657
|
export interface DocumentClassificationJobFilter {
|
|
1714
1658
|
|
|
@@ -2636,10 +2580,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
2636
2580
|
$fault: "client";
|
|
2637
2581
|
Message?: string;
|
|
2638
2582
|
}
|
|
2639
|
-
export declare namespace ConcurrentModificationException {
|
|
2640
|
-
|
|
2641
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
2642
|
-
}
|
|
2643
2583
|
export interface TagResourceRequest {
|
|
2644
2584
|
|
|
2645
2585
|
ResourceArn: string | undefined;
|
|
@@ -2662,10 +2602,6 @@ export interface TooManyTagKeysException extends __SmithyException, $MetadataBea
|
|
|
2662
2602
|
$fault: "client";
|
|
2663
2603
|
Message?: string;
|
|
2664
2604
|
}
|
|
2665
|
-
export declare namespace TooManyTagKeysException {
|
|
2666
|
-
|
|
2667
|
-
const filterSensitiveLog: (obj: TooManyTagKeysException) => any;
|
|
2668
|
-
}
|
|
2669
2605
|
export interface UntagResourceRequest {
|
|
2670
2606
|
|
|
2671
2607
|
ResourceArn: string | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { ComprehendClientConfig } from "./ComprehendClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { ComprehendClientConfig } from "./ComprehendClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
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.
|
|
4
|
+
"version": "3.47.2",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,50 +18,46 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
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",
|
|
52
51
|
"tslib": "^2.3.0",
|
|
53
52
|
"uuid": "^8.3.2"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
57
56
|
"@types/node": "^12.7.5",
|
|
58
|
-
"@types/uuid": "^8.3.0"
|
|
59
|
-
"downlevel-dts": "0.7.0",
|
|
60
|
-
"jest": "^26.1.0",
|
|
61
|
-
"rimraf": "^3.0.0",
|
|
62
|
-
"ts-jest": "^26.4.1",
|
|
63
|
-
"typedoc": "^0.19.2",
|
|
64
|
-
"typescript": "~4.3.5"
|
|
57
|
+
"@types/uuid": "^8.3.0"
|
|
65
58
|
},
|
|
66
59
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
60
|
+
"node": ">=12.0.0"
|
|
68
61
|
},
|
|
69
62
|
"typesVersions": {
|
|
70
63
|
"<4.0": {
|