@aws-sdk/client-outposts 3.43.0 → 3.47.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 +50 -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 -20
- package/dist-cjs/models/models_0.js +19 -38
- package/dist-cjs/protocols/Aws_restJson1.js +118 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- 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 -20
- package/dist-es/models/models_0.js +13 -24
- package/dist-es/protocols/Aws_restJson1.js +133 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Outposts.d.ts +9 -0
- package/dist-types/OutpostsClient.d.ts +8 -3
- 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 +94 -50
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Outposts.d.ts +5 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +6 -3
- 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 +29 -23
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **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))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
57
|
|
|
8
58
|
|
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
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"ca-central-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "outposts.ca-central-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "outposts-fips.ca-central-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-1": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "outposts.us-east-1.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "outposts-fips.us-east-1.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-east-2": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "outposts.us-east-2.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "outposts-fips.us-east-2.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -59,10 +47,6 @@ const regionHash = {
|
|
|
59
47
|
},
|
|
60
48
|
"us-west-1": {
|
|
61
49
|
variants: [
|
|
62
|
-
{
|
|
63
|
-
hostname: "outposts.us-west-1.amazonaws.com",
|
|
64
|
-
tags: [],
|
|
65
|
-
},
|
|
66
50
|
{
|
|
67
51
|
hostname: "outposts-fips.us-west-1.amazonaws.com",
|
|
68
52
|
tags: ["fips"],
|
|
@@ -71,10 +55,6 @@ const regionHash = {
|
|
|
71
55
|
},
|
|
72
56
|
"us-west-2": {
|
|
73
57
|
variants: [
|
|
74
|
-
{
|
|
75
|
-
hostname: "outposts.us-west-2.amazonaws.com",
|
|
76
|
-
tags: [],
|
|
77
|
-
},
|
|
78
58
|
{
|
|
79
59
|
hostname: "outposts-fips.us-west-2.amazonaws.com",
|
|
80
60
|
tags: ["fips"],
|
|
@@ -93,6 +73,7 @@ const partitionHash = {
|
|
|
93
73
|
"ap-south-1",
|
|
94
74
|
"ap-southeast-1",
|
|
95
75
|
"ap-southeast-2",
|
|
76
|
+
"ap-southeast-3",
|
|
96
77
|
"ca-central-1",
|
|
97
78
|
"eu-central-1",
|
|
98
79
|
"eu-north-1",
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOutpostInput = 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.
|
|
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 =
|
|
5
|
-
var AccessDeniedException;
|
|
6
|
-
(function (AccessDeniedException) {
|
|
7
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
8
|
-
...obj,
|
|
9
|
-
});
|
|
10
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
3
|
+
exports.GetSiteInput = exports.GetOutpostInstanceTypesOutput = exports.InstanceTypeItem = exports.GetOutpostInstanceTypesInput = exports.GetOutpostOutput = exports.GetOutpostInput = 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.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.ResourceType = exports.CancelOrderOutput = exports.CancelOrderInput = exports.AddressType = exports.Address = 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 = void 0;
|
|
11
5
|
var Address;
|
|
12
6
|
(function (Address) {
|
|
13
7
|
Address.filterSensitiveLog = (obj) => ({
|
|
@@ -36,30 +30,6 @@ var ResourceType;
|
|
|
36
30
|
ResourceType["ORDER"] = "ORDER";
|
|
37
31
|
ResourceType["OUTPOST"] = "OUTPOST";
|
|
38
32
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
39
|
-
var ConflictException;
|
|
40
|
-
(function (ConflictException) {
|
|
41
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
42
|
-
...obj,
|
|
43
|
-
});
|
|
44
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
45
|
-
var InternalServerException;
|
|
46
|
-
(function (InternalServerException) {
|
|
47
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
48
|
-
...obj,
|
|
49
|
-
});
|
|
50
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
51
|
-
var NotFoundException;
|
|
52
|
-
(function (NotFoundException) {
|
|
53
|
-
NotFoundException.filterSensitiveLog = (obj) => ({
|
|
54
|
-
...obj,
|
|
55
|
-
});
|
|
56
|
-
})(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
|
|
57
|
-
var ValidationException;
|
|
58
|
-
(function (ValidationException) {
|
|
59
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
60
|
-
...obj,
|
|
61
|
-
});
|
|
62
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
63
33
|
var EC2Capacity;
|
|
64
34
|
(function (EC2Capacity) {
|
|
65
35
|
EC2Capacity.filterSensitiveLog = (obj) => ({
|
|
@@ -151,12 +121,11 @@ var CreateOrderOutput;
|
|
|
151
121
|
...obj,
|
|
152
122
|
});
|
|
153
123
|
})(CreateOrderOutput = exports.CreateOrderOutput || (exports.CreateOrderOutput = {}));
|
|
154
|
-
var
|
|
155
|
-
(function (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
|
|
124
|
+
var SupportedHardwareType;
|
|
125
|
+
(function (SupportedHardwareType) {
|
|
126
|
+
SupportedHardwareType["RACK"] = "RACK";
|
|
127
|
+
SupportedHardwareType["SERVER"] = "SERVER";
|
|
128
|
+
})(SupportedHardwareType = exports.SupportedHardwareType || (exports.SupportedHardwareType = {}));
|
|
160
129
|
var CreateOutpostInput;
|
|
161
130
|
(function (CreateOutpostInput) {
|
|
162
131
|
CreateOutpostInput.filterSensitiveLog = (obj) => ({
|
|
@@ -468,6 +437,18 @@ var UntagResourceResponse;
|
|
|
468
437
|
...obj,
|
|
469
438
|
});
|
|
470
439
|
})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
|
|
440
|
+
var UpdateOutpostInput;
|
|
441
|
+
(function (UpdateOutpostInput) {
|
|
442
|
+
UpdateOutpostInput.filterSensitiveLog = (obj) => ({
|
|
443
|
+
...obj,
|
|
444
|
+
});
|
|
445
|
+
})(UpdateOutpostInput = exports.UpdateOutpostInput || (exports.UpdateOutpostInput = {}));
|
|
446
|
+
var UpdateOutpostOutput;
|
|
447
|
+
(function (UpdateOutpostOutput) {
|
|
448
|
+
UpdateOutpostOutput.filterSensitiveLog = (obj) => ({
|
|
449
|
+
...obj,
|
|
450
|
+
});
|
|
451
|
+
})(UpdateOutpostOutput = exports.UpdateOutpostOutput || (exports.UpdateOutpostOutput = {}));
|
|
471
452
|
var UpdateSiteInput;
|
|
472
453
|
(function (UpdateSiteInput) {
|
|
473
454
|
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) => {
|
|
@@ -72,6 +72,8 @@ const serializeAws_restJson1CreateOutpostCommand = async (input, context) => {
|
|
|
72
72
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
73
73
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
74
74
|
...(input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId }),
|
|
75
|
+
...(input.SupportedHardwareType !== undefined &&
|
|
76
|
+
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
75
77
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
76
78
|
});
|
|
77
79
|
return new protocol_http_1.HttpRequest({
|
|
@@ -528,6 +530,40 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
528
530
|
});
|
|
529
531
|
};
|
|
530
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;
|
|
531
567
|
const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
532
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
569
|
const headers = {
|
|
@@ -2021,6 +2057,86 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2021
2057
|
delete response.Message;
|
|
2022
2058
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2023
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
|
+
};
|
|
2024
2140
|
const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
|
|
2025
2141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2026
2142
|
return deserializeAws_restJson1UpdateSiteCommandError(output, context);
|
|
@@ -2571,6 +2687,7 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
2571
2687
|
OwnerId: smithy_client_1.expectString(output.OwnerId),
|
|
2572
2688
|
SiteArn: smithy_client_1.expectString(output.SiteArn),
|
|
2573
2689
|
SiteId: smithy_client_1.expectString(output.SiteId),
|
|
2690
|
+
SupportedHardwareType: smithy_client_1.expectString(output.SupportedHardwareType),
|
|
2574
2691
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
2575
2692
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2576
2693
|
: undefined,
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
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
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "outposts.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "outposts-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "outposts.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "outposts-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "outposts.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "outposts-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-1": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "outposts.us-west-1.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "outposts-fips.us-west-1.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -69,10 +53,6 @@ var regionHash = {
|
|
|
69
53
|
},
|
|
70
54
|
"us-west-2": {
|
|
71
55
|
variants: [
|
|
72
|
-
{
|
|
73
|
-
hostname: "outposts.us-west-2.amazonaws.com",
|
|
74
|
-
tags: [],
|
|
75
|
-
},
|
|
76
56
|
{
|
|
77
57
|
hostname: "outposts-fips.us-west-2.amazonaws.com",
|
|
78
58
|
tags: ["fips"],
|
|
@@ -91,6 +71,7 @@ var partitionHash = {
|
|
|
91
71
|
"ap-south-1",
|
|
92
72
|
"ap-southeast-1",
|
|
93
73
|
"ap-southeast-2",
|
|
74
|
+
"ap-southeast-3",
|
|
94
75
|
"ca-central-1",
|
|
95
76
|
"eu-central-1",
|
|
96
77
|
"eu-north-1",
|