@aws-sdk/client-outposts 3.44.0 → 3.45.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 +11 -0
- package/dist-cjs/Outposts.js +15 -0
- package/dist-cjs/commands/UpdateOutpostCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +115 -1
- package/dist-es/Outposts.js +15 -0
- package/dist-es/commands/UpdateOutpostCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +129 -0
- package/dist-types/Outposts.d.ts +9 -0
- package/dist-types/OutpostsClient.d.ts +3 -2
- package/dist-types/commands/UpdateOutpostCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +79 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Outposts.d.ts +5 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateOutpostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/Outposts.js
CHANGED
|
@@ -20,6 +20,7 @@ const ListSitesCommand_1 = require("./commands/ListSitesCommand");
|
|
|
20
20
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
21
21
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
22
22
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
23
|
+
const UpdateOutpostCommand_1 = require("./commands/UpdateOutpostCommand");
|
|
23
24
|
const UpdateSiteAddressCommand_1 = require("./commands/UpdateSiteAddressCommand");
|
|
24
25
|
const UpdateSiteCommand_1 = require("./commands/UpdateSiteCommand");
|
|
25
26
|
const UpdateSiteRackPhysicalPropertiesCommand_1 = require("./commands/UpdateSiteRackPhysicalPropertiesCommand");
|
|
@@ -291,6 +292,20 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
|
291
292
|
return this.send(command, optionsOrCb);
|
|
292
293
|
}
|
|
293
294
|
}
|
|
295
|
+
updateOutpost(args, optionsOrCb, cb) {
|
|
296
|
+
const command = new UpdateOutpostCommand_1.UpdateOutpostCommand(args);
|
|
297
|
+
if (typeof optionsOrCb === "function") {
|
|
298
|
+
this.send(command, optionsOrCb);
|
|
299
|
+
}
|
|
300
|
+
else if (typeof cb === "function") {
|
|
301
|
+
if (typeof optionsOrCb !== "object")
|
|
302
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
294
309
|
updateSite(args, optionsOrCb, cb) {
|
|
295
310
|
const command = new UpdateSiteCommand_1.UpdateSiteCommand(args);
|
|
296
311
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateOutpostCommand = 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 UpdateOutpostCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(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 = "UpdateOutpostCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateOutpostInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateOutpostOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateOutpostCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateOutpostCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateOutpostCommand = UpdateOutpostCommand;
|
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./ListSitesCommand"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./UpdateOutpostCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./UpdateSiteAddressCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./UpdateSiteCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./UpdateSiteRackPhysicalPropertiesCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetOrderOutput = exports.GetOrderInput = exports.GetCatalogItemOutput = 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.AddressType = exports.Address = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.UpdateSiteRackPhysicalPropertiesOutput = exports.UpdateSiteRackPhysicalPropertiesInput = exports.UpdateSiteAddressOutput = exports.UpdateSiteAddressInput = exports.UpdateSiteOutput = exports.UpdateSiteInput = 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.GetSiteAddressOutput = exports.GetSiteAddressInput = exports.GetSiteOutput = exports.GetSiteInput = exports.GetOutpostInstanceTypesOutput = exports.InstanceTypeItem = exports.GetOutpostInstanceTypesInput = exports.GetOutpostOutput = exports.GetOutpostInput = 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.GetSiteAddressOutput = exports.GetSiteAddressInput = exports.GetSiteOutput = exports.GetSiteInput = exports.GetOutpostInstanceTypesOutput = exports.InstanceTypeItem = exports.GetOutpostInstanceTypesInput = exports.GetOutpostOutput = exports.GetOutpostInput = void 0;
|
|
5
5
|
var AccessDeniedException;
|
|
6
6
|
(function (AccessDeniedException) {
|
|
7
7
|
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
@@ -473,6 +473,18 @@ var UntagResourceResponse;
|
|
|
473
473
|
...obj,
|
|
474
474
|
});
|
|
475
475
|
})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
|
|
476
|
+
var UpdateOutpostInput;
|
|
477
|
+
(function (UpdateOutpostInput) {
|
|
478
|
+
UpdateOutpostInput.filterSensitiveLog = (obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
});
|
|
481
|
+
})(UpdateOutpostInput = exports.UpdateOutpostInput || (exports.UpdateOutpostInput = {}));
|
|
482
|
+
var UpdateOutpostOutput;
|
|
483
|
+
(function (UpdateOutpostOutput) {
|
|
484
|
+
UpdateOutpostOutput.filterSensitiveLog = (obj) => ({
|
|
485
|
+
...obj,
|
|
486
|
+
});
|
|
487
|
+
})(UpdateOutpostOutput = exports.UpdateOutpostOutput || (exports.UpdateOutpostOutput = {}));
|
|
476
488
|
var UpdateSiteInput;
|
|
477
489
|
(function (UpdateSiteInput) {
|
|
478
490
|
UpdateSiteInput.filterSensitiveLog = (obj) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.deserializeAws_restJson1UpdateSiteAddressCommand = exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSitesCommand = exports.deserializeAws_restJson1ListOutpostsCommand = exports.deserializeAws_restJson1ListOrdersCommand = exports.deserializeAws_restJson1ListCatalogItemsCommand = 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_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSitesCommand = exports.serializeAws_restJson1ListOutpostsCommand = exports.serializeAws_restJson1ListOrdersCommand = exports.serializeAws_restJson1ListCatalogItemsCommand = 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_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_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_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;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const serializeAws_restJson1CancelOrderCommand = async (input, context) => {
|
|
@@ -530,6 +530,40 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
530
530
|
});
|
|
531
531
|
};
|
|
532
532
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
533
|
+
const serializeAws_restJson1UpdateOutpostCommand = async (input, context) => {
|
|
534
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
|
+
const headers = {
|
|
536
|
+
"content-type": "application/json",
|
|
537
|
+
};
|
|
538
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
|
|
539
|
+
if (input.OutpostId !== undefined) {
|
|
540
|
+
const labelValue = input.OutpostId;
|
|
541
|
+
if (labelValue.length <= 0) {
|
|
542
|
+
throw new Error("Empty value provided for input HTTP label: OutpostId.");
|
|
543
|
+
}
|
|
544
|
+
resolvedPath = resolvedPath.replace("{OutpostId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
548
|
+
}
|
|
549
|
+
let body;
|
|
550
|
+
body = JSON.stringify({
|
|
551
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
552
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
553
|
+
...(input.SupportedHardwareType !== undefined &&
|
|
554
|
+
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
555
|
+
});
|
|
556
|
+
return new protocol_http_1.HttpRequest({
|
|
557
|
+
protocol,
|
|
558
|
+
hostname,
|
|
559
|
+
port,
|
|
560
|
+
method: "PATCH",
|
|
561
|
+
headers,
|
|
562
|
+
path: resolvedPath,
|
|
563
|
+
body,
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
exports.serializeAws_restJson1UpdateOutpostCommand = serializeAws_restJson1UpdateOutpostCommand;
|
|
533
567
|
const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
534
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
569
|
const headers = {
|
|
@@ -2023,6 +2057,86 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2023
2057
|
delete response.Message;
|
|
2024
2058
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2025
2059
|
};
|
|
2060
|
+
const deserializeAws_restJson1UpdateOutpostCommand = async (output, context) => {
|
|
2061
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2062
|
+
return deserializeAws_restJson1UpdateOutpostCommandError(output, context);
|
|
2063
|
+
}
|
|
2064
|
+
const contents = {
|
|
2065
|
+
$metadata: deserializeMetadata(output),
|
|
2066
|
+
Outpost: undefined,
|
|
2067
|
+
};
|
|
2068
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2069
|
+
if (data.Outpost !== undefined && data.Outpost !== null) {
|
|
2070
|
+
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
2071
|
+
}
|
|
2072
|
+
return Promise.resolve(contents);
|
|
2073
|
+
};
|
|
2074
|
+
exports.deserializeAws_restJson1UpdateOutpostCommand = deserializeAws_restJson1UpdateOutpostCommand;
|
|
2075
|
+
const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context) => {
|
|
2076
|
+
const parsedOutput = {
|
|
2077
|
+
...output,
|
|
2078
|
+
body: await parseBody(output.body, context),
|
|
2079
|
+
};
|
|
2080
|
+
let response;
|
|
2081
|
+
let errorCode = "UnknownError";
|
|
2082
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
switch (errorCode) {
|
|
2084
|
+
case "AccessDeniedException":
|
|
2085
|
+
case "com.amazonaws.outposts#AccessDeniedException":
|
|
2086
|
+
response = {
|
|
2087
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2088
|
+
name: errorCode,
|
|
2089
|
+
$metadata: deserializeMetadata(output),
|
|
2090
|
+
};
|
|
2091
|
+
break;
|
|
2092
|
+
case "ConflictException":
|
|
2093
|
+
case "com.amazonaws.outposts#ConflictException":
|
|
2094
|
+
response = {
|
|
2095
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2096
|
+
name: errorCode,
|
|
2097
|
+
$metadata: deserializeMetadata(output),
|
|
2098
|
+
};
|
|
2099
|
+
break;
|
|
2100
|
+
case "InternalServerException":
|
|
2101
|
+
case "com.amazonaws.outposts#InternalServerException":
|
|
2102
|
+
response = {
|
|
2103
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2104
|
+
name: errorCode,
|
|
2105
|
+
$metadata: deserializeMetadata(output),
|
|
2106
|
+
};
|
|
2107
|
+
break;
|
|
2108
|
+
case "NotFoundException":
|
|
2109
|
+
case "com.amazonaws.outposts#NotFoundException":
|
|
2110
|
+
response = {
|
|
2111
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2112
|
+
name: errorCode,
|
|
2113
|
+
$metadata: deserializeMetadata(output),
|
|
2114
|
+
};
|
|
2115
|
+
break;
|
|
2116
|
+
case "ValidationException":
|
|
2117
|
+
case "com.amazonaws.outposts#ValidationException":
|
|
2118
|
+
response = {
|
|
2119
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2120
|
+
name: errorCode,
|
|
2121
|
+
$metadata: deserializeMetadata(output),
|
|
2122
|
+
};
|
|
2123
|
+
break;
|
|
2124
|
+
default:
|
|
2125
|
+
const parsedBody = parsedOutput.body;
|
|
2126
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2127
|
+
response = {
|
|
2128
|
+
...parsedBody,
|
|
2129
|
+
name: `${errorCode}`,
|
|
2130
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2131
|
+
$fault: "client",
|
|
2132
|
+
$metadata: deserializeMetadata(output),
|
|
2133
|
+
};
|
|
2134
|
+
}
|
|
2135
|
+
const message = response.message || response.Message || errorCode;
|
|
2136
|
+
response.message = message;
|
|
2137
|
+
delete response.Message;
|
|
2138
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2139
|
+
};
|
|
2026
2140
|
const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
|
|
2027
2141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2028
2142
|
return deserializeAws_restJson1UpdateSiteCommandError(output, context);
|
package/dist-es/Outposts.js
CHANGED
|
@@ -18,6 +18,7 @@ import { ListSitesCommand } from "./commands/ListSitesCommand";
|
|
|
18
18
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
19
19
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
20
20
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateOutpostCommand, } from "./commands/UpdateOutpostCommand";
|
|
21
22
|
import { UpdateSiteAddressCommand, } from "./commands/UpdateSiteAddressCommand";
|
|
22
23
|
import { UpdateSiteCommand } from "./commands/UpdateSiteCommand";
|
|
23
24
|
import { UpdateSiteRackPhysicalPropertiesCommand, } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -293,6 +294,20 @@ var Outposts = (function (_super) {
|
|
|
293
294
|
return this.send(command, optionsOrCb);
|
|
294
295
|
}
|
|
295
296
|
};
|
|
297
|
+
Outposts.prototype.updateOutpost = function (args, optionsOrCb, cb) {
|
|
298
|
+
var command = new UpdateOutpostCommand(args);
|
|
299
|
+
if (typeof optionsOrCb === "function") {
|
|
300
|
+
this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
else if (typeof cb === "function") {
|
|
303
|
+
if (typeof optionsOrCb !== "object")
|
|
304
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
305
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
return this.send(command, optionsOrCb);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
296
311
|
Outposts.prototype.updateSite = function (args, optionsOrCb, cb) {
|
|
297
312
|
var command = new UpdateSiteCommand(args);
|
|
298
313
|
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 { UpdateOutpostInput, UpdateOutpostOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateOutpostCommand, serializeAws_restJson1UpdateOutpostCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateOutpostCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateOutpostCommand, _super);
|
|
8
|
+
function UpdateOutpostCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateOutpostCommand.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 = "UpdateOutpostCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateOutpostInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateOutpostOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateOutpostCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateOutpostCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateOutpostCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateOutpostCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateOutpostCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateOutpostCommand };
|
|
@@ -17,6 +17,7 @@ export * from "./ListSitesCommand";
|
|
|
17
17
|
export * from "./ListTagsForResourceCommand";
|
|
18
18
|
export * from "./TagResourceCommand";
|
|
19
19
|
export * from "./UntagResourceCommand";
|
|
20
|
+
export * from "./UpdateOutpostCommand";
|
|
20
21
|
export * from "./UpdateSiteAddressCommand";
|
|
21
22
|
export * from "./UpdateSiteCommand";
|
|
22
23
|
export * from "./UpdateSiteRackPhysicalPropertiesCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -360,6 +360,14 @@ export var UntagResourceResponse;
|
|
|
360
360
|
(function (UntagResourceResponse) {
|
|
361
361
|
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
362
362
|
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
363
|
+
export var UpdateOutpostInput;
|
|
364
|
+
(function (UpdateOutpostInput) {
|
|
365
|
+
UpdateOutpostInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
366
|
+
})(UpdateOutpostInput || (UpdateOutpostInput = {}));
|
|
367
|
+
export var UpdateOutpostOutput;
|
|
368
|
+
(function (UpdateOutpostOutput) {
|
|
369
|
+
UpdateOutpostOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
370
|
+
})(UpdateOutpostOutput || (UpdateOutpostOutput = {}));
|
|
363
371
|
export var UpdateSiteInput;
|
|
364
372
|
(function (UpdateSiteInput) {
|
|
365
373
|
UpdateSiteInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -574,6 +574,41 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
}); };
|
|
577
|
+
export var serializeAws_restJson1UpdateOutpostCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
578
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
579
|
+
return __generator(this, function (_c) {
|
|
580
|
+
switch (_c.label) {
|
|
581
|
+
case 0: return [4, context.endpoint()];
|
|
582
|
+
case 1:
|
|
583
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
584
|
+
headers = {
|
|
585
|
+
"content-type": "application/json",
|
|
586
|
+
};
|
|
587
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}";
|
|
588
|
+
if (input.OutpostId !== undefined) {
|
|
589
|
+
labelValue = input.OutpostId;
|
|
590
|
+
if (labelValue.length <= 0) {
|
|
591
|
+
throw new Error("Empty value provided for input HTTP label: OutpostId.");
|
|
592
|
+
}
|
|
593
|
+
resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
597
|
+
}
|
|
598
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SupportedHardwareType !== undefined &&
|
|
599
|
+
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType })));
|
|
600
|
+
return [2, new __HttpRequest({
|
|
601
|
+
protocol: protocol,
|
|
602
|
+
hostname: hostname,
|
|
603
|
+
port: port,
|
|
604
|
+
method: "PATCH",
|
|
605
|
+
headers: headers,
|
|
606
|
+
path: resolvedPath,
|
|
607
|
+
body: body,
|
|
608
|
+
})];
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}); };
|
|
577
612
|
export var serializeAws_restJson1UpdateSiteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
578
613
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
579
614
|
return __generator(this, function (_c) {
|
|
@@ -2321,6 +2356,100 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2321
2356
|
}
|
|
2322
2357
|
});
|
|
2323
2358
|
}); };
|
|
2359
|
+
export var deserializeAws_restJson1UpdateOutpostCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2360
|
+
var contents, data, _a, _b;
|
|
2361
|
+
return __generator(this, function (_c) {
|
|
2362
|
+
switch (_c.label) {
|
|
2363
|
+
case 0:
|
|
2364
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2365
|
+
return [2, deserializeAws_restJson1UpdateOutpostCommandError(output, context)];
|
|
2366
|
+
}
|
|
2367
|
+
contents = {
|
|
2368
|
+
$metadata: deserializeMetadata(output),
|
|
2369
|
+
Outpost: undefined,
|
|
2370
|
+
};
|
|
2371
|
+
_a = __expectNonNull;
|
|
2372
|
+
_b = __expectObject;
|
|
2373
|
+
return [4, parseBody(output.body, context)];
|
|
2374
|
+
case 1:
|
|
2375
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2376
|
+
if (data.Outpost !== undefined && data.Outpost !== null) {
|
|
2377
|
+
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
2378
|
+
}
|
|
2379
|
+
return [2, Promise.resolve(contents)];
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2382
|
+
}); };
|
|
2383
|
+
var deserializeAws_restJson1UpdateOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2384
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2385
|
+
var _h;
|
|
2386
|
+
return __generator(this, function (_j) {
|
|
2387
|
+
switch (_j.label) {
|
|
2388
|
+
case 0:
|
|
2389
|
+
_a = [__assign({}, output)];
|
|
2390
|
+
_h = {};
|
|
2391
|
+
return [4, parseBody(output.body, context)];
|
|
2392
|
+
case 1:
|
|
2393
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2394
|
+
errorCode = "UnknownError";
|
|
2395
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
+
_b = errorCode;
|
|
2397
|
+
switch (_b) {
|
|
2398
|
+
case "AccessDeniedException": return [3, 2];
|
|
2399
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
2400
|
+
case "ConflictException": return [3, 4];
|
|
2401
|
+
case "com.amazonaws.outposts#ConflictException": return [3, 4];
|
|
2402
|
+
case "InternalServerException": return [3, 6];
|
|
2403
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 6];
|
|
2404
|
+
case "NotFoundException": return [3, 8];
|
|
2405
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 8];
|
|
2406
|
+
case "ValidationException": return [3, 10];
|
|
2407
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 10];
|
|
2408
|
+
}
|
|
2409
|
+
return [3, 12];
|
|
2410
|
+
case 2:
|
|
2411
|
+
_c = [{}];
|
|
2412
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2413
|
+
case 3:
|
|
2414
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2415
|
+
return [3, 13];
|
|
2416
|
+
case 4:
|
|
2417
|
+
_d = [{}];
|
|
2418
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2419
|
+
case 5:
|
|
2420
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2421
|
+
return [3, 13];
|
|
2422
|
+
case 6:
|
|
2423
|
+
_e = [{}];
|
|
2424
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2425
|
+
case 7:
|
|
2426
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2427
|
+
return [3, 13];
|
|
2428
|
+
case 8:
|
|
2429
|
+
_f = [{}];
|
|
2430
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2431
|
+
case 9:
|
|
2432
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2433
|
+
return [3, 13];
|
|
2434
|
+
case 10:
|
|
2435
|
+
_g = [{}];
|
|
2436
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2437
|
+
case 11:
|
|
2438
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2439
|
+
return [3, 13];
|
|
2440
|
+
case 12:
|
|
2441
|
+
parsedBody = parsedOutput.body;
|
|
2442
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2443
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2444
|
+
_j.label = 13;
|
|
2445
|
+
case 13:
|
|
2446
|
+
message = response.message || response.Message || errorCode;
|
|
2447
|
+
response.message = message;
|
|
2448
|
+
delete response.Message;
|
|
2449
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2450
|
+
}
|
|
2451
|
+
});
|
|
2452
|
+
}); };
|
|
2324
2453
|
export var deserializeAws_restJson1UpdateSiteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2325
2454
|
var contents, data, _a, _b;
|
|
2326
2455
|
return __generator(this, function (_c) {
|
package/dist-types/Outposts.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
|
|
|
18
18
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
19
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
20
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
|
|
21
22
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
|
|
22
23
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
|
|
23
24
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -163,6 +164,14 @@ export declare class Outposts extends OutpostsClient {
|
|
|
163
164
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
164
165
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
165
166
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
167
|
+
/**
|
|
168
|
+
* <p>
|
|
169
|
+
* Updates an Outpost.
|
|
170
|
+
* </p>
|
|
171
|
+
*/
|
|
172
|
+
updateOutpost(args: UpdateOutpostCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOutpostCommandOutput>;
|
|
173
|
+
updateOutpost(args: UpdateOutpostCommandInput, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
|
|
174
|
+
updateOutpost(args: UpdateOutpostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
|
|
166
175
|
/**
|
|
167
176
|
* <p>
|
|
168
177
|
* Updates the site.
|
|
@@ -25,11 +25,12 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
|
|
|
25
25
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
26
26
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
27
27
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
28
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
|
|
28
29
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
|
|
29
30
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
|
|
30
31
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
31
|
-
export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
|
|
32
|
-
export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
|
|
32
|
+
export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
|
|
33
|
+
export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
|
|
33
34
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
34
35
|
/**
|
|
35
36
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { UpdateOutpostInput, UpdateOutpostOutput } from "../models/models_0";
|
|
4
|
+
import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
|
|
5
|
+
export interface UpdateOutpostCommandInput extends UpdateOutpostInput {
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateOutpostCommandOutput extends UpdateOutpostOutput, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Updates an Outpost.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { OutpostsClient, UpdateOutpostCommand } from "@aws-sdk/client-outposts"; // ES Modules import
|
|
17
|
+
* // const { OutpostsClient, UpdateOutpostCommand } = require("@aws-sdk/client-outposts"); // CommonJS import
|
|
18
|
+
* const client = new OutpostsClient(config);
|
|
19
|
+
* const command = new UpdateOutpostCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link UpdateOutpostCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link UpdateOutpostCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class UpdateOutpostCommand extends $Command<UpdateOutpostCommandInput, UpdateOutpostCommandOutput, OutpostsClientResolvedConfig> {
|
|
29
|
+
readonly input: UpdateOutpostCommandInput;
|
|
30
|
+
constructor(input: UpdateOutpostCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateOutpostCommandInput, UpdateOutpostCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./ListSitesCommand";
|
|
|
17
17
|
export * from "./ListTagsForResourceCommand";
|
|
18
18
|
export * from "./TagResourceCommand";
|
|
19
19
|
export * from "./UntagResourceCommand";
|
|
20
|
+
export * from "./UpdateOutpostCommand";
|
|
20
21
|
export * from "./UpdateSiteAddressCommand";
|
|
21
22
|
export * from "./UpdateSiteCommand";
|
|
22
23
|
export * from "./UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -366,7 +366,9 @@ export declare enum OrderStatus {
|
|
|
366
366
|
*/
|
|
367
367
|
export interface Order {
|
|
368
368
|
/**
|
|
369
|
-
* <p>
|
|
369
|
+
* <p>
|
|
370
|
+
* The ID of the Outpost in the order.
|
|
371
|
+
* </p>
|
|
370
372
|
*/
|
|
371
373
|
OutpostId?: string;
|
|
372
374
|
/**
|
|
@@ -468,7 +470,9 @@ export interface CreateOutpostInput {
|
|
|
468
470
|
*/
|
|
469
471
|
Description?: string;
|
|
470
472
|
/**
|
|
471
|
-
* <p>
|
|
473
|
+
* <p>
|
|
474
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
475
|
+
* </p>
|
|
472
476
|
*/
|
|
473
477
|
SiteId: string | undefined;
|
|
474
478
|
/**
|
|
@@ -503,7 +507,9 @@ export declare namespace CreateOutpostInput {
|
|
|
503
507
|
*/
|
|
504
508
|
export interface Outpost {
|
|
505
509
|
/**
|
|
506
|
-
* <p>
|
|
510
|
+
* <p>
|
|
511
|
+
* The ID of the Outpost.
|
|
512
|
+
* </p>
|
|
507
513
|
*/
|
|
508
514
|
OutpostId?: string;
|
|
509
515
|
/**
|
|
@@ -515,7 +521,9 @@ export interface Outpost {
|
|
|
515
521
|
*/
|
|
516
522
|
OutpostArn?: string;
|
|
517
523
|
/**
|
|
518
|
-
* <p>
|
|
524
|
+
* <p>
|
|
525
|
+
* The ID of the site.
|
|
526
|
+
* </p>
|
|
519
527
|
*/
|
|
520
528
|
SiteId?: string;
|
|
521
529
|
/**
|
|
@@ -749,7 +757,9 @@ export declare namespace CreateSiteInput {
|
|
|
749
757
|
*/
|
|
750
758
|
export interface Site {
|
|
751
759
|
/**
|
|
752
|
-
* <p>
|
|
760
|
+
* <p>
|
|
761
|
+
* The ID of the site.
|
|
762
|
+
* </p>
|
|
753
763
|
*/
|
|
754
764
|
SiteId?: string;
|
|
755
765
|
/**
|
|
@@ -824,7 +834,7 @@ export declare namespace CreateSiteOutput {
|
|
|
824
834
|
export interface DeleteOutpostInput {
|
|
825
835
|
/**
|
|
826
836
|
* <p>
|
|
827
|
-
* The ID of the Outpost.
|
|
837
|
+
* The ID or the Amazon Resource Name (ARN) of the Outpost.
|
|
828
838
|
* </p>
|
|
829
839
|
*/
|
|
830
840
|
OutpostId: string | undefined;
|
|
@@ -845,7 +855,9 @@ export declare namespace DeleteOutpostOutput {
|
|
|
845
855
|
}
|
|
846
856
|
export interface DeleteSiteInput {
|
|
847
857
|
/**
|
|
848
|
-
* <p>
|
|
858
|
+
* <p>
|
|
859
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
860
|
+
* </p>
|
|
849
861
|
*/
|
|
850
862
|
SiteId: string | undefined;
|
|
851
863
|
}
|
|
@@ -914,7 +926,7 @@ export declare namespace GetOrderOutput {
|
|
|
914
926
|
export interface GetOutpostInput {
|
|
915
927
|
/**
|
|
916
928
|
* <p>
|
|
917
|
-
* The ID of the Outpost.
|
|
929
|
+
* The ID or the Amazon Resource Name (ARN) of the Outpost.
|
|
918
930
|
* </p>
|
|
919
931
|
*/
|
|
920
932
|
OutpostId: string | undefined;
|
|
@@ -940,7 +952,7 @@ export declare namespace GetOutpostOutput {
|
|
|
940
952
|
export interface GetOutpostInstanceTypesInput {
|
|
941
953
|
/**
|
|
942
954
|
* <p>
|
|
943
|
-
* The ID of the Outpost.
|
|
955
|
+
* The ID or the Amazon Resource Name (ARN) of the Outpost.
|
|
944
956
|
* </p>
|
|
945
957
|
*/
|
|
946
958
|
OutpostId: string | undefined;
|
|
@@ -1002,7 +1014,9 @@ export declare namespace GetOutpostInstanceTypesOutput {
|
|
|
1002
1014
|
}
|
|
1003
1015
|
export interface GetSiteInput {
|
|
1004
1016
|
/**
|
|
1005
|
-
* <p>
|
|
1017
|
+
* <p>
|
|
1018
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
1019
|
+
* </p>
|
|
1006
1020
|
*/
|
|
1007
1021
|
SiteId: string | undefined;
|
|
1008
1022
|
}
|
|
@@ -1026,7 +1040,9 @@ export declare namespace GetSiteOutput {
|
|
|
1026
1040
|
}
|
|
1027
1041
|
export interface GetSiteAddressInput {
|
|
1028
1042
|
/**
|
|
1029
|
-
* <p>
|
|
1043
|
+
* <p>
|
|
1044
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
1045
|
+
* </p>
|
|
1030
1046
|
*/
|
|
1031
1047
|
SiteId: string | undefined;
|
|
1032
1048
|
/**
|
|
@@ -1042,7 +1058,9 @@ export declare namespace GetSiteAddressInput {
|
|
|
1042
1058
|
}
|
|
1043
1059
|
export interface GetSiteAddressOutput {
|
|
1044
1060
|
/**
|
|
1045
|
-
* <p>
|
|
1061
|
+
* <p>
|
|
1062
|
+
* The ID of the site.
|
|
1063
|
+
* </p>
|
|
1046
1064
|
*/
|
|
1047
1065
|
SiteId?: string;
|
|
1048
1066
|
/**
|
|
@@ -1415,9 +1433,51 @@ export declare namespace UntagResourceResponse {
|
|
|
1415
1433
|
*/
|
|
1416
1434
|
const filterSensitiveLog: (obj: UntagResourceResponse) => any;
|
|
1417
1435
|
}
|
|
1436
|
+
export interface UpdateOutpostInput {
|
|
1437
|
+
/**
|
|
1438
|
+
* <p>
|
|
1439
|
+
* The ID or the Amazon Resource Name (ARN) of the Outpost.
|
|
1440
|
+
* </p>
|
|
1441
|
+
*/
|
|
1442
|
+
OutpostId: string | undefined;
|
|
1443
|
+
/**
|
|
1444
|
+
* <p>The name of the Outpost.</p>
|
|
1445
|
+
*/
|
|
1446
|
+
Name?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* <p>The description of the Outpost.</p>
|
|
1449
|
+
*/
|
|
1450
|
+
Description?: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* <p>
|
|
1453
|
+
* The type of hardware for this Outpost.
|
|
1454
|
+
* </p>
|
|
1455
|
+
*/
|
|
1456
|
+
SupportedHardwareType?: SupportedHardwareType | string;
|
|
1457
|
+
}
|
|
1458
|
+
export declare namespace UpdateOutpostInput {
|
|
1459
|
+
/**
|
|
1460
|
+
* @internal
|
|
1461
|
+
*/
|
|
1462
|
+
const filterSensitiveLog: (obj: UpdateOutpostInput) => any;
|
|
1463
|
+
}
|
|
1464
|
+
export interface UpdateOutpostOutput {
|
|
1465
|
+
/**
|
|
1466
|
+
* <p>Information about an Outpost.</p>
|
|
1467
|
+
*/
|
|
1468
|
+
Outpost?: Outpost;
|
|
1469
|
+
}
|
|
1470
|
+
export declare namespace UpdateOutpostOutput {
|
|
1471
|
+
/**
|
|
1472
|
+
* @internal
|
|
1473
|
+
*/
|
|
1474
|
+
const filterSensitiveLog: (obj: UpdateOutpostOutput) => any;
|
|
1475
|
+
}
|
|
1418
1476
|
export interface UpdateSiteInput {
|
|
1419
1477
|
/**
|
|
1420
|
-
* <p>
|
|
1478
|
+
* <p>
|
|
1479
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
1480
|
+
* </p>
|
|
1421
1481
|
*/
|
|
1422
1482
|
SiteId: string | undefined;
|
|
1423
1483
|
/**
|
|
@@ -1455,7 +1515,9 @@ export declare namespace UpdateSiteOutput {
|
|
|
1455
1515
|
}
|
|
1456
1516
|
export interface UpdateSiteAddressInput {
|
|
1457
1517
|
/**
|
|
1458
|
-
* <p>
|
|
1518
|
+
* <p>
|
|
1519
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
1520
|
+
* </p>
|
|
1459
1521
|
*/
|
|
1460
1522
|
SiteId: string | undefined;
|
|
1461
1523
|
/**
|
|
@@ -1499,7 +1561,9 @@ export declare namespace UpdateSiteAddressOutput {
|
|
|
1499
1561
|
}
|
|
1500
1562
|
export interface UpdateSiteRackPhysicalPropertiesInput {
|
|
1501
1563
|
/**
|
|
1502
|
-
* <p>
|
|
1564
|
+
* <p>
|
|
1565
|
+
* The ID or the Amazon Resource Name (ARN) of the site.
|
|
1566
|
+
* </p>
|
|
1503
1567
|
*/
|
|
1504
1568
|
SiteId: string | undefined;
|
|
1505
1569
|
/**
|
|
@@ -19,6 +19,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "../commands/ListS
|
|
|
19
19
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
20
20
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
21
21
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
22
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "../commands/UpdateOutpostCommand";
|
|
22
23
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "../commands/UpdateSiteAddressCommand";
|
|
23
24
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "../commands/UpdateSiteCommand";
|
|
24
25
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "../commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -41,6 +42,7 @@ export declare const serializeAws_restJson1ListSitesCommand: (input: ListSitesCo
|
|
|
41
42
|
export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
43
|
export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
44
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
+
export declare const serializeAws_restJson1UpdateOutpostCommand: (input: UpdateOutpostCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
46
|
export declare const serializeAws_restJson1UpdateSiteCommand: (input: UpdateSiteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
47
|
export declare const serializeAws_restJson1UpdateSiteAddressCommand: (input: UpdateSiteAddressCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
48
|
export declare const serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand: (input: UpdateSiteRackPhysicalPropertiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -63,6 +65,7 @@ export declare const deserializeAws_restJson1ListSitesCommand: (output: __HttpRe
|
|
|
63
65
|
export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
64
66
|
export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
65
67
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
68
|
+
export declare const deserializeAws_restJson1UpdateOutpostCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateOutpostCommandOutput>;
|
|
66
69
|
export declare const deserializeAws_restJson1UpdateSiteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteCommandOutput>;
|
|
67
70
|
export declare const deserializeAws_restJson1UpdateSiteAddressCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteAddressCommandOutput>;
|
|
68
71
|
export declare const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteRackPhysicalPropertiesCommandOutput>;
|
|
@@ -18,6 +18,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
|
|
|
18
18
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
19
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
20
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
|
|
21
22
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
|
|
22
23
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
|
|
23
24
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -101,6 +102,10 @@ export declare class Outposts extends OutpostsClient {
|
|
|
101
102
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
102
103
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
103
104
|
|
|
105
|
+
updateOutpost(args: UpdateOutpostCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOutpostCommandOutput>;
|
|
106
|
+
updateOutpost(args: UpdateOutpostCommandInput, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
|
|
107
|
+
updateOutpost(args: UpdateOutpostCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOutpostCommandOutput) => void): void;
|
|
108
|
+
|
|
104
109
|
updateSite(args: UpdateSiteCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSiteCommandOutput>;
|
|
105
110
|
updateSite(args: UpdateSiteCommandInput, cb: (err: any, data?: UpdateSiteCommandOutput) => void): void;
|
|
106
111
|
updateSite(args: UpdateSiteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSiteCommandOutput) => void): void;
|
|
@@ -25,11 +25,12 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
|
|
|
25
25
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
26
26
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
27
27
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
28
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
|
|
28
29
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "./commands/UpdateSiteAddressCommand";
|
|
29
30
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/UpdateSiteCommand";
|
|
30
31
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
31
|
-
export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
|
|
32
|
-
export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
|
|
32
|
+
export declare type ServiceInputTypes = CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCatalogItemCommandInput | GetOrderCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
|
|
33
|
+
export declare type ServiceOutputTypes = CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCatalogItemCommandOutput | GetOrderCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
|
|
33
34
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
34
35
|
|
|
35
36
|
requestHandler?: __HttpHandler;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { UpdateOutpostInput, UpdateOutpostOutput } from "../models/models_0";
|
|
4
|
+
import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
|
|
5
|
+
export interface UpdateOutpostCommandInput extends UpdateOutpostInput {
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateOutpostCommandOutput extends UpdateOutpostOutput, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class UpdateOutpostCommand extends $Command<UpdateOutpostCommandInput, UpdateOutpostCommandOutput, OutpostsClientResolvedConfig> {
|
|
11
|
+
readonly input: UpdateOutpostCommandInput;
|
|
12
|
+
constructor(input: UpdateOutpostCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateOutpostCommandInput, UpdateOutpostCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./ListSitesCommand";
|
|
|
17
17
|
export * from "./ListTagsForResourceCommand";
|
|
18
18
|
export * from "./TagResourceCommand";
|
|
19
19
|
export * from "./UntagResourceCommand";
|
|
20
|
+
export * from "./UpdateOutpostCommand";
|
|
20
21
|
export * from "./UpdateSiteAddressCommand";
|
|
21
22
|
export * from "./UpdateSiteCommand";
|
|
22
23
|
export * from "./UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -797,6 +797,28 @@ export declare namespace UntagResourceResponse {
|
|
|
797
797
|
|
|
798
798
|
const filterSensitiveLog: (obj: UntagResourceResponse) => any;
|
|
799
799
|
}
|
|
800
|
+
export interface UpdateOutpostInput {
|
|
801
|
+
|
|
802
|
+
OutpostId: string | undefined;
|
|
803
|
+
|
|
804
|
+
Name?: string;
|
|
805
|
+
|
|
806
|
+
Description?: string;
|
|
807
|
+
|
|
808
|
+
SupportedHardwareType?: SupportedHardwareType | string;
|
|
809
|
+
}
|
|
810
|
+
export declare namespace UpdateOutpostInput {
|
|
811
|
+
|
|
812
|
+
const filterSensitiveLog: (obj: UpdateOutpostInput) => any;
|
|
813
|
+
}
|
|
814
|
+
export interface UpdateOutpostOutput {
|
|
815
|
+
|
|
816
|
+
Outpost?: Outpost;
|
|
817
|
+
}
|
|
818
|
+
export declare namespace UpdateOutpostOutput {
|
|
819
|
+
|
|
820
|
+
const filterSensitiveLog: (obj: UpdateOutpostOutput) => any;
|
|
821
|
+
}
|
|
800
822
|
export interface UpdateSiteInput {
|
|
801
823
|
|
|
802
824
|
SiteId: string | undefined;
|
|
@@ -19,6 +19,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "../commands/ListS
|
|
|
19
19
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
20
20
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
21
21
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
22
|
+
import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "../commands/UpdateOutpostCommand";
|
|
22
23
|
import { UpdateSiteAddressCommandInput, UpdateSiteAddressCommandOutput } from "../commands/UpdateSiteAddressCommand";
|
|
23
24
|
import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "../commands/UpdateSiteCommand";
|
|
24
25
|
import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "../commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
@@ -41,6 +42,7 @@ export declare const serializeAws_restJson1ListSitesCommand: (input: ListSitesCo
|
|
|
41
42
|
export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
43
|
export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
44
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
+
export declare const serializeAws_restJson1UpdateOutpostCommand: (input: UpdateOutpostCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
46
|
export declare const serializeAws_restJson1UpdateSiteCommand: (input: UpdateSiteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
47
|
export declare const serializeAws_restJson1UpdateSiteAddressCommand: (input: UpdateSiteAddressCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
48
|
export declare const serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand: (input: UpdateSiteRackPhysicalPropertiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -63,6 +65,7 @@ export declare const deserializeAws_restJson1ListSitesCommand: (output: __HttpRe
|
|
|
63
65
|
export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
64
66
|
export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
65
67
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
68
|
+
export declare const deserializeAws_restJson1UpdateOutpostCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateOutpostCommandOutput>;
|
|
66
69
|
export declare const deserializeAws_restJson1UpdateSiteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteCommandOutput>;
|
|
67
70
|
export declare const deserializeAws_restJson1UpdateSiteAddressCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteAddressCommandOutput>;
|
|
68
71
|
export declare const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSiteRackPhysicalPropertiesCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-outposts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.45.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.45.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.45.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.45.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.40.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.40.0",
|
|
33
33
|
"@aws-sdk/middleware-retry": "3.40.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.40.0",
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.45.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.40.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.40.0",
|