Skip to content

Commit

Permalink
feat(client-outposts): This release adds new APIs to allow customers …
Browse files Browse the repository at this point in the history
…to configure their Outpost capacity at order-time.
  • Loading branch information
awstools committed Apr 16, 2024
1 parent 93b9ea7 commit 6701646
Show file tree
Hide file tree
Showing 15 changed files with 2,237 additions and 38 deletions.
40 changes: 40 additions & 0 deletions clients/client-outposts/README.md
Expand Up @@ -207,6 +207,14 @@ see LICENSE for more information.

## Client Commands (Operations List)

<details>
<summary>
CancelCapacityTask
</summary>

[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/)

</details>
<details>
<summary>
CancelOrder
Expand Down Expand Up @@ -254,6 +262,14 @@ DeleteSite

[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/)

</details>
<details>
<summary>
GetCapacityTask
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -294,6 +310,14 @@ GetOutpostInstanceTypes

[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/)

</details>
<details>
<summary>
GetOutpostSupportedInstanceTypes
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -318,6 +342,14 @@ ListAssets

[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/)

</details>
<details>
<summary>
ListCapacityTasks
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -358,6 +390,14 @@ ListTagsForResource

[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/)

</details>
<details>
<summary>
StartCapacityTask
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
113 changes: 113 additions & 0 deletions clients/client-outposts/src/Outposts.ts
Expand Up @@ -2,6 +2,11 @@
import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import {
CancelCapacityTaskCommand,
CancelCapacityTaskCommandInput,
CancelCapacityTaskCommandOutput,
} from "./commands/CancelCapacityTaskCommand";
import { CancelOrderCommand, CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
import { CreateOrderCommand, CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
import {
Expand All @@ -16,6 +21,11 @@ import {
DeleteOutpostCommandOutput,
} from "./commands/DeleteOutpostCommand";
import { DeleteSiteCommand, DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
import {
GetCapacityTaskCommand,
GetCapacityTaskCommandInput,
GetCapacityTaskCommandOutput,
} from "./commands/GetCapacityTaskCommand";
import {
GetCatalogItemCommand,
GetCatalogItemCommandInput,
Expand All @@ -33,13 +43,23 @@ import {
GetOutpostInstanceTypesCommandInput,
GetOutpostInstanceTypesCommandOutput,
} from "./commands/GetOutpostInstanceTypesCommand";
import {
GetOutpostSupportedInstanceTypesCommand,
GetOutpostSupportedInstanceTypesCommandInput,
GetOutpostSupportedInstanceTypesCommandOutput,
} from "./commands/GetOutpostSupportedInstanceTypesCommand";
import {
GetSiteAddressCommand,
GetSiteAddressCommandInput,
GetSiteAddressCommandOutput,
} from "./commands/GetSiteAddressCommand";
import { GetSiteCommand, GetSiteCommandInput, GetSiteCommandOutput } from "./commands/GetSiteCommand";
import { ListAssetsCommand, ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
import {
ListCapacityTasksCommand,
ListCapacityTasksCommandInput,
ListCapacityTasksCommandOutput,
} from "./commands/ListCapacityTasksCommand";
import {
ListCatalogItemsCommand,
ListCatalogItemsCommandInput,
Expand All @@ -57,6 +77,11 @@ import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
StartCapacityTaskCommand,
StartCapacityTaskCommandInput,
StartCapacityTaskCommandOutput,
} from "./commands/StartCapacityTaskCommand";
import {
StartConnectionCommand,
StartConnectionCommandInput,
Expand Down Expand Up @@ -87,25 +112,30 @@ import {
import { OutpostsClient, OutpostsClientConfig } from "./OutpostsClient";

const commands = {
CancelCapacityTaskCommand,
CancelOrderCommand,
CreateOrderCommand,
CreateOutpostCommand,
CreateSiteCommand,
DeleteOutpostCommand,
DeleteSiteCommand,
GetCapacityTaskCommand,
GetCatalogItemCommand,
GetConnectionCommand,
GetOrderCommand,
GetOutpostCommand,
GetOutpostInstanceTypesCommand,
GetOutpostSupportedInstanceTypesCommand,
GetSiteCommand,
GetSiteAddressCommand,
ListAssetsCommand,
ListCapacityTasksCommand,
ListCatalogItemsCommand,
ListOrdersCommand,
ListOutpostsCommand,
ListSitesCommand,
ListTagsForResourceCommand,
StartCapacityTaskCommand,
StartConnectionCommand,
TagResourceCommand,
UntagResourceCommand,
Expand All @@ -116,6 +146,23 @@ const commands = {
};

export interface Outposts {
/**
* @see {@link CancelCapacityTaskCommand}
*/
cancelCapacityTask(
args: CancelCapacityTaskCommandInput,
options?: __HttpHandlerOptions
): Promise<CancelCapacityTaskCommandOutput>;
cancelCapacityTask(
args: CancelCapacityTaskCommandInput,
cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void
): void;
cancelCapacityTask(
args: CancelCapacityTaskCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void
): void;

/**
* @see {@link CancelOrderCommand}
*/
Expand Down Expand Up @@ -182,6 +229,20 @@ export interface Outposts {
cb: (err: any, data?: DeleteSiteCommandOutput) => void
): void;

/**
* @see {@link GetCapacityTaskCommand}
*/
getCapacityTask(
args: GetCapacityTaskCommandInput,
options?: __HttpHandlerOptions
): Promise<GetCapacityTaskCommandOutput>;
getCapacityTask(args: GetCapacityTaskCommandInput, cb: (err: any, data?: GetCapacityTaskCommandOutput) => void): void;
getCapacityTask(
args: GetCapacityTaskCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetCapacityTaskCommandOutput) => void
): void;

/**
* @see {@link GetCatalogItemCommand}
*/
Expand Down Expand Up @@ -246,6 +307,23 @@ export interface Outposts {
cb: (err: any, data?: GetOutpostInstanceTypesCommandOutput) => void
): void;

/**
* @see {@link GetOutpostSupportedInstanceTypesCommand}
*/
getOutpostSupportedInstanceTypes(
args: GetOutpostSupportedInstanceTypesCommandInput,
options?: __HttpHandlerOptions
): Promise<GetOutpostSupportedInstanceTypesCommandOutput>;
getOutpostSupportedInstanceTypes(
args: GetOutpostSupportedInstanceTypesCommandInput,
cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void
): void;
getOutpostSupportedInstanceTypes(
args: GetOutpostSupportedInstanceTypesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void
): void;

/**
* @see {@link GetSiteCommand}
*/
Expand Down Expand Up @@ -282,6 +360,24 @@ export interface Outposts {
cb: (err: any, data?: ListAssetsCommandOutput) => void
): void;

/**
* @see {@link ListCapacityTasksCommand}
*/
listCapacityTasks(): Promise<ListCapacityTasksCommandOutput>;
listCapacityTasks(
args: ListCapacityTasksCommandInput,
options?: __HttpHandlerOptions
): Promise<ListCapacityTasksCommandOutput>;
listCapacityTasks(
args: ListCapacityTasksCommandInput,
cb: (err: any, data?: ListCapacityTasksCommandOutput) => void
): void;
listCapacityTasks(
args: ListCapacityTasksCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListCapacityTasksCommandOutput) => void
): void;

/**
* @see {@link ListCatalogItemsCommand}
*/
Expand Down Expand Up @@ -353,6 +449,23 @@ export interface Outposts {
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link StartCapacityTaskCommand}
*/
startCapacityTask(
args: StartCapacityTaskCommandInput,
options?: __HttpHandlerOptions
): Promise<StartCapacityTaskCommandOutput>;
startCapacityTask(
args: StartCapacityTaskCommandInput,
cb: (err: any, data?: StartCapacityTaskCommandOutput) => void
): void;
startCapacityTask(
args: StartCapacityTaskCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartCapacityTaskCommandOutput) => void
): void;

/**
* @see {@link StartConnectionCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-outposts/src/OutpostsClient.ts
Expand Up @@ -53,12 +53,14 @@ import {
HttpAuthSchemeResolvedConfig,
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import { CancelCapacityTaskCommandInput, CancelCapacityTaskCommandOutput } from "./commands/CancelCapacityTaskCommand";
import { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
import { CreateOutpostCommandInput, CreateOutpostCommandOutput } from "./commands/CreateOutpostCommand";
import { CreateSiteCommandInput, CreateSiteCommandOutput } from "./commands/CreateSiteCommand";
import { DeleteOutpostCommandInput, DeleteOutpostCommandOutput } from "./commands/DeleteOutpostCommand";
import { DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
import { GetCapacityTaskCommandInput, GetCapacityTaskCommandOutput } from "./commands/GetCapacityTaskCommand";
import { GetCatalogItemCommandInput, GetCatalogItemCommandOutput } from "./commands/GetCatalogItemCommand";
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
import { GetOrderCommandInput, GetOrderCommandOutput } from "./commands/GetOrderCommand";
Expand All @@ -67,9 +69,14 @@ import {
GetOutpostInstanceTypesCommandInput,
GetOutpostInstanceTypesCommandOutput,
} from "./commands/GetOutpostInstanceTypesCommand";
import {
GetOutpostSupportedInstanceTypesCommandInput,
GetOutpostSupportedInstanceTypesCommandOutput,
} from "./commands/GetOutpostSupportedInstanceTypesCommand";
import { GetSiteAddressCommandInput, GetSiteAddressCommandOutput } from "./commands/GetSiteAddressCommand";
import { GetSiteCommandInput, GetSiteCommandOutput } from "./commands/GetSiteCommand";
import { ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
import { ListCapacityTasksCommandInput, ListCapacityTasksCommandOutput } from "./commands/ListCapacityTasksCommand";
import { ListCatalogItemsCommandInput, ListCatalogItemsCommandOutput } from "./commands/ListCatalogItemsCommand";
import { ListOrdersCommandInput, ListOrdersCommandOutput } from "./commands/ListOrdersCommand";
import { ListOutpostsCommandInput, ListOutpostsCommandOutput } from "./commands/ListOutpostsCommand";
Expand All @@ -78,6 +85,7 @@ import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "./commands/StartCapacityTaskCommand";
import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
Expand All @@ -103,25 +111,30 @@ export { __Client };
* @public
*/
export type ServiceInputTypes =
| CancelCapacityTaskCommandInput
| CancelOrderCommandInput
| CreateOrderCommandInput
| CreateOutpostCommandInput
| CreateSiteCommandInput
| DeleteOutpostCommandInput
| DeleteSiteCommandInput
| GetCapacityTaskCommandInput
| GetCatalogItemCommandInput
| GetConnectionCommandInput
| GetOrderCommandInput
| GetOutpostCommandInput
| GetOutpostInstanceTypesCommandInput
| GetOutpostSupportedInstanceTypesCommandInput
| GetSiteAddressCommandInput
| GetSiteCommandInput
| ListAssetsCommandInput
| ListCapacityTasksCommandInput
| ListCatalogItemsCommandInput
| ListOrdersCommandInput
| ListOutpostsCommandInput
| ListSitesCommandInput
| ListTagsForResourceCommandInput
| StartCapacityTaskCommandInput
| StartConnectionCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
Expand All @@ -134,25 +147,30 @@ export type ServiceInputTypes =
* @public
*/
export type ServiceOutputTypes =
| CancelCapacityTaskCommandOutput
| CancelOrderCommandOutput
| CreateOrderCommandOutput
| CreateOutpostCommandOutput
| CreateSiteCommandOutput
| DeleteOutpostCommandOutput
| DeleteSiteCommandOutput
| GetCapacityTaskCommandOutput
| GetCatalogItemCommandOutput
| GetConnectionCommandOutput
| GetOrderCommandOutput
| GetOutpostCommandOutput
| GetOutpostInstanceTypesCommandOutput
| GetOutpostSupportedInstanceTypesCommandOutput
| GetSiteAddressCommandOutput
| GetSiteCommandOutput
| ListAssetsCommandOutput
| ListCapacityTasksCommandOutput
| ListCatalogItemsCommandOutput
| ListOrdersCommandOutput
| ListOutpostsCommandOutput
| ListSitesCommandOutput
| ListTagsForResourceCommandOutput
| StartCapacityTaskCommandOutput
| StartConnectionCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
Expand Down

0 comments on commit 6701646

Please sign in to comment.