@aws-sdk/client-rekognition 3.46.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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "ca-central-1": {
7
7
  variants: [
8
- {
9
- hostname: "rekognition.ca-central-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "rekognition-fips.ca-central-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-1": {
19
15
  variants: [
20
- {
21
- hostname: "rekognition.us-east-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "rekognition-fips.us-east-1.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-east-2": {
31
23
  variants: [
32
- {
33
- hostname: "rekognition.us-east-2.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "rekognition-fips.us-east-2.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "us-gov-west-1": {
43
31
  variants: [
44
- {
45
- hostname: "rekognition.us-gov-west-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "rekognition-fips.us-gov-west-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "us-west-1": {
55
39
  variants: [
56
- {
57
- hostname: "rekognition.us-west-1.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "rekognition-fips.us-west-1.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "us-west-2": {
67
47
  variants: [
68
- {
69
- hostname: "rekognition.us-west-2.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "rekognition-fips.us-west-2.amazonaws.com",
74
50
  tags: ["fips"],
@@ -1,17 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThrottlingException = exports.ProvisionedThroughputExceededException = exports.InvalidS3ObjectException = exports.InvalidParameterException = exports.InvalidImageFormatException = exports.InternalServerError = exports.ImageTooLargeException = exports.CompareFacesResponse = exports.OrientationCorrection = exports.CompareFacesMatch = exports.CompareFacesRequest = exports.Image = exports.QualityFilter = exports.ComparedSourceImageFace = exports.CelebrityRecognitionSortBy = exports.CelebrityRecognition = exports.CelebrityDetail = exports.FaceDetail = exports.Sunglasses = exports.Mustache = exports.MouthOpen = exports.Gender = exports.GenderType = exports.EyeOpen = exports.Eyeglasses = exports.Celebrity = exports.KnownGender = exports.KnownGenderType = exports.ComparedFace = exports.Smile = exports.ImageQuality = exports.Pose = exports.Landmark = exports.LandmarkType = exports.Emotion = exports.ProtectiveEquipmentBodyPart = exports.EquipmentDetection = exports.ProtectiveEquipmentType = exports.CoversBodyPart = exports.BoundingBox = exports.BodyPart = exports.BlackFrame = exports.Beard = exports.AudioMetadata = exports.Attribute = exports.Asset = exports.GroundTruthManifest = exports.S3Object = exports.AgeRange = exports.AccessDeniedException = void 0;
4
- exports.DeleteProjectResponse = exports.ProjectStatus = exports.DeleteProjectRequest = exports.DeleteFacesResponse = exports.DeleteFacesRequest = exports.DeleteDatasetResponse = exports.DeleteDatasetRequest = exports.DeleteCollectionResponse = exports.DeleteCollectionRequest = exports.DatasetMetadata = exports.DatasetLabelDescription = exports.DatasetLabelStats = exports.DatasetDescription = exports.DatasetStatusMessageCode = exports.DatasetStatus = exports.DatasetStats = exports.DatasetChanges = exports.CustomLabel = exports.Geometry = exports.Point = exports.CreateStreamProcessorResponse = exports.CreateStreamProcessorRequest = exports.StreamProcessorSettings = exports.FaceSearchSettings = exports.StreamProcessorOutput = exports.KinesisDataStream = exports.StreamProcessorInput = exports.KinesisVideoStream = exports.CreateProjectVersionResponse = exports.CreateProjectVersionRequest = exports.TrainingData = exports.TestingData = exports.OutputConfig = exports.ResourceInUseException = exports.CreateProjectResponse = exports.CreateProjectRequest = exports.ResourceNotFoundException = exports.LimitExceededException = exports.CreateDatasetResponse = exports.CreateDatasetRequest = exports.DatasetType = exports.DatasetSource = exports.ServiceQuotaExceededException = exports.ResourceAlreadyExistsException = exports.CreateCollectionResponse = exports.CreateCollectionRequest = exports.ContentModerationSortBy = exports.ContentModerationDetection = exports.ModerationLabel = exports.ContentClassifier = void 0;
5
- exports.TextTypes = exports.DetectTextRequest = exports.DetectTextFilters = exports.RegionOfInterest = exports.DetectProtectiveEquipmentResponse = exports.ProtectiveEquipmentSummary = exports.ProtectiveEquipmentPerson = exports.DetectProtectiveEquipmentRequest = exports.ProtectiveEquipmentSummarizationAttributes = exports.HumanLoopQuotaExceededException = exports.DetectModerationLabelsResponse = exports.HumanLoopActivationOutput = exports.DetectModerationLabelsRequest = exports.HumanLoopConfig = exports.HumanLoopDataAttributes = exports.DetectLabelsResponse = exports.Label = exports.Parent = exports.Instance = exports.DetectLabelsRequest = exports.DetectionFilter = exports.DetectFacesResponse = exports.DetectFacesRequest = exports.ResourceNotReadyException = exports.DetectCustomLabelsResponse = exports.DetectCustomLabelsRequest = exports.DescribeStreamProcessorResponse = exports.StreamProcessorStatus = exports.DescribeStreamProcessorRequest = exports.DescribeProjectVersionsResponse = exports.ProjectVersionDescription = exports.TrainingDataResult = exports.TestingDataResult = exports.ValidationData = exports.EvaluationResult = exports.Summary = exports.DescribeProjectVersionsRequest = exports.InvalidPaginationTokenException = exports.DescribeProjectsResponse = exports.ProjectDescription = exports.DescribeProjectsRequest = exports.DescribeDatasetResponse = exports.DescribeDatasetRequest = exports.DescribeCollectionResponse = exports.DescribeCollectionRequest = exports.DeleteStreamProcessorResponse = exports.DeleteStreamProcessorRequest = exports.DeleteProjectVersionResponse = exports.ProjectVersionStatus = exports.DeleteProjectVersionRequest = void 0;
6
- exports.IndexFacesResponse = exports.UnindexedFace = exports.Reason = exports.IndexFacesRequest = exports.IdempotentParameterMismatchException = exports.GetTextDetectionResponse = exports.TextDetectionResult = exports.GetTextDetectionRequest = exports.GetSegmentDetectionResponse = exports.SegmentTypeInfo = exports.SegmentDetection = exports.SegmentType = exports.TechnicalCueSegment = exports.TechnicalCueType = exports.ShotSegment = exports.GetSegmentDetectionRequest = exports.GetPersonTrackingResponse = exports.PersonDetection = exports.GetPersonTrackingRequest = exports.PersonTrackingSortBy = exports.GetLabelDetectionResponse = exports.LabelDetection = exports.GetLabelDetectionRequest = exports.LabelDetectionSortBy = exports.GetFaceSearchResponse = exports.PersonMatch = exports.PersonDetail = exports.GetFaceSearchRequest = exports.GetFaceDetectionResponse = exports.GetFaceDetectionRequest = exports.GetContentModerationResponse = exports.GetContentModerationRequest = exports.GetCelebrityRecognitionResponse = exports.VideoMetadata = exports.VideoColorRange = exports.VideoJobStatus = exports.GetCelebrityRecognitionRequest = exports.GetCelebrityInfoResponse = exports.GetCelebrityInfoRequest = exports.FaceSearchSortBy = exports.FaceRecord = exports.FaceMatch = exports.FaceDetection = exports.FaceAttributes = exports.Face = exports.DistributeDatasetEntriesResponse = exports.DistributeDatasetEntriesRequest = exports.DistributeDataset = exports.DetectTextResponse = exports.TextDetection = void 0;
7
- exports.StopStreamProcessorResponse = exports.StopStreamProcessorRequest = exports.StopProjectVersionResponse = exports.StopProjectVersionRequest = exports.StartTextDetectionResponse = exports.StartTextDetectionRequest = exports.StartTextDetectionFilters = exports.StartStreamProcessorResponse = exports.StartStreamProcessorRequest = exports.StartSegmentDetectionResponse = exports.StartSegmentDetectionRequest = exports.StartSegmentDetectionFilters = exports.StartTechnicalCueDetectionFilter = exports.StartShotDetectionFilter = exports.StartProjectVersionResponse = exports.StartProjectVersionRequest = exports.StartPersonTrackingResponse = exports.StartPersonTrackingRequest = exports.StartLabelDetectionResponse = exports.StartLabelDetectionRequest = exports.StartFaceSearchResponse = exports.StartFaceSearchRequest = exports.StartFaceDetectionResponse = exports.StartFaceDetectionRequest = exports.StartContentModerationResponse = exports.StartContentModerationRequest = exports.VideoTooLargeException = exports.StartCelebrityRecognitionResponse = exports.StartCelebrityRecognitionRequest = exports.Video = exports.SearchFacesByImageResponse = exports.SearchFacesByImageRequest = exports.SearchFacesResponse = exports.SearchFacesRequest = exports.RecognizeCelebritiesResponse = exports.RecognizeCelebritiesRequest = exports.NotificationChannel = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListStreamProcessorsResponse = exports.StreamProcessor = exports.ListStreamProcessorsRequest = exports.ListFacesResponse = exports.ListFacesRequest = exports.ListDatasetLabelsResponse = exports.ListDatasetLabelsRequest = exports.ListDatasetEntriesResponse = exports.ListDatasetEntriesRequest = exports.ListCollectionsResponse = exports.ListCollectionsRequest = void 0;
8
- exports.UpdateDatasetEntriesResponse = exports.UpdateDatasetEntriesRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = void 0;
9
- var AccessDeniedException;
10
- (function (AccessDeniedException) {
11
- AccessDeniedException.filterSensitiveLog = (obj) => ({
12
- ...obj,
13
- });
14
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
3
+ exports.DatasetType = exports.DatasetSource = exports.CreateCollectionResponse = exports.CreateCollectionRequest = exports.ContentModerationSortBy = exports.ContentModerationDetection = exports.ModerationLabel = exports.ContentClassifier = exports.CompareFacesResponse = exports.OrientationCorrection = exports.CompareFacesMatch = exports.CompareFacesRequest = exports.Image = exports.QualityFilter = exports.ComparedSourceImageFace = exports.CelebrityRecognitionSortBy = exports.CelebrityRecognition = exports.CelebrityDetail = exports.FaceDetail = exports.Sunglasses = exports.Mustache = exports.MouthOpen = exports.Gender = exports.GenderType = exports.EyeOpen = exports.Eyeglasses = exports.Celebrity = exports.KnownGender = exports.KnownGenderType = exports.ComparedFace = exports.Smile = exports.ImageQuality = exports.Pose = exports.Landmark = exports.LandmarkType = exports.Emotion = exports.ProtectiveEquipmentBodyPart = exports.EquipmentDetection = exports.ProtectiveEquipmentType = exports.CoversBodyPart = exports.BoundingBox = exports.BodyPart = exports.BlackFrame = exports.Beard = exports.AudioMetadata = exports.Attribute = exports.Asset = exports.GroundTruthManifest = exports.S3Object = exports.AgeRange = void 0;
4
+ exports.DescribeProjectVersionsRequest = exports.DescribeProjectsResponse = exports.ProjectDescription = exports.DescribeProjectsRequest = exports.DescribeDatasetResponse = exports.DescribeDatasetRequest = exports.DescribeCollectionResponse = exports.DescribeCollectionRequest = exports.DeleteStreamProcessorResponse = exports.DeleteStreamProcessorRequest = exports.DeleteProjectVersionResponse = exports.ProjectVersionStatus = exports.DeleteProjectVersionRequest = exports.DeleteProjectResponse = exports.ProjectStatus = exports.DeleteProjectRequest = exports.DeleteFacesResponse = exports.DeleteFacesRequest = exports.DeleteDatasetResponse = exports.DeleteDatasetRequest = exports.DeleteCollectionResponse = exports.DeleteCollectionRequest = exports.DatasetMetadata = exports.DatasetLabelDescription = exports.DatasetLabelStats = exports.DatasetDescription = exports.DatasetStatusMessageCode = exports.DatasetStatus = exports.DatasetStats = exports.DatasetChanges = exports.CustomLabel = exports.Geometry = exports.Point = exports.CreateStreamProcessorResponse = exports.CreateStreamProcessorRequest = exports.StreamProcessorSettings = exports.FaceSearchSettings = exports.StreamProcessorOutput = exports.KinesisDataStream = exports.StreamProcessorInput = exports.KinesisVideoStream = exports.CreateProjectVersionResponse = exports.CreateProjectVersionRequest = exports.TrainingData = exports.TestingData = exports.OutputConfig = exports.CreateProjectResponse = exports.CreateProjectRequest = exports.CreateDatasetResponse = exports.CreateDatasetRequest = void 0;
5
+ exports.VideoColorRange = exports.VideoJobStatus = exports.GetCelebrityRecognitionRequest = exports.GetCelebrityInfoResponse = exports.GetCelebrityInfoRequest = exports.FaceSearchSortBy = exports.FaceRecord = exports.FaceMatch = exports.FaceDetection = exports.FaceAttributes = exports.Face = exports.DistributeDatasetEntriesResponse = exports.DistributeDatasetEntriesRequest = exports.DistributeDataset = exports.DetectTextResponse = exports.TextDetection = exports.TextTypes = exports.DetectTextRequest = exports.DetectTextFilters = exports.RegionOfInterest = exports.DetectProtectiveEquipmentResponse = exports.ProtectiveEquipmentSummary = exports.ProtectiveEquipmentPerson = exports.DetectProtectiveEquipmentRequest = exports.ProtectiveEquipmentSummarizationAttributes = exports.DetectModerationLabelsResponse = exports.HumanLoopActivationOutput = exports.DetectModerationLabelsRequest = exports.HumanLoopConfig = exports.HumanLoopDataAttributes = exports.DetectLabelsResponse = exports.Label = exports.Parent = exports.Instance = exports.DetectLabelsRequest = exports.DetectionFilter = exports.DetectFacesResponse = exports.DetectFacesRequest = exports.DetectCustomLabelsResponse = exports.DetectCustomLabelsRequest = exports.DescribeStreamProcessorResponse = exports.StreamProcessorStatus = exports.DescribeStreamProcessorRequest = exports.DescribeProjectVersionsResponse = exports.ProjectVersionDescription = exports.TrainingDataResult = exports.TestingDataResult = exports.ValidationData = exports.EvaluationResult = exports.Summary = void 0;
6
+ exports.SearchFacesRequest = exports.RecognizeCelebritiesResponse = exports.RecognizeCelebritiesRequest = exports.NotificationChannel = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListStreamProcessorsResponse = exports.StreamProcessor = exports.ListStreamProcessorsRequest = exports.ListFacesResponse = exports.ListFacesRequest = exports.ListDatasetLabelsResponse = exports.ListDatasetLabelsRequest = exports.ListDatasetEntriesResponse = exports.ListDatasetEntriesRequest = exports.ListCollectionsResponse = exports.ListCollectionsRequest = exports.IndexFacesResponse = exports.UnindexedFace = exports.Reason = exports.IndexFacesRequest = exports.GetTextDetectionResponse = exports.TextDetectionResult = exports.GetTextDetectionRequest = exports.GetSegmentDetectionResponse = exports.SegmentTypeInfo = exports.SegmentDetection = exports.SegmentType = exports.TechnicalCueSegment = exports.TechnicalCueType = exports.ShotSegment = exports.GetSegmentDetectionRequest = exports.GetPersonTrackingResponse = exports.PersonDetection = exports.GetPersonTrackingRequest = exports.PersonTrackingSortBy = exports.GetLabelDetectionResponse = exports.LabelDetection = exports.GetLabelDetectionRequest = exports.LabelDetectionSortBy = exports.GetFaceSearchResponse = exports.PersonMatch = exports.PersonDetail = exports.GetFaceSearchRequest = exports.GetFaceDetectionResponse = exports.GetFaceDetectionRequest = exports.GetContentModerationResponse = exports.GetContentModerationRequest = exports.GetCelebrityRecognitionResponse = exports.VideoMetadata = void 0;
7
+ exports.UpdateDatasetEntriesResponse = exports.UpdateDatasetEntriesRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopStreamProcessorResponse = exports.StopStreamProcessorRequest = exports.StopProjectVersionResponse = exports.StopProjectVersionRequest = exports.StartTextDetectionResponse = exports.StartTextDetectionRequest = exports.StartTextDetectionFilters = exports.StartStreamProcessorResponse = exports.StartStreamProcessorRequest = exports.StartSegmentDetectionResponse = exports.StartSegmentDetectionRequest = exports.StartSegmentDetectionFilters = exports.StartTechnicalCueDetectionFilter = exports.StartShotDetectionFilter = exports.StartProjectVersionResponse = exports.StartProjectVersionRequest = exports.StartPersonTrackingResponse = exports.StartPersonTrackingRequest = exports.StartLabelDetectionResponse = exports.StartLabelDetectionRequest = exports.StartFaceSearchResponse = exports.StartFaceSearchRequest = exports.StartFaceDetectionResponse = exports.StartFaceDetectionRequest = exports.StartContentModerationResponse = exports.StartContentModerationRequest = exports.StartCelebrityRecognitionResponse = exports.StartCelebrityRecognitionRequest = exports.Video = exports.SearchFacesByImageResponse = exports.SearchFacesByImageRequest = exports.SearchFacesResponse = void 0;
15
8
  var AgeRange;
16
9
  (function (AgeRange) {
17
10
  AgeRange.filterSensitiveLog = (obj) => ({
@@ -293,48 +286,6 @@ var CompareFacesResponse;
293
286
  ...obj,
294
287
  });
295
288
  })(CompareFacesResponse = exports.CompareFacesResponse || (exports.CompareFacesResponse = {}));
296
- var ImageTooLargeException;
297
- (function (ImageTooLargeException) {
298
- ImageTooLargeException.filterSensitiveLog = (obj) => ({
299
- ...obj,
300
- });
301
- })(ImageTooLargeException = exports.ImageTooLargeException || (exports.ImageTooLargeException = {}));
302
- var InternalServerError;
303
- (function (InternalServerError) {
304
- InternalServerError.filterSensitiveLog = (obj) => ({
305
- ...obj,
306
- });
307
- })(InternalServerError = exports.InternalServerError || (exports.InternalServerError = {}));
308
- var InvalidImageFormatException;
309
- (function (InvalidImageFormatException) {
310
- InvalidImageFormatException.filterSensitiveLog = (obj) => ({
311
- ...obj,
312
- });
313
- })(InvalidImageFormatException = exports.InvalidImageFormatException || (exports.InvalidImageFormatException = {}));
314
- var InvalidParameterException;
315
- (function (InvalidParameterException) {
316
- InvalidParameterException.filterSensitiveLog = (obj) => ({
317
- ...obj,
318
- });
319
- })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
320
- var InvalidS3ObjectException;
321
- (function (InvalidS3ObjectException) {
322
- InvalidS3ObjectException.filterSensitiveLog = (obj) => ({
323
- ...obj,
324
- });
325
- })(InvalidS3ObjectException = exports.InvalidS3ObjectException || (exports.InvalidS3ObjectException = {}));
326
- var ProvisionedThroughputExceededException;
327
- (function (ProvisionedThroughputExceededException) {
328
- ProvisionedThroughputExceededException.filterSensitiveLog = (obj) => ({
329
- ...obj,
330
- });
331
- })(ProvisionedThroughputExceededException = exports.ProvisionedThroughputExceededException || (exports.ProvisionedThroughputExceededException = {}));
332
- var ThrottlingException;
333
- (function (ThrottlingException) {
334
- ThrottlingException.filterSensitiveLog = (obj) => ({
335
- ...obj,
336
- });
337
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
338
289
  var ContentClassifier;
339
290
  (function (ContentClassifier) {
340
291
  ContentClassifier["FREE_OF_ADULT_CONTENT"] = "FreeOfAdultContent";
@@ -369,18 +320,6 @@ var CreateCollectionResponse;
369
320
  ...obj,
370
321
  });
371
322
  })(CreateCollectionResponse = exports.CreateCollectionResponse || (exports.CreateCollectionResponse = {}));
372
- var ResourceAlreadyExistsException;
373
- (function (ResourceAlreadyExistsException) {
374
- ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
375
- ...obj,
376
- });
377
- })(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
378
- var ServiceQuotaExceededException;
379
- (function (ServiceQuotaExceededException) {
380
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
381
- ...obj,
382
- });
383
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
384
323
  var DatasetSource;
385
324
  (function (DatasetSource) {
386
325
  DatasetSource.filterSensitiveLog = (obj) => ({
@@ -404,18 +343,6 @@ var CreateDatasetResponse;
404
343
  ...obj,
405
344
  });
406
345
  })(CreateDatasetResponse = exports.CreateDatasetResponse || (exports.CreateDatasetResponse = {}));
407
- var LimitExceededException;
408
- (function (LimitExceededException) {
409
- LimitExceededException.filterSensitiveLog = (obj) => ({
410
- ...obj,
411
- });
412
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
413
- var ResourceNotFoundException;
414
- (function (ResourceNotFoundException) {
415
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
416
- ...obj,
417
- });
418
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
419
346
  var CreateProjectRequest;
420
347
  (function (CreateProjectRequest) {
421
348
  CreateProjectRequest.filterSensitiveLog = (obj) => ({
@@ -428,12 +355,6 @@ var CreateProjectResponse;
428
355
  ...obj,
429
356
  });
430
357
  })(CreateProjectResponse = exports.CreateProjectResponse || (exports.CreateProjectResponse = {}));
431
- var ResourceInUseException;
432
- (function (ResourceInUseException) {
433
- ResourceInUseException.filterSensitiveLog = (obj) => ({
434
- ...obj,
435
- });
436
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
437
358
  var OutputConfig;
438
359
  (function (OutputConfig) {
439
360
  OutputConfig.filterSensitiveLog = (obj) => ({
@@ -714,12 +635,6 @@ var DescribeProjectsResponse;
714
635
  ...obj,
715
636
  });
716
637
  })(DescribeProjectsResponse = exports.DescribeProjectsResponse || (exports.DescribeProjectsResponse = {}));
717
- var InvalidPaginationTokenException;
718
- (function (InvalidPaginationTokenException) {
719
- InvalidPaginationTokenException.filterSensitiveLog = (obj) => ({
720
- ...obj,
721
- });
722
- })(InvalidPaginationTokenException = exports.InvalidPaginationTokenException || (exports.InvalidPaginationTokenException = {}));
723
638
  var DescribeProjectVersionsRequest;
724
639
  (function (DescribeProjectVersionsRequest) {
725
640
  DescribeProjectVersionsRequest.filterSensitiveLog = (obj) => ({
@@ -800,12 +715,6 @@ var DetectCustomLabelsResponse;
800
715
  ...obj,
801
716
  });
802
717
  })(DetectCustomLabelsResponse = exports.DetectCustomLabelsResponse || (exports.DetectCustomLabelsResponse = {}));
803
- var ResourceNotReadyException;
804
- (function (ResourceNotReadyException) {
805
- ResourceNotReadyException.filterSensitiveLog = (obj) => ({
806
- ...obj,
807
- });
808
- })(ResourceNotReadyException = exports.ResourceNotReadyException || (exports.ResourceNotReadyException = {}));
809
718
  var DetectFacesRequest;
810
719
  (function (DetectFacesRequest) {
811
720
  DetectFacesRequest.filterSensitiveLog = (obj) => ({
@@ -884,12 +793,6 @@ var DetectModerationLabelsResponse;
884
793
  ...obj,
885
794
  });
886
795
  })(DetectModerationLabelsResponse = exports.DetectModerationLabelsResponse || (exports.DetectModerationLabelsResponse = {}));
887
- var HumanLoopQuotaExceededException;
888
- (function (HumanLoopQuotaExceededException) {
889
- HumanLoopQuotaExceededException.filterSensitiveLog = (obj) => ({
890
- ...obj,
891
- });
892
- })(HumanLoopQuotaExceededException = exports.HumanLoopQuotaExceededException || (exports.HumanLoopQuotaExceededException = {}));
893
796
  var ProtectiveEquipmentSummarizationAttributes;
894
797
  (function (ProtectiveEquipmentSummarizationAttributes) {
895
798
  ProtectiveEquipmentSummarizationAttributes.filterSensitiveLog = (obj) => ({
@@ -1211,12 +1114,6 @@ var GetTextDetectionResponse;
1211
1114
  ...obj,
1212
1115
  });
1213
1116
  })(GetTextDetectionResponse = exports.GetTextDetectionResponse || (exports.GetTextDetectionResponse = {}));
1214
- var IdempotentParameterMismatchException;
1215
- (function (IdempotentParameterMismatchException) {
1216
- IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
1217
- ...obj,
1218
- });
1219
- })(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
1220
1117
  var IndexFacesRequest;
1221
1118
  (function (IndexFacesRequest) {
1222
1119
  IndexFacesRequest.filterSensitiveLog = (obj) => ({
@@ -1383,12 +1280,6 @@ var StartCelebrityRecognitionResponse;
1383
1280
  ...obj,
1384
1281
  });
1385
1282
  })(StartCelebrityRecognitionResponse = exports.StartCelebrityRecognitionResponse || (exports.StartCelebrityRecognitionResponse = {}));
1386
- var VideoTooLargeException;
1387
- (function (VideoTooLargeException) {
1388
- VideoTooLargeException.filterSensitiveLog = (obj) => ({
1389
- ...obj,
1390
- });
1391
- })(VideoTooLargeException = exports.VideoTooLargeException || (exports.VideoTooLargeException = {}));
1392
1283
  var StartContentModerationRequest;
1393
1284
  (function (StartContentModerationRequest) {
1394
1285
  StartContentModerationRequest.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 : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
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)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  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
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
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 }),
30
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),
31
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),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
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
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
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),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "ca-central-1": {
5
5
  variants: [
6
- {
7
- hostname: "rekognition.ca-central-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "rekognition-fips.ca-central-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-1": {
17
13
  variants: [
18
- {
19
- hostname: "rekognition.us-east-1.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "rekognition-fips.us-east-1.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "us-east-2": {
29
21
  variants: [
30
- {
31
- hostname: "rekognition.us-east-2.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "rekognition-fips.us-east-2.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "us-gov-west-1": {
41
29
  variants: [
42
- {
43
- hostname: "rekognition.us-gov-west-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "rekognition-fips.us-gov-west-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "us-west-1": {
53
37
  variants: [
54
- {
55
- hostname: "rekognition.us-west-1.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "rekognition-fips.us-west-1.amazonaws.com",
60
40
  tags: ["fips"],
@@ -63,10 +43,6 @@ var regionHash = {
63
43
  },
64
44
  "us-west-2": {
65
45
  variants: [
66
- {
67
- hostname: "rekognition.us-west-2.amazonaws.com",
68
- tags: [],
69
- },
70
46
  {
71
47
  hostname: "rekognition-fips.us-west-2.amazonaws.com",
72
48
  tags: ["fips"],
@@ -1,8 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
2
  export var AgeRange;
7
3
  (function (AgeRange) {
8
4
  AgeRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -218,34 +214,6 @@ export var CompareFacesResponse;
218
214
  (function (CompareFacesResponse) {
219
215
  CompareFacesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
216
  })(CompareFacesResponse || (CompareFacesResponse = {}));
221
- export var ImageTooLargeException;
222
- (function (ImageTooLargeException) {
223
- ImageTooLargeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- })(ImageTooLargeException || (ImageTooLargeException = {}));
225
- export var InternalServerError;
226
- (function (InternalServerError) {
227
- InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
- })(InternalServerError || (InternalServerError = {}));
229
- export var InvalidImageFormatException;
230
- (function (InvalidImageFormatException) {
231
- InvalidImageFormatException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
- })(InvalidImageFormatException || (InvalidImageFormatException = {}));
233
- export var InvalidParameterException;
234
- (function (InvalidParameterException) {
235
- InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- })(InvalidParameterException || (InvalidParameterException = {}));
237
- export var InvalidS3ObjectException;
238
- (function (InvalidS3ObjectException) {
239
- InvalidS3ObjectException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
- })(InvalidS3ObjectException || (InvalidS3ObjectException = {}));
241
- export var ProvisionedThroughputExceededException;
242
- (function (ProvisionedThroughputExceededException) {
243
- ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
- })(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {}));
245
- export var ThrottlingException;
246
- (function (ThrottlingException) {
247
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- })(ThrottlingException || (ThrottlingException = {}));
249
217
  export var ContentClassifier;
250
218
  (function (ContentClassifier) {
251
219
  ContentClassifier["FREE_OF_ADULT_CONTENT"] = "FreeOfAdultContent";
@@ -272,14 +240,6 @@ export var CreateCollectionResponse;
272
240
  (function (CreateCollectionResponse) {
273
241
  CreateCollectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
242
  })(CreateCollectionResponse || (CreateCollectionResponse = {}));
275
- export var ResourceAlreadyExistsException;
276
- (function (ResourceAlreadyExistsException) {
277
- ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- })(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
279
- export var ServiceQuotaExceededException;
280
- (function (ServiceQuotaExceededException) {
281
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
283
243
  export var DatasetSource;
284
244
  (function (DatasetSource) {
285
245
  DatasetSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -297,14 +257,6 @@ export var CreateDatasetResponse;
297
257
  (function (CreateDatasetResponse) {
298
258
  CreateDatasetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
299
259
  })(CreateDatasetResponse || (CreateDatasetResponse = {}));
300
- export var LimitExceededException;
301
- (function (LimitExceededException) {
302
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
303
- })(LimitExceededException || (LimitExceededException = {}));
304
- export var ResourceNotFoundException;
305
- (function (ResourceNotFoundException) {
306
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
307
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
308
260
  export var CreateProjectRequest;
309
261
  (function (CreateProjectRequest) {
310
262
  CreateProjectRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -313,10 +265,6 @@ export var CreateProjectResponse;
313
265
  (function (CreateProjectResponse) {
314
266
  CreateProjectResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
315
267
  })(CreateProjectResponse || (CreateProjectResponse = {}));
316
- export var ResourceInUseException;
317
- (function (ResourceInUseException) {
318
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
319
- })(ResourceInUseException || (ResourceInUseException = {}));
320
268
  export var OutputConfig;
321
269
  (function (OutputConfig) {
322
270
  OutputConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -515,10 +463,6 @@ export var DescribeProjectsResponse;
515
463
  (function (DescribeProjectsResponse) {
516
464
  DescribeProjectsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
517
465
  })(DescribeProjectsResponse || (DescribeProjectsResponse = {}));
518
- export var InvalidPaginationTokenException;
519
- (function (InvalidPaginationTokenException) {
520
- InvalidPaginationTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
521
- })(InvalidPaginationTokenException || (InvalidPaginationTokenException = {}));
522
466
  export var DescribeProjectVersionsRequest;
523
467
  (function (DescribeProjectVersionsRequest) {
524
468
  DescribeProjectVersionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -575,10 +519,6 @@ export var DetectCustomLabelsResponse;
575
519
  (function (DetectCustomLabelsResponse) {
576
520
  DetectCustomLabelsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
577
521
  })(DetectCustomLabelsResponse || (DetectCustomLabelsResponse = {}));
578
- export var ResourceNotReadyException;
579
- (function (ResourceNotReadyException) {
580
- ResourceNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
581
- })(ResourceNotReadyException || (ResourceNotReadyException = {}));
582
522
  export var DetectFacesRequest;
583
523
  (function (DetectFacesRequest) {
584
524
  DetectFacesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -631,10 +571,6 @@ export var DetectModerationLabelsResponse;
631
571
  (function (DetectModerationLabelsResponse) {
632
572
  DetectModerationLabelsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
633
573
  })(DetectModerationLabelsResponse || (DetectModerationLabelsResponse = {}));
634
- export var HumanLoopQuotaExceededException;
635
- (function (HumanLoopQuotaExceededException) {
636
- HumanLoopQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
637
- })(HumanLoopQuotaExceededException || (HumanLoopQuotaExceededException = {}));
638
574
  export var ProtectiveEquipmentSummarizationAttributes;
639
575
  (function (ProtectiveEquipmentSummarizationAttributes) {
640
576
  ProtectiveEquipmentSummarizationAttributes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -866,10 +802,6 @@ export var GetTextDetectionResponse;
866
802
  (function (GetTextDetectionResponse) {
867
803
  GetTextDetectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
868
804
  })(GetTextDetectionResponse || (GetTextDetectionResponse = {}));
869
- export var IdempotentParameterMismatchException;
870
- (function (IdempotentParameterMismatchException) {
871
- IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
872
- })(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
873
805
  export var IndexFacesRequest;
874
806
  (function (IndexFacesRequest) {
875
807
  IndexFacesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -984,10 +916,6 @@ export var StartCelebrityRecognitionResponse;
984
916
  (function (StartCelebrityRecognitionResponse) {
985
917
  StartCelebrityRecognitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
986
918
  })(StartCelebrityRecognitionResponse || (StartCelebrityRecognitionResponse = {}));
987
- export var VideoTooLargeException;
988
- (function (VideoTooLargeException) {
989
- VideoTooLargeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
990
- })(VideoTooLargeException || (VideoTooLargeException = {}));
991
919
  export var StartContentModerationRequest;
992
920
  (function (StartContentModerationRequest) {
993
921
  StartContentModerationRequest.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 FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), 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 });
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
  };