@aws-sdk/client-glue 3.46.0 → 3.48.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.
@@ -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 NotificationProperty;
7
3
  (function (NotificationProperty) {
8
4
  NotificationProperty.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -11,10 +7,6 @@ export var Action;
11
7
  (function (Action) {
12
8
  Action.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
9
  })(Action || (Action = {}));
14
- export var AlreadyExistsException;
15
- (function (AlreadyExistsException) {
16
- AlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
- })(AlreadyExistsException || (AlreadyExistsException = {}));
18
10
  export var AuditContext;
19
11
  (function (AuditContext) {
20
12
  AuditContext.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -67,30 +59,6 @@ export var BatchCreatePartitionResponse;
67
59
  (function (BatchCreatePartitionResponse) {
68
60
  BatchCreatePartitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
69
61
  })(BatchCreatePartitionResponse || (BatchCreatePartitionResponse = {}));
70
- export var EntityNotFoundException;
71
- (function (EntityNotFoundException) {
72
- EntityNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- })(EntityNotFoundException || (EntityNotFoundException = {}));
74
- export var GlueEncryptionException;
75
- (function (GlueEncryptionException) {
76
- GlueEncryptionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- })(GlueEncryptionException || (GlueEncryptionException = {}));
78
- export var InternalServiceException;
79
- (function (InternalServiceException) {
80
- InternalServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- })(InternalServiceException || (InternalServiceException = {}));
82
- export var InvalidInputException;
83
- (function (InvalidInputException) {
84
- InvalidInputException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- })(InvalidInputException || (InvalidInputException = {}));
86
- export var OperationTimeoutException;
87
- (function (OperationTimeoutException) {
88
- OperationTimeoutException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- })(OperationTimeoutException || (OperationTimeoutException = {}));
90
- export var ResourceNumberLimitExceededException;
91
- (function (ResourceNumberLimitExceededException) {
92
- ResourceNumberLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- })(ResourceNumberLimitExceededException || (ResourceNumberLimitExceededException = {}));
94
62
  export var BatchDeleteConnectionRequest;
95
63
  (function (BatchDeleteConnectionRequest) {
96
64
  BatchDeleteConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -123,10 +91,6 @@ export var BatchDeleteTableResponse;
123
91
  (function (BatchDeleteTableResponse) {
124
92
  BatchDeleteTableResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
93
  })(BatchDeleteTableResponse || (BatchDeleteTableResponse = {}));
126
- export var ResourceNotReadyException;
127
- (function (ResourceNotReadyException) {
128
- ResourceNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- })(ResourceNotReadyException || (ResourceNotReadyException = {}));
130
94
  export var BatchDeleteTableVersionRequest;
131
95
  (function (BatchDeleteTableVersionRequest) {
132
96
  BatchDeleteTableVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -314,10 +278,6 @@ export var BatchGetPartitionResponse;
314
278
  (function (BatchGetPartitionResponse) {
315
279
  BatchGetPartitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
280
  })(BatchGetPartitionResponse || (BatchGetPartitionResponse = {}));
317
- export var InvalidStateException;
318
- (function (InvalidStateException) {
319
- InvalidStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
- })(InvalidStateException || (InvalidStateException = {}));
321
281
  export var BatchGetTriggersRequest;
322
282
  (function (BatchGetTriggersRequest) {
323
283
  BatchGetTriggersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -633,10 +593,6 @@ export var CreateCrawlerResponse;
633
593
  (function (CreateCrawlerResponse) {
634
594
  CreateCrawlerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
635
595
  })(CreateCrawlerResponse || (CreateCrawlerResponse = {}));
636
- export var ConcurrentModificationException;
637
- (function (ConcurrentModificationException) {
638
- ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
639
- })(ConcurrentModificationException || (ConcurrentModificationException = {}));
640
596
  export var Permission;
641
597
  (function (Permission) {
642
598
  Permission["ALL"] = "ALL";
@@ -681,14 +637,6 @@ export var CreateDevEndpointResponse;
681
637
  (function (CreateDevEndpointResponse) {
682
638
  CreateDevEndpointResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
683
639
  })(CreateDevEndpointResponse || (CreateDevEndpointResponse = {}));
684
- export var IdempotentParameterMismatchException;
685
- (function (IdempotentParameterMismatchException) {
686
- IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
687
- })(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
688
- export var ValidationException;
689
- (function (ValidationException) {
690
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
691
- })(ValidationException || (ValidationException = {}));
692
640
  export var CreateJobRequest;
693
641
  (function (CreateJobRequest) {
694
642
  CreateJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -963,10 +911,6 @@ export var DeleteConnectionResponse;
963
911
  (function (DeleteConnectionResponse) {
964
912
  DeleteConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
965
913
  })(DeleteConnectionResponse || (DeleteConnectionResponse = {}));
966
- export var CrawlerRunningException;
967
- (function (CrawlerRunningException) {
968
- CrawlerRunningException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
969
- })(CrawlerRunningException || (CrawlerRunningException = {}));
970
914
  export var DeleteCrawlerRequest;
971
915
  (function (DeleteCrawlerRequest) {
972
916
  DeleteCrawlerRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -975,10 +919,6 @@ export var DeleteCrawlerResponse;
975
919
  (function (DeleteCrawlerResponse) {
976
920
  DeleteCrawlerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
977
921
  })(DeleteCrawlerResponse || (DeleteCrawlerResponse = {}));
978
- export var SchedulerTransitioningException;
979
- (function (SchedulerTransitioningException) {
980
- SchedulerTransitioningException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
981
- })(SchedulerTransitioningException || (SchedulerTransitioningException = {}));
982
922
  export var DeleteDatabaseRequest;
983
923
  (function (DeleteDatabaseRequest) {
984
924
  DeleteDatabaseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1019,10 +959,6 @@ export var DeletePartitionResponse;
1019
959
  (function (DeletePartitionResponse) {
1020
960
  DeletePartitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1021
961
  })(DeletePartitionResponse || (DeletePartitionResponse = {}));
1022
- export var ConflictException;
1023
- (function (ConflictException) {
1024
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1025
- })(ConflictException || (ConflictException = {}));
1026
962
  export var DeletePartitionIndexRequest;
1027
963
  (function (DeletePartitionIndexRequest) {
1028
964
  DeletePartitionIndexRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1044,10 +980,6 @@ export var DeleteRegistryResponse;
1044
980
  (function (DeleteRegistryResponse) {
1045
981
  DeleteRegistryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1046
982
  })(DeleteRegistryResponse || (DeleteRegistryResponse = {}));
1047
- export var ConditionCheckFailureException;
1048
- (function (ConditionCheckFailureException) {
1049
- ConditionCheckFailureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1050
- })(ConditionCheckFailureException || (ConditionCheckFailureException = {}));
1051
983
  export var DeleteResourcePolicyRequest;
1052
984
  (function (DeleteResourcePolicyRequest) {
1053
985
  DeleteResourcePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -506,10 +506,6 @@ export var GetUnfilteredPartitionMetadataResponse;
506
506
  (function (GetUnfilteredPartitionMetadataResponse) {
507
507
  GetUnfilteredPartitionMetadataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
508
508
  })(GetUnfilteredPartitionMetadataResponse || (GetUnfilteredPartitionMetadataResponse = {}));
509
- export var PermissionTypeMismatchException;
510
- (function (PermissionTypeMismatchException) {
511
- PermissionTypeMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
512
- })(PermissionTypeMismatchException || (PermissionTypeMismatchException = {}));
513
509
  export var GetUnfilteredPartitionsMetadataRequest;
514
510
  (function (GetUnfilteredPartitionsMetadataRequest) {
515
511
  GetUnfilteredPartitionsMetadataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -773,14 +769,6 @@ export var ResetJobBookmarkResponse;
773
769
  (function (ResetJobBookmarkResponse) {
774
770
  ResetJobBookmarkResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
775
771
  })(ResetJobBookmarkResponse || (ResetJobBookmarkResponse = {}));
776
- export var ConcurrentRunsExceededException;
777
- (function (ConcurrentRunsExceededException) {
778
- ConcurrentRunsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
779
- })(ConcurrentRunsExceededException || (ConcurrentRunsExceededException = {}));
780
- export var IllegalWorkflowStateException;
781
- (function (IllegalWorkflowStateException) {
782
- IllegalWorkflowStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
783
- })(IllegalWorkflowStateException || (IllegalWorkflowStateException = {}));
784
772
  export var ResumeWorkflowRunRequest;
785
773
  (function (ResumeWorkflowRunRequest) {
786
774
  ResumeWorkflowRunRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -818,10 +806,6 @@ export var SearchTablesResponse;
818
806
  (function (SearchTablesResponse) {
819
807
  SearchTablesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
820
808
  })(SearchTablesResponse || (SearchTablesResponse = {}));
821
- export var IllegalBlueprintStateException;
822
- (function (IllegalBlueprintStateException) {
823
- IllegalBlueprintStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
824
- })(IllegalBlueprintStateException || (IllegalBlueprintStateException = {}));
825
809
  export var StartBlueprintRunRequest;
826
810
  (function (StartBlueprintRunRequest) {
827
811
  StartBlueprintRunRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -838,14 +822,6 @@ export var StartCrawlerResponse;
838
822
  (function (StartCrawlerResponse) {
839
823
  StartCrawlerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
840
824
  })(StartCrawlerResponse || (StartCrawlerResponse = {}));
841
- export var NoScheduleException;
842
- (function (NoScheduleException) {
843
- NoScheduleException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
844
- })(NoScheduleException || (NoScheduleException = {}));
845
- export var SchedulerRunningException;
846
- (function (SchedulerRunningException) {
847
- SchedulerRunningException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
848
- })(SchedulerRunningException || (SchedulerRunningException = {}));
849
825
  export var StartCrawlerScheduleRequest;
850
826
  (function (StartCrawlerScheduleRequest) {
851
827
  StartCrawlerScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -878,10 +854,6 @@ export var StartJobRunResponse;
878
854
  (function (StartJobRunResponse) {
879
855
  StartJobRunResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
880
856
  })(StartJobRunResponse || (StartJobRunResponse = {}));
881
- export var MLTransformNotReadyException;
882
- (function (MLTransformNotReadyException) {
883
- MLTransformNotReadyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
884
- })(MLTransformNotReadyException || (MLTransformNotReadyException = {}));
885
857
  export var StartMLEvaluationTaskRunRequest;
886
858
  (function (StartMLEvaluationTaskRunRequest) {
887
859
  StartMLEvaluationTaskRunRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -914,14 +886,6 @@ export var StartWorkflowRunResponse;
914
886
  (function (StartWorkflowRunResponse) {
915
887
  StartWorkflowRunResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
916
888
  })(StartWorkflowRunResponse || (StartWorkflowRunResponse = {}));
917
- export var CrawlerNotRunningException;
918
- (function (CrawlerNotRunningException) {
919
- CrawlerNotRunningException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
920
- })(CrawlerNotRunningException || (CrawlerNotRunningException = {}));
921
- export var CrawlerStoppingException;
922
- (function (CrawlerStoppingException) {
923
- CrawlerStoppingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
924
- })(CrawlerStoppingException || (CrawlerStoppingException = {}));
925
889
  export var StopCrawlerRequest;
926
890
  (function (StopCrawlerRequest) {
927
891
  StopCrawlerRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -930,10 +894,6 @@ export var StopCrawlerResponse;
930
894
  (function (StopCrawlerResponse) {
931
895
  StopCrawlerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
932
896
  })(StopCrawlerResponse || (StopCrawlerResponse = {}));
933
- export var SchedulerNotRunningException;
934
- (function (SchedulerNotRunningException) {
935
- SchedulerNotRunningException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
936
- })(SchedulerNotRunningException || (SchedulerNotRunningException = {}));
937
897
  export var StopCrawlerScheduleRequest;
938
898
  (function (StopCrawlerScheduleRequest) {
939
899
  StopCrawlerScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1006,10 +966,6 @@ export var UpdateClassifierResponse;
1006
966
  (function (UpdateClassifierResponse) {
1007
967
  UpdateClassifierResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1008
968
  })(UpdateClassifierResponse || (UpdateClassifierResponse = {}));
1009
- export var VersionMismatchException;
1010
- (function (VersionMismatchException) {
1011
- VersionMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1012
- })(VersionMismatchException || (VersionMismatchException = {}));
1013
969
  export var UpdateColumnStatisticsForPartitionRequest;
1014
970
  (function (UpdateColumnStatisticsForPartitionRequest) {
1015
971
  UpdateColumnStatisticsForPartitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -17926,7 +17926,10 @@ var serializeAws_json1_1StartTriggerRequest = function (input, context) {
17926
17926
  return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
17927
17927
  };
17928
17928
  var serializeAws_json1_1StartWorkflowRunRequest = function (input, context) {
17929
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
17929
+ return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RunProperties !== undefined &&
17930
+ input.RunProperties !== null && {
17931
+ RunProperties: serializeAws_json1_1WorkflowRunProperties(input.RunProperties, context),
17932
+ }));
17930
17933
  };
17931
17934
  var serializeAws_json1_1StopCrawlerRequest = function (input, context) {
17932
17935
  return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
@@ -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
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchCreatePartitionCommandInput, BatchCreatePartitionCommandOutput } from "./commands/BatchCreatePartitionCommand";
10
10
  import { BatchDeleteConnectionCommandInput, BatchDeleteConnectionCommandOutput } from "./commands/BatchDeleteConnectionCommand";
@@ -277,6 +277,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
277
277
  * @internal
278
278
  */
279
279
  defaultUserAgentProvider?: Provider<__UserAgent>;
280
+ /**
281
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
282
+ */
283
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
280
284
  }
281
285
  declare type GlueClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
282
286
  /**
@@ -10,12 +10,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
10
10
  */
11
11
  Message?: string;
12
12
  }
13
- export declare namespace AccessDeniedException {
14
- /**
15
- * @internal
16
- */
17
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
18
- }
19
13
  /**
20
14
  * <p>Specifies configuration properties of a notification.</p>
21
15
  */
@@ -87,12 +81,6 @@ export interface AlreadyExistsException extends __SmithyException, $MetadataBear
87
81
  */
88
82
  Message?: string;
89
83
  }
90
- export declare namespace AlreadyExistsException {
91
- /**
92
- * @internal
93
- */
94
- const filterSensitiveLog: (obj: AlreadyExistsException) => any;
95
- }
96
84
  export interface AuditContext {
97
85
  AdditionalAuditContext?: string;
98
86
  }
@@ -452,12 +440,6 @@ export interface EntityNotFoundException extends __SmithyException, $MetadataBea
452
440
  */
453
441
  Message?: string;
454
442
  }
455
- export declare namespace EntityNotFoundException {
456
- /**
457
- * @internal
458
- */
459
- const filterSensitiveLog: (obj: EntityNotFoundException) => any;
460
- }
461
443
  /**
462
444
  * <p>An encryption operation failed.</p>
463
445
  */
@@ -469,12 +451,6 @@ export interface GlueEncryptionException extends __SmithyException, $MetadataBea
469
451
  */
470
452
  Message?: string;
471
453
  }
472
- export declare namespace GlueEncryptionException {
473
- /**
474
- * @internal
475
- */
476
- const filterSensitiveLog: (obj: GlueEncryptionException) => any;
477
- }
478
454
  /**
479
455
  * <p>An internal service error occurred.</p>
480
456
  */
@@ -486,12 +462,6 @@ export interface InternalServiceException extends __SmithyException, $MetadataBe
486
462
  */
487
463
  Message?: string;
488
464
  }
489
- export declare namespace InternalServiceException {
490
- /**
491
- * @internal
492
- */
493
- const filterSensitiveLog: (obj: InternalServiceException) => any;
494
- }
495
465
  /**
496
466
  * <p>The input provided was not valid.</p>
497
467
  */
@@ -503,12 +473,6 @@ export interface InvalidInputException extends __SmithyException, $MetadataBeare
503
473
  */
504
474
  Message?: string;
505
475
  }
506
- export declare namespace InvalidInputException {
507
- /**
508
- * @internal
509
- */
510
- const filterSensitiveLog: (obj: InvalidInputException) => any;
511
- }
512
476
  /**
513
477
  * <p>The operation timed out.</p>
514
478
  */
@@ -520,12 +484,6 @@ export interface OperationTimeoutException extends __SmithyException, $MetadataB
520
484
  */
521
485
  Message?: string;
522
486
  }
523
- export declare namespace OperationTimeoutException {
524
- /**
525
- * @internal
526
- */
527
- const filterSensitiveLog: (obj: OperationTimeoutException) => any;
528
- }
529
487
  /**
530
488
  * <p>A resource numerical limit was exceeded.</p>
531
489
  */
@@ -537,12 +495,6 @@ export interface ResourceNumberLimitExceededException extends __SmithyException,
537
495
  */
538
496
  Message?: string;
539
497
  }
540
- export declare namespace ResourceNumberLimitExceededException {
541
- /**
542
- * @internal
543
- */
544
- const filterSensitiveLog: (obj: ResourceNumberLimitExceededException) => any;
545
- }
546
498
  export interface BatchDeleteConnectionRequest {
547
499
  /**
548
500
  * <p>The ID of the Data Catalog in which the connections reside. If none is provided, the Amazon Web Services
@@ -702,12 +654,6 @@ export interface ResourceNotReadyException extends __SmithyException, $MetadataB
702
654
  */
703
655
  Message?: string;
704
656
  }
705
- export declare namespace ResourceNotReadyException {
706
- /**
707
- * @internal
708
- */
709
- const filterSensitiveLog: (obj: ResourceNotReadyException) => any;
710
- }
711
657
  export interface BatchDeleteTableVersionRequest {
712
658
  /**
713
659
  * <p>The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account
@@ -1938,12 +1884,6 @@ export interface InvalidStateException extends __SmithyException, $MetadataBeare
1938
1884
  */
1939
1885
  Message?: string;
1940
1886
  }
1941
- export declare namespace InvalidStateException {
1942
- /**
1943
- * @internal
1944
- */
1945
- const filterSensitiveLog: (obj: InvalidStateException) => any;
1946
- }
1947
1887
  export interface BatchGetTriggersRequest {
1948
1888
  /**
1949
1889
  * <p>A list of trigger names, which may be the names returned from the <code>ListTriggers</code> operation.</p>
@@ -3389,12 +3329,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
3389
3329
  */
3390
3330
  Message?: string;
3391
3331
  }
3392
- export declare namespace ConcurrentModificationException {
3393
- /**
3394
- * @internal
3395
- */
3396
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
3397
- }
3398
3332
  export declare enum Permission {
3399
3333
  ALL = "ALL",
3400
3334
  ALTER = "ALTER",
@@ -3753,12 +3687,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
3753
3687
  */
3754
3688
  Message?: string;
3755
3689
  }
3756
- export declare namespace IdempotentParameterMismatchException {
3757
- /**
3758
- * @internal
3759
- */
3760
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
3761
- }
3762
3690
  /**
3763
3691
  * <p>A value could not be validated.</p>
3764
3692
  */
@@ -3770,12 +3698,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
3770
3698
  */
3771
3699
  Message?: string;
3772
3700
  }
3773
- export declare namespace ValidationException {
3774
- /**
3775
- * @internal
3776
- */
3777
- const filterSensitiveLog: (obj: ValidationException) => any;
3778
- }
3779
3701
  export interface CreateJobRequest {
3780
3702
  /**
3781
3703
  * <p>The name you assign to this job definition. It must be unique in your account.</p>
@@ -5262,12 +5184,6 @@ export interface CrawlerRunningException extends __SmithyException, $MetadataBea
5262
5184
  */
5263
5185
  Message?: string;
5264
5186
  }
5265
- export declare namespace CrawlerRunningException {
5266
- /**
5267
- * @internal
5268
- */
5269
- const filterSensitiveLog: (obj: CrawlerRunningException) => any;
5270
- }
5271
5187
  export interface DeleteCrawlerRequest {
5272
5188
  /**
5273
5189
  * <p>The name of the crawler to remove.</p>
@@ -5299,12 +5215,6 @@ export interface SchedulerTransitioningException extends __SmithyException, $Met
5299
5215
  */
5300
5216
  Message?: string;
5301
5217
  }
5302
- export declare namespace SchedulerTransitioningException {
5303
- /**
5304
- * @internal
5305
- */
5306
- const filterSensitiveLog: (obj: SchedulerTransitioningException) => any;
5307
- }
5308
5218
  export interface DeleteDatabaseRequest {
5309
5219
  /**
5310
5220
  * <p>The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services
@@ -5444,12 +5354,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
5444
5354
  */
5445
5355
  Message?: string;
5446
5356
  }
5447
- export declare namespace ConflictException {
5448
- /**
5449
- * @internal
5450
- */
5451
- const filterSensitiveLog: (obj: ConflictException) => any;
5452
- }
5453
5357
  export interface DeletePartitionIndexRequest {
5454
5358
  /**
5455
5359
  * <p>The catalog ID where the table resides.</p>
@@ -5529,12 +5433,6 @@ export interface ConditionCheckFailureException extends __SmithyException, $Meta
5529
5433
  */
5530
5434
  Message?: string;
5531
5435
  }
5532
- export declare namespace ConditionCheckFailureException {
5533
- /**
5534
- * @internal
5535
- */
5536
- const filterSensitiveLog: (obj: ConditionCheckFailureException) => any;
5537
- }
5538
5436
  export interface DeleteResourcePolicyRequest {
5539
5437
  /**
5540
5438
  * <p>The hash value returned when this policy was set.</p>