@aws-sdk/client-outposts 3.180.0 → 3.183.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +32 -26
  3. package/dist-es/Outposts.js +106 -113
  4. package/dist-es/OutpostsClient.js +22 -28
  5. package/dist-es/commands/CancelOrderCommand.js +21 -28
  6. package/dist-es/commands/CreateOrderCommand.js +21 -28
  7. package/dist-es/commands/CreateOutpostCommand.js +21 -28
  8. package/dist-es/commands/CreateSiteCommand.js +21 -28
  9. package/dist-es/commands/DeleteOutpostCommand.js +21 -28
  10. package/dist-es/commands/DeleteSiteCommand.js +21 -28
  11. package/dist-es/commands/GetCatalogItemCommand.js +21 -28
  12. package/dist-es/commands/GetConnectionCommand.js +21 -28
  13. package/dist-es/commands/GetOrderCommand.js +21 -28
  14. package/dist-es/commands/GetOutpostCommand.js +21 -28
  15. package/dist-es/commands/GetOutpostInstanceTypesCommand.js +21 -28
  16. package/dist-es/commands/GetSiteAddressCommand.js +21 -28
  17. package/dist-es/commands/GetSiteCommand.js +21 -28
  18. package/dist-es/commands/ListAssetsCommand.js +21 -28
  19. package/dist-es/commands/ListCatalogItemsCommand.js +21 -28
  20. package/dist-es/commands/ListOrdersCommand.js +21 -28
  21. package/dist-es/commands/ListOutpostsCommand.js +21 -28
  22. package/dist-es/commands/ListSitesCommand.js +21 -28
  23. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  24. package/dist-es/commands/StartConnectionCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateOutpostCommand.js +21 -28
  28. package/dist-es/commands/UpdateSiteAddressCommand.js +21 -28
  29. package/dist-es/commands/UpdateSiteCommand.js +21 -28
  30. package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +21 -28
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/OutpostsServiceException.js +5 -10
  33. package/dist-es/models/models_0.js +281 -144
  34. package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +25 -68
  35. package/dist-es/pagination/ListAssetsPaginator.js +25 -68
  36. package/dist-es/pagination/ListCatalogItemsPaginator.js +25 -68
  37. package/dist-es/pagination/ListOrdersPaginator.js +25 -68
  38. package/dist-es/pagination/ListOutpostsPaginator.js +25 -68
  39. package/dist-es/pagination/ListSitesPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_restJson1.js +1870 -2625
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OutpostsClient";
18
- var commandName = "UntagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OutpostsClient";
15
+ const commandName = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateOutpostInputFilterSensitiveLog, UpdateOutpostOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateOutpostCommand, serializeAws_restJson1UpdateOutpostCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateOutpostCommand = (function (_super) {
7
- __extends(UpdateOutpostCommand, _super);
8
- function UpdateOutpostCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateOutpostCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateOutpostCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OutpostsClient";
18
- var commandName = "UpdateOutpostCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OutpostsClient";
15
+ const commandName = "UpdateOutpostCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateOutpostInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateOutpostOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateOutpostCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateOutpostCommand(input, context);
33
- };
34
- UpdateOutpostCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateOutpostCommand(output, context);
36
- };
37
- return UpdateOutpostCommand;
38
- }($Command));
39
- export { UpdateOutpostCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSiteAddressInputFilterSensitiveLog, UpdateSiteAddressOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateSiteAddressCommand, serializeAws_restJson1UpdateSiteAddressCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateSiteAddressCommand = (function (_super) {
7
- __extends(UpdateSiteAddressCommand, _super);
8
- function UpdateSiteAddressCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSiteAddressCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSiteAddressCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OutpostsClient";
18
- var commandName = "UpdateSiteAddressCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OutpostsClient";
15
+ const commandName = "UpdateSiteAddressCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSiteAddressInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSiteAddressOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSiteAddressCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateSiteAddressCommand(input, context);
33
- };
34
- UpdateSiteAddressCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateSiteAddressCommand(output, context);
36
- };
37
- return UpdateSiteAddressCommand;
38
- }($Command));
39
- export { UpdateSiteAddressCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSiteInputFilterSensitiveLog, UpdateSiteOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateSiteCommand, serializeAws_restJson1UpdateSiteCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateSiteCommand = (function (_super) {
7
- __extends(UpdateSiteCommand, _super);
8
- function UpdateSiteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSiteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSiteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OutpostsClient";
18
- var commandName = "UpdateSiteCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OutpostsClient";
15
+ const commandName = "UpdateSiteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSiteInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSiteOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSiteCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateSiteCommand(input, context);
33
- };
34
- UpdateSiteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateSiteCommand(output, context);
36
- };
37
- return UpdateSiteCommand;
38
- }($Command));
39
- export { UpdateSiteCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog, UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand, serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateSiteRackPhysicalPropertiesCommand = (function (_super) {
7
- __extends(UpdateSiteRackPhysicalPropertiesCommand, _super);
8
- function UpdateSiteRackPhysicalPropertiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateSiteRackPhysicalPropertiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateSiteRackPhysicalPropertiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "OutpostsClient";
18
- var commandName = "UpdateSiteRackPhysicalPropertiesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "OutpostsClient";
15
+ const commandName = "UpdateSiteRackPhysicalPropertiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateSiteRackPhysicalPropertiesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand(input, context);
33
- };
34
- UpdateSiteRackPhysicalPropertiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand(output, context);
36
- };
37
- return UpdateSiteRackPhysicalPropertiesCommand;
38
- }($Command));
39
- export { UpdateSiteRackPhysicalPropertiesCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [
6
5
  {
@@ -60,7 +59,7 @@ var regionHash = {
60
59
  ],
61
60
  },
62
61
  };
63
- var partitionHash = {
62
+ const partitionHash = {
64
63
  aws: {
65
64
  regions: [
66
65
  "af-south-1",
@@ -185,8 +184,9 @@ var partitionHash = {
185
184
  ],
186
185
  },
187
186
  };
188
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
189
- return __generator(this, function (_a) {
190
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "outposts", regionHash: regionHash, partitionHash: partitionHash }))];
191
- });
192
- }); };
187
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
188
+ ...options,
189
+ signingService: "outposts",
190
+ regionHash,
191
+ partitionHash,
192
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var OutpostsServiceException = (function (_super) {
4
- __extends(OutpostsServiceException, _super);
5
- function OutpostsServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, OutpostsServiceException.prototype);
8
- return _this;
2
+ export class OutpostsServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, OutpostsServiceException.prototype);
9
6
  }
10
- return OutpostsServiceException;
11
- }(__ServiceException));
12
- export { OutpostsServiceException };
7
+ }