Skip to content

Commit

Permalink
feat(client-migration-hub): API and documentation updates for AWS Mig…
Browse files Browse the repository at this point in the history
…rationHub related to adding support for listing migration task updates and associating, disassociating and listing source resources
  • Loading branch information
awstools committed Dec 11, 2024
1 parent fec23be commit bfb97ab
Show file tree
Hide file tree
Showing 15 changed files with 1,661 additions and 9 deletions.
32 changes: 32 additions & 0 deletions clients/client-migration-hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ AssociateDiscoveredResource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/AssociateDiscoveredResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/AssociateDiscoveredResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/AssociateDiscoveredResourceCommandOutput/)

</details>
<details>
<summary>
AssociateSourceResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/AssociateSourceResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/AssociateSourceResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/AssociateSourceResourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -271,6 +279,14 @@ DisassociateDiscoveredResource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/DisassociateDiscoveredResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/DisassociateDiscoveredResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/DisassociateDiscoveredResourceCommandOutput/)

</details>
<details>
<summary>
DisassociateSourceResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/DisassociateSourceResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/DisassociateSourceResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/DisassociateSourceResourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -311,6 +327,14 @@ ListMigrationTasks

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/ListMigrationTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListMigrationTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListMigrationTasksCommandOutput/)

</details>
<details>
<summary>
ListMigrationTaskUpdates
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/ListMigrationTaskUpdatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListMigrationTaskUpdatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListMigrationTaskUpdatesCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -319,6 +343,14 @@ ListProgressUpdateStreams

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/ListProgressUpdateStreamsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListProgressUpdateStreamsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListProgressUpdateStreamsCommandOutput/)

</details>
<details>
<summary>
ListSourceResources
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migration-hub/command/ListSourceResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListSourceResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migration-hub/Interface/ListSourceResourcesCommandOutput/)

</details>
<details>
<summary>
Expand Down
92 changes: 92 additions & 0 deletions clients/client-migration-hub/src/MigrationHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
AssociateDiscoveredResourceCommandInput,
AssociateDiscoveredResourceCommandOutput,
} from "./commands/AssociateDiscoveredResourceCommand";
import {
AssociateSourceResourceCommand,
AssociateSourceResourceCommandInput,
AssociateSourceResourceCommandOutput,
} from "./commands/AssociateSourceResourceCommand";
import {
CreateProgressUpdateStreamCommand,
CreateProgressUpdateStreamCommandInput,
Expand Down Expand Up @@ -42,6 +47,11 @@ import {
DisassociateDiscoveredResourceCommandInput,
DisassociateDiscoveredResourceCommandOutput,
} from "./commands/DisassociateDiscoveredResourceCommand";
import {
DisassociateSourceResourceCommand,
DisassociateSourceResourceCommandInput,
DisassociateSourceResourceCommandOutput,
} from "./commands/DisassociateSourceResourceCommand";
import {
ImportMigrationTaskCommand,
ImportMigrationTaskCommandInput,
Expand All @@ -67,11 +77,21 @@ import {
ListMigrationTasksCommandInput,
ListMigrationTasksCommandOutput,
} from "./commands/ListMigrationTasksCommand";
import {
ListMigrationTaskUpdatesCommand,
ListMigrationTaskUpdatesCommandInput,
ListMigrationTaskUpdatesCommandOutput,
} from "./commands/ListMigrationTaskUpdatesCommand";
import {
ListProgressUpdateStreamsCommand,
ListProgressUpdateStreamsCommandInput,
ListProgressUpdateStreamsCommandOutput,
} from "./commands/ListProgressUpdateStreamsCommand";
import {
ListSourceResourcesCommand,
ListSourceResourcesCommandInput,
ListSourceResourcesCommandOutput,
} from "./commands/ListSourceResourcesCommand";
import {
NotifyApplicationStateCommand,
NotifyApplicationStateCommandInput,
Expand All @@ -92,18 +112,22 @@ import { MigrationHubClient, MigrationHubClientConfig } from "./MigrationHubClie
const commands = {
AssociateCreatedArtifactCommand,
AssociateDiscoveredResourceCommand,
AssociateSourceResourceCommand,
CreateProgressUpdateStreamCommand,
DeleteProgressUpdateStreamCommand,
DescribeApplicationStateCommand,
DescribeMigrationTaskCommand,
DisassociateCreatedArtifactCommand,
DisassociateDiscoveredResourceCommand,
DisassociateSourceResourceCommand,
ImportMigrationTaskCommand,
ListApplicationStatesCommand,
ListCreatedArtifactsCommand,
ListDiscoveredResourcesCommand,
ListMigrationTasksCommand,
ListMigrationTaskUpdatesCommand,
ListProgressUpdateStreamsCommand,
ListSourceResourcesCommand,
NotifyApplicationStateCommand,
NotifyMigrationTaskStateCommand,
PutResourceAttributesCommand,
Expand Down Expand Up @@ -144,6 +168,23 @@ export interface MigrationHub {
cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void
): void;

/**
* @see {@link AssociateSourceResourceCommand}
*/
associateSourceResource(
args: AssociateSourceResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<AssociateSourceResourceCommandOutput>;
associateSourceResource(
args: AssociateSourceResourceCommandInput,
cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void
): void;
associateSourceResource(
args: AssociateSourceResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AssociateSourceResourceCommandOutput) => void
): void;

/**
* @see {@link CreateProgressUpdateStreamCommand}
*/
Expand Down Expand Up @@ -246,6 +287,23 @@ export interface MigrationHub {
cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void
): void;

/**
* @see {@link DisassociateSourceResourceCommand}
*/
disassociateSourceResource(
args: DisassociateSourceResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<DisassociateSourceResourceCommandOutput>;
disassociateSourceResource(
args: DisassociateSourceResourceCommandInput,
cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void
): void;
disassociateSourceResource(
args: DisassociateSourceResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DisassociateSourceResourceCommandOutput) => void
): void;

/**
* @see {@link ImportMigrationTaskCommand}
*/
Expand Down Expand Up @@ -333,6 +391,23 @@ export interface MigrationHub {
cb: (err: any, data?: ListMigrationTasksCommandOutput) => void
): void;

/**
* @see {@link ListMigrationTaskUpdatesCommand}
*/
listMigrationTaskUpdates(
args: ListMigrationTaskUpdatesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListMigrationTaskUpdatesCommandOutput>;
listMigrationTaskUpdates(
args: ListMigrationTaskUpdatesCommandInput,
cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void
): void;
listMigrationTaskUpdates(
args: ListMigrationTaskUpdatesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListMigrationTaskUpdatesCommandOutput) => void
): void;

/**
* @see {@link ListProgressUpdateStreamsCommand}
*/
Expand All @@ -351,6 +426,23 @@ export interface MigrationHub {
cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void
): void;

/**
* @see {@link ListSourceResourcesCommand}
*/
listSourceResources(
args: ListSourceResourcesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListSourceResourcesCommandOutput>;
listSourceResources(
args: ListSourceResourcesCommandInput,
cb: (err: any, data?: ListSourceResourcesCommandOutput) => void
): void;
listSourceResources(
args: ListSourceResourcesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListSourceResourcesCommandOutput) => void
): void;

/**
* @see {@link NotifyApplicationStateCommand}
*/
Expand Down
24 changes: 24 additions & 0 deletions clients/client-migration-hub/src/MigrationHubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ import {
AssociateDiscoveredResourceCommandInput,
AssociateDiscoveredResourceCommandOutput,
} from "./commands/AssociateDiscoveredResourceCommand";
import {
AssociateSourceResourceCommandInput,
AssociateSourceResourceCommandOutput,
} from "./commands/AssociateSourceResourceCommand";
import {
CreateProgressUpdateStreamCommandInput,
CreateProgressUpdateStreamCommandOutput,
Expand All @@ -85,6 +89,10 @@ import {
DisassociateDiscoveredResourceCommandInput,
DisassociateDiscoveredResourceCommandOutput,
} from "./commands/DisassociateDiscoveredResourceCommand";
import {
DisassociateSourceResourceCommandInput,
DisassociateSourceResourceCommandOutput,
} from "./commands/DisassociateSourceResourceCommand";
import {
ImportMigrationTaskCommandInput,
ImportMigrationTaskCommandOutput,
Expand All @@ -102,10 +110,18 @@ import {
ListDiscoveredResourcesCommandOutput,
} from "./commands/ListDiscoveredResourcesCommand";
import { ListMigrationTasksCommandInput, ListMigrationTasksCommandOutput } from "./commands/ListMigrationTasksCommand";
import {
ListMigrationTaskUpdatesCommandInput,
ListMigrationTaskUpdatesCommandOutput,
} from "./commands/ListMigrationTaskUpdatesCommand";
import {
ListProgressUpdateStreamsCommandInput,
ListProgressUpdateStreamsCommandOutput,
} from "./commands/ListProgressUpdateStreamsCommand";
import {
ListSourceResourcesCommandInput,
ListSourceResourcesCommandOutput,
} from "./commands/ListSourceResourcesCommand";
import {
NotifyApplicationStateCommandInput,
NotifyApplicationStateCommandOutput,
Expand Down Expand Up @@ -135,18 +151,22 @@ export { __Client };
export type ServiceInputTypes =
| AssociateCreatedArtifactCommandInput
| AssociateDiscoveredResourceCommandInput
| AssociateSourceResourceCommandInput
| CreateProgressUpdateStreamCommandInput
| DeleteProgressUpdateStreamCommandInput
| DescribeApplicationStateCommandInput
| DescribeMigrationTaskCommandInput
| DisassociateCreatedArtifactCommandInput
| DisassociateDiscoveredResourceCommandInput
| DisassociateSourceResourceCommandInput
| ImportMigrationTaskCommandInput
| ListApplicationStatesCommandInput
| ListCreatedArtifactsCommandInput
| ListDiscoveredResourcesCommandInput
| ListMigrationTaskUpdatesCommandInput
| ListMigrationTasksCommandInput
| ListProgressUpdateStreamsCommandInput
| ListSourceResourcesCommandInput
| NotifyApplicationStateCommandInput
| NotifyMigrationTaskStateCommandInput
| PutResourceAttributesCommandInput;
Expand All @@ -157,18 +177,22 @@ export type ServiceInputTypes =
export type ServiceOutputTypes =
| AssociateCreatedArtifactCommandOutput
| AssociateDiscoveredResourceCommandOutput
| AssociateSourceResourceCommandOutput
| CreateProgressUpdateStreamCommandOutput
| DeleteProgressUpdateStreamCommandOutput
| DescribeApplicationStateCommandOutput
| DescribeMigrationTaskCommandOutput
| DisassociateCreatedArtifactCommandOutput
| DisassociateDiscoveredResourceCommandOutput
| DisassociateSourceResourceCommandOutput
| ImportMigrationTaskCommandOutput
| ListApplicationStatesCommandOutput
| ListCreatedArtifactsCommandOutput
| ListDiscoveredResourcesCommandOutput
| ListMigrationTaskUpdatesCommandOutput
| ListMigrationTasksCommandOutput
| ListProgressUpdateStreamsCommandOutput
| ListSourceResourcesCommandOutput
| NotifyApplicationStateCommandOutput
| NotifyMigrationTaskStateCommandOutput
| PutResourceAttributesCommandOutput;
Expand Down
Loading

0 comments on commit bfb97ab

Please sign in to comment.