@aws-sdk/client-outposts 3.105.0 → 3.112.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-outposts
9
+
10
+
11
+
12
+
13
+
14
+ # [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-outposts
17
+
18
+
19
+
20
+
21
+
22
+ # [3.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
23
+
24
+
25
+ ### Features
26
+
27
+ * **client-outposts:** This release adds API operations AWS uses to install Outpost servers. ([a04c290](https://github.com/aws/aws-sdk-js-v3/commit/a04c29088d100cd2e66c608d36afea52df60dc8f))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
34
 
8
35
 
@@ -8,6 +8,7 @@ const CreateSiteCommand_1 = require("./commands/CreateSiteCommand");
8
8
  const DeleteOutpostCommand_1 = require("./commands/DeleteOutpostCommand");
9
9
  const DeleteSiteCommand_1 = require("./commands/DeleteSiteCommand");
10
10
  const GetCatalogItemCommand_1 = require("./commands/GetCatalogItemCommand");
11
+ const GetConnectionCommand_1 = require("./commands/GetConnectionCommand");
11
12
  const GetOrderCommand_1 = require("./commands/GetOrderCommand");
12
13
  const GetOutpostCommand_1 = require("./commands/GetOutpostCommand");
13
14
  const GetOutpostInstanceTypesCommand_1 = require("./commands/GetOutpostInstanceTypesCommand");
@@ -19,6 +20,7 @@ const ListOrdersCommand_1 = require("./commands/ListOrdersCommand");
19
20
  const ListOutpostsCommand_1 = require("./commands/ListOutpostsCommand");
20
21
  const ListSitesCommand_1 = require("./commands/ListSitesCommand");
21
22
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
23
+ const StartConnectionCommand_1 = require("./commands/StartConnectionCommand");
22
24
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
23
25
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
24
26
  const UpdateOutpostCommand_1 = require("./commands/UpdateOutpostCommand");
@@ -125,6 +127,20 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
125
127
  return this.send(command, optionsOrCb);
126
128
  }
127
129
  }
130
+ getConnection(args, optionsOrCb, cb) {
131
+ const command = new GetConnectionCommand_1.GetConnectionCommand(args);
132
+ if (typeof optionsOrCb === "function") {
133
+ this.send(command, optionsOrCb);
134
+ }
135
+ else if (typeof cb === "function") {
136
+ if (typeof optionsOrCb !== "object")
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ this.send(command, optionsOrCb || {}, cb);
139
+ }
140
+ else {
141
+ return this.send(command, optionsOrCb);
142
+ }
143
+ }
128
144
  getOrder(args, optionsOrCb, cb) {
129
145
  const command = new GetOrderCommand_1.GetOrderCommand(args);
130
146
  if (typeof optionsOrCb === "function") {
@@ -279,6 +295,20 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
279
295
  return this.send(command, optionsOrCb);
280
296
  }
281
297
  }
298
+ startConnection(args, optionsOrCb, cb) {
299
+ const command = new StartConnectionCommand_1.StartConnectionCommand(args);
300
+ if (typeof optionsOrCb === "function") {
301
+ this.send(command, optionsOrCb);
302
+ }
303
+ else if (typeof cb === "function") {
304
+ if (typeof optionsOrCb !== "object")
305
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
+ this.send(command, optionsOrCb || {}, cb);
307
+ }
308
+ else {
309
+ return this.send(command, optionsOrCb);
310
+ }
311
+ }
282
312
  tagResource(args, optionsOrCb, cb) {
283
313
  const command = new TagResourceCommand_1.TagResourceCommand(args);
284
314
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConnectionCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetConnectionCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "OutpostsClient";
18
+ const commandName = "GetConnectionCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetConnectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetConnectionResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetConnectionCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetConnectionCommand)(output, context);
34
+ }
35
+ }
36
+ exports.GetConnectionCommand = GetConnectionCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartConnectionCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class StartConnectionCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "OutpostsClient";
18
+ const commandName = "StartConnectionCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.StartConnectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.StartConnectionResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1StartConnectionCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1StartConnectionCommand)(output, context);
34
+ }
35
+ }
36
+ exports.StartConnectionCommand = StartConnectionCommand;
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./CreateSiteCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteOutpostCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DeleteSiteCommand"), exports);
10
10
  tslib_1.__exportStar(require("./GetCatalogItemCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetConnectionCommand"), exports);
11
12
  tslib_1.__exportStar(require("./GetOrderCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetOutpostCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetOutpostInstanceTypesCommand"), exports);
@@ -19,6 +20,7 @@ tslib_1.__exportStar(require("./ListOrdersCommand"), exports);
19
20
  tslib_1.__exportStar(require("./ListOutpostsCommand"), exports);
20
21
  tslib_1.__exportStar(require("./ListSitesCommand"), exports);
21
22
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
23
+ tslib_1.__exportStar(require("./StartConnectionCommand"), exports);
22
24
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
23
25
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
24
26
  tslib_1.__exportStar(require("./UpdateOutpostCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCatalogItemInput = exports.DeleteSiteOutput = exports.DeleteSiteInput = exports.DeleteOutpostOutput = exports.DeleteOutpostInput = exports.CreateSiteOutput = exports.Site = exports.CreateSiteInput = exports.RackPhysicalProperties = exports.UplinkGbps = exports.UplinkCount = exports.PowerPhase = exports.PowerFeedDrop = exports.PowerDrawKva = exports.PowerConnector = exports.OpticalStandard = exports.MaximumSupportedWeightLbs = exports.FiberOpticCableType = exports.CreateOutpostOutput = exports.Outpost = exports.CreateOutpostInput = exports.SupportedHardwareType = exports.ServiceQuotaExceededException = exports.CreateOrderOutput = exports.Order = exports.OrderStatus = exports.LineItem = exports.LineItemStatus = exports.CreateOrderInput = exports.PaymentTerm = exports.PaymentOption = exports.LineItemRequest = exports.CatalogItemClass = exports.CatalogItem = exports.SupportedStorageEnum = exports.CatalogItemStatus = exports.EC2Capacity = exports.ValidationException = exports.NotFoundException = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.CancelOrderOutput = exports.CancelOrderInput = exports.AssetInfo = exports.ComputeAttributes = exports.AssetType = exports.AddressType = exports.Address = exports.AccessDeniedException = void 0;
4
- exports.UpdateSiteRackPhysicalPropertiesOutput = exports.UpdateSiteRackPhysicalPropertiesInput = exports.UpdateSiteAddressOutput = exports.UpdateSiteAddressInput = exports.UpdateSiteOutput = exports.UpdateSiteInput = exports.UpdateOutpostOutput = exports.UpdateOutpostInput = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSitesOutput = exports.ListSitesInput = exports.ListOutpostsOutput = exports.ListOutpostsInput = exports.ListOrdersOutput = exports.OrderSummary = exports.OrderType = exports.ListOrdersInput = exports.ListCatalogItemsOutput = exports.ListCatalogItemsInput = exports.ListAssetsOutput = exports.ListAssetsInput = exports.GetSiteAddressOutput = exports.GetSiteAddressInput = exports.GetSiteOutput = exports.GetSiteInput = exports.GetOutpostInstanceTypesOutput = exports.InstanceTypeItem = exports.GetOutpostInstanceTypesInput = exports.GetOutpostOutput = exports.GetOutpostInput = exports.GetOrderOutput = exports.GetOrderInput = exports.GetCatalogItemOutput = void 0;
3
+ exports.DeleteSiteOutput = exports.DeleteSiteInput = exports.DeleteOutpostOutput = exports.DeleteOutpostInput = exports.CreateSiteOutput = exports.Site = exports.CreateSiteInput = exports.RackPhysicalProperties = exports.UplinkGbps = exports.UplinkCount = exports.PowerPhase = exports.PowerFeedDrop = exports.PowerDrawKva = exports.PowerConnector = exports.OpticalStandard = exports.MaximumSupportedWeightLbs = exports.FiberOpticCableType = exports.CreateOutpostOutput = exports.Outpost = exports.CreateOutpostInput = exports.SupportedHardwareType = exports.ServiceQuotaExceededException = exports.CreateOrderOutput = exports.Order = exports.OrderStatus = exports.LineItem = exports.LineItemStatus = exports.CreateOrderInput = exports.PaymentTerm = exports.PaymentOption = exports.LineItemRequest = exports.ConnectionDetails = exports.CatalogItemClass = exports.CatalogItem = exports.SupportedStorageEnum = exports.CatalogItemStatus = exports.EC2Capacity = exports.ValidationException = exports.NotFoundException = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.CancelOrderOutput = exports.CancelOrderInput = exports.AssetInfo = exports.ComputeAttributes = exports.AssetType = exports.AddressType = exports.Address = exports.AccessDeniedException = void 0;
4
+ exports.UpdateSiteRackPhysicalPropertiesOutput = exports.UpdateSiteRackPhysicalPropertiesInput = exports.UpdateSiteAddressOutput = exports.UpdateSiteAddressInput = exports.UpdateSiteOutput = exports.UpdateSiteInput = exports.UpdateOutpostOutput = exports.UpdateOutpostInput = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartConnectionResponse = exports.StartConnectionRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSitesOutput = exports.ListSitesInput = exports.ListOutpostsOutput = exports.ListOutpostsInput = exports.ListOrdersOutput = exports.OrderSummary = exports.OrderType = exports.ListOrdersInput = exports.ListCatalogItemsOutput = exports.ListCatalogItemsInput = exports.ListAssetsOutput = exports.ListAssetsInput = exports.GetSiteAddressOutput = exports.GetSiteAddressInput = exports.GetSiteOutput = exports.GetSiteInput = exports.GetOutpostInstanceTypesOutput = exports.InstanceTypeItem = exports.GetOutpostInstanceTypesInput = exports.GetOutpostOutput = exports.GetOutpostInput = exports.GetOrderOutput = exports.GetOrderInput = exports.GetConnectionResponse = exports.GetConnectionRequest = exports.GetCatalogItemOutput = exports.GetCatalogItemInput = void 0;
5
5
  const OutpostsServiceException_1 = require("./OutpostsServiceException");
6
6
  class AccessDeniedException extends OutpostsServiceException_1.OutpostsServiceException {
7
7
  constructor(opts) {
@@ -146,6 +146,12 @@ var CatalogItemClass;
146
146
  CatalogItemClass["RACK"] = "RACK";
147
147
  CatalogItemClass["SERVER"] = "SERVER";
148
148
  })(CatalogItemClass = exports.CatalogItemClass || (exports.CatalogItemClass = {}));
149
+ var ConnectionDetails;
150
+ (function (ConnectionDetails) {
151
+ ConnectionDetails.filterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ })(ConnectionDetails = exports.ConnectionDetails || (exports.ConnectionDetails = {}));
149
155
  var LineItemRequest;
150
156
  (function (LineItemRequest) {
151
157
  LineItemRequest.filterSensitiveLog = (obj) => ({
@@ -379,6 +385,18 @@ var GetCatalogItemOutput;
379
385
  ...obj,
380
386
  });
381
387
  })(GetCatalogItemOutput = exports.GetCatalogItemOutput || (exports.GetCatalogItemOutput = {}));
388
+ var GetConnectionRequest;
389
+ (function (GetConnectionRequest) {
390
+ GetConnectionRequest.filterSensitiveLog = (obj) => ({
391
+ ...obj,
392
+ });
393
+ })(GetConnectionRequest = exports.GetConnectionRequest || (exports.GetConnectionRequest = {}));
394
+ var GetConnectionResponse;
395
+ (function (GetConnectionResponse) {
396
+ GetConnectionResponse.filterSensitiveLog = (obj) => ({
397
+ ...obj,
398
+ });
399
+ })(GetConnectionResponse = exports.GetConnectionResponse || (exports.GetConnectionResponse = {}));
382
400
  var GetOrderInput;
383
401
  (function (GetOrderInput) {
384
402
  GetOrderInput.filterSensitiveLog = (obj) => ({
@@ -528,6 +546,18 @@ var ListTagsForResourceResponse;
528
546
  ...obj,
529
547
  });
530
548
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
549
+ var StartConnectionRequest;
550
+ (function (StartConnectionRequest) {
551
+ StartConnectionRequest.filterSensitiveLog = (obj) => ({
552
+ ...obj,
553
+ });
554
+ })(StartConnectionRequest = exports.StartConnectionRequest || (exports.StartConnectionRequest = {}));
555
+ var StartConnectionResponse;
556
+ (function (StartConnectionResponse) {
557
+ StartConnectionResponse.filterSensitiveLog = (obj) => ({
558
+ ...obj,
559
+ });
560
+ })(StartConnectionResponse = exports.StartConnectionResponse || (exports.StartConnectionResponse = {}));
531
561
  var TagResourceRequest;
532
562
  (function (TagResourceRequest) {
533
563
  TagResourceRequest.filterSensitiveLog = (obj) => ({
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.deserializeAws_restJson1UpdateSiteAddressCommand = exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UpdateOutpostCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSitesCommand = exports.deserializeAws_restJson1ListOutpostsCommand = exports.deserializeAws_restJson1ListOrdersCommand = exports.deserializeAws_restJson1ListCatalogItemsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1GetSiteAddressCommand = exports.deserializeAws_restJson1GetSiteCommand = exports.deserializeAws_restJson1GetOutpostInstanceTypesCommand = exports.deserializeAws_restJson1GetOutpostCommand = exports.deserializeAws_restJson1GetOrderCommand = exports.deserializeAws_restJson1GetCatalogItemCommand = exports.deserializeAws_restJson1DeleteSiteCommand = exports.deserializeAws_restJson1DeleteOutpostCommand = exports.deserializeAws_restJson1CreateSiteCommand = exports.deserializeAws_restJson1CreateOutpostCommand = exports.deserializeAws_restJson1CreateOrderCommand = exports.deserializeAws_restJson1CancelOrderCommand = exports.serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.serializeAws_restJson1UpdateSiteAddressCommand = exports.serializeAws_restJson1UpdateSiteCommand = exports.serializeAws_restJson1UpdateOutpostCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSitesCommand = exports.serializeAws_restJson1ListOutpostsCommand = exports.serializeAws_restJson1ListOrdersCommand = exports.serializeAws_restJson1ListCatalogItemsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1GetSiteAddressCommand = exports.serializeAws_restJson1GetSiteCommand = exports.serializeAws_restJson1GetOutpostInstanceTypesCommand = exports.serializeAws_restJson1GetOutpostCommand = exports.serializeAws_restJson1GetOrderCommand = exports.serializeAws_restJson1GetCatalogItemCommand = exports.serializeAws_restJson1DeleteSiteCommand = exports.serializeAws_restJson1DeleteOutpostCommand = exports.serializeAws_restJson1CreateSiteCommand = exports.serializeAws_restJson1CreateOutpostCommand = exports.serializeAws_restJson1CreateOrderCommand = exports.serializeAws_restJson1CancelOrderCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UpdateOutpostCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartConnectionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSitesCommand = exports.deserializeAws_restJson1ListOutpostsCommand = exports.deserializeAws_restJson1ListOrdersCommand = exports.deserializeAws_restJson1ListCatalogItemsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1GetSiteAddressCommand = exports.deserializeAws_restJson1GetSiteCommand = exports.deserializeAws_restJson1GetOutpostInstanceTypesCommand = exports.deserializeAws_restJson1GetOutpostCommand = exports.deserializeAws_restJson1GetOrderCommand = exports.deserializeAws_restJson1GetConnectionCommand = exports.deserializeAws_restJson1GetCatalogItemCommand = exports.deserializeAws_restJson1DeleteSiteCommand = exports.deserializeAws_restJson1DeleteOutpostCommand = exports.deserializeAws_restJson1CreateSiteCommand = exports.deserializeAws_restJson1CreateOutpostCommand = exports.deserializeAws_restJson1CreateOrderCommand = exports.deserializeAws_restJson1CancelOrderCommand = exports.serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.serializeAws_restJson1UpdateSiteAddressCommand = exports.serializeAws_restJson1UpdateSiteCommand = exports.serializeAws_restJson1UpdateOutpostCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartConnectionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSitesCommand = exports.serializeAws_restJson1ListOutpostsCommand = exports.serializeAws_restJson1ListOrdersCommand = exports.serializeAws_restJson1ListCatalogItemsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1GetSiteAddressCommand = exports.serializeAws_restJson1GetSiteCommand = exports.serializeAws_restJson1GetOutpostInstanceTypesCommand = exports.serializeAws_restJson1GetOutpostCommand = exports.serializeAws_restJson1GetOrderCommand = exports.serializeAws_restJson1GetConnectionCommand = exports.serializeAws_restJson1GetCatalogItemCommand = exports.serializeAws_restJson1DeleteSiteCommand = exports.serializeAws_restJson1DeleteOutpostCommand = exports.serializeAws_restJson1CreateSiteCommand = exports.serializeAws_restJson1CreateOutpostCommand = exports.serializeAws_restJson1CreateOrderCommand = exports.serializeAws_restJson1CancelOrderCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.deserializeAws_restJson1UpdateSiteAddressCommand = void 0;
4
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
7
  const models_0_1 = require("../models/models_0");
@@ -203,6 +204,32 @@ const serializeAws_restJson1GetCatalogItemCommand = async (input, context) => {
203
204
  });
204
205
  };
205
206
  exports.serializeAws_restJson1GetCatalogItemCommand = serializeAws_restJson1GetCatalogItemCommand;
207
+ const serializeAws_restJson1GetConnectionCommand = async (input, context) => {
208
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
+ const headers = {};
210
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/connections/{ConnectionId}";
211
+ if (input.ConnectionId !== undefined) {
212
+ const labelValue = input.ConnectionId;
213
+ if (labelValue.length <= 0) {
214
+ throw new Error("Empty value provided for input HTTP label: ConnectionId.");
215
+ }
216
+ resolvedPath = resolvedPath.replace("{ConnectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
217
+ }
218
+ else {
219
+ throw new Error("No value provided for input HTTP label: ConnectionId.");
220
+ }
221
+ let body;
222
+ return new protocol_http_1.HttpRequest({
223
+ protocol,
224
+ hostname,
225
+ port,
226
+ method: "GET",
227
+ headers,
228
+ path: resolvedPath,
229
+ body,
230
+ });
231
+ };
232
+ exports.serializeAws_restJson1GetConnectionCommand = serializeAws_restJson1GetConnectionCommand;
206
233
  const serializeAws_restJson1GetOrderCommand = async (input, context) => {
207
234
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
235
  const headers = {};
@@ -514,6 +541,33 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
514
541
  });
515
542
  };
516
543
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
544
+ const serializeAws_restJson1StartConnectionCommand = async (input, context) => {
545
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
546
+ const headers = {
547
+ "content-type": "application/json",
548
+ };
549
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/connections";
550
+ let body;
551
+ body = JSON.stringify({
552
+ ...(input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId }),
553
+ ...(input.ClientPublicKey !== undefined &&
554
+ input.ClientPublicKey !== null && { ClientPublicKey: input.ClientPublicKey }),
555
+ ...(input.DeviceSerialNumber !== undefined &&
556
+ input.DeviceSerialNumber !== null && { DeviceSerialNumber: input.DeviceSerialNumber }),
557
+ ...(input.NetworkInterfaceDeviceIndex !== undefined &&
558
+ input.NetworkInterfaceDeviceIndex !== null && { NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex }),
559
+ });
560
+ return new protocol_http_1.HttpRequest({
561
+ protocol,
562
+ hostname,
563
+ port,
564
+ method: "POST",
565
+ headers,
566
+ path: resolvedPath,
567
+ body,
568
+ });
569
+ };
570
+ exports.serializeAws_restJson1StartConnectionCommand = serializeAws_restJson1StartConnectionCommand;
517
571
  const serializeAws_restJson1TagResourceCommand = async (input, context) => {
518
572
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
573
  const headers = {
@@ -1049,6 +1103,56 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
1049
1103
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1050
1104
  }
1051
1105
  };
1106
+ const deserializeAws_restJson1GetConnectionCommand = async (output, context) => {
1107
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
+ return deserializeAws_restJson1GetConnectionCommandError(output, context);
1109
+ }
1110
+ const contents = {
1111
+ $metadata: deserializeMetadata(output),
1112
+ ConnectionDetails: undefined,
1113
+ ConnectionId: undefined,
1114
+ };
1115
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1116
+ if (data.ConnectionDetails !== undefined && data.ConnectionDetails !== null) {
1117
+ contents.ConnectionDetails = deserializeAws_restJson1ConnectionDetails(data.ConnectionDetails, context);
1118
+ }
1119
+ if (data.ConnectionId !== undefined && data.ConnectionId !== null) {
1120
+ contents.ConnectionId = (0, smithy_client_1.expectString)(data.ConnectionId);
1121
+ }
1122
+ return Promise.resolve(contents);
1123
+ };
1124
+ exports.deserializeAws_restJson1GetConnectionCommand = deserializeAws_restJson1GetConnectionCommand;
1125
+ const deserializeAws_restJson1GetConnectionCommandError = async (output, context) => {
1126
+ const parsedOutput = {
1127
+ ...output,
1128
+ body: await parseBody(output.body, context),
1129
+ };
1130
+ let response;
1131
+ let errorCode = "UnknownError";
1132
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1133
+ switch (errorCode) {
1134
+ case "AccessDeniedException":
1135
+ case "com.amazonaws.outposts#AccessDeniedException":
1136
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1137
+ case "InternalServerException":
1138
+ case "com.amazonaws.outposts#InternalServerException":
1139
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1140
+ case "NotFoundException":
1141
+ case "com.amazonaws.outposts#NotFoundException":
1142
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1143
+ case "ValidationException":
1144
+ case "com.amazonaws.outposts#ValidationException":
1145
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1146
+ default:
1147
+ const parsedBody = parsedOutput.body;
1148
+ response = new OutpostsServiceException_1.OutpostsServiceException({
1149
+ name: parsedBody.code || parsedBody.Code || errorCode,
1150
+ $fault: "client",
1151
+ $metadata: deserializeMetadata(output),
1152
+ });
1153
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1154
+ }
1155
+ };
1052
1156
  const deserializeAws_restJson1GetOrderCommand = async (output, context) => {
1053
1157
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1054
1158
  return deserializeAws_restJson1GetOrderCommandError(output, context);
@@ -1580,6 +1684,56 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1580
1684
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1581
1685
  }
1582
1686
  };
1687
+ const deserializeAws_restJson1StartConnectionCommand = async (output, context) => {
1688
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
+ return deserializeAws_restJson1StartConnectionCommandError(output, context);
1690
+ }
1691
+ const contents = {
1692
+ $metadata: deserializeMetadata(output),
1693
+ ConnectionId: undefined,
1694
+ UnderlayIpAddress: undefined,
1695
+ };
1696
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1697
+ if (data.ConnectionId !== undefined && data.ConnectionId !== null) {
1698
+ contents.ConnectionId = (0, smithy_client_1.expectString)(data.ConnectionId);
1699
+ }
1700
+ if (data.UnderlayIpAddress !== undefined && data.UnderlayIpAddress !== null) {
1701
+ contents.UnderlayIpAddress = (0, smithy_client_1.expectString)(data.UnderlayIpAddress);
1702
+ }
1703
+ return Promise.resolve(contents);
1704
+ };
1705
+ exports.deserializeAws_restJson1StartConnectionCommand = deserializeAws_restJson1StartConnectionCommand;
1706
+ const deserializeAws_restJson1StartConnectionCommandError = async (output, context) => {
1707
+ const parsedOutput = {
1708
+ ...output,
1709
+ body: await parseBody(output.body, context),
1710
+ };
1711
+ let response;
1712
+ let errorCode = "UnknownError";
1713
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
+ switch (errorCode) {
1715
+ case "AccessDeniedException":
1716
+ case "com.amazonaws.outposts#AccessDeniedException":
1717
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1718
+ case "InternalServerException":
1719
+ case "com.amazonaws.outposts#InternalServerException":
1720
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1721
+ case "NotFoundException":
1722
+ case "com.amazonaws.outposts#NotFoundException":
1723
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1724
+ case "ValidationException":
1725
+ case "com.amazonaws.outposts#ValidationException":
1726
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1727
+ default:
1728
+ const parsedBody = parsedOutput.body;
1729
+ response = new OutpostsServiceException_1.OutpostsServiceException({
1730
+ name: parsedBody.code || parsedBody.Code || errorCode,
1731
+ $fault: "client",
1732
+ $metadata: deserializeMetadata(output),
1733
+ });
1734
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1735
+ }
1736
+ };
1583
1737
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
1584
1738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1585
1739
  return deserializeAws_restJson1TagResourceCommandError(output, context);
@@ -2061,11 +2215,34 @@ const deserializeAws_restJson1CatalogItemListDefinition = (output, context) => {
2061
2215
  });
2062
2216
  return retVal;
2063
2217
  };
2218
+ const deserializeAws_restJson1CIDRList = (output, context) => {
2219
+ const retVal = (output || [])
2220
+ .filter((e) => e != null)
2221
+ .map((entry) => {
2222
+ if (entry === null) {
2223
+ return null;
2224
+ }
2225
+ return (0, smithy_client_1.expectString)(entry);
2226
+ });
2227
+ return retVal;
2228
+ };
2064
2229
  const deserializeAws_restJson1ComputeAttributes = (output, context) => {
2065
2230
  return {
2066
2231
  HostId: (0, smithy_client_1.expectString)(output.HostId),
2067
2232
  };
2068
2233
  };
2234
+ const deserializeAws_restJson1ConnectionDetails = (output, context) => {
2235
+ return {
2236
+ AllowedIps: output.AllowedIps !== undefined && output.AllowedIps !== null
2237
+ ? deserializeAws_restJson1CIDRList(output.AllowedIps, context)
2238
+ : undefined,
2239
+ ClientPublicKey: (0, smithy_client_1.expectString)(output.ClientPublicKey),
2240
+ ClientTunnelAddress: (0, smithy_client_1.expectString)(output.ClientTunnelAddress),
2241
+ ServerEndpoint: (0, smithy_client_1.expectString)(output.ServerEndpoint),
2242
+ ServerPublicKey: (0, smithy_client_1.expectString)(output.ServerPublicKey),
2243
+ ServerTunnelAddress: (0, smithy_client_1.expectString)(output.ServerTunnelAddress),
2244
+ };
2245
+ };
2069
2246
  const deserializeAws_restJson1EC2Capacity = (output, context) => {
2070
2247
  return {
2071
2248
  Family: (0, smithy_client_1.expectString)(output.Family),
@@ -6,6 +6,7 @@ import { CreateSiteCommand } from "./commands/CreateSiteCommand";
6
6
  import { DeleteOutpostCommand, } from "./commands/DeleteOutpostCommand";
7
7
  import { DeleteSiteCommand } from "./commands/DeleteSiteCommand";
8
8
  import { GetCatalogItemCommand, } from "./commands/GetCatalogItemCommand";
9
+ import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
9
10
  import { GetOrderCommand } from "./commands/GetOrderCommand";
10
11
  import { GetOutpostCommand } from "./commands/GetOutpostCommand";
11
12
  import { GetOutpostInstanceTypesCommand, } from "./commands/GetOutpostInstanceTypesCommand";
@@ -17,6 +18,7 @@ import { ListOrdersCommand } from "./commands/ListOrdersCommand";
17
18
  import { ListOutpostsCommand, } from "./commands/ListOutpostsCommand";
18
19
  import { ListSitesCommand } from "./commands/ListSitesCommand";
19
20
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
21
+ import { StartConnectionCommand, } from "./commands/StartConnectionCommand";
20
22
  import { TagResourceCommand } from "./commands/TagResourceCommand";
21
23
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
24
  import { UpdateOutpostCommand, } from "./commands/UpdateOutpostCommand";
@@ -127,6 +129,20 @@ var Outposts = (function (_super) {
127
129
  return this.send(command, optionsOrCb);
128
130
  }
129
131
  };
132
+ Outposts.prototype.getConnection = function (args, optionsOrCb, cb) {
133
+ var command = new GetConnectionCommand(args);
134
+ if (typeof optionsOrCb === "function") {
135
+ this.send(command, optionsOrCb);
136
+ }
137
+ else if (typeof cb === "function") {
138
+ if (typeof optionsOrCb !== "object")
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
+ this.send(command, optionsOrCb || {}, cb);
141
+ }
142
+ else {
143
+ return this.send(command, optionsOrCb);
144
+ }
145
+ };
130
146
  Outposts.prototype.getOrder = function (args, optionsOrCb, cb) {
131
147
  var command = new GetOrderCommand(args);
132
148
  if (typeof optionsOrCb === "function") {
@@ -281,6 +297,20 @@ var Outposts = (function (_super) {
281
297
  return this.send(command, optionsOrCb);
282
298
  }
283
299
  };
300
+ Outposts.prototype.startConnection = function (args, optionsOrCb, cb) {
301
+ var command = new StartConnectionCommand(args);
302
+ if (typeof optionsOrCb === "function") {
303
+ this.send(command, optionsOrCb);
304
+ }
305
+ else if (typeof cb === "function") {
306
+ if (typeof optionsOrCb !== "object")
307
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
308
+ this.send(command, optionsOrCb || {}, cb);
309
+ }
310
+ else {
311
+ return this.send(command, optionsOrCb);
312
+ }
313
+ };
284
314
  Outposts.prototype.tagResource = function (args, optionsOrCb, cb) {
285
315
  var command = new TagResourceCommand(args);
286
316
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetConnectionCommand, serializeAws_restJson1GetConnectionCommand, } from "../protocols/Aws_restJson1";
6
+ var GetConnectionCommand = (function (_super) {
7
+ __extends(GetConnectionCommand, _super);
8
+ function GetConnectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OutpostsClient";
18
+ var commandName = "GetConnectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetConnectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetConnectionResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetConnectionCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetConnectionCommand(input, context);
33
+ };
34
+ GetConnectionCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetConnectionCommand(output, context);
36
+ };
37
+ return GetConnectionCommand;
38
+ }($Command));
39
+ export { GetConnectionCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartConnectionRequest, StartConnectionResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartConnectionCommand, serializeAws_restJson1StartConnectionCommand, } from "../protocols/Aws_restJson1";
6
+ var StartConnectionCommand = (function (_super) {
7
+ __extends(StartConnectionCommand, _super);
8
+ function StartConnectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ StartConnectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "OutpostsClient";
18
+ var commandName = "StartConnectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: StartConnectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: StartConnectionResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartConnectionCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1StartConnectionCommand(input, context);
33
+ };
34
+ StartConnectionCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1StartConnectionCommand(output, context);
36
+ };
37
+ return StartConnectionCommand;
38
+ }($Command));
39
+ export { StartConnectionCommand };
@@ -5,6 +5,7 @@ export * from "./CreateSiteCommand";
5
5
  export * from "./DeleteOutpostCommand";
6
6
  export * from "./DeleteSiteCommand";
7
7
  export * from "./GetCatalogItemCommand";
8
+ export * from "./GetConnectionCommand";
8
9
  export * from "./GetOrderCommand";
9
10
  export * from "./GetOutpostCommand";
10
11
  export * from "./GetOutpostInstanceTypesCommand";
@@ -16,6 +17,7 @@ export * from "./ListOrdersCommand";
16
17
  export * from "./ListOutpostsCommand";
17
18
  export * from "./ListSitesCommand";
18
19
  export * from "./ListTagsForResourceCommand";
20
+ export * from "./StartConnectionCommand";
19
21
  export * from "./TagResourceCommand";
20
22
  export * from "./UntagResourceCommand";
21
23
  export * from "./UpdateOutpostCommand";