@aws-sdk/client-outposts 3.44.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 (36) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Outposts.js +15 -0
  3. package/dist-cjs/commands/UpdateOutpostCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -20
  6. package/dist-cjs/models/models_0.js +14 -38
  7. package/dist-cjs/protocols/Aws_restJson1.js +115 -1
  8. package/dist-cjs/runtimeConfig.browser.js +7 -2
  9. package/dist-cjs/runtimeConfig.js +9 -3
  10. package/dist-es/Outposts.js +15 -0
  11. package/dist-es/commands/UpdateOutpostCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoints.js +1 -20
  14. package/dist-es/models/models_0.js +8 -24
  15. package/dist-es/protocols/Aws_restJson1.js +129 -0
  16. package/dist-es/runtimeConfig.browser.js +12 -3
  17. package/dist-es/runtimeConfig.js +13 -6
  18. package/dist-types/Outposts.d.ts +9 -0
  19. package/dist-types/OutpostsClient.d.ts +8 -3
  20. package/dist-types/commands/UpdateOutpostCommand.d.ts +37 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/models_0.d.ts +79 -51
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  25. package/dist-types/runtimeConfig.d.ts +4 -3
  26. package/dist-types/runtimeConfig.native.d.ts +1 -0
  27. package/dist-types/ts3.4/Outposts.d.ts +5 -0
  28. package/dist-types/ts3.4/OutpostsClient.d.ts +6 -3
  29. package/dist-types/ts3.4/commands/UpdateOutpostCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +22 -24
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  36. package/package.json +39 -46
@@ -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 Address;
7
3
  (function (Address) {
8
4
  Address.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -25,22 +21,6 @@ export var ResourceType;
25
21
  ResourceType["ORDER"] = "ORDER";
26
22
  ResourceType["OUTPOST"] = "OUTPOST";
27
23
  })(ResourceType || (ResourceType = {}));
28
- export var ConflictException;
29
- (function (ConflictException) {
30
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
31
- })(ConflictException || (ConflictException = {}));
32
- export var InternalServerException;
33
- (function (InternalServerException) {
34
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
35
- })(InternalServerException || (InternalServerException = {}));
36
- export var NotFoundException;
37
- (function (NotFoundException) {
38
- NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
39
- })(NotFoundException || (NotFoundException = {}));
40
- export var ValidationException;
41
- (function (ValidationException) {
42
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
- })(ValidationException || (ValidationException = {}));
44
24
  export var EC2Capacity;
45
25
  (function (EC2Capacity) {
46
26
  EC2Capacity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -118,10 +98,6 @@ export var CreateOrderOutput;
118
98
  (function (CreateOrderOutput) {
119
99
  CreateOrderOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
100
  })(CreateOrderOutput || (CreateOrderOutput = {}));
121
- export var ServiceQuotaExceededException;
122
- (function (ServiceQuotaExceededException) {
123
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
125
101
  export var SupportedHardwareType;
126
102
  (function (SupportedHardwareType) {
127
103
  SupportedHardwareType["RACK"] = "RACK";
@@ -360,6 +336,14 @@ export var UntagResourceResponse;
360
336
  (function (UntagResourceResponse) {
361
337
  UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
362
338
  })(UntagResourceResponse || (UntagResourceResponse = {}));
339
+ export var UpdateOutpostInput;
340
+ (function (UpdateOutpostInput) {
341
+ UpdateOutpostInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
342
+ })(UpdateOutpostInput || (UpdateOutpostInput = {}));
343
+ export var UpdateOutpostOutput;
344
+ (function (UpdateOutpostOutput) {
345
+ UpdateOutpostOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
346
+ })(UpdateOutpostOutput || (UpdateOutpostOutput = {}));
363
347
  export var UpdateSiteInput;
364
348
  (function (UpdateSiteInput) {
365
349
  UpdateSiteInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -574,6 +574,41 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
574
574
  }
575
575
  });
576
576
  }); };
577
+ export var serializeAws_restJson1UpdateOutpostCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
578
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
579
+ return __generator(this, function (_c) {
580
+ switch (_c.label) {
581
+ case 0: return [4, context.endpoint()];
582
+ case 1:
583
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
584
+ headers = {
585
+ "content-type": "application/json",
586
+ };
587
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}";
588
+ if (input.OutpostId !== undefined) {
589
+ labelValue = input.OutpostId;
590
+ if (labelValue.length <= 0) {
591
+ throw new Error("Empty value provided for input HTTP label: OutpostId.");
592
+ }
593
+ resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
594
+ }
595
+ else {
596
+ throw new Error("No value provided for input HTTP label: OutpostId.");
597
+ }
598
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SupportedHardwareType !== undefined &&
599
+ input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType })));
600
+ return [2, new __HttpRequest({
601
+ protocol: protocol,
602
+ hostname: hostname,
603
+ port: port,
604
+ method: "PATCH",
605
+ headers: headers,
606
+ path: resolvedPath,
607
+ body: body,
608
+ })];
609
+ }
610
+ });
611
+ }); };
577
612
  export var serializeAws_restJson1UpdateSiteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
578
613
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
579
614
  return __generator(this, function (_c) {
@@ -2321,6 +2356,100 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2321
2356
  }
2322
2357
  });
2323
2358
  }); };
2359
+ export var deserializeAws_restJson1UpdateOutpostCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2360
+ var contents, data, _a, _b;
2361
+ return __generator(this, function (_c) {
2362
+ switch (_c.label) {
2363
+ case 0:
2364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2365
+ return [2, deserializeAws_restJson1UpdateOutpostCommandError(output, context)];
2366
+ }
2367
+ contents = {
2368
+ $metadata: deserializeMetadata(output),
2369
+ Outpost: undefined,
2370
+ };
2371
+ _a = __expectNonNull;
2372
+ _b = __expectObject;
2373
+ return [4, parseBody(output.body, context)];
2374
+ case 1:
2375
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2376
+ if (data.Outpost !== undefined && data.Outpost !== null) {
2377
+ contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
2378
+ }
2379
+ return [2, Promise.resolve(contents)];
2380
+ }
2381
+ });
2382
+ }); };
2383
+ var deserializeAws_restJson1UpdateOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2384
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2385
+ var _h;
2386
+ return __generator(this, function (_j) {
2387
+ switch (_j.label) {
2388
+ case 0:
2389
+ _a = [__assign({}, output)];
2390
+ _h = {};
2391
+ return [4, parseBody(output.body, context)];
2392
+ case 1:
2393
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2394
+ errorCode = "UnknownError";
2395
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2396
+ _b = errorCode;
2397
+ switch (_b) {
2398
+ case "AccessDeniedException": return [3, 2];
2399
+ case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
2400
+ case "ConflictException": return [3, 4];
2401
+ case "com.amazonaws.outposts#ConflictException": return [3, 4];
2402
+ case "InternalServerException": return [3, 6];
2403
+ case "com.amazonaws.outposts#InternalServerException": return [3, 6];
2404
+ case "NotFoundException": return [3, 8];
2405
+ case "com.amazonaws.outposts#NotFoundException": return [3, 8];
2406
+ case "ValidationException": return [3, 10];
2407
+ case "com.amazonaws.outposts#ValidationException": return [3, 10];
2408
+ }
2409
+ return [3, 12];
2410
+ case 2:
2411
+ _c = [{}];
2412
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2413
+ case 3:
2414
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2415
+ return [3, 13];
2416
+ case 4:
2417
+ _d = [{}];
2418
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2419
+ case 5:
2420
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2421
+ return [3, 13];
2422
+ case 6:
2423
+ _e = [{}];
2424
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2425
+ case 7:
2426
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2427
+ return [3, 13];
2428
+ case 8:
2429
+ _f = [{}];
2430
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2431
+ case 9:
2432
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2433
+ return [3, 13];
2434
+ case 10:
2435
+ _g = [{}];
2436
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2437
+ case 11:
2438
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2439
+ return [3, 13];
2440
+ case 12:
2441
+ parsedBody = parsedOutput.body;
2442
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2443
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2444
+ _j.label = 13;
2445
+ case 13:
2446
+ message = response.message || response.Message || errorCode;
2447
+ response.message = message;
2448
+ delete response.Message;
2449
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2450
+ }
2451
+ });
2452
+ }); };
2324
2453
  export var deserializeAws_restJson1UpdateSiteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2325
2454
  var contents, data, _a, _b;
2326
2455
  return __generator(this, function (_c) {
@@ -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
  };
@@ -18,6 +18,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
18
18
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
19
19
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
20
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
+ import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
21
22
  import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
22
23
  import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
23
24
  import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
@@ -163,6 +164,14 @@ export declare class Outposts extends OutpostsClient {
163
164
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
164
165
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
165
166
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
167
+ /**
168
+ * <p>
169
+ * Updates an Outpost.
170
+ * </p>
171
+ */
172
+ updateOutpost(args: UpdateOutpostCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOutpostCommandOutput>;
173
+ updateOutpost(args: UpdateOutpostCommandInput, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
174
+ updateOutpost(args: UpdateOutpostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
166
175
  /**
167
176
  * <p>
168
177
  * Updates the site.
@@ -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 { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
10
10
  import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
@@ -25,11 +25,12 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
25
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
26
26
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
27
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
28
+ import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
28
29
  import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
29
30
  import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
30
31
  import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
31
- export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
32
- export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
32
+ export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
33
+ export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
33
34
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
34
35
  /**
35
36
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -130,6 +131,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
130
131
  * @internal
131
132
  */
132
133
  defaultUserAgentProvider?: Provider<__UserAgent>;
134
+ /**
135
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
136
+ */
137
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
133
138
  }
134
139
  declare type OutpostsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
135
140
  /**
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UpdateOutpostInput, UpdateOutpostOutput } from "../models/models_0";
4
+ import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
5
+ export interface UpdateOutpostCommandInput extends UpdateOutpostInput {
6
+ }
7
+ export interface UpdateOutpostCommandOutput extends UpdateOutpostOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>
11
+ * Updates an Outpost.
12
+ * </p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OutpostsClient, UpdateOutpostCommand } from "@aws-sdk/client-outposts"; // ES Modules import
17
+ * // const { OutpostsClient, UpdateOutpostCommand } = require("@aws-sdk/client-outposts"); // CommonJS import
18
+ * const client = new OutpostsClient(config);
19
+ * const command = new UpdateOutpostCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link UpdateOutpostCommandInput} for command's `input` shape.
24
+ * @see {@link UpdateOutpostCommandOutput} for command's `response` shape.
25
+ * @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class UpdateOutpostCommand extends $Command<UpdateOutpostCommandInput, UpdateOutpostCommandOutput, OutpostsClientResolvedConfig> {
29
+ readonly input: UpdateOutpostCommandInput;
30
+ constructor(input: UpdateOutpostCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateOutpostCommandInput, UpdateOutpostCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -17,6 +17,7 @@ export * from "./ListSitesCommand";
17
17
  export * from "./ListTagsForResourceCommand";
18
18
  export * from "./TagResourceCommand";
19
19
  export * from "./UntagResourceCommand";
20
+ export * from "./UpdateOutpostCommand";
20
21
  export * from "./UpdateSiteAddressCommand";
21
22
  export * from "./UpdateSiteCommand";
22
23
  export * from "./UpdateSiteRackPhysicalPropertiesCommand";