@aws-sdk/client-outposts 3.183.0 → 3.186.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 (65) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/models/models_0.js +14 -2
  3. package/dist-cjs/protocols/Aws_restJson1.js +7 -2
  4. package/dist-es/Outposts.js +113 -106
  5. package/dist-es/OutpostsClient.js +28 -22
  6. package/dist-es/commands/CancelOrderCommand.js +28 -21
  7. package/dist-es/commands/CreateOrderCommand.js +28 -21
  8. package/dist-es/commands/CreateOutpostCommand.js +28 -21
  9. package/dist-es/commands/CreateSiteCommand.js +28 -21
  10. package/dist-es/commands/DeleteOutpostCommand.js +28 -21
  11. package/dist-es/commands/DeleteSiteCommand.js +28 -21
  12. package/dist-es/commands/GetCatalogItemCommand.js +28 -21
  13. package/dist-es/commands/GetConnectionCommand.js +28 -21
  14. package/dist-es/commands/GetOrderCommand.js +28 -21
  15. package/dist-es/commands/GetOutpostCommand.js +28 -21
  16. package/dist-es/commands/GetOutpostInstanceTypesCommand.js +28 -21
  17. package/dist-es/commands/GetSiteAddressCommand.js +28 -21
  18. package/dist-es/commands/GetSiteCommand.js +28 -21
  19. package/dist-es/commands/ListAssetsCommand.js +28 -21
  20. package/dist-es/commands/ListCatalogItemsCommand.js +28 -21
  21. package/dist-es/commands/ListOrdersCommand.js +28 -21
  22. package/dist-es/commands/ListOutpostsCommand.js +28 -21
  23. package/dist-es/commands/ListSitesCommand.js +28 -21
  24. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  25. package/dist-es/commands/StartConnectionCommand.js +28 -21
  26. package/dist-es/commands/TagResourceCommand.js +28 -21
  27. package/dist-es/commands/UntagResourceCommand.js +28 -21
  28. package/dist-es/commands/UpdateOutpostCommand.js +28 -21
  29. package/dist-es/commands/UpdateSiteAddressCommand.js +28 -21
  30. package/dist-es/commands/UpdateSiteCommand.js +28 -21
  31. package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +28 -21
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/OutpostsServiceException.js +10 -5
  34. package/dist-es/models/models_0.js +156 -281
  35. package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +68 -25
  36. package/dist-es/pagination/ListAssetsPaginator.js +68 -25
  37. package/dist-es/pagination/ListCatalogItemsPaginator.js +68 -25
  38. package/dist-es/pagination/ListOrdersPaginator.js +68 -25
  39. package/dist-es/pagination/ListOutpostsPaginator.js +68 -25
  40. package/dist-es/pagination/ListSitesPaginator.js +68 -25
  41. package/dist-es/protocols/Aws_restJson1.js +2643 -1870
  42. package/dist-es/runtimeConfig.browser.js +12 -26
  43. package/dist-es/runtimeConfig.js +12 -30
  44. package/dist-es/runtimeConfig.native.js +5 -8
  45. package/dist-es/runtimeConfig.shared.js +11 -8
  46. package/dist-types/Outposts.d.ts +32 -52
  47. package/dist-types/commands/CancelOrderCommand.d.ts +1 -3
  48. package/dist-types/commands/CreateOutpostCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteOutpostCommand.d.ts +1 -1
  50. package/dist-types/commands/DeleteSiteCommand.d.ts +1 -1
  51. package/dist-types/commands/GetCatalogItemCommand.d.ts +1 -1
  52. package/dist-types/commands/GetConnectionCommand.d.ts +1 -1
  53. package/dist-types/commands/GetOrderCommand.d.ts +1 -1
  54. package/dist-types/commands/GetSiteAddressCommand.d.ts +1 -1
  55. package/dist-types/commands/GetSiteCommand.d.ts +1 -3
  56. package/dist-types/commands/ListAssetsCommand.d.ts +4 -5
  57. package/dist-types/commands/ListCatalogItemsCommand.d.ts +4 -5
  58. package/dist-types/commands/ListOrdersCommand.d.ts +1 -2
  59. package/dist-types/commands/ListOutpostsCommand.d.ts +4 -6
  60. package/dist-types/commands/ListSitesCommand.d.ts +4 -6
  61. package/dist-types/commands/UpdateSiteAddressCommand.d.ts +5 -12
  62. package/dist-types/commands/UpdateSiteCommand.d.ts +1 -3
  63. package/dist-types/models/models_0.d.ts +67 -164
  64. package/dist-types/ts3.4/models/models_0.d.ts +12 -0
  65. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-outposts
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+ ### Features
23
+
24
+ * **client-outposts:** This release adds the Asset state information to the ListAssets response. The ListAssets request supports filtering on Asset state. ([435b5de](https://github.com/aws/aws-sdk-js-v3/commit/435b5de0628cf1d0cd2a743dc3f869a31dc68584))
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/client-outposts
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SiteFilterSensitiveLog = exports.CreateSiteInputFilterSensitiveLog = exports.RackPhysicalPropertiesFilterSensitiveLog = exports.CreateOutpostOutputFilterSensitiveLog = exports.OutpostFilterSensitiveLog = exports.CreateOutpostInputFilterSensitiveLog = exports.CreateOrderOutputFilterSensitiveLog = exports.OrderFilterSensitiveLog = exports.LineItemFilterSensitiveLog = exports.ShipmentInformationFilterSensitiveLog = exports.LineItemAssetInformationFilterSensitiveLog = exports.CreateOrderInputFilterSensitiveLog = exports.LineItemRequestFilterSensitiveLog = exports.ConnectionDetailsFilterSensitiveLog = exports.CatalogItemFilterSensitiveLog = exports.EC2CapacityFilterSensitiveLog = exports.CancelOrderOutputFilterSensitiveLog = exports.CancelOrderInputFilterSensitiveLog = exports.AssetInfoFilterSensitiveLog = exports.ComputeAttributesFilterSensitiveLog = exports.AssetLocationFilterSensitiveLog = exports.AddressFilterSensitiveLog = exports.OrderType = exports.UplinkGbps = exports.UplinkCount = exports.PowerPhase = exports.PowerFeedDrop = exports.PowerDrawKva = exports.PowerConnector = exports.OpticalStandard = exports.MaximumSupportedWeightLbs = exports.FiberOpticCableType = exports.SupportedHardwareType = exports.ServiceQuotaExceededException = exports.OrderStatus = exports.LineItemStatus = exports.ShipmentCarrier = exports.PaymentTerm = exports.PaymentOption = exports.CatalogItemClass = exports.SupportedStorageEnum = exports.CatalogItemStatus = exports.ValidationException = exports.NotFoundException = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.AssetType = exports.AddressType = exports.AccessDeniedException = void 0;
4
- exports.UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog = exports.UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog = exports.UpdateSiteAddressOutputFilterSensitiveLog = exports.UpdateSiteAddressInputFilterSensitiveLog = exports.UpdateSiteOutputFilterSensitiveLog = exports.UpdateSiteInputFilterSensitiveLog = exports.UpdateOutpostOutputFilterSensitiveLog = exports.UpdateOutpostInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartConnectionResponseFilterSensitiveLog = exports.StartConnectionRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSitesOutputFilterSensitiveLog = exports.ListSitesInputFilterSensitiveLog = exports.ListOutpostsOutputFilterSensitiveLog = exports.ListOutpostsInputFilterSensitiveLog = exports.ListOrdersOutputFilterSensitiveLog = exports.OrderSummaryFilterSensitiveLog = exports.ListOrdersInputFilterSensitiveLog = exports.ListCatalogItemsOutputFilterSensitiveLog = exports.ListCatalogItemsInputFilterSensitiveLog = exports.ListAssetsOutputFilterSensitiveLog = exports.ListAssetsInputFilterSensitiveLog = exports.GetSiteAddressOutputFilterSensitiveLog = exports.GetSiteAddressInputFilterSensitiveLog = exports.GetSiteOutputFilterSensitiveLog = exports.GetSiteInputFilterSensitiveLog = exports.GetOutpostInstanceTypesOutputFilterSensitiveLog = exports.InstanceTypeItemFilterSensitiveLog = exports.GetOutpostInstanceTypesInputFilterSensitiveLog = exports.GetOutpostOutputFilterSensitiveLog = exports.GetOutpostInputFilterSensitiveLog = exports.GetOrderOutputFilterSensitiveLog = exports.GetOrderInputFilterSensitiveLog = exports.GetConnectionResponseFilterSensitiveLog = exports.GetConnectionRequestFilterSensitiveLog = exports.GetCatalogItemOutputFilterSensitiveLog = exports.GetCatalogItemInputFilterSensitiveLog = exports.DeleteSiteOutputFilterSensitiveLog = exports.DeleteSiteInputFilterSensitiveLog = exports.DeleteOutpostOutputFilterSensitiveLog = exports.DeleteOutpostInputFilterSensitiveLog = exports.CreateSiteOutputFilterSensitiveLog = void 0;
3
+ exports.RackPhysicalPropertiesFilterSensitiveLog = exports.CreateOutpostOutputFilterSensitiveLog = exports.OutpostFilterSensitiveLog = exports.CreateOutpostInputFilterSensitiveLog = exports.CreateOrderOutputFilterSensitiveLog = exports.OrderFilterSensitiveLog = exports.LineItemFilterSensitiveLog = exports.ShipmentInformationFilterSensitiveLog = exports.LineItemAssetInformationFilterSensitiveLog = exports.CreateOrderInputFilterSensitiveLog = exports.LineItemRequestFilterSensitiveLog = exports.ConnectionDetailsFilterSensitiveLog = exports.CatalogItemFilterSensitiveLog = exports.EC2CapacityFilterSensitiveLog = exports.CancelOrderOutputFilterSensitiveLog = exports.CancelOrderInputFilterSensitiveLog = exports.AssetInfoFilterSensitiveLog = exports.ComputeAttributesFilterSensitiveLog = exports.AssetLocationFilterSensitiveLog = exports.AddressFilterSensitiveLog = exports.OrderType = exports.UplinkGbps = exports.UplinkCount = exports.PowerPhase = exports.PowerFeedDrop = exports.PowerDrawKva = exports.PowerConnector = exports.OpticalStandard = exports.MaximumSupportedWeightLbs = exports.FiberOpticCableType = exports.SupportedHardwareType = exports.ServiceQuotaExceededException = exports.OrderStatus = exports.LineItemStatus = exports.ShipmentCarrier = exports.PaymentTerm = exports.PaymentOption = exports.CatalogItemClass = exports.SupportedStorageEnum = exports.CatalogItemStatus = exports.ValidationException = exports.NotFoundException = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.AssetState = exports.ComputeAssetState = exports.AssetType = exports.AddressType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog = exports.UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog = exports.UpdateSiteAddressOutputFilterSensitiveLog = exports.UpdateSiteAddressInputFilterSensitiveLog = exports.UpdateSiteOutputFilterSensitiveLog = exports.UpdateSiteInputFilterSensitiveLog = exports.UpdateOutpostOutputFilterSensitiveLog = exports.UpdateOutpostInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartConnectionResponseFilterSensitiveLog = exports.StartConnectionRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSitesOutputFilterSensitiveLog = exports.ListSitesInputFilterSensitiveLog = exports.ListOutpostsOutputFilterSensitiveLog = exports.ListOutpostsInputFilterSensitiveLog = exports.ListOrdersOutputFilterSensitiveLog = exports.OrderSummaryFilterSensitiveLog = exports.ListOrdersInputFilterSensitiveLog = exports.ListCatalogItemsOutputFilterSensitiveLog = exports.ListCatalogItemsInputFilterSensitiveLog = exports.ListAssetsOutputFilterSensitiveLog = exports.ListAssetsInputFilterSensitiveLog = exports.GetSiteAddressOutputFilterSensitiveLog = exports.GetSiteAddressInputFilterSensitiveLog = exports.GetSiteOutputFilterSensitiveLog = exports.GetSiteInputFilterSensitiveLog = exports.GetOutpostInstanceTypesOutputFilterSensitiveLog = exports.InstanceTypeItemFilterSensitiveLog = exports.GetOutpostInstanceTypesInputFilterSensitiveLog = exports.GetOutpostOutputFilterSensitiveLog = exports.GetOutpostInputFilterSensitiveLog = exports.GetOrderOutputFilterSensitiveLog = exports.GetOrderInputFilterSensitiveLog = exports.GetConnectionResponseFilterSensitiveLog = exports.GetConnectionRequestFilterSensitiveLog = exports.GetCatalogItemOutputFilterSensitiveLog = exports.GetCatalogItemInputFilterSensitiveLog = exports.DeleteSiteOutputFilterSensitiveLog = exports.DeleteSiteInputFilterSensitiveLog = exports.DeleteOutpostOutputFilterSensitiveLog = exports.DeleteOutpostInputFilterSensitiveLog = exports.CreateSiteOutputFilterSensitiveLog = exports.SiteFilterSensitiveLog = exports.CreateSiteInputFilterSensitiveLog = void 0;
5
5
  const OutpostsServiceException_1 = require("./OutpostsServiceException");
6
6
  class AccessDeniedException extends OutpostsServiceException_1.OutpostsServiceException {
7
7
  constructor(opts) {
@@ -26,6 +26,17 @@ var AssetType;
26
26
  (function (AssetType) {
27
27
  AssetType["COMPUTE"] = "COMPUTE";
28
28
  })(AssetType = exports.AssetType || (exports.AssetType = {}));
29
+ var ComputeAssetState;
30
+ (function (ComputeAssetState) {
31
+ ComputeAssetState["ACTIVE"] = "ACTIVE";
32
+ ComputeAssetState["ISOLATED"] = "ISOLATED";
33
+ ComputeAssetState["RETIRING"] = "RETIRING";
34
+ })(ComputeAssetState = exports.ComputeAssetState || (exports.ComputeAssetState = {}));
35
+ var AssetState;
36
+ (function (AssetState) {
37
+ AssetState["ACTIVE"] = "ACTIVE";
38
+ AssetState["RETIRING"] = "RETIRING";
39
+ })(AssetState = exports.AssetState || (exports.AssetState = {}));
29
40
  var ResourceType;
30
41
  (function (ResourceType) {
31
42
  ResourceType["ORDER"] = "ORDER";
@@ -112,6 +123,7 @@ var PaymentOption;
112
123
  })(PaymentOption = exports.PaymentOption || (exports.PaymentOption = {}));
113
124
  var PaymentTerm;
114
125
  (function (PaymentTerm) {
126
+ PaymentTerm["ONE_YEAR"] = "ONE_YEAR";
115
127
  PaymentTerm["THREE_YEARS"] = "THREE_YEARS";
116
128
  })(PaymentTerm = exports.PaymentTerm || (exports.PaymentTerm = {}));
117
129
  var ShipmentCarrier;
@@ -283,6 +283,10 @@ const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
283
283
  ],
284
284
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
285
285
  NextToken: [, input.NextToken],
286
+ StatusFilter: [
287
+ () => input.StatusFilter !== void 0,
288
+ () => (input.StatusFilter || []).map((_entry) => _entry),
289
+ ],
286
290
  });
287
291
  let body;
288
292
  return new protocol_http_1.HttpRequest({
@@ -1974,6 +1978,7 @@ const deserializeAws_restJson1CIDRList = (output, context) => {
1974
1978
  const deserializeAws_restJson1ComputeAttributes = (output, context) => {
1975
1979
  return {
1976
1980
  HostId: (0, smithy_client_1.expectString)(output.HostId),
1981
+ State: (0, smithy_client_1.expectString)(output.State),
1977
1982
  };
1978
1983
  };
1979
1984
  const deserializeAws_restJson1ConnectionDetails = (output, context) => {
@@ -2237,10 +2242,10 @@ const deserializeAws_restJson1TagMap = (output, context) => {
2237
2242
  }, {});
2238
2243
  };
2239
2244
  const deserializeMetadata = (output) => {
2240
- var _a;
2245
+ var _a, _b;
2241
2246
  return ({
2242
2247
  httpStatusCode: output.statusCode,
2243
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2248
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2244
2249
  extendedRequestId: output.headers["x-amz-id-2"],
2245
2250
  cfId: output.headers["x-amz-cf-id"],
2246
2251
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelOrderCommand } from "./commands/CancelOrderCommand";
2
3
  import { CreateOrderCommand } from "./commands/CreateOrderCommand";
3
4
  import { CreateOutpostCommand, } from "./commands/CreateOutpostCommand";
@@ -25,369 +26,375 @@ import { UpdateSiteAddressCommand, } from "./commands/UpdateSiteAddressCommand";
25
26
  import { UpdateSiteCommand } from "./commands/UpdateSiteCommand";
26
27
  import { UpdateSiteRackPhysicalPropertiesCommand, } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
27
28
  import { OutpostsClient } from "./OutpostsClient";
28
- export class Outposts extends OutpostsClient {
29
- cancelOrder(args, optionsOrCb, cb) {
30
- const command = new CancelOrderCommand(args);
29
+ var Outposts = (function (_super) {
30
+ __extends(Outposts, _super);
31
+ function Outposts() {
32
+ return _super !== null && _super.apply(this, arguments) || this;
33
+ }
34
+ Outposts.prototype.cancelOrder = function (args, optionsOrCb, cb) {
35
+ var command = new CancelOrderCommand(args);
31
36
  if (typeof optionsOrCb === "function") {
32
37
  this.send(command, optionsOrCb);
33
38
  }
34
39
  else if (typeof cb === "function") {
35
40
  if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
42
  this.send(command, optionsOrCb || {}, cb);
38
43
  }
39
44
  else {
40
45
  return this.send(command, optionsOrCb);
41
46
  }
42
- }
43
- createOrder(args, optionsOrCb, cb) {
44
- const command = new CreateOrderCommand(args);
47
+ };
48
+ Outposts.prototype.createOrder = function (args, optionsOrCb, cb) {
49
+ var command = new CreateOrderCommand(args);
45
50
  if (typeof optionsOrCb === "function") {
46
51
  this.send(command, optionsOrCb);
47
52
  }
48
53
  else if (typeof cb === "function") {
49
54
  if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
56
  this.send(command, optionsOrCb || {}, cb);
52
57
  }
53
58
  else {
54
59
  return this.send(command, optionsOrCb);
55
60
  }
56
- }
57
- createOutpost(args, optionsOrCb, cb) {
58
- const command = new CreateOutpostCommand(args);
61
+ };
62
+ Outposts.prototype.createOutpost = function (args, optionsOrCb, cb) {
63
+ var command = new CreateOutpostCommand(args);
59
64
  if (typeof optionsOrCb === "function") {
60
65
  this.send(command, optionsOrCb);
61
66
  }
62
67
  else if (typeof cb === "function") {
63
68
  if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
70
  this.send(command, optionsOrCb || {}, cb);
66
71
  }
67
72
  else {
68
73
  return this.send(command, optionsOrCb);
69
74
  }
70
- }
71
- createSite(args, optionsOrCb, cb) {
72
- const command = new CreateSiteCommand(args);
75
+ };
76
+ Outposts.prototype.createSite = function (args, optionsOrCb, cb) {
77
+ var command = new CreateSiteCommand(args);
73
78
  if (typeof optionsOrCb === "function") {
74
79
  this.send(command, optionsOrCb);
75
80
  }
76
81
  else if (typeof cb === "function") {
77
82
  if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
84
  this.send(command, optionsOrCb || {}, cb);
80
85
  }
81
86
  else {
82
87
  return this.send(command, optionsOrCb);
83
88
  }
84
- }
85
- deleteOutpost(args, optionsOrCb, cb) {
86
- const command = new DeleteOutpostCommand(args);
89
+ };
90
+ Outposts.prototype.deleteOutpost = function (args, optionsOrCb, cb) {
91
+ var command = new DeleteOutpostCommand(args);
87
92
  if (typeof optionsOrCb === "function") {
88
93
  this.send(command, optionsOrCb);
89
94
  }
90
95
  else if (typeof cb === "function") {
91
96
  if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
98
  this.send(command, optionsOrCb || {}, cb);
94
99
  }
95
100
  else {
96
101
  return this.send(command, optionsOrCb);
97
102
  }
98
- }
99
- deleteSite(args, optionsOrCb, cb) {
100
- const command = new DeleteSiteCommand(args);
103
+ };
104
+ Outposts.prototype.deleteSite = function (args, optionsOrCb, cb) {
105
+ var command = new DeleteSiteCommand(args);
101
106
  if (typeof optionsOrCb === "function") {
102
107
  this.send(command, optionsOrCb);
103
108
  }
104
109
  else if (typeof cb === "function") {
105
110
  if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
112
  this.send(command, optionsOrCb || {}, cb);
108
113
  }
109
114
  else {
110
115
  return this.send(command, optionsOrCb);
111
116
  }
112
- }
113
- getCatalogItem(args, optionsOrCb, cb) {
114
- const command = new GetCatalogItemCommand(args);
117
+ };
118
+ Outposts.prototype.getCatalogItem = function (args, optionsOrCb, cb) {
119
+ var command = new GetCatalogItemCommand(args);
115
120
  if (typeof optionsOrCb === "function") {
116
121
  this.send(command, optionsOrCb);
117
122
  }
118
123
  else if (typeof cb === "function") {
119
124
  if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
126
  this.send(command, optionsOrCb || {}, cb);
122
127
  }
123
128
  else {
124
129
  return this.send(command, optionsOrCb);
125
130
  }
126
- }
127
- getConnection(args, optionsOrCb, cb) {
128
- const command = new GetConnectionCommand(args);
131
+ };
132
+ Outposts.prototype.getConnection = function (args, optionsOrCb, cb) {
133
+ var command = new GetConnectionCommand(args);
129
134
  if (typeof optionsOrCb === "function") {
130
135
  this.send(command, optionsOrCb);
131
136
  }
132
137
  else if (typeof cb === "function") {
133
138
  if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
140
  this.send(command, optionsOrCb || {}, cb);
136
141
  }
137
142
  else {
138
143
  return this.send(command, optionsOrCb);
139
144
  }
140
- }
141
- getOrder(args, optionsOrCb, cb) {
142
- const command = new GetOrderCommand(args);
145
+ };
146
+ Outposts.prototype.getOrder = function (args, optionsOrCb, cb) {
147
+ var command = new GetOrderCommand(args);
143
148
  if (typeof optionsOrCb === "function") {
144
149
  this.send(command, optionsOrCb);
145
150
  }
146
151
  else if (typeof cb === "function") {
147
152
  if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
154
  this.send(command, optionsOrCb || {}, cb);
150
155
  }
151
156
  else {
152
157
  return this.send(command, optionsOrCb);
153
158
  }
154
- }
155
- getOutpost(args, optionsOrCb, cb) {
156
- const command = new GetOutpostCommand(args);
159
+ };
160
+ Outposts.prototype.getOutpost = function (args, optionsOrCb, cb) {
161
+ var command = new GetOutpostCommand(args);
157
162
  if (typeof optionsOrCb === "function") {
158
163
  this.send(command, optionsOrCb);
159
164
  }
160
165
  else if (typeof cb === "function") {
161
166
  if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
168
  this.send(command, optionsOrCb || {}, cb);
164
169
  }
165
170
  else {
166
171
  return this.send(command, optionsOrCb);
167
172
  }
168
- }
169
- getOutpostInstanceTypes(args, optionsOrCb, cb) {
170
- const command = new GetOutpostInstanceTypesCommand(args);
173
+ };
174
+ Outposts.prototype.getOutpostInstanceTypes = function (args, optionsOrCb, cb) {
175
+ var command = new GetOutpostInstanceTypesCommand(args);
171
176
  if (typeof optionsOrCb === "function") {
172
177
  this.send(command, optionsOrCb);
173
178
  }
174
179
  else if (typeof cb === "function") {
175
180
  if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
182
  this.send(command, optionsOrCb || {}, cb);
178
183
  }
179
184
  else {
180
185
  return this.send(command, optionsOrCb);
181
186
  }
182
- }
183
- getSite(args, optionsOrCb, cb) {
184
- const command = new GetSiteCommand(args);
187
+ };
188
+ Outposts.prototype.getSite = function (args, optionsOrCb, cb) {
189
+ var command = new GetSiteCommand(args);
185
190
  if (typeof optionsOrCb === "function") {
186
191
  this.send(command, optionsOrCb);
187
192
  }
188
193
  else if (typeof cb === "function") {
189
194
  if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
196
  this.send(command, optionsOrCb || {}, cb);
192
197
  }
193
198
  else {
194
199
  return this.send(command, optionsOrCb);
195
200
  }
196
- }
197
- getSiteAddress(args, optionsOrCb, cb) {
198
- const command = new GetSiteAddressCommand(args);
201
+ };
202
+ Outposts.prototype.getSiteAddress = function (args, optionsOrCb, cb) {
203
+ var command = new GetSiteAddressCommand(args);
199
204
  if (typeof optionsOrCb === "function") {
200
205
  this.send(command, optionsOrCb);
201
206
  }
202
207
  else if (typeof cb === "function") {
203
208
  if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
210
  this.send(command, optionsOrCb || {}, cb);
206
211
  }
207
212
  else {
208
213
  return this.send(command, optionsOrCb);
209
214
  }
210
- }
211
- listAssets(args, optionsOrCb, cb) {
212
- const command = new ListAssetsCommand(args);
215
+ };
216
+ Outposts.prototype.listAssets = function (args, optionsOrCb, cb) {
217
+ var command = new ListAssetsCommand(args);
213
218
  if (typeof optionsOrCb === "function") {
214
219
  this.send(command, optionsOrCb);
215
220
  }
216
221
  else if (typeof cb === "function") {
217
222
  if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
224
  this.send(command, optionsOrCb || {}, cb);
220
225
  }
221
226
  else {
222
227
  return this.send(command, optionsOrCb);
223
228
  }
224
- }
225
- listCatalogItems(args, optionsOrCb, cb) {
226
- const command = new ListCatalogItemsCommand(args);
229
+ };
230
+ Outposts.prototype.listCatalogItems = function (args, optionsOrCb, cb) {
231
+ var command = new ListCatalogItemsCommand(args);
227
232
  if (typeof optionsOrCb === "function") {
228
233
  this.send(command, optionsOrCb);
229
234
  }
230
235
  else if (typeof cb === "function") {
231
236
  if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
238
  this.send(command, optionsOrCb || {}, cb);
234
239
  }
235
240
  else {
236
241
  return this.send(command, optionsOrCb);
237
242
  }
238
- }
239
- listOrders(args, optionsOrCb, cb) {
240
- const command = new ListOrdersCommand(args);
243
+ };
244
+ Outposts.prototype.listOrders = function (args, optionsOrCb, cb) {
245
+ var command = new ListOrdersCommand(args);
241
246
  if (typeof optionsOrCb === "function") {
242
247
  this.send(command, optionsOrCb);
243
248
  }
244
249
  else if (typeof cb === "function") {
245
250
  if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
252
  this.send(command, optionsOrCb || {}, cb);
248
253
  }
249
254
  else {
250
255
  return this.send(command, optionsOrCb);
251
256
  }
252
- }
253
- listOutposts(args, optionsOrCb, cb) {
254
- const command = new ListOutpostsCommand(args);
257
+ };
258
+ Outposts.prototype.listOutposts = function (args, optionsOrCb, cb) {
259
+ var command = new ListOutpostsCommand(args);
255
260
  if (typeof optionsOrCb === "function") {
256
261
  this.send(command, optionsOrCb);
257
262
  }
258
263
  else if (typeof cb === "function") {
259
264
  if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
266
  this.send(command, optionsOrCb || {}, cb);
262
267
  }
263
268
  else {
264
269
  return this.send(command, optionsOrCb);
265
270
  }
266
- }
267
- listSites(args, optionsOrCb, cb) {
268
- const command = new ListSitesCommand(args);
271
+ };
272
+ Outposts.prototype.listSites = function (args, optionsOrCb, cb) {
273
+ var command = new ListSitesCommand(args);
269
274
  if (typeof optionsOrCb === "function") {
270
275
  this.send(command, optionsOrCb);
271
276
  }
272
277
  else if (typeof cb === "function") {
273
278
  if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
280
  this.send(command, optionsOrCb || {}, cb);
276
281
  }
277
282
  else {
278
283
  return this.send(command, optionsOrCb);
279
284
  }
280
- }
281
- listTagsForResource(args, optionsOrCb, cb) {
282
- const command = new ListTagsForResourceCommand(args);
285
+ };
286
+ Outposts.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
287
+ var command = new ListTagsForResourceCommand(args);
283
288
  if (typeof optionsOrCb === "function") {
284
289
  this.send(command, optionsOrCb);
285
290
  }
286
291
  else if (typeof cb === "function") {
287
292
  if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
294
  this.send(command, optionsOrCb || {}, cb);
290
295
  }
291
296
  else {
292
297
  return this.send(command, optionsOrCb);
293
298
  }
294
- }
295
- startConnection(args, optionsOrCb, cb) {
296
- const command = new StartConnectionCommand(args);
299
+ };
300
+ Outposts.prototype.startConnection = function (args, optionsOrCb, cb) {
301
+ var command = new StartConnectionCommand(args);
297
302
  if (typeof optionsOrCb === "function") {
298
303
  this.send(command, optionsOrCb);
299
304
  }
300
305
  else if (typeof cb === "function") {
301
306
  if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
308
  this.send(command, optionsOrCb || {}, cb);
304
309
  }
305
310
  else {
306
311
  return this.send(command, optionsOrCb);
307
312
  }
308
- }
309
- tagResource(args, optionsOrCb, cb) {
310
- const command = new TagResourceCommand(args);
313
+ };
314
+ Outposts.prototype.tagResource = function (args, optionsOrCb, cb) {
315
+ var command = new TagResourceCommand(args);
311
316
  if (typeof optionsOrCb === "function") {
312
317
  this.send(command, optionsOrCb);
313
318
  }
314
319
  else if (typeof cb === "function") {
315
320
  if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
322
  this.send(command, optionsOrCb || {}, cb);
318
323
  }
319
324
  else {
320
325
  return this.send(command, optionsOrCb);
321
326
  }
322
- }
323
- untagResource(args, optionsOrCb, cb) {
324
- const command = new UntagResourceCommand(args);
327
+ };
328
+ Outposts.prototype.untagResource = function (args, optionsOrCb, cb) {
329
+ var command = new UntagResourceCommand(args);
325
330
  if (typeof optionsOrCb === "function") {
326
331
  this.send(command, optionsOrCb);
327
332
  }
328
333
  else if (typeof cb === "function") {
329
334
  if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
336
  this.send(command, optionsOrCb || {}, cb);
332
337
  }
333
338
  else {
334
339
  return this.send(command, optionsOrCb);
335
340
  }
336
- }
337
- updateOutpost(args, optionsOrCb, cb) {
338
- const command = new UpdateOutpostCommand(args);
341
+ };
342
+ Outposts.prototype.updateOutpost = function (args, optionsOrCb, cb) {
343
+ var command = new UpdateOutpostCommand(args);
339
344
  if (typeof optionsOrCb === "function") {
340
345
  this.send(command, optionsOrCb);
341
346
  }
342
347
  else if (typeof cb === "function") {
343
348
  if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
350
  this.send(command, optionsOrCb || {}, cb);
346
351
  }
347
352
  else {
348
353
  return this.send(command, optionsOrCb);
349
354
  }
350
- }
351
- updateSite(args, optionsOrCb, cb) {
352
- const command = new UpdateSiteCommand(args);
355
+ };
356
+ Outposts.prototype.updateSite = function (args, optionsOrCb, cb) {
357
+ var command = new UpdateSiteCommand(args);
353
358
  if (typeof optionsOrCb === "function") {
354
359
  this.send(command, optionsOrCb);
355
360
  }
356
361
  else if (typeof cb === "function") {
357
362
  if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
364
  this.send(command, optionsOrCb || {}, cb);
360
365
  }
361
366
  else {
362
367
  return this.send(command, optionsOrCb);
363
368
  }
364
- }
365
- updateSiteAddress(args, optionsOrCb, cb) {
366
- const command = new UpdateSiteAddressCommand(args);
369
+ };
370
+ Outposts.prototype.updateSiteAddress = function (args, optionsOrCb, cb) {
371
+ var command = new UpdateSiteAddressCommand(args);
367
372
  if (typeof optionsOrCb === "function") {
368
373
  this.send(command, optionsOrCb);
369
374
  }
370
375
  else if (typeof cb === "function") {
371
376
  if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
378
  this.send(command, optionsOrCb || {}, cb);
374
379
  }
375
380
  else {
376
381
  return this.send(command, optionsOrCb);
377
382
  }
378
- }
379
- updateSiteRackPhysicalProperties(args, optionsOrCb, cb) {
380
- const command = new UpdateSiteRackPhysicalPropertiesCommand(args);
383
+ };
384
+ Outposts.prototype.updateSiteRackPhysicalProperties = function (args, optionsOrCb, cb) {
385
+ var command = new UpdateSiteRackPhysicalPropertiesCommand(args);
381
386
  if (typeof optionsOrCb === "function") {
382
387
  this.send(command, optionsOrCb);
383
388
  }
384
389
  else if (typeof cb === "function") {
385
390
  if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
392
  this.send(command, optionsOrCb || {}, cb);
388
393
  }
389
394
  else {
390
395
  return this.send(command, optionsOrCb);
391
396
  }
392
- }
393
- }
397
+ };
398
+ return Outposts;
399
+ }(OutpostsClient));
400
+ export { Outposts };