@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.
@@ -124,6 +124,10 @@ export var CatalogItemClass;
124
124
  CatalogItemClass["RACK"] = "RACK";
125
125
  CatalogItemClass["SERVER"] = "SERVER";
126
126
  })(CatalogItemClass || (CatalogItemClass = {}));
127
+ export var ConnectionDetails;
128
+ (function (ConnectionDetails) {
129
+ ConnectionDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
+ })(ConnectionDetails || (ConnectionDetails = {}));
127
131
  export var LineItemRequest;
128
132
  (function (LineItemRequest) {
129
133
  LineItemRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -320,6 +324,14 @@ export var GetCatalogItemOutput;
320
324
  (function (GetCatalogItemOutput) {
321
325
  GetCatalogItemOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
326
  })(GetCatalogItemOutput || (GetCatalogItemOutput = {}));
327
+ export var GetConnectionRequest;
328
+ (function (GetConnectionRequest) {
329
+ GetConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
+ })(GetConnectionRequest || (GetConnectionRequest = {}));
331
+ export var GetConnectionResponse;
332
+ (function (GetConnectionResponse) {
333
+ GetConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
+ })(GetConnectionResponse || (GetConnectionResponse = {}));
323
335
  export var GetOrderInput;
324
336
  (function (GetOrderInput) {
325
337
  GetOrderInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -421,6 +433,14 @@ export var ListTagsForResourceResponse;
421
433
  (function (ListTagsForResourceResponse) {
422
434
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
423
435
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
436
+ export var StartConnectionRequest;
437
+ (function (StartConnectionRequest) {
438
+ StartConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
439
+ })(StartConnectionRequest || (StartConnectionRequest = {}));
440
+ export var StartConnectionResponse;
441
+ (function (StartConnectionResponse) {
442
+ StartConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
443
+ })(StartConnectionResponse || (StartConnectionResponse = {}));
424
444
  export var TagResourceRequest;
425
445
  (function (TagResourceRequest) {
426
446
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -215,6 +215,37 @@ export var serializeAws_restJson1GetCatalogItemCommand = function (input, contex
215
215
  }
216
216
  });
217
217
  }); };
218
+ export var serializeAws_restJson1GetConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
219
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
220
+ return __generator(this, function (_c) {
221
+ switch (_c.label) {
222
+ case 0: return [4, context.endpoint()];
223
+ case 1:
224
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
225
+ headers = {};
226
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connections/{ConnectionId}";
227
+ if (input.ConnectionId !== undefined) {
228
+ labelValue = input.ConnectionId;
229
+ if (labelValue.length <= 0) {
230
+ throw new Error("Empty value provided for input HTTP label: ConnectionId.");
231
+ }
232
+ resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
233
+ }
234
+ else {
235
+ throw new Error("No value provided for input HTTP label: ConnectionId.");
236
+ }
237
+ return [2, new __HttpRequest({
238
+ protocol: protocol,
239
+ hostname: hostname,
240
+ port: port,
241
+ method: "GET",
242
+ headers: headers,
243
+ path: resolvedPath,
244
+ body: body,
245
+ })];
246
+ }
247
+ });
248
+ }); };
218
249
  export var serializeAws_restJson1GetOrderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
219
250
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
220
251
  return __generator(this, function (_c) {
@@ -550,6 +581,33 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
550
581
  }
551
582
  });
552
583
  }); };
584
+ export var serializeAws_restJson1StartConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
585
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
586
+ return __generator(this, function (_c) {
587
+ switch (_c.label) {
588
+ case 0: return [4, context.endpoint()];
589
+ case 1:
590
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
591
+ headers = {
592
+ "content-type": "application/json",
593
+ };
594
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connections";
595
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId })), (input.ClientPublicKey !== undefined &&
596
+ input.ClientPublicKey !== null && { ClientPublicKey: input.ClientPublicKey })), (input.DeviceSerialNumber !== undefined &&
597
+ input.DeviceSerialNumber !== null && { DeviceSerialNumber: input.DeviceSerialNumber })), (input.NetworkInterfaceDeviceIndex !== undefined &&
598
+ input.NetworkInterfaceDeviceIndex !== null && { NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex })));
599
+ return [2, new __HttpRequest({
600
+ protocol: protocol,
601
+ hostname: hostname,
602
+ port: port,
603
+ method: "POST",
604
+ headers: headers,
605
+ path: resolvedPath,
606
+ body: body,
607
+ })];
608
+ }
609
+ });
610
+ }); };
553
611
  export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
554
612
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
555
613
  return __generator(this, function (_c) {
@@ -1245,6 +1303,78 @@ var deserializeAws_restJson1GetCatalogItemCommandError = function (output, conte
1245
1303
  }
1246
1304
  });
1247
1305
  }); };
1306
+ export var deserializeAws_restJson1GetConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1307
+ var contents, data, _a, _b;
1308
+ return __generator(this, function (_c) {
1309
+ switch (_c.label) {
1310
+ case 0:
1311
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
+ return [2, deserializeAws_restJson1GetConnectionCommandError(output, context)];
1313
+ }
1314
+ contents = {
1315
+ $metadata: deserializeMetadata(output),
1316
+ ConnectionDetails: undefined,
1317
+ ConnectionId: undefined,
1318
+ };
1319
+ _a = __expectNonNull;
1320
+ _b = __expectObject;
1321
+ return [4, parseBody(output.body, context)];
1322
+ case 1:
1323
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1324
+ if (data.ConnectionDetails !== undefined && data.ConnectionDetails !== null) {
1325
+ contents.ConnectionDetails = deserializeAws_restJson1ConnectionDetails(data.ConnectionDetails, context);
1326
+ }
1327
+ if (data.ConnectionId !== undefined && data.ConnectionId !== null) {
1328
+ contents.ConnectionId = __expectString(data.ConnectionId);
1329
+ }
1330
+ return [2, Promise.resolve(contents)];
1331
+ }
1332
+ });
1333
+ }); };
1334
+ var deserializeAws_restJson1GetConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1335
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
1336
+ var _c;
1337
+ return __generator(this, function (_d) {
1338
+ switch (_d.label) {
1339
+ case 0:
1340
+ _a = [__assign({}, output)];
1341
+ _c = {};
1342
+ return [4, parseBody(output.body, context)];
1343
+ case 1:
1344
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1345
+ errorCode = "UnknownError";
1346
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1347
+ _b = errorCode;
1348
+ switch (_b) {
1349
+ case "AccessDeniedException": return [3, 2];
1350
+ case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
1351
+ case "InternalServerException": return [3, 4];
1352
+ case "com.amazonaws.outposts#InternalServerException": return [3, 4];
1353
+ case "NotFoundException": return [3, 6];
1354
+ case "com.amazonaws.outposts#NotFoundException": return [3, 6];
1355
+ case "ValidationException": return [3, 8];
1356
+ case "com.amazonaws.outposts#ValidationException": return [3, 8];
1357
+ }
1358
+ return [3, 10];
1359
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1360
+ case 3: throw _d.sent();
1361
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1362
+ case 5: throw _d.sent();
1363
+ case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
1364
+ case 7: throw _d.sent();
1365
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1366
+ case 9: throw _d.sent();
1367
+ case 10:
1368
+ parsedBody = parsedOutput.body;
1369
+ response = new __BaseException({
1370
+ name: parsedBody.code || parsedBody.Code || errorCode,
1371
+ $fault: "client",
1372
+ $metadata: deserializeMetadata(output),
1373
+ });
1374
+ throw __decorateServiceException(response, parsedBody);
1375
+ }
1376
+ });
1377
+ }); };
1248
1378
  export var deserializeAws_restJson1GetOrderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1249
1379
  var contents, data, _a, _b;
1250
1380
  return __generator(this, function (_c) {
@@ -2013,6 +2143,78 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2013
2143
  }
2014
2144
  });
2015
2145
  }); };
2146
+ export var deserializeAws_restJson1StartConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2147
+ var contents, data, _a, _b;
2148
+ return __generator(this, function (_c) {
2149
+ switch (_c.label) {
2150
+ case 0:
2151
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2152
+ return [2, deserializeAws_restJson1StartConnectionCommandError(output, context)];
2153
+ }
2154
+ contents = {
2155
+ $metadata: deserializeMetadata(output),
2156
+ ConnectionId: undefined,
2157
+ UnderlayIpAddress: undefined,
2158
+ };
2159
+ _a = __expectNonNull;
2160
+ _b = __expectObject;
2161
+ return [4, parseBody(output.body, context)];
2162
+ case 1:
2163
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2164
+ if (data.ConnectionId !== undefined && data.ConnectionId !== null) {
2165
+ contents.ConnectionId = __expectString(data.ConnectionId);
2166
+ }
2167
+ if (data.UnderlayIpAddress !== undefined && data.UnderlayIpAddress !== null) {
2168
+ contents.UnderlayIpAddress = __expectString(data.UnderlayIpAddress);
2169
+ }
2170
+ return [2, Promise.resolve(contents)];
2171
+ }
2172
+ });
2173
+ }); };
2174
+ var deserializeAws_restJson1StartConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2175
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
2176
+ var _c;
2177
+ return __generator(this, function (_d) {
2178
+ switch (_d.label) {
2179
+ case 0:
2180
+ _a = [__assign({}, output)];
2181
+ _c = {};
2182
+ return [4, parseBody(output.body, context)];
2183
+ case 1:
2184
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2185
+ errorCode = "UnknownError";
2186
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2187
+ _b = errorCode;
2188
+ switch (_b) {
2189
+ case "AccessDeniedException": return [3, 2];
2190
+ case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
2191
+ case "InternalServerException": return [3, 4];
2192
+ case "com.amazonaws.outposts#InternalServerException": return [3, 4];
2193
+ case "NotFoundException": return [3, 6];
2194
+ case "com.amazonaws.outposts#NotFoundException": return [3, 6];
2195
+ case "ValidationException": return [3, 8];
2196
+ case "com.amazonaws.outposts#ValidationException": return [3, 8];
2197
+ }
2198
+ return [3, 10];
2199
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2200
+ case 3: throw _d.sent();
2201
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2202
+ case 5: throw _d.sent();
2203
+ case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
2204
+ case 7: throw _d.sent();
2205
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2206
+ case 9: throw _d.sent();
2207
+ case 10:
2208
+ parsedBody = parsedOutput.body;
2209
+ response = new __BaseException({
2210
+ name: parsedBody.code || parsedBody.Code || errorCode,
2211
+ $fault: "client",
2212
+ $metadata: deserializeMetadata(output),
2213
+ });
2214
+ throw __decorateServiceException(response, parsedBody);
2215
+ }
2216
+ });
2217
+ }); };
2016
2218
  export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2017
2219
  var contents;
2018
2220
  return __generator(this, function (_a) {
@@ -2598,11 +2800,34 @@ var deserializeAws_restJson1CatalogItemListDefinition = function (output, contex
2598
2800
  });
2599
2801
  return retVal;
2600
2802
  };
2803
+ var deserializeAws_restJson1CIDRList = function (output, context) {
2804
+ var retVal = (output || [])
2805
+ .filter(function (e) { return e != null; })
2806
+ .map(function (entry) {
2807
+ if (entry === null) {
2808
+ return null;
2809
+ }
2810
+ return __expectString(entry);
2811
+ });
2812
+ return retVal;
2813
+ };
2601
2814
  var deserializeAws_restJson1ComputeAttributes = function (output, context) {
2602
2815
  return {
2603
2816
  HostId: __expectString(output.HostId),
2604
2817
  };
2605
2818
  };
2819
+ var deserializeAws_restJson1ConnectionDetails = function (output, context) {
2820
+ return {
2821
+ AllowedIps: output.AllowedIps !== undefined && output.AllowedIps !== null
2822
+ ? deserializeAws_restJson1CIDRList(output.AllowedIps, context)
2823
+ : undefined,
2824
+ ClientPublicKey: __expectString(output.ClientPublicKey),
2825
+ ClientTunnelAddress: __expectString(output.ClientTunnelAddress),
2826
+ ServerEndpoint: __expectString(output.ServerEndpoint),
2827
+ ServerPublicKey: __expectString(output.ServerPublicKey),
2828
+ ServerTunnelAddress: __expectString(output.ServerTunnelAddress),
2829
+ };
2830
+ };
2606
2831
  var deserializeAws_restJson1EC2Capacity = function (output, context) {
2607
2832
  return {
2608
2833
  Family: __expectString(output.Family),
@@ -6,6 +6,7 @@ import { CreateSiteCommandInput, CreateSiteCommandOutput } from "./commands/Crea
6
6
  import { DeleteOutpostCommandInput, DeleteOutpostCommandOutput } from "./commands/DeleteOutpostCommand";
7
7
  import { DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
8
8
  import { GetCatalogItemCommandInput, GetCatalogItemCommandOutput } from "./commands/GetCatalogItemCommand";
9
+ import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
9
10
  import { GetOrderCommandInput, GetOrderCommandOutput } from "./commands/GetOrderCommand";
10
11
  import { GetOutpostCommandInput, GetOutpostCommandOutput } from "./commands/GetOutpostCommand";
11
12
  import { GetOutpostInstanceTypesCommandInput, GetOutpostInstanceTypesCommandOutput } from "./commands/GetOutpostInstanceTypesCommand";
@@ -17,6 +18,7 @@ import { ListOrdersCommandInput, ListOrdersCommandOutput } from "./commands/List
17
18
  import { ListOutpostsCommandInput, ListOutpostsCommandOutput } from "./commands/ListOutpostsCommand";
18
19
  import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSitesCommand";
19
20
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
+ import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
20
22
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
23
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
24
  import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
@@ -79,6 +81,24 @@ export declare class Outposts extends OutpostsClient {
79
81
  getCatalogItem(args: GetCatalogItemCommandInput, options?: __HttpHandlerOptions): Promise<GetCatalogItemCommandOutput>;
80
82
  getCatalogItem(args: GetCatalogItemCommandInput, cb: (err: any, data?: GetCatalogItemCommandOutput) => void): void;
81
83
  getCatalogItem(args: GetCatalogItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCatalogItemCommandOutput) => void): void;
84
+ /**
85
+ * <note>
86
+ * <p>
87
+ * Amazon Web Services uses this action to install Outpost servers.</p>
88
+ * </note>
89
+ * <p>
90
+ * Gets information about a specified connection.
91
+ * </p>
92
+ * <p>
93
+ * Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
94
+ * more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
95
+ * Amazon Web Services managed policies for Amazon Web Services Outposts</a> and <a href="https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html">
96
+ * Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Outposts User Guide</i>.
97
+ * </p>
98
+ */
99
+ getConnection(args: GetConnectionCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectionCommandOutput>;
100
+ getConnection(args: GetConnectionCommandInput, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
101
+ getConnection(args: GetConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionCommandOutput) => void): void;
82
102
  /**
83
103
  * <p>Gets an order.</p>
84
104
  */
@@ -168,6 +188,24 @@ export declare class Outposts extends OutpostsClient {
168
188
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
169
189
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
170
190
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
191
+ /**
192
+ * <note>
193
+ * <p>
194
+ * Amazon Web Services uses this action to install Outpost servers.</p>
195
+ * </note>
196
+ * <p>
197
+ * Starts the connection required for Outpost server installation.
198
+ * </p>
199
+ * <p>
200
+ * Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
201
+ * more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
202
+ * Amazon Web Services managed policies for Amazon Web Services Outposts</a> and <a href="https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html">
203
+ * Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Outposts User Guide</i>.
204
+ * </p>
205
+ */
206
+ startConnection(args: StartConnectionCommandInput, options?: __HttpHandlerOptions): Promise<StartConnectionCommandOutput>;
207
+ startConnection(args: StartConnectionCommandInput, cb: (err: any, data?: StartConnectionCommandOutput) => void): void;
208
+ startConnection(args: StartConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConnectionCommandOutput) => void): void;
171
209
  /**
172
210
  * <p>Adds tags to the specified resource.</p>
173
211
  */
@@ -13,6 +13,7 @@ import { CreateSiteCommandInput, CreateSiteCommandOutput } from "./commands/Crea
13
13
  import { DeleteOutpostCommandInput, DeleteOutpostCommandOutput } from "./commands/DeleteOutpostCommand";
14
14
  import { DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
15
15
  import { GetCatalogItemCommandInput, GetCatalogItemCommandOutput } from "./commands/GetCatalogItemCommand";
16
+ import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
16
17
  import { GetOrderCommandInput, GetOrderCommandOutput } from "./commands/GetOrderCommand";
17
18
  import { GetOutpostCommandInput, GetOutpostCommandOutput } from "./commands/GetOutpostCommand";
18
19
  import { GetOutpostInstanceTypesCommandInput, GetOutpostInstanceTypesCommandOutput } from "./commands/GetOutpostInstanceTypesCommand";
@@ -24,14 +25,15 @@ import { ListOrdersCommandInput, ListOrdersCommandOutput } from "./commands/List
24
25
  import { ListOutpostsCommandInput, ListOutpostsCommandOutput } from "./commands/ListOutpostsCommand";
25
26
  import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSitesCommand";
26
27
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
28
+ import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
27
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
31
  import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
30
32
  import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
31
33
  import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
32
34
  import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
33
- export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListAssetsCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
34
- export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListAssetsCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
35
+ export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetConnectionCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListAssetsCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | StartConnectionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
36
+ export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetConnectionCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListAssetsCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | StartConnectionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
35
37
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
36
38
  /**
37
39
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GetConnectionRequest, GetConnectionResponse } from "../models/models_0";
4
+ import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
5
+ export interface GetConnectionCommandInput extends GetConnectionRequest {
6
+ }
7
+ export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <note>
11
+ * <p>
12
+ * Amazon Web Services uses this action to install Outpost servers.</p>
13
+ * </note>
14
+ * <p>
15
+ * Gets information about a specified connection.
16
+ * </p>
17
+ * <p>
18
+ * Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
19
+ * more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
20
+ * Amazon Web Services managed policies for Amazon Web Services Outposts</a> and <a href="https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html">
21
+ * Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Outposts User Guide</i>.
22
+ * </p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { OutpostsClient, GetConnectionCommand } from "@aws-sdk/client-outposts"; // ES Modules import
27
+ * // const { OutpostsClient, GetConnectionCommand } = require("@aws-sdk/client-outposts"); // CommonJS import
28
+ * const client = new OutpostsClient(config);
29
+ * const command = new GetConnectionCommand(input);
30
+ * const response = await client.send(command);
31
+ * ```
32
+ *
33
+ * @see {@link GetConnectionCommandInput} for command's `input` shape.
34
+ * @see {@link GetConnectionCommandOutput} for command's `response` shape.
35
+ * @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape.
36
+ *
37
+ */
38
+ export declare class GetConnectionCommand extends $Command<GetConnectionCommandInput, GetConnectionCommandOutput, OutpostsClientResolvedConfig> {
39
+ readonly input: GetConnectionCommandInput;
40
+ constructor(input: GetConnectionCommandInput);
41
+ /**
42
+ * @internal
43
+ */
44
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetConnectionCommandInput, GetConnectionCommandOutput>;
45
+ private serialize;
46
+ private deserialize;
47
+ }
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { StartConnectionRequest, StartConnectionResponse } from "../models/models_0";
4
+ import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
5
+ export interface StartConnectionCommandInput extends StartConnectionRequest {
6
+ }
7
+ export interface StartConnectionCommandOutput extends StartConnectionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <note>
11
+ * <p>
12
+ * Amazon Web Services uses this action to install Outpost servers.</p>
13
+ * </note>
14
+ * <p>
15
+ * Starts the connection required for Outpost server installation.
16
+ * </p>
17
+ * <p>
18
+ * Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
19
+ * more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
20
+ * Amazon Web Services managed policies for Amazon Web Services Outposts</a> and <a href="https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html">
21
+ * Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Outposts User Guide</i>.
22
+ * </p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { OutpostsClient, StartConnectionCommand } from "@aws-sdk/client-outposts"; // ES Modules import
27
+ * // const { OutpostsClient, StartConnectionCommand } = require("@aws-sdk/client-outposts"); // CommonJS import
28
+ * const client = new OutpostsClient(config);
29
+ * const command = new StartConnectionCommand(input);
30
+ * const response = await client.send(command);
31
+ * ```
32
+ *
33
+ * @see {@link StartConnectionCommandInput} for command's `input` shape.
34
+ * @see {@link StartConnectionCommandOutput} for command's `response` shape.
35
+ * @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape.
36
+ *
37
+ */
38
+ export declare class StartConnectionCommand extends $Command<StartConnectionCommandInput, StartConnectionCommandOutput, OutpostsClientResolvedConfig> {
39
+ readonly input: StartConnectionCommandInput;
40
+ constructor(input: StartConnectionCommandInput);
41
+ /**
42
+ * @internal
43
+ */
44
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartConnectionCommandInput, StartConnectionCommandOutput>;
45
+ private serialize;
46
+ private deserialize;
47
+ }
@@ -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";