@aws-sdk/client-outposts 3.39.0 → 3.43.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 +41 -0
- package/README.md +10 -10
- package/dist-cjs/Outposts.js +165 -0
- package/dist-cjs/commands/CancelOrderCommand.js +36 -0
- package/dist-cjs/commands/CreateSiteCommand.js +36 -0
- package/dist-cjs/commands/GetCatalogItemCommand.js +36 -0
- package/dist-cjs/commands/GetOrderCommand.js +36 -0
- package/dist-cjs/commands/GetSiteAddressCommand.js +36 -0
- package/dist-cjs/commands/GetSiteCommand.js +36 -0
- package/dist-cjs/commands/ListCatalogItemsCommand.js +36 -0
- package/dist-cjs/commands/ListOrdersCommand.js +36 -0
- package/dist-cjs/commands/UpdateSiteAddressCommand.js +36 -0
- package/dist-cjs/commands/UpdateSiteCommand.js +36 -0
- package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +143 -24
- package/dist-cjs/models/models_0.js +301 -25
- package/dist-cjs/pagination/ListCatalogItemsPaginator.js +35 -0
- package/dist-cjs/pagination/ListOrdersPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1429 -103
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Outposts.js +165 -0
- package/dist-es/commands/CancelOrderCommand.js +39 -0
- package/dist-es/commands/CreateSiteCommand.js +39 -0
- package/dist-es/commands/GetCatalogItemCommand.js +39 -0
- package/dist-es/commands/GetOrderCommand.js +39 -0
- package/dist-es/commands/GetSiteAddressCommand.js +39 -0
- package/dist-es/commands/GetSiteCommand.js +39 -0
- package/dist-es/commands/ListCatalogItemsCommand.js +39 -0
- package/dist-es/commands/ListOrdersCommand.js +39 -0
- package/dist-es/commands/UpdateSiteAddressCommand.js +39 -0
- package/dist-es/commands/UpdateSiteCommand.js +39 -0
- package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoints.js +143 -24
- package/dist-es/models/models_0.js +237 -16
- package/dist-es/pagination/ListCatalogItemsPaginator.js +74 -0
- package/dist-es/pagination/ListOrdersPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1638 -165
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Outposts.d.ts +114 -6
- package/dist-types/OutpostsClient.d.ts +24 -5
- package/dist-types/commands/CancelOrderCommand.d.ts +37 -0
- package/dist-types/commands/CreateOrderCommand.d.ts +1 -1
- package/dist-types/commands/CreateOutpostCommand.d.ts +1 -1
- package/dist-types/commands/CreateSiteCommand.d.ts +37 -0
- package/dist-types/commands/DeleteOutpostCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSiteCommand.d.ts +1 -1
- package/dist-types/commands/GetCatalogItemCommand.d.ts +35 -0
- package/dist-types/commands/GetOrderCommand.d.ts +35 -0
- package/dist-types/commands/GetOutpostCommand.d.ts +1 -1
- package/dist-types/commands/GetOutpostInstanceTypesCommand.d.ts +1 -1
- package/dist-types/commands/GetSiteAddressCommand.d.ts +37 -0
- package/dist-types/commands/GetSiteCommand.d.ts +37 -0
- package/dist-types/commands/ListCatalogItemsCommand.d.ts +39 -0
- package/dist-types/commands/ListOrdersCommand.d.ts +36 -0
- package/dist-types/commands/ListOutpostsCommand.d.ts +3 -3
- package/dist-types/commands/ListSitesCommand.d.ts +2 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSiteAddressCommand.d.ts +46 -0
- package/dist-types/commands/UpdateSiteCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSiteRackPhysicalPropertiesCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +1133 -151
- package/dist-types/pagination/ListCatalogItemsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListOrdersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Outposts.d.ts +55 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +17 -2
- package/dist-types/ts3.4/commands/CancelOrderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCatalogItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOrderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSiteAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCatalogItemsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOrdersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteRackPhysicalPropertiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +511 -52
- package/dist-types/ts3.4/pagination/ListCatalogItemsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListOrdersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
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)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ 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
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
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),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/Outposts.js
CHANGED
|
@@ -1,21 +1,46 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
+
import { CancelOrderCommand } from "./commands/CancelOrderCommand";
|
|
2
3
|
import { CreateOrderCommand } from "./commands/CreateOrderCommand";
|
|
3
4
|
import { CreateOutpostCommand, } from "./commands/CreateOutpostCommand";
|
|
5
|
+
import { CreateSiteCommand } from "./commands/CreateSiteCommand";
|
|
4
6
|
import { DeleteOutpostCommand, } from "./commands/DeleteOutpostCommand";
|
|
5
7
|
import { DeleteSiteCommand } from "./commands/DeleteSiteCommand";
|
|
8
|
+
import { GetCatalogItemCommand, } from "./commands/GetCatalogItemCommand";
|
|
9
|
+
import { GetOrderCommand } from "./commands/GetOrderCommand";
|
|
6
10
|
import { GetOutpostCommand } from "./commands/GetOutpostCommand";
|
|
7
11
|
import { GetOutpostInstanceTypesCommand, } from "./commands/GetOutpostInstanceTypesCommand";
|
|
12
|
+
import { GetSiteAddressCommand, } from "./commands/GetSiteAddressCommand";
|
|
13
|
+
import { GetSiteCommand } from "./commands/GetSiteCommand";
|
|
14
|
+
import { ListCatalogItemsCommand, } from "./commands/ListCatalogItemsCommand";
|
|
15
|
+
import { ListOrdersCommand } from "./commands/ListOrdersCommand";
|
|
8
16
|
import { ListOutpostsCommand, } from "./commands/ListOutpostsCommand";
|
|
9
17
|
import { ListSitesCommand } from "./commands/ListSitesCommand";
|
|
10
18
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
11
19
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
12
20
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateSiteAddressCommand, } from "./commands/UpdateSiteAddressCommand";
|
|
22
|
+
import { UpdateSiteCommand } from "./commands/UpdateSiteCommand";
|
|
23
|
+
import { UpdateSiteRackPhysicalPropertiesCommand, } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
|
|
13
24
|
import { OutpostsClient } from "./OutpostsClient";
|
|
14
25
|
var Outposts = (function (_super) {
|
|
15
26
|
__extends(Outposts, _super);
|
|
16
27
|
function Outposts() {
|
|
17
28
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
18
29
|
}
|
|
30
|
+
Outposts.prototype.cancelOrder = function (args, optionsOrCb, cb) {
|
|
31
|
+
var command = new CancelOrderCommand(args);
|
|
32
|
+
if (typeof optionsOrCb === "function") {
|
|
33
|
+
this.send(command, optionsOrCb);
|
|
34
|
+
}
|
|
35
|
+
else if (typeof cb === "function") {
|
|
36
|
+
if (typeof optionsOrCb !== "object")
|
|
37
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
38
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return this.send(command, optionsOrCb);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
19
44
|
Outposts.prototype.createOrder = function (args, optionsOrCb, cb) {
|
|
20
45
|
var command = new CreateOrderCommand(args);
|
|
21
46
|
if (typeof optionsOrCb === "function") {
|
|
@@ -44,6 +69,20 @@ var Outposts = (function (_super) {
|
|
|
44
69
|
return this.send(command, optionsOrCb);
|
|
45
70
|
}
|
|
46
71
|
};
|
|
72
|
+
Outposts.prototype.createSite = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new CreateSiteCommand(args);
|
|
74
|
+
if (typeof optionsOrCb === "function") {
|
|
75
|
+
this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
else if (typeof cb === "function") {
|
|
78
|
+
if (typeof optionsOrCb !== "object")
|
|
79
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
80
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
47
86
|
Outposts.prototype.deleteOutpost = function (args, optionsOrCb, cb) {
|
|
48
87
|
var command = new DeleteOutpostCommand(args);
|
|
49
88
|
if (typeof optionsOrCb === "function") {
|
|
@@ -72,6 +111,34 @@ var Outposts = (function (_super) {
|
|
|
72
111
|
return this.send(command, optionsOrCb);
|
|
73
112
|
}
|
|
74
113
|
};
|
|
114
|
+
Outposts.prototype.getCatalogItem = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new GetCatalogItemCommand(args);
|
|
116
|
+
if (typeof optionsOrCb === "function") {
|
|
117
|
+
this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
else if (typeof cb === "function") {
|
|
120
|
+
if (typeof optionsOrCb !== "object")
|
|
121
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
122
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
Outposts.prototype.getOrder = function (args, optionsOrCb, cb) {
|
|
129
|
+
var command = new GetOrderCommand(args);
|
|
130
|
+
if (typeof optionsOrCb === "function") {
|
|
131
|
+
this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
else if (typeof cb === "function") {
|
|
134
|
+
if (typeof optionsOrCb !== "object")
|
|
135
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
136
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
return this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
75
142
|
Outposts.prototype.getOutpost = function (args, optionsOrCb, cb) {
|
|
76
143
|
var command = new GetOutpostCommand(args);
|
|
77
144
|
if (typeof optionsOrCb === "function") {
|
|
@@ -100,6 +167,62 @@ var Outposts = (function (_super) {
|
|
|
100
167
|
return this.send(command, optionsOrCb);
|
|
101
168
|
}
|
|
102
169
|
};
|
|
170
|
+
Outposts.prototype.getSite = function (args, optionsOrCb, cb) {
|
|
171
|
+
var command = new GetSiteCommand(args);
|
|
172
|
+
if (typeof optionsOrCb === "function") {
|
|
173
|
+
this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
else if (typeof cb === "function") {
|
|
176
|
+
if (typeof optionsOrCb !== "object")
|
|
177
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
178
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return this.send(command, optionsOrCb);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
Outposts.prototype.getSiteAddress = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new GetSiteAddressCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
Outposts.prototype.listCatalogItems = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new ListCatalogItemsCommand(args);
|
|
200
|
+
if (typeof optionsOrCb === "function") {
|
|
201
|
+
this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
else if (typeof cb === "function") {
|
|
204
|
+
if (typeof optionsOrCb !== "object")
|
|
205
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
206
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
Outposts.prototype.listOrders = function (args, optionsOrCb, cb) {
|
|
213
|
+
var command = new ListOrdersCommand(args);
|
|
214
|
+
if (typeof optionsOrCb === "function") {
|
|
215
|
+
this.send(command, optionsOrCb);
|
|
216
|
+
}
|
|
217
|
+
else if (typeof cb === "function") {
|
|
218
|
+
if (typeof optionsOrCb !== "object")
|
|
219
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
220
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
return this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
103
226
|
Outposts.prototype.listOutposts = function (args, optionsOrCb, cb) {
|
|
104
227
|
var command = new ListOutpostsCommand(args);
|
|
105
228
|
if (typeof optionsOrCb === "function") {
|
|
@@ -170,6 +293,48 @@ var Outposts = (function (_super) {
|
|
|
170
293
|
return this.send(command, optionsOrCb);
|
|
171
294
|
}
|
|
172
295
|
};
|
|
296
|
+
Outposts.prototype.updateSite = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new UpdateSiteCommand(args);
|
|
298
|
+
if (typeof optionsOrCb === "function") {
|
|
299
|
+
this.send(command, optionsOrCb);
|
|
300
|
+
}
|
|
301
|
+
else if (typeof cb === "function") {
|
|
302
|
+
if (typeof optionsOrCb !== "object")
|
|
303
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
304
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
Outposts.prototype.updateSiteAddress = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new UpdateSiteAddressCommand(args);
|
|
312
|
+
if (typeof optionsOrCb === "function") {
|
|
313
|
+
this.send(command, optionsOrCb);
|
|
314
|
+
}
|
|
315
|
+
else if (typeof cb === "function") {
|
|
316
|
+
if (typeof optionsOrCb !== "object")
|
|
317
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
318
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
return this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
Outposts.prototype.updateSiteRackPhysicalProperties = function (args, optionsOrCb, cb) {
|
|
325
|
+
var command = new UpdateSiteRackPhysicalPropertiesCommand(args);
|
|
326
|
+
if (typeof optionsOrCb === "function") {
|
|
327
|
+
this.send(command, optionsOrCb);
|
|
328
|
+
}
|
|
329
|
+
else if (typeof cb === "function") {
|
|
330
|
+
if (typeof optionsOrCb !== "object")
|
|
331
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
332
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
return this.send(command, optionsOrCb);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
173
338
|
return Outposts;
|
|
174
339
|
}(OutpostsClient));
|
|
175
340
|
export { Outposts };
|
|
@@ -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 { CancelOrderInput, CancelOrderOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CancelOrderCommand, serializeAws_restJson1CancelOrderCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CancelOrderCommand = (function (_super) {
|
|
7
|
+
__extends(CancelOrderCommand, _super);
|
|
8
|
+
function CancelOrderCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CancelOrderCommand.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 = "CancelOrderCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CancelOrderInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CancelOrderOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CancelOrderCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CancelOrderCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CancelOrderCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CancelOrderCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CancelOrderCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CancelOrderCommand };
|
|
@@ -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 { CreateSiteInput, CreateSiteOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateSiteCommand, serializeAws_restJson1CreateSiteCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateSiteCommand = (function (_super) {
|
|
7
|
+
__extends(CreateSiteCommand, _super);
|
|
8
|
+
function CreateSiteCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateSiteCommand.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 = "CreateSiteCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateSiteInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateSiteOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateSiteCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateSiteCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateSiteCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateSiteCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateSiteCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateSiteCommand };
|
|
@@ -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 { GetCatalogItemInput, GetCatalogItemOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetCatalogItemCommand, serializeAws_restJson1GetCatalogItemCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetCatalogItemCommand = (function (_super) {
|
|
7
|
+
__extends(GetCatalogItemCommand, _super);
|
|
8
|
+
function GetCatalogItemCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetCatalogItemCommand.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 = "GetCatalogItemCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetCatalogItemInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetCatalogItemOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetCatalogItemCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetCatalogItemCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetCatalogItemCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetCatalogItemCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetCatalogItemCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetCatalogItemCommand };
|
|
@@ -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 { GetOrderInput, GetOrderOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetOrderCommand, serializeAws_restJson1GetOrderCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetOrderCommand = (function (_super) {
|
|
7
|
+
__extends(GetOrderCommand, _super);
|
|
8
|
+
function GetOrderCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetOrderCommand.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 = "GetOrderCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetOrderInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetOrderOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetOrderCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetOrderCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetOrderCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetOrderCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetOrderCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetOrderCommand };
|
|
@@ -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 { GetSiteAddressInput, GetSiteAddressOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetSiteAddressCommand, serializeAws_restJson1GetSiteAddressCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetSiteAddressCommand = (function (_super) {
|
|
7
|
+
__extends(GetSiteAddressCommand, _super);
|
|
8
|
+
function GetSiteAddressCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetSiteAddressCommand.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 = "GetSiteAddressCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetSiteAddressInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetSiteAddressOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetSiteAddressCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetSiteAddressCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetSiteAddressCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetSiteAddressCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetSiteAddressCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetSiteAddressCommand };
|
|
@@ -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 { GetSiteInput, GetSiteOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetSiteCommand, serializeAws_restJson1GetSiteCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetSiteCommand = (function (_super) {
|
|
7
|
+
__extends(GetSiteCommand, _super);
|
|
8
|
+
function GetSiteCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetSiteCommand.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 = "GetSiteCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetSiteInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetSiteOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetSiteCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetSiteCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetSiteCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetSiteCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetSiteCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetSiteCommand };
|
|
@@ -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 { ListCatalogItemsInput, ListCatalogItemsOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListCatalogItemsCommand, serializeAws_restJson1ListCatalogItemsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListCatalogItemsCommand = (function (_super) {
|
|
7
|
+
__extends(ListCatalogItemsCommand, _super);
|
|
8
|
+
function ListCatalogItemsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListCatalogItemsCommand.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 = "ListCatalogItemsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListCatalogItemsInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListCatalogItemsOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListCatalogItemsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListCatalogItemsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListCatalogItemsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListCatalogItemsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListCatalogItemsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListCatalogItemsCommand };
|
|
@@ -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 { ListOrdersInput, ListOrdersOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListOrdersCommand, serializeAws_restJson1ListOrdersCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListOrdersCommand = (function (_super) {
|
|
7
|
+
__extends(ListOrdersCommand, _super);
|
|
8
|
+
function ListOrdersCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListOrdersCommand.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 = "ListOrdersCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListOrdersInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListOrdersOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListOrdersCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListOrdersCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListOrdersCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListOrdersCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListOrdersCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListOrdersCommand };
|
|
@@ -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 { UpdateSiteAddressInput, UpdateSiteAddressOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateSiteAddressCommand, serializeAws_restJson1UpdateSiteAddressCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateSiteAddressCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateSiteAddressCommand, _super);
|
|
8
|
+
function UpdateSiteAddressCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateSiteAddressCommand.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 = "UpdateSiteAddressCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateSiteAddressInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateSiteAddressOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateSiteAddressCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateSiteAddressCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateSiteAddressCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateSiteAddressCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateSiteAddressCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateSiteAddressCommand };
|