@aws-sdk/client-migration-hub 3.33.0 → 3.36.1
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 +47 -0
- package/{dist/cjs → dist-cjs}/MigrationHub.js +1 -10
- package/{dist/cjs → dist-cjs}/MigrationHubClient.js +8 -22
- package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/AssociateDiscoveredResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreateProgressUpdateStreamCommand.js +2 -31
- package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeApplicationStateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeMigrationTaskCommand.js +2 -27
- package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DisassociateDiscoveredResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ImportMigrationTaskCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/ListApplicationStatesCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListCreatedArtifactsCommand.js +2 -41
- package/{dist/cjs → dist-cjs}/commands/ListDiscoveredResourcesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListMigrationTasksCommand.js +2 -40
- package/{dist/cjs → dist-cjs}/commands/ListProgressUpdateStreamsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/NotifyApplicationStateCommand.js +2 -30
- package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +36 -0
- package/dist-cjs/commands/PutResourceAttributesCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -157
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationStatesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListCreatedArtifactsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListDiscoveredResourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListMigrationTasksPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListProgressUpdateStreamsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/MigrationHub.js +2 -11
- package/{dist/es → dist-es}/MigrationHubClient.js +2 -16
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +39 -0
- package/{dist/es → dist-es}/commands/AssociateDiscoveredResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/CreateProgressUpdateStreamCommand.js +4 -34
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeApplicationStateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeMigrationTaskCommand.js +4 -30
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DisassociateDiscoveredResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ImportMigrationTaskCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListApplicationStatesCommand.js +4 -32
- package/{dist/es → dist-es}/commands/ListCreatedArtifactsCommand.js +4 -44
- package/{dist/es → dist-es}/commands/ListDiscoveredResourcesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListMigrationTasksCommand.js +4 -43
- package/{dist/es → dist-es}/commands/ListProgressUpdateStreamsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/NotifyApplicationStateCommand.js +4 -33
- package/{dist/es → dist-es}/commands/NotifyMigrationTaskStateCommand.js +4 -47
- package/dist-es/commands/PutResourceAttributesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -157
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListApplicationStatesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListCreatedArtifactsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListDiscoveredResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListMigrationTasksPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListProgressUpdateStreamsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +691 -697
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/MigrationHub.d.ts +2 -2
- package/{dist/types → dist-types}/MigrationHubClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssociateCreatedArtifactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/AssociateDiscoveredResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProgressUpdateStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteProgressUpdateStreamCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeApplicationStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeMigrationTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateCreatedArtifactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateDiscoveredResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ImportMigrationTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListApplicationStatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCreatedArtifactsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDiscoveredResourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListMigrationTasksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListProgressUpdateStreamsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/NotifyApplicationStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/NotifyMigrationTaskStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutResourceAttributesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationStatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListMigrationTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/MigrationHub.d.ts +90 -0
- package/{dist/types → dist-types}/ts3.4/MigrationHubClient.d.ts +32 -102
- package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeApplicationStateCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +573 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationStatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListMigrationTasksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/MigrationHub.ts +0 -787
- package/MigrationHubClient.ts +0 -339
- package/commands/AssociateCreatedArtifactCommand.ts +0 -111
- package/commands/AssociateDiscoveredResourceCommand.ts +0 -98
- package/commands/CreateProgressUpdateStreamCommand.ts +0 -101
- package/commands/DeleteProgressUpdateStreamCommand.ts +0 -127
- package/commands/DescribeApplicationStateCommand.ts +0 -94
- package/commands/DescribeMigrationTaskCommand.ts +0 -94
- package/commands/DisassociateCreatedArtifactCommand.ts +0 -113
- package/commands/DisassociateDiscoveredResourceCommand.ts +0 -103
- package/commands/ImportMigrationTaskCommand.ts +0 -97
- package/commands/ListApplicationStatesCommand.ts +0 -96
- package/commands/ListCreatedArtifactsCommand.ts +0 -108
- package/commands/ListDiscoveredResourcesCommand.ts +0 -94
- package/commands/ListMigrationTasksCommand.ts +0 -107
- package/commands/ListProgressUpdateStreamsCommand.ts +0 -97
- package/commands/NotifyApplicationStateCommand.ts +0 -97
- package/commands/NotifyMigrationTaskStateCommand.ts +0 -111
- package/commands/PutResourceAttributesCommand.ts +0 -119
- package/dist/cjs/MigrationHub.js.map +0 -1
- package/dist/cjs/MigrationHubClient.js.map +0 -1
- package/dist/cjs/commands/AssociateCreatedArtifactCommand.js +0 -78
- package/dist/cjs/commands/AssociateCreatedArtifactCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js +0 -91
- package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeApplicationStateCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMigrationTaskCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js +0 -77
- package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ImportMigrationTaskCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationStatesCommand.js.map +0 -1
- package/dist/cjs/commands/ListCreatedArtifactsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDiscoveredResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/ListMigrationTasksCommand.js.map +0 -1
- package/dist/cjs/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
- package/dist/cjs/commands/NotifyApplicationStateCommand.js.map +0 -1
- package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js +0 -78
- package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
- package/dist/cjs/commands/PutResourceAttributesCommand.js +0 -86
- package/dist/cjs/commands/PutResourceAttributesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationStatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListMigrationTasksPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/MigrationHub.js.map +0 -1
- package/dist/es/MigrationHubClient.js.map +0 -1
- package/dist/es/commands/AssociateCreatedArtifactCommand.js +0 -82
- package/dist/es/commands/AssociateCreatedArtifactCommand.js.map +0 -1
- package/dist/es/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/es/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
- package/dist/es/commands/DeleteProgressUpdateStreamCommand.js +0 -95
- package/dist/es/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
- package/dist/es/commands/DescribeApplicationStateCommand.js.map +0 -1
- package/dist/es/commands/DescribeMigrationTaskCommand.js.map +0 -1
- package/dist/es/commands/DisassociateCreatedArtifactCommand.js +0 -81
- package/dist/es/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
- package/dist/es/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
- package/dist/es/commands/ImportMigrationTaskCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationStatesCommand.js.map +0 -1
- package/dist/es/commands/ListCreatedArtifactsCommand.js.map +0 -1
- package/dist/es/commands/ListDiscoveredResourcesCommand.js.map +0 -1
- package/dist/es/commands/ListMigrationTasksCommand.js.map +0 -1
- package/dist/es/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
- package/dist/es/commands/NotifyApplicationStateCommand.js.map +0 -1
- package/dist/es/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
- package/dist/es/commands/PutResourceAttributesCommand.js +0 -90
- package/dist/es/commands/PutResourceAttributesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListApplicationStatesPaginator.js.map +0 -1
- package/dist/es/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/ListMigrationTasksPaginator.js.map +0 -1
- package/dist/es/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/MigrationHub.d.ts +0 -277
- package/dist/types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +0 -65
- package/dist/types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +0 -51
- package/dist/types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/ListApplicationStatesCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/ListMigrationTasksCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/PutResourceAttributesCommand.d.ts +0 -60
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1056
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1319
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListApplicationStatesPaginator.ts +0 -58
- package/pagination/ListCreatedArtifactsPaginator.ts +0 -58
- package/pagination/ListDiscoveredResourcesPaginator.ts +0 -58
- package/pagination/ListMigrationTasksPaginator.ts +0 -58
- package/pagination/ListProgressUpdateStreamsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -3162
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface MigrationHubPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: MigrationHub | MigrationHubClient;
|
|
7
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import {
|
|
4
|
-
ListApplicationStatesCommand,
|
|
5
|
-
ListApplicationStatesCommandInput,
|
|
6
|
-
ListApplicationStatesCommandOutput,
|
|
7
|
-
} from "../commands/ListApplicationStatesCommand";
|
|
8
|
-
import { MigrationHubPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: MigrationHubClient,
|
|
16
|
-
input: ListApplicationStatesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListApplicationStatesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListApplicationStatesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: MigrationHub,
|
|
27
|
-
input: ListApplicationStatesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListApplicationStatesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listApplicationStates(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListApplicationStates(
|
|
34
|
-
config: MigrationHubPaginationConfiguration,
|
|
35
|
-
input: ListApplicationStatesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListApplicationStatesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListApplicationStatesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof MigrationHub) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof MigrationHubClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import {
|
|
4
|
-
ListCreatedArtifactsCommand,
|
|
5
|
-
ListCreatedArtifactsCommandInput,
|
|
6
|
-
ListCreatedArtifactsCommandOutput,
|
|
7
|
-
} from "../commands/ListCreatedArtifactsCommand";
|
|
8
|
-
import { MigrationHubPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: MigrationHubClient,
|
|
16
|
-
input: ListCreatedArtifactsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListCreatedArtifactsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListCreatedArtifactsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: MigrationHub,
|
|
27
|
-
input: ListCreatedArtifactsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListCreatedArtifactsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listCreatedArtifacts(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListCreatedArtifacts(
|
|
34
|
-
config: MigrationHubPaginationConfiguration,
|
|
35
|
-
input: ListCreatedArtifactsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListCreatedArtifactsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListCreatedArtifactsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof MigrationHub) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof MigrationHubClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import {
|
|
4
|
-
ListDiscoveredResourcesCommand,
|
|
5
|
-
ListDiscoveredResourcesCommandInput,
|
|
6
|
-
ListDiscoveredResourcesCommandOutput,
|
|
7
|
-
} from "../commands/ListDiscoveredResourcesCommand";
|
|
8
|
-
import { MigrationHubPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: MigrationHubClient,
|
|
16
|
-
input: ListDiscoveredResourcesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListDiscoveredResourcesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListDiscoveredResourcesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: MigrationHub,
|
|
27
|
-
input: ListDiscoveredResourcesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListDiscoveredResourcesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listDiscoveredResources(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListDiscoveredResources(
|
|
34
|
-
config: MigrationHubPaginationConfiguration,
|
|
35
|
-
input: ListDiscoveredResourcesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListDiscoveredResourcesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListDiscoveredResourcesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof MigrationHub) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof MigrationHubClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import {
|
|
4
|
-
ListMigrationTasksCommand,
|
|
5
|
-
ListMigrationTasksCommandInput,
|
|
6
|
-
ListMigrationTasksCommandOutput,
|
|
7
|
-
} from "../commands/ListMigrationTasksCommand";
|
|
8
|
-
import { MigrationHubPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: MigrationHubClient,
|
|
16
|
-
input: ListMigrationTasksCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListMigrationTasksCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListMigrationTasksCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: MigrationHub,
|
|
27
|
-
input: ListMigrationTasksCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListMigrationTasksCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listMigrationTasks(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListMigrationTasks(
|
|
34
|
-
config: MigrationHubPaginationConfiguration,
|
|
35
|
-
input: ListMigrationTasksCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListMigrationTasksCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListMigrationTasksCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof MigrationHub) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof MigrationHubClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { MigrationHub } from "../MigrationHub";
|
|
2
|
-
import { MigrationHubClient } from "../MigrationHubClient";
|
|
3
|
-
import {
|
|
4
|
-
ListProgressUpdateStreamsCommand,
|
|
5
|
-
ListProgressUpdateStreamsCommandInput,
|
|
6
|
-
ListProgressUpdateStreamsCommandOutput,
|
|
7
|
-
} from "../commands/ListProgressUpdateStreamsCommand";
|
|
8
|
-
import { MigrationHubPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: MigrationHubClient,
|
|
16
|
-
input: ListProgressUpdateStreamsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListProgressUpdateStreamsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListProgressUpdateStreamsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: MigrationHub,
|
|
27
|
-
input: ListProgressUpdateStreamsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListProgressUpdateStreamsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listProgressUpdateStreams(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListProgressUpdateStreams(
|
|
34
|
-
config: MigrationHubPaginationConfiguration,
|
|
35
|
-
input: ListProgressUpdateStreamsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListProgressUpdateStreamsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListProgressUpdateStreamsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof MigrationHub) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof MigrationHubClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|