@aws-sdk/client-datasync 3.43.0 → 3.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/DataSync.js +30 -0
  3. package/dist-cjs/commands/CreateLocationFsxLustreCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeLocationFsxLustreCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoints.js +1 -28
  7. package/dist-cjs/models/models_0.js +27 -15
  8. package/dist-cjs/protocols/Aws_json1_1.js +167 -2
  9. package/dist-cjs/runtimeConfig.browser.js +7 -2
  10. package/dist-cjs/runtimeConfig.js +9 -3
  11. package/dist-es/DataSync.js +30 -0
  12. package/dist-es/commands/CreateLocationFsxLustreCommand.js +39 -0
  13. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +39 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/endpoints.js +1 -28
  16. package/dist-es/models/models_0.js +16 -8
  17. package/dist-es/protocols/Aws_json1_1.js +178 -0
  18. package/dist-es/runtimeConfig.browser.js +12 -3
  19. package/dist-es/runtimeConfig.js +13 -6
  20. package/dist-types/DataSync.d.ts +15 -0
  21. package/dist-types/DataSyncClient.d.ts +9 -3
  22. package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +35 -0
  23. package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +36 -0
  24. package/dist-types/commands/index.d.ts +2 -0
  25. package/dist-types/models/models_0.d.ts +76 -15
  26. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  27. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  28. package/dist-types/runtimeConfig.d.ts +4 -3
  29. package/dist-types/runtimeConfig.native.d.ts +1 -0
  30. package/dist-types/ts3.4/DataSync.d.ts +10 -0
  31. package/dist-types/ts3.4/DataSyncClient.d.ts +7 -3
  32. package/dist-types/ts3.4/commands/CreateLocationFsxLustreCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/DescribeLocationFsxLustreCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +44 -8
  36. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  40. package/package.json +39 -46
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(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
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -2,6 +2,7 @@ import { __extends } from "tslib";
2
2
  import { CancelTaskExecutionCommand, } from "./commands/CancelTaskExecutionCommand";
3
3
  import { CreateAgentCommand } from "./commands/CreateAgentCommand";
4
4
  import { CreateLocationEfsCommand, } from "./commands/CreateLocationEfsCommand";
5
+ import { CreateLocationFsxLustreCommand, } from "./commands/CreateLocationFsxLustreCommand";
5
6
  import { CreateLocationFsxWindowsCommand, } from "./commands/CreateLocationFsxWindowsCommand";
6
7
  import { CreateLocationHdfsCommand, } from "./commands/CreateLocationHdfsCommand";
7
8
  import { CreateLocationNfsCommand, } from "./commands/CreateLocationNfsCommand";
@@ -14,6 +15,7 @@ import { DeleteLocationCommand, } from "./commands/DeleteLocationCommand";
14
15
  import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
15
16
  import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
16
17
  import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
18
+ import { DescribeLocationFsxLustreCommand, } from "./commands/DescribeLocationFsxLustreCommand";
17
19
  import { DescribeLocationFsxWindowsCommand, } from "./commands/DescribeLocationFsxWindowsCommand";
18
20
  import { DescribeLocationHdfsCommand, } from "./commands/DescribeLocationHdfsCommand";
19
21
  import { DescribeLocationNfsCommand, } from "./commands/DescribeLocationNfsCommand";
@@ -85,6 +87,20 @@ var DataSync = (function (_super) {
85
87
  return this.send(command, optionsOrCb);
86
88
  }
87
89
  };
90
+ DataSync.prototype.createLocationFsxLustre = function (args, optionsOrCb, cb) {
91
+ var command = new CreateLocationFsxLustreCommand(args);
92
+ if (typeof optionsOrCb === "function") {
93
+ this.send(command, optionsOrCb);
94
+ }
95
+ else if (typeof cb === "function") {
96
+ if (typeof optionsOrCb !== "object")
97
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
98
+ this.send(command, optionsOrCb || {}, cb);
99
+ }
100
+ else {
101
+ return this.send(command, optionsOrCb);
102
+ }
103
+ };
88
104
  DataSync.prototype.createLocationFsxWindows = function (args, optionsOrCb, cb) {
89
105
  var command = new CreateLocationFsxWindowsCommand(args);
90
106
  if (typeof optionsOrCb === "function") {
@@ -253,6 +269,20 @@ var DataSync = (function (_super) {
253
269
  return this.send(command, optionsOrCb);
254
270
  }
255
271
  };
272
+ DataSync.prototype.describeLocationFsxLustre = function (args, optionsOrCb, cb) {
273
+ var command = new DescribeLocationFsxLustreCommand(args);
274
+ if (typeof optionsOrCb === "function") {
275
+ this.send(command, optionsOrCb);
276
+ }
277
+ else if (typeof cb === "function") {
278
+ if (typeof optionsOrCb !== "object")
279
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
280
+ this.send(command, optionsOrCb || {}, cb);
281
+ }
282
+ else {
283
+ return this.send(command, optionsOrCb);
284
+ }
285
+ };
256
286
  DataSync.prototype.describeLocationFsxWindows = function (args, optionsOrCb, cb) {
257
287
  var command = new DescribeLocationFsxWindowsCommand(args);
258
288
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateLocationFsxLustreRequest, CreateLocationFsxLustreResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateLocationFsxLustreCommand, serializeAws_json1_1CreateLocationFsxLustreCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateLocationFsxLustreCommand = (function (_super) {
7
+ __extends(CreateLocationFsxLustreCommand, _super);
8
+ function CreateLocationFsxLustreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateLocationFsxLustreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "CreateLocationFsxLustreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateLocationFsxLustreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateLocationFsxLustreResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLocationFsxLustreCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateLocationFsxLustreCommand(input, context);
33
+ };
34
+ CreateLocationFsxLustreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateLocationFsxLustreCommand(output, context);
36
+ };
37
+ return CreateLocationFsxLustreCommand;
38
+ }($Command));
39
+ export { CreateLocationFsxLustreCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeLocationFsxLustreRequest, DescribeLocationFsxLustreResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeLocationFsxLustreCommand, serializeAws_json1_1DescribeLocationFsxLustreCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeLocationFsxLustreCommand = (function (_super) {
7
+ __extends(DescribeLocationFsxLustreCommand, _super);
8
+ function DescribeLocationFsxLustreCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeLocationFsxLustreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataSyncClient";
18
+ var commandName = "DescribeLocationFsxLustreCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeLocationFsxLustreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeLocationFsxLustreResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeLocationFsxLustreCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeLocationFsxLustreCommand(input, context);
33
+ };
34
+ DescribeLocationFsxLustreCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeLocationFsxLustreCommand(output, context);
36
+ };
37
+ return DescribeLocationFsxLustreCommand;
38
+ }($Command));
39
+ export { DescribeLocationFsxLustreCommand };
@@ -1,6 +1,7 @@
1
1
  export * from "./CancelTaskExecutionCommand";
2
2
  export * from "./CreateAgentCommand";
3
3
  export * from "./CreateLocationEfsCommand";
4
+ export * from "./CreateLocationFsxLustreCommand";
4
5
  export * from "./CreateLocationFsxWindowsCommand";
5
6
  export * from "./CreateLocationHdfsCommand";
6
7
  export * from "./CreateLocationNfsCommand";
@@ -13,6 +14,7 @@ export * from "./DeleteLocationCommand";
13
14
  export * from "./DeleteTaskCommand";
14
15
  export * from "./DescribeAgentCommand";
15
16
  export * from "./DescribeLocationEfsCommand";
17
+ export * from "./DescribeLocationFsxLustreCommand";
16
18
  export * from "./DescribeLocationFsxWindowsCommand";
17
19
  export * from "./DescribeLocationHdfsCommand";
18
20
  export * from "./DescribeLocationNfsCommand";
@@ -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: "datasync.ca-central-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "datasync-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: "datasync.us-east-1.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "datasync-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: "datasync.us-east-2.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "datasync-fips.us-east-2.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "us-gov-east-1": {
41
29
  variants: [
42
- {
43
- hostname: "datasync.us-gov-east-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "datasync-fips.us-gov-east-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "us-gov-west-1": {
53
37
  variants: [
54
- {
55
- hostname: "datasync.us-gov-west-1.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "datasync-fips.us-gov-west-1.amazonaws.com",
60
40
  tags: ["fips"],
@@ -63,10 +43,6 @@ var regionHash = {
63
43
  },
64
44
  "us-west-1": {
65
45
  variants: [
66
- {
67
- hostname: "datasync.us-west-1.amazonaws.com",
68
- tags: [],
69
- },
70
46
  {
71
47
  hostname: "datasync-fips.us-west-1.amazonaws.com",
72
48
  tags: ["fips"],
@@ -75,10 +51,6 @@ var regionHash = {
75
51
  },
76
52
  "us-west-2": {
77
53
  variants: [
78
- {
79
- hostname: "datasync.us-west-2.amazonaws.com",
80
- tags: [],
81
- },
82
54
  {
83
55
  hostname: "datasync-fips.us-west-2.amazonaws.com",
84
56
  tags: ["fips"],
@@ -97,6 +69,7 @@ var partitionHash = {
97
69
  "ap-south-1",
98
70
  "ap-southeast-1",
99
71
  "ap-southeast-2",
72
+ "ap-southeast-3",
100
73
  "ca-central-1",
101
74
  "eu-central-1",
102
75
  "eu-north-1",
@@ -22,14 +22,6 @@ export var CancelTaskExecutionResponse;
22
22
  (function (CancelTaskExecutionResponse) {
23
23
  CancelTaskExecutionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
24
24
  })(CancelTaskExecutionResponse || (CancelTaskExecutionResponse = {}));
25
- export var InternalException;
26
- (function (InternalException) {
27
- InternalException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
- })(InternalException || (InternalException = {}));
29
- export var InvalidRequestException;
30
- (function (InvalidRequestException) {
31
- InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
- })(InvalidRequestException || (InvalidRequestException = {}));
33
25
  export var TagListEntry;
34
26
  (function (TagListEntry) {
35
27
  TagListEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -54,6 +46,14 @@ export var CreateLocationEfsResponse;
54
46
  (function (CreateLocationEfsResponse) {
55
47
  CreateLocationEfsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
56
48
  })(CreateLocationEfsResponse || (CreateLocationEfsResponse = {}));
49
+ export var CreateLocationFsxLustreRequest;
50
+ (function (CreateLocationFsxLustreRequest) {
51
+ CreateLocationFsxLustreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
52
+ })(CreateLocationFsxLustreRequest || (CreateLocationFsxLustreRequest = {}));
53
+ export var CreateLocationFsxLustreResponse;
54
+ (function (CreateLocationFsxLustreResponse) {
55
+ CreateLocationFsxLustreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
56
+ })(CreateLocationFsxLustreResponse || (CreateLocationFsxLustreResponse = {}));
57
57
  export var CreateLocationFsxWindowsRequest;
58
58
  (function (CreateLocationFsxWindowsRequest) {
59
59
  CreateLocationFsxWindowsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
@@ -314,6 +314,14 @@ export var DescribeLocationEfsResponse;
314
314
  (function (DescribeLocationEfsResponse) {
315
315
  DescribeLocationEfsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
316
  })(DescribeLocationEfsResponse || (DescribeLocationEfsResponse = {}));
317
+ export var DescribeLocationFsxLustreRequest;
318
+ (function (DescribeLocationFsxLustreRequest) {
319
+ DescribeLocationFsxLustreRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
+ })(DescribeLocationFsxLustreRequest || (DescribeLocationFsxLustreRequest = {}));
321
+ export var DescribeLocationFsxLustreResponse;
322
+ (function (DescribeLocationFsxLustreResponse) {
323
+ DescribeLocationFsxLustreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
+ })(DescribeLocationFsxLustreResponse || (DescribeLocationFsxLustreResponse = {}));
317
325
  export var DescribeLocationFsxWindowsRequest;
318
326
  (function (DescribeLocationFsxWindowsRequest) {
319
327
  DescribeLocationFsxWindowsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -34,6 +34,17 @@ export var serializeAws_json1_1CreateLocationEfsCommand = function (input, conte
34
34
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
35
35
  });
36
36
  }); };
37
+ export var serializeAws_json1_1CreateLocationFsxLustreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
38
+ var headers, body;
39
+ return __generator(this, function (_a) {
40
+ headers = {
41
+ "content-type": "application/x-amz-json-1.1",
42
+ "x-amz-target": "FmrsService.CreateLocationFsxLustre",
43
+ };
44
+ body = JSON.stringify(serializeAws_json1_1CreateLocationFsxLustreRequest(input, context));
45
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
46
+ });
47
+ }); };
37
48
  export var serializeAws_json1_1CreateLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
38
49
  var headers, body;
39
50
  return __generator(this, function (_a) {
@@ -166,6 +177,17 @@ export var serializeAws_json1_1DescribeLocationEfsCommand = function (input, con
166
177
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
167
178
  });
168
179
  }); };
180
+ export var serializeAws_json1_1DescribeLocationFsxLustreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
181
+ var headers, body;
182
+ return __generator(this, function (_a) {
183
+ headers = {
184
+ "content-type": "application/x-amz-json-1.1",
185
+ "x-amz-target": "FmrsService.DescribeLocationFsxLustre",
186
+ };
187
+ body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxLustreRequest(input, context));
188
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
189
+ });
190
+ }); };
169
191
  export var serializeAws_json1_1DescribeLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
170
192
  var headers, body;
171
193
  return __generator(this, function (_a) {
@@ -611,6 +633,70 @@ var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, cont
611
633
  }
612
634
  });
613
635
  }); };
636
+ export var deserializeAws_json1_1CreateLocationFsxLustreCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
637
+ var data, contents, response;
638
+ return __generator(this, function (_a) {
639
+ switch (_a.label) {
640
+ case 0:
641
+ if (output.statusCode >= 300) {
642
+ return [2, deserializeAws_json1_1CreateLocationFsxLustreCommandError(output, context)];
643
+ }
644
+ return [4, parseBody(output.body, context)];
645
+ case 1:
646
+ data = _a.sent();
647
+ contents = {};
648
+ contents = deserializeAws_json1_1CreateLocationFsxLustreResponse(data, context);
649
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
650
+ return [2, Promise.resolve(response)];
651
+ }
652
+ });
653
+ }); };
654
+ var deserializeAws_json1_1CreateLocationFsxLustreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
655
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
656
+ var _e;
657
+ return __generator(this, function (_f) {
658
+ switch (_f.label) {
659
+ case 0:
660
+ _a = [__assign({}, output)];
661
+ _e = {};
662
+ return [4, parseBody(output.body, context)];
663
+ case 1:
664
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
665
+ errorCode = "UnknownError";
666
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
667
+ _b = errorCode;
668
+ switch (_b) {
669
+ case "InternalException": return [3, 2];
670
+ case "com.amazonaws.datasync#InternalException": return [3, 2];
671
+ case "InvalidRequestException": return [3, 4];
672
+ case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
673
+ }
674
+ return [3, 6];
675
+ case 2:
676
+ _c = [{}];
677
+ return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
678
+ case 3:
679
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
680
+ return [3, 7];
681
+ case 4:
682
+ _d = [{}];
683
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
684
+ case 5:
685
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
686
+ return [3, 7];
687
+ case 6:
688
+ parsedBody = parsedOutput.body;
689
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
690
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
691
+ _f.label = 7;
692
+ case 7:
693
+ message = response.message || response.Message || errorCode;
694
+ response.message = message;
695
+ delete response.Message;
696
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
697
+ }
698
+ });
699
+ }); };
614
700
  export var deserializeAws_json1_1CreateLocationFsxWindowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
615
701
  var data, contents, response;
616
702
  return __generator(this, function (_a) {
@@ -1379,6 +1465,70 @@ var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, co
1379
1465
  }
1380
1466
  });
1381
1467
  }); };
1468
+ export var deserializeAws_json1_1DescribeLocationFsxLustreCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1469
+ var data, contents, response;
1470
+ return __generator(this, function (_a) {
1471
+ switch (_a.label) {
1472
+ case 0:
1473
+ if (output.statusCode >= 300) {
1474
+ return [2, deserializeAws_json1_1DescribeLocationFsxLustreCommandError(output, context)];
1475
+ }
1476
+ return [4, parseBody(output.body, context)];
1477
+ case 1:
1478
+ data = _a.sent();
1479
+ contents = {};
1480
+ contents = deserializeAws_json1_1DescribeLocationFsxLustreResponse(data, context);
1481
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1482
+ return [2, Promise.resolve(response)];
1483
+ }
1484
+ });
1485
+ }); };
1486
+ var deserializeAws_json1_1DescribeLocationFsxLustreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1487
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1488
+ var _e;
1489
+ return __generator(this, function (_f) {
1490
+ switch (_f.label) {
1491
+ case 0:
1492
+ _a = [__assign({}, output)];
1493
+ _e = {};
1494
+ return [4, parseBody(output.body, context)];
1495
+ case 1:
1496
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1497
+ errorCode = "UnknownError";
1498
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1499
+ _b = errorCode;
1500
+ switch (_b) {
1501
+ case "InternalException": return [3, 2];
1502
+ case "com.amazonaws.datasync#InternalException": return [3, 2];
1503
+ case "InvalidRequestException": return [3, 4];
1504
+ case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
1505
+ }
1506
+ return [3, 6];
1507
+ case 2:
1508
+ _c = [{}];
1509
+ return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
1510
+ case 3:
1511
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1512
+ return [3, 7];
1513
+ case 4:
1514
+ _d = [{}];
1515
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1516
+ case 5:
1517
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1518
+ return [3, 7];
1519
+ case 6:
1520
+ parsedBody = parsedOutput.body;
1521
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1522
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1523
+ _f.label = 7;
1524
+ case 7:
1525
+ message = response.message || response.Message || errorCode;
1526
+ response.message = message;
1527
+ delete response.Message;
1528
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1529
+ }
1530
+ });
1531
+ }); };
1382
1532
  export var deserializeAws_json1_1DescribeLocationFsxWindowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1383
1533
  var data, contents, response;
1384
1534
  return __generator(this, function (_a) {
@@ -2897,6 +3047,14 @@ var serializeAws_json1_1CreateLocationEfsRequest = function (input, context) {
2897
3047
  input.EfsFilesystemArn !== null && { EfsFilesystemArn: input.EfsFilesystemArn })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
2898
3048
  input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
2899
3049
  };
3050
+ var serializeAws_json1_1CreateLocationFsxLustreRequest = function (input, context) {
3051
+ return __assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn !== undefined &&
3052
+ input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.SecurityGroupArns !== undefined &&
3053
+ input.SecurityGroupArns !== null && {
3054
+ SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
3055
+ })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
3056
+ input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
3057
+ };
2900
3058
  var serializeAws_json1_1CreateLocationFsxWindowsRequest = function (input, context) {
2901
3059
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.FsxFilesystemArn !== undefined &&
2902
3060
  input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.SecurityGroupArns !== undefined &&
@@ -2978,6 +3136,9 @@ var serializeAws_json1_1DescribeAgentRequest = function (input, context) {
2978
3136
  var serializeAws_json1_1DescribeLocationEfsRequest = function (input, context) {
2979
3137
  return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
2980
3138
  };
3139
+ var serializeAws_json1_1DescribeLocationFsxLustreRequest = function (input, context) {
3140
+ return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
3141
+ };
2981
3142
  var serializeAws_json1_1DescribeLocationFsxWindowsRequest = function (input, context) {
2982
3143
  return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
2983
3144
  };
@@ -3278,6 +3439,11 @@ var deserializeAws_json1_1CreateLocationEfsResponse = function (output, context)
3278
3439
  LocationArn: __expectString(output.LocationArn),
3279
3440
  };
3280
3441
  };
3442
+ var deserializeAws_json1_1CreateLocationFsxLustreResponse = function (output, context) {
3443
+ return {
3444
+ LocationArn: __expectString(output.LocationArn),
3445
+ };
3446
+ };
3281
3447
  var deserializeAws_json1_1CreateLocationFsxWindowsResponse = function (output, context) {
3282
3448
  return {
3283
3449
  LocationArn: __expectString(output.LocationArn),
@@ -3351,6 +3517,18 @@ var deserializeAws_json1_1DescribeLocationEfsResponse = function (output, contex
3351
3517
  LocationUri: __expectString(output.LocationUri),
3352
3518
  };
3353
3519
  };
3520
+ var deserializeAws_json1_1DescribeLocationFsxLustreResponse = function (output, context) {
3521
+ return {
3522
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3523
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3524
+ : undefined,
3525
+ LocationArn: __expectString(output.LocationArn),
3526
+ LocationUri: __expectString(output.LocationUri),
3527
+ SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
3528
+ ? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
3529
+ : undefined,
3530
+ };
3531
+ };
3354
3532
  var deserializeAws_json1_1DescribeLocationFsxWindowsResponse = function (output, context) {
3355
3533
  return {
3356
3534
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
@@ -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,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new 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 });
21
28
  };