@aws-sdk/client-outposts 3.42.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 +11 -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/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-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/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-types/Outposts.d.ts +114 -6
- package/dist-types/OutpostsClient.d.ts +16 -5
- package/dist-types/commands/CancelOrderCommand.d.ts +37 -0
- package/dist-types/commands/CreateSiteCommand.d.ts +37 -0
- package/dist-types/commands/GetCatalogItemCommand.d.ts +35 -0
- package/dist-types/commands/GetOrderCommand.d.ts +35 -0
- 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 +2 -2
- package/dist-types/commands/ListSitesCommand.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/ts3.4/Outposts.d.ts +55 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +13 -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/package.json +2 -2
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-outposts
|
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>
|
|
11
|
-
to customer premises. By providing local access to
|
|
10
|
+
<p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools
|
|
11
|
+
to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts
|
|
12
12
|
enables customers to build and run applications on premises using the same programming
|
|
13
|
-
interfaces as in
|
|
13
|
+
interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower
|
|
14
14
|
latency and local data processing needs.</p>
|
|
15
15
|
|
|
16
16
|
## Installing
|
|
@@ -28,16 +28,16 @@ using your favorite package manager:
|
|
|
28
28
|
|
|
29
29
|
The AWS SDK is modulized by clients and commands.
|
|
30
30
|
To send a request, you only need to import the `OutpostsClient` and
|
|
31
|
-
the commands you need, for example `
|
|
31
|
+
the commands you need, for example `CancelOrderCommand`:
|
|
32
32
|
|
|
33
33
|
```js
|
|
34
34
|
// ES5 example
|
|
35
|
-
const { OutpostsClient,
|
|
35
|
+
const { OutpostsClient, CancelOrderCommand } = require("@aws-sdk/client-outposts");
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
39
|
// ES6+ example
|
|
40
|
-
import { OutpostsClient,
|
|
40
|
+
import { OutpostsClient, CancelOrderCommand } from "@aws-sdk/client-outposts";
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Usage
|
|
@@ -56,7 +56,7 @@ const client = new OutpostsClient({ region: "REGION" });
|
|
|
56
56
|
const params = {
|
|
57
57
|
/** input parameters */
|
|
58
58
|
};
|
|
59
|
-
const command = new
|
|
59
|
+
const command = new CancelOrderCommand(params);
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
#### Async/await
|
|
@@ -135,7 +135,7 @@ const client = new AWS.Outposts({ region: "REGION" });
|
|
|
135
135
|
|
|
136
136
|
// async/await.
|
|
137
137
|
try {
|
|
138
|
-
const data = await client.
|
|
138
|
+
const data = await client.cancelOrder(params);
|
|
139
139
|
// process data.
|
|
140
140
|
} catch (error) {
|
|
141
141
|
// error handling.
|
|
@@ -143,7 +143,7 @@ try {
|
|
|
143
143
|
|
|
144
144
|
// Promises.
|
|
145
145
|
client
|
|
146
|
-
.
|
|
146
|
+
.cancelOrder(params)
|
|
147
147
|
.then((data) => {
|
|
148
148
|
// process data.
|
|
149
149
|
})
|
|
@@ -152,7 +152,7 @@ client
|
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
// callbacks.
|
|
155
|
-
client.
|
|
155
|
+
client.cancelOrder(params, (err, data) => {
|
|
156
156
|
// proccess err and data.
|
|
157
157
|
});
|
|
158
158
|
```
|
package/dist-cjs/Outposts.js
CHANGED
|
@@ -1,19 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Outposts = void 0;
|
|
4
|
+
const CancelOrderCommand_1 = require("./commands/CancelOrderCommand");
|
|
4
5
|
const CreateOrderCommand_1 = require("./commands/CreateOrderCommand");
|
|
5
6
|
const CreateOutpostCommand_1 = require("./commands/CreateOutpostCommand");
|
|
7
|
+
const CreateSiteCommand_1 = require("./commands/CreateSiteCommand");
|
|
6
8
|
const DeleteOutpostCommand_1 = require("./commands/DeleteOutpostCommand");
|
|
7
9
|
const DeleteSiteCommand_1 = require("./commands/DeleteSiteCommand");
|
|
10
|
+
const GetCatalogItemCommand_1 = require("./commands/GetCatalogItemCommand");
|
|
11
|
+
const GetOrderCommand_1 = require("./commands/GetOrderCommand");
|
|
8
12
|
const GetOutpostCommand_1 = require("./commands/GetOutpostCommand");
|
|
9
13
|
const GetOutpostInstanceTypesCommand_1 = require("./commands/GetOutpostInstanceTypesCommand");
|
|
14
|
+
const GetSiteAddressCommand_1 = require("./commands/GetSiteAddressCommand");
|
|
15
|
+
const GetSiteCommand_1 = require("./commands/GetSiteCommand");
|
|
16
|
+
const ListCatalogItemsCommand_1 = require("./commands/ListCatalogItemsCommand");
|
|
17
|
+
const ListOrdersCommand_1 = require("./commands/ListOrdersCommand");
|
|
10
18
|
const ListOutpostsCommand_1 = require("./commands/ListOutpostsCommand");
|
|
11
19
|
const ListSitesCommand_1 = require("./commands/ListSitesCommand");
|
|
12
20
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
13
21
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
14
22
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
23
|
+
const UpdateSiteAddressCommand_1 = require("./commands/UpdateSiteAddressCommand");
|
|
24
|
+
const UpdateSiteCommand_1 = require("./commands/UpdateSiteCommand");
|
|
25
|
+
const UpdateSiteRackPhysicalPropertiesCommand_1 = require("./commands/UpdateSiteRackPhysicalPropertiesCommand");
|
|
15
26
|
const OutpostsClient_1 = require("./OutpostsClient");
|
|
16
27
|
class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
28
|
+
cancelOrder(args, optionsOrCb, cb) {
|
|
29
|
+
const command = new CancelOrderCommand_1.CancelOrderCommand(args);
|
|
30
|
+
if (typeof optionsOrCb === "function") {
|
|
31
|
+
this.send(command, optionsOrCb);
|
|
32
|
+
}
|
|
33
|
+
else if (typeof cb === "function") {
|
|
34
|
+
if (typeof optionsOrCb !== "object")
|
|
35
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return this.send(command, optionsOrCb);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
17
42
|
createOrder(args, optionsOrCb, cb) {
|
|
18
43
|
const command = new CreateOrderCommand_1.CreateOrderCommand(args);
|
|
19
44
|
if (typeof optionsOrCb === "function") {
|
|
@@ -42,6 +67,20 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
|
42
67
|
return this.send(command, optionsOrCb);
|
|
43
68
|
}
|
|
44
69
|
}
|
|
70
|
+
createSite(args, optionsOrCb, cb) {
|
|
71
|
+
const command = new CreateSiteCommand_1.CreateSiteCommand(args);
|
|
72
|
+
if (typeof optionsOrCb === "function") {
|
|
73
|
+
this.send(command, optionsOrCb);
|
|
74
|
+
}
|
|
75
|
+
else if (typeof cb === "function") {
|
|
76
|
+
if (typeof optionsOrCb !== "object")
|
|
77
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return this.send(command, optionsOrCb);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
45
84
|
deleteOutpost(args, optionsOrCb, cb) {
|
|
46
85
|
const command = new DeleteOutpostCommand_1.DeleteOutpostCommand(args);
|
|
47
86
|
if (typeof optionsOrCb === "function") {
|
|
@@ -70,6 +109,34 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
|
70
109
|
return this.send(command, optionsOrCb);
|
|
71
110
|
}
|
|
72
111
|
}
|
|
112
|
+
getCatalogItem(args, optionsOrCb, cb) {
|
|
113
|
+
const command = new GetCatalogItemCommand_1.GetCatalogItemCommand(args);
|
|
114
|
+
if (typeof optionsOrCb === "function") {
|
|
115
|
+
this.send(command, optionsOrCb);
|
|
116
|
+
}
|
|
117
|
+
else if (typeof cb === "function") {
|
|
118
|
+
if (typeof optionsOrCb !== "object")
|
|
119
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
return this.send(command, optionsOrCb);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
getOrder(args, optionsOrCb, cb) {
|
|
127
|
+
const command = new GetOrderCommand_1.GetOrderCommand(args);
|
|
128
|
+
if (typeof optionsOrCb === "function") {
|
|
129
|
+
this.send(command, optionsOrCb);
|
|
130
|
+
}
|
|
131
|
+
else if (typeof cb === "function") {
|
|
132
|
+
if (typeof optionsOrCb !== "object")
|
|
133
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
134
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
return this.send(command, optionsOrCb);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
73
140
|
getOutpost(args, optionsOrCb, cb) {
|
|
74
141
|
const command = new GetOutpostCommand_1.GetOutpostCommand(args);
|
|
75
142
|
if (typeof optionsOrCb === "function") {
|
|
@@ -98,6 +165,62 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
|
98
165
|
return this.send(command, optionsOrCb);
|
|
99
166
|
}
|
|
100
167
|
}
|
|
168
|
+
getSite(args, optionsOrCb, cb) {
|
|
169
|
+
const command = new GetSiteCommand_1.GetSiteCommand(args);
|
|
170
|
+
if (typeof optionsOrCb === "function") {
|
|
171
|
+
this.send(command, optionsOrCb);
|
|
172
|
+
}
|
|
173
|
+
else if (typeof cb === "function") {
|
|
174
|
+
if (typeof optionsOrCb !== "object")
|
|
175
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
176
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
return this.send(command, optionsOrCb);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
getSiteAddress(args, optionsOrCb, cb) {
|
|
183
|
+
const command = new GetSiteAddressCommand_1.GetSiteAddressCommand(args);
|
|
184
|
+
if (typeof optionsOrCb === "function") {
|
|
185
|
+
this.send(command, optionsOrCb);
|
|
186
|
+
}
|
|
187
|
+
else if (typeof cb === "function") {
|
|
188
|
+
if (typeof optionsOrCb !== "object")
|
|
189
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
190
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
return this.send(command, optionsOrCb);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
listCatalogItems(args, optionsOrCb, cb) {
|
|
197
|
+
const command = new ListCatalogItemsCommand_1.ListCatalogItemsCommand(args);
|
|
198
|
+
if (typeof optionsOrCb === "function") {
|
|
199
|
+
this.send(command, optionsOrCb);
|
|
200
|
+
}
|
|
201
|
+
else if (typeof cb === "function") {
|
|
202
|
+
if (typeof optionsOrCb !== "object")
|
|
203
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
204
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
return this.send(command, optionsOrCb);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
listOrders(args, optionsOrCb, cb) {
|
|
211
|
+
const command = new ListOrdersCommand_1.ListOrdersCommand(args);
|
|
212
|
+
if (typeof optionsOrCb === "function") {
|
|
213
|
+
this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
else if (typeof cb === "function") {
|
|
216
|
+
if (typeof optionsOrCb !== "object")
|
|
217
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
218
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return this.send(command, optionsOrCb);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
101
224
|
listOutposts(args, optionsOrCb, cb) {
|
|
102
225
|
const command = new ListOutpostsCommand_1.ListOutpostsCommand(args);
|
|
103
226
|
if (typeof optionsOrCb === "function") {
|
|
@@ -168,5 +291,47 @@ class Outposts extends OutpostsClient_1.OutpostsClient {
|
|
|
168
291
|
return this.send(command, optionsOrCb);
|
|
169
292
|
}
|
|
170
293
|
}
|
|
294
|
+
updateSite(args, optionsOrCb, cb) {
|
|
295
|
+
const command = new UpdateSiteCommand_1.UpdateSiteCommand(args);
|
|
296
|
+
if (typeof optionsOrCb === "function") {
|
|
297
|
+
this.send(command, optionsOrCb);
|
|
298
|
+
}
|
|
299
|
+
else if (typeof cb === "function") {
|
|
300
|
+
if (typeof optionsOrCb !== "object")
|
|
301
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
302
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
return this.send(command, optionsOrCb);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
updateSiteAddress(args, optionsOrCb, cb) {
|
|
309
|
+
const command = new UpdateSiteAddressCommand_1.UpdateSiteAddressCommand(args);
|
|
310
|
+
if (typeof optionsOrCb === "function") {
|
|
311
|
+
this.send(command, optionsOrCb);
|
|
312
|
+
}
|
|
313
|
+
else if (typeof cb === "function") {
|
|
314
|
+
if (typeof optionsOrCb !== "object")
|
|
315
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
316
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
return this.send(command, optionsOrCb);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
updateSiteRackPhysicalProperties(args, optionsOrCb, cb) {
|
|
323
|
+
const command = new UpdateSiteRackPhysicalPropertiesCommand_1.UpdateSiteRackPhysicalPropertiesCommand(args);
|
|
324
|
+
if (typeof optionsOrCb === "function") {
|
|
325
|
+
this.send(command, optionsOrCb);
|
|
326
|
+
}
|
|
327
|
+
else if (typeof cb === "function") {
|
|
328
|
+
if (typeof optionsOrCb !== "object")
|
|
329
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
330
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
return this.send(command, optionsOrCb);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
171
336
|
}
|
|
172
337
|
exports.Outposts = Outposts;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelOrderCommand = 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 CancelOrderCommand 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 = "CancelOrderCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CancelOrderInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CancelOrderOutput.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_restJson1CancelOrderCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1CancelOrderCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CancelOrderCommand = CancelOrderCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSiteCommand = 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 CreateSiteCommand 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 = "CreateSiteCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateSiteInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateSiteOutput.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_restJson1CreateSiteCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1CreateSiteCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateSiteCommand = CreateSiteCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCatalogItemCommand = 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 GetCatalogItemCommand 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 = "GetCatalogItemCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetCatalogItemInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetCatalogItemOutput.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_restJson1GetCatalogItemCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetCatalogItemCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetCatalogItemCommand = GetCatalogItemCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOrderCommand = 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 GetOrderCommand 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 = "GetOrderCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetOrderInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetOrderOutput.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_restJson1GetOrderCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetOrderCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetOrderCommand = GetOrderCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSiteAddressCommand = 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 GetSiteAddressCommand 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 = "GetSiteAddressCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetSiteAddressInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetSiteAddressOutput.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_restJson1GetSiteAddressCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetSiteAddressCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetSiteAddressCommand = GetSiteAddressCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSiteCommand = 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 GetSiteCommand 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 = "GetSiteCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetSiteInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetSiteOutput.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_restJson1GetSiteCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetSiteCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetSiteCommand = GetSiteCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCatalogItemsCommand = 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 ListCatalogItemsCommand 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 = "ListCatalogItemsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListCatalogItemsInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListCatalogItemsOutput.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_restJson1ListCatalogItemsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListCatalogItemsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListCatalogItemsCommand = ListCatalogItemsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListOrdersCommand = 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 ListOrdersCommand 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 = "ListOrdersCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListOrdersInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListOrdersOutput.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_restJson1ListOrdersCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListOrdersCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListOrdersCommand = ListOrdersCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSiteAddressCommand = 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 UpdateSiteAddressCommand 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 = "UpdateSiteAddressCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateSiteAddressInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateSiteAddressOutput.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_restJson1UpdateSiteAddressCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateSiteAddressCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateSiteAddressCommand = UpdateSiteAddressCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSiteCommand = 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 UpdateSiteCommand 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 = "UpdateSiteCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateSiteInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateSiteOutput.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_restJson1UpdateSiteCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateSiteCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateSiteCommand = UpdateSiteCommand;
|