Skip to content

Commit 6701646

Browse files
author
awstools
committed
feat(client-outposts): This release adds new APIs to allow customers to configure their Outpost capacity at order-time.
1 parent 93b9ea7 commit 6701646

15 files changed

+2237
-38
lines changed

clients/client-outposts/README.md

+40
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,14 @@ see LICENSE for more information.
207207

208208
## Client Commands (Operations List)
209209

210+
<details>
211+
<summary>
212+
CancelCapacityTask
213+
</summary>
214+
215+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/CancelCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/CancelCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/CancelCapacityTaskCommandOutput/)
216+
217+
</details>
210218
<details>
211219
<summary>
212220
CancelOrder
@@ -254,6 +262,14 @@ DeleteSite
254262

255263
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/DeleteSiteCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/DeleteSiteCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/DeleteSiteCommandOutput/)
256264

265+
</details>
266+
<details>
267+
<summary>
268+
GetCapacityTask
269+
</summary>
270+
271+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetCapacityTaskCommandOutput/)
272+
257273
</details>
258274
<details>
259275
<summary>
@@ -294,6 +310,14 @@ GetOutpostInstanceTypes
294310

295311
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetOutpostInstanceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostInstanceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostInstanceTypesCommandOutput/)
296312

313+
</details>
314+
<details>
315+
<summary>
316+
GetOutpostSupportedInstanceTypes
317+
</summary>
318+
319+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetOutpostSupportedInstanceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostSupportedInstanceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostSupportedInstanceTypesCommandOutput/)
320+
297321
</details>
298322
<details>
299323
<summary>
@@ -318,6 +342,14 @@ ListAssets
318342

319343
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListAssetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetsCommandOutput/)
320344

345+
</details>
346+
<details>
347+
<summary>
348+
ListCapacityTasks
349+
</summary>
350+
351+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListCapacityTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListCapacityTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListCapacityTasksCommandOutput/)
352+
321353
</details>
322354
<details>
323355
<summary>
@@ -358,6 +390,14 @@ ListTagsForResource
358390

359391
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListTagsForResourceCommandOutput/)
360392

393+
</details>
394+
<details>
395+
<summary>
396+
StartCapacityTask
397+
</summary>
398+
399+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/StartCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/StartCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/StartCapacityTaskCommandOutput/)
400+
361401
</details>
362402
<details>
363403
<summary>

clients/client-outposts/src/Outposts.ts

+113
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
CancelCapacityTaskCommand,
7+
CancelCapacityTaskCommandInput,
8+
CancelCapacityTaskCommandOutput,
9+
} from "./commands/CancelCapacityTaskCommand";
510
import { CancelOrderCommand, CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
611
import { CreateOrderCommand, CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
712
import {
@@ -16,6 +21,11 @@ import {
1621
DeleteOutpostCommandOutput,
1722
} from "./commands/DeleteOutpostCommand";
1823
import { DeleteSiteCommand, DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
24+
import {
25+
GetCapacityTaskCommand,
26+
GetCapacityTaskCommandInput,
27+
GetCapacityTaskCommandOutput,
28+
} from "./commands/GetCapacityTaskCommand";
1929
import {
2030
GetCatalogItemCommand,
2131
GetCatalogItemCommandInput,
@@ -33,13 +43,23 @@ import {
3343
GetOutpostInstanceTypesCommandInput,
3444
GetOutpostInstanceTypesCommandOutput,
3545
} from "./commands/GetOutpostInstanceTypesCommand";
46+
import {
47+
GetOutpostSupportedInstanceTypesCommand,
48+
GetOutpostSupportedInstanceTypesCommandInput,
49+
GetOutpostSupportedInstanceTypesCommandOutput,
50+
} from "./commands/GetOutpostSupportedInstanceTypesCommand";
3651
import {
3752
GetSiteAddressCommand,
3853
GetSiteAddressCommandInput,
3954
GetSiteAddressCommandOutput,
4055
} from "./commands/GetSiteAddressCommand";
4156
import { GetSiteCommand, GetSiteCommandInput, GetSiteCommandOutput } from "./commands/GetSiteCommand";
4257
import { ListAssetsCommand, ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
58+
import {
59+
ListCapacityTasksCommand,
60+
ListCapacityTasksCommandInput,
61+
ListCapacityTasksCommandOutput,
62+
} from "./commands/ListCapacityTasksCommand";
4363
import {
4464
ListCatalogItemsCommand,
4565
ListCatalogItemsCommandInput,
@@ -57,6 +77,11 @@ import {
5777
ListTagsForResourceCommandInput,
5878
ListTagsForResourceCommandOutput,
5979
} from "./commands/ListTagsForResourceCommand";
80+
import {
81+
StartCapacityTaskCommand,
82+
StartCapacityTaskCommandInput,
83+
StartCapacityTaskCommandOutput,
84+
} from "./commands/StartCapacityTaskCommand";
6085
import {
6186
StartConnectionCommand,
6287
StartConnectionCommandInput,
@@ -87,25 +112,30 @@ import {
87112
import { OutpostsClient, OutpostsClientConfig } from "./OutpostsClient";
88113

89114
const commands = {
115+
CancelCapacityTaskCommand,
90116
CancelOrderCommand,
91117
CreateOrderCommand,
92118
CreateOutpostCommand,
93119
CreateSiteCommand,
94120
DeleteOutpostCommand,
95121
DeleteSiteCommand,
122+
GetCapacityTaskCommand,
96123
GetCatalogItemCommand,
97124
GetConnectionCommand,
98125
GetOrderCommand,
99126
GetOutpostCommand,
100127
GetOutpostInstanceTypesCommand,
128+
GetOutpostSupportedInstanceTypesCommand,
101129
GetSiteCommand,
102130
GetSiteAddressCommand,
103131
ListAssetsCommand,
132+
ListCapacityTasksCommand,
104133
ListCatalogItemsCommand,
105134
ListOrdersCommand,
106135
ListOutpostsCommand,
107136
ListSitesCommand,
108137
ListTagsForResourceCommand,
138+
StartCapacityTaskCommand,
109139
StartConnectionCommand,
110140
TagResourceCommand,
111141
UntagResourceCommand,
@@ -116,6 +146,23 @@ const commands = {
116146
};
117147

118148
export interface Outposts {
149+
/**
150+
* @see {@link CancelCapacityTaskCommand}
151+
*/
152+
cancelCapacityTask(
153+
args: CancelCapacityTaskCommandInput,
154+
options?: __HttpHandlerOptions
155+
): Promise<CancelCapacityTaskCommandOutput>;
156+
cancelCapacityTask(
157+
args: CancelCapacityTaskCommandInput,
158+
cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void
159+
): void;
160+
cancelCapacityTask(
161+
args: CancelCapacityTaskCommandInput,
162+
options: __HttpHandlerOptions,
163+
cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void
164+
): void;
165+
119166
/**
120167
* @see {@link CancelOrderCommand}
121168
*/
@@ -182,6 +229,20 @@ export interface Outposts {
182229
cb: (err: any, data?: DeleteSiteCommandOutput) => void
183230
): void;
184231

232+
/**
233+
* @see {@link GetCapacityTaskCommand}
234+
*/
235+
getCapacityTask(
236+
args: GetCapacityTaskCommandInput,
237+
options?: __HttpHandlerOptions
238+
): Promise<GetCapacityTaskCommandOutput>;
239+
getCapacityTask(args: GetCapacityTaskCommandInput, cb: (err: any, data?: GetCapacityTaskCommandOutput) => void): void;
240+
getCapacityTask(
241+
args: GetCapacityTaskCommandInput,
242+
options: __HttpHandlerOptions,
243+
cb: (err: any, data?: GetCapacityTaskCommandOutput) => void
244+
): void;
245+
185246
/**
186247
* @see {@link GetCatalogItemCommand}
187248
*/
@@ -246,6 +307,23 @@ export interface Outposts {
246307
cb: (err: any, data?: GetOutpostInstanceTypesCommandOutput) => void
247308
): void;
248309

310+
/**
311+
* @see {@link GetOutpostSupportedInstanceTypesCommand}
312+
*/
313+
getOutpostSupportedInstanceTypes(
314+
args: GetOutpostSupportedInstanceTypesCommandInput,
315+
options?: __HttpHandlerOptions
316+
): Promise<GetOutpostSupportedInstanceTypesCommandOutput>;
317+
getOutpostSupportedInstanceTypes(
318+
args: GetOutpostSupportedInstanceTypesCommandInput,
319+
cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void
320+
): void;
321+
getOutpostSupportedInstanceTypes(
322+
args: GetOutpostSupportedInstanceTypesCommandInput,
323+
options: __HttpHandlerOptions,
324+
cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void
325+
): void;
326+
249327
/**
250328
* @see {@link GetSiteCommand}
251329
*/
@@ -282,6 +360,24 @@ export interface Outposts {
282360
cb: (err: any, data?: ListAssetsCommandOutput) => void
283361
): void;
284362

363+
/**
364+
* @see {@link ListCapacityTasksCommand}
365+
*/
366+
listCapacityTasks(): Promise<ListCapacityTasksCommandOutput>;
367+
listCapacityTasks(
368+
args: ListCapacityTasksCommandInput,
369+
options?: __HttpHandlerOptions
370+
): Promise<ListCapacityTasksCommandOutput>;
371+
listCapacityTasks(
372+
args: ListCapacityTasksCommandInput,
373+
cb: (err: any, data?: ListCapacityTasksCommandOutput) => void
374+
): void;
375+
listCapacityTasks(
376+
args: ListCapacityTasksCommandInput,
377+
options: __HttpHandlerOptions,
378+
cb: (err: any, data?: ListCapacityTasksCommandOutput) => void
379+
): void;
380+
285381
/**
286382
* @see {@link ListCatalogItemsCommand}
287383
*/
@@ -353,6 +449,23 @@ export interface Outposts {
353449
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
354450
): void;
355451

452+
/**
453+
* @see {@link StartCapacityTaskCommand}
454+
*/
455+
startCapacityTask(
456+
args: StartCapacityTaskCommandInput,
457+
options?: __HttpHandlerOptions
458+
): Promise<StartCapacityTaskCommandOutput>;
459+
startCapacityTask(
460+
args: StartCapacityTaskCommandInput,
461+
cb: (err: any, data?: StartCapacityTaskCommandOutput) => void
462+
): void;
463+
startCapacityTask(
464+
args: StartCapacityTaskCommandInput,
465+
options: __HttpHandlerOptions,
466+
cb: (err: any, data?: StartCapacityTaskCommandOutput) => void
467+
): void;
468+
356469
/**
357470
* @see {@link StartConnectionCommand}
358471
*/

clients/client-outposts/src/OutpostsClient.ts

+18
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ import {
5353
HttpAuthSchemeResolvedConfig,
5454
resolveHttpAuthSchemeConfig,
5555
} from "./auth/httpAuthSchemeProvider";
56+
import { CancelCapacityTaskCommandInput, CancelCapacityTaskCommandOutput } from "./commands/CancelCapacityTaskCommand";
5657
import { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
5758
import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
5859
import { CreateOutpostCommandInput, CreateOutpostCommandOutput } from "./commands/CreateOutpostCommand";
5960
import { CreateSiteCommandInput, CreateSiteCommandOutput } from "./commands/CreateSiteCommand";
6061
import { DeleteOutpostCommandInput, DeleteOutpostCommandOutput } from "./commands/DeleteOutpostCommand";
6162
import { DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
63+
import { GetCapacityTaskCommandInput, GetCapacityTaskCommandOutput } from "./commands/GetCapacityTaskCommand";
6264
import { GetCatalogItemCommandInput, GetCatalogItemCommandOutput } from "./commands/GetCatalogItemCommand";
6365
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
6466
import { GetOrderCommandInput, GetOrderCommandOutput } from "./commands/GetOrderCommand";
@@ -67,9 +69,14 @@ import {
6769
GetOutpostInstanceTypesCommandInput,
6870
GetOutpostInstanceTypesCommandOutput,
6971
} from "./commands/GetOutpostInstanceTypesCommand";
72+
import {
73+
GetOutpostSupportedInstanceTypesCommandInput,
74+
GetOutpostSupportedInstanceTypesCommandOutput,
75+
} from "./commands/GetOutpostSupportedInstanceTypesCommand";
7076
import { GetSiteAddressCommandInput, GetSiteAddressCommandOutput } from "./commands/GetSiteAddressCommand";
7177
import { GetSiteCommandInput, GetSiteCommandOutput } from "./commands/GetSiteCommand";
7278
import { ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
79+
import { ListCapacityTasksCommandInput, ListCapacityTasksCommandOutput } from "./commands/ListCapacityTasksCommand";
7380
import { ListCatalogItemsCommandInput, ListCatalogItemsCommandOutput } from "./commands/ListCatalogItemsCommand";
7481
import { ListOrdersCommandInput, ListOrdersCommandOutput } from "./commands/ListOrdersCommand";
7582
import { ListOutpostsCommandInput, ListOutpostsCommandOutput } from "./commands/ListOutpostsCommand";
@@ -78,6 +85,7 @@ import {
7885
ListTagsForResourceCommandInput,
7986
ListTagsForResourceCommandOutput,
8087
} from "./commands/ListTagsForResourceCommand";
88+
import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "./commands/StartCapacityTaskCommand";
8189
import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
8290
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
8391
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -103,25 +111,30 @@ export { __Client };
103111
* @public
104112
*/
105113
export type ServiceInputTypes =
114+
| CancelCapacityTaskCommandInput
106115
| CancelOrderCommandInput
107116
| CreateOrderCommandInput
108117
| CreateOutpostCommandInput
109118
| CreateSiteCommandInput
110119
| DeleteOutpostCommandInput
111120
| DeleteSiteCommandInput
121+
| GetCapacityTaskCommandInput
112122
| GetCatalogItemCommandInput
113123
| GetConnectionCommandInput
114124
| GetOrderCommandInput
115125
| GetOutpostCommandInput
116126
| GetOutpostInstanceTypesCommandInput
127+
| GetOutpostSupportedInstanceTypesCommandInput
117128
| GetSiteAddressCommandInput
118129
| GetSiteCommandInput
119130
| ListAssetsCommandInput
131+
| ListCapacityTasksCommandInput
120132
| ListCatalogItemsCommandInput
121133
| ListOrdersCommandInput
122134
| ListOutpostsCommandInput
123135
| ListSitesCommandInput
124136
| ListTagsForResourceCommandInput
137+
| StartCapacityTaskCommandInput
125138
| StartConnectionCommandInput
126139
| TagResourceCommandInput
127140
| UntagResourceCommandInput
@@ -134,25 +147,30 @@ export type ServiceInputTypes =
134147
* @public
135148
*/
136149
export type ServiceOutputTypes =
150+
| CancelCapacityTaskCommandOutput
137151
| CancelOrderCommandOutput
138152
| CreateOrderCommandOutput
139153
| CreateOutpostCommandOutput
140154
| CreateSiteCommandOutput
141155
| DeleteOutpostCommandOutput
142156
| DeleteSiteCommandOutput
157+
| GetCapacityTaskCommandOutput
143158
| GetCatalogItemCommandOutput
144159
| GetConnectionCommandOutput
145160
| GetOrderCommandOutput
146161
| GetOutpostCommandOutput
147162
| GetOutpostInstanceTypesCommandOutput
163+
| GetOutpostSupportedInstanceTypesCommandOutput
148164
| GetSiteAddressCommandOutput
149165
| GetSiteCommandOutput
150166
| ListAssetsCommandOutput
167+
| ListCapacityTasksCommandOutput
151168
| ListCatalogItemsCommandOutput
152169
| ListOrdersCommandOutput
153170
| ListOutpostsCommandOutput
154171
| ListSitesCommandOutput
155172
| ListTagsForResourceCommandOutput
173+
| StartCapacityTaskCommandOutput
156174
| StartConnectionCommandOutput
157175
| TagResourceCommandOutput
158176
| UntagResourceCommandOutput

0 commit comments

Comments
 (0)