@aws-sdk/client-comprehend 3.42.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/endpoints.js +1 -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 +1 -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 +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **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))
|
|
28
|
+
* 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))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
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"],
|
|
@@ -63,6 +47,7 @@ const partitionHash = {
|
|
|
63
47
|
"ap-south-1",
|
|
64
48
|
"ap-southeast-1",
|
|
65
49
|
"ap-southeast-2",
|
|
50
|
+
"ap-southeast-3",
|
|
66
51
|
"ca-central-1",
|
|
67
52
|
"eu-central-1",
|
|
68
53
|
"eu-north-1",
|
|
@@ -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"],
|
|
@@ -61,6 +45,7 @@ var partitionHash = {
|
|
|
61
45
|
"ap-south-1",
|
|
62
46
|
"ap-southeast-1",
|
|
63
47
|
"ap-southeast-2",
|
|
48
|
+
"ap-southeast-3",
|
|
64
49
|
"ca-central-1",
|
|
65
50
|
"eu-central-1",
|
|
66
51
|
"eu-north-1",
|
|
@@ -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
|
};
|