@aws-sdk/client-migration-hub 3.975.0 → 3.980.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/dist-cjs/index.js +24 -15
- package/dist-es/MigrationHub.js +17 -1
- package/dist-types/MigrationHub.d.ts +50 -1
- package/dist-types/ts3.4/MigrationHub.d.ts +54 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -1052,6 +1052,20 @@ class PutResourceAttributesCommand extends smithyClient.Command
|
|
|
1052
1052
|
.build() {
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
|
+
const paginateListApplicationStates = core.createPaginator(MigrationHubClient, ListApplicationStatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1056
|
+
|
|
1057
|
+
const paginateListCreatedArtifacts = core.createPaginator(MigrationHubClient, ListCreatedArtifactsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1058
|
+
|
|
1059
|
+
const paginateListDiscoveredResources = core.createPaginator(MigrationHubClient, ListDiscoveredResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1060
|
+
|
|
1061
|
+
const paginateListMigrationTasks = core.createPaginator(MigrationHubClient, ListMigrationTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1062
|
+
|
|
1063
|
+
const paginateListMigrationTaskUpdates = core.createPaginator(MigrationHubClient, ListMigrationTaskUpdatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1064
|
+
|
|
1065
|
+
const paginateListProgressUpdateStreams = core.createPaginator(MigrationHubClient, ListProgressUpdateStreamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1066
|
+
|
|
1067
|
+
const paginateListSourceResources = core.createPaginator(MigrationHubClient, ListSourceResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1068
|
+
|
|
1055
1069
|
const commands = {
|
|
1056
1070
|
AssociateCreatedArtifactCommand,
|
|
1057
1071
|
AssociateDiscoveredResourceCommand,
|
|
@@ -1075,23 +1089,18 @@ const commands = {
|
|
|
1075
1089
|
NotifyMigrationTaskStateCommand,
|
|
1076
1090
|
PutResourceAttributesCommand,
|
|
1077
1091
|
};
|
|
1092
|
+
const paginators = {
|
|
1093
|
+
paginateListApplicationStates,
|
|
1094
|
+
paginateListCreatedArtifacts,
|
|
1095
|
+
paginateListDiscoveredResources,
|
|
1096
|
+
paginateListMigrationTasks,
|
|
1097
|
+
paginateListMigrationTaskUpdates,
|
|
1098
|
+
paginateListProgressUpdateStreams,
|
|
1099
|
+
paginateListSourceResources,
|
|
1100
|
+
};
|
|
1078
1101
|
class MigrationHub extends MigrationHubClient {
|
|
1079
1102
|
}
|
|
1080
|
-
smithyClient.createAggregatedClient(commands, MigrationHub);
|
|
1081
|
-
|
|
1082
|
-
const paginateListApplicationStates = core.createPaginator(MigrationHubClient, ListApplicationStatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1083
|
-
|
|
1084
|
-
const paginateListCreatedArtifacts = core.createPaginator(MigrationHubClient, ListCreatedArtifactsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1085
|
-
|
|
1086
|
-
const paginateListDiscoveredResources = core.createPaginator(MigrationHubClient, ListDiscoveredResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1087
|
-
|
|
1088
|
-
const paginateListMigrationTasks = core.createPaginator(MigrationHubClient, ListMigrationTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1089
|
-
|
|
1090
|
-
const paginateListMigrationTaskUpdates = core.createPaginator(MigrationHubClient, ListMigrationTaskUpdatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1091
|
-
|
|
1092
|
-
const paginateListProgressUpdateStreams = core.createPaginator(MigrationHubClient, ListProgressUpdateStreamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1093
|
-
|
|
1094
|
-
const paginateListSourceResources = core.createPaginator(MigrationHubClient, ListSourceResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1103
|
+
smithyClient.createAggregatedClient(commands, MigrationHub, { paginators });
|
|
1095
1104
|
|
|
1096
1105
|
const ApplicationStatus = {
|
|
1097
1106
|
COMPLETED: "COMPLETED",
|
package/dist-es/MigrationHub.js
CHANGED
|
@@ -21,6 +21,13 @@ import { NotifyApplicationStateCommand, } from "./commands/NotifyApplicationStat
|
|
|
21
21
|
import { NotifyMigrationTaskStateCommand, } from "./commands/NotifyMigrationTaskStateCommand";
|
|
22
22
|
import { PutResourceAttributesCommand, } from "./commands/PutResourceAttributesCommand";
|
|
23
23
|
import { MigrationHubClient } from "./MigrationHubClient";
|
|
24
|
+
import { paginateListApplicationStates } from "./pagination/ListApplicationStatesPaginator";
|
|
25
|
+
import { paginateListCreatedArtifacts } from "./pagination/ListCreatedArtifactsPaginator";
|
|
26
|
+
import { paginateListDiscoveredResources } from "./pagination/ListDiscoveredResourcesPaginator";
|
|
27
|
+
import { paginateListMigrationTasks } from "./pagination/ListMigrationTasksPaginator";
|
|
28
|
+
import { paginateListMigrationTaskUpdates } from "./pagination/ListMigrationTaskUpdatesPaginator";
|
|
29
|
+
import { paginateListProgressUpdateStreams } from "./pagination/ListProgressUpdateStreamsPaginator";
|
|
30
|
+
import { paginateListSourceResources } from "./pagination/ListSourceResourcesPaginator";
|
|
24
31
|
const commands = {
|
|
25
32
|
AssociateCreatedArtifactCommand,
|
|
26
33
|
AssociateDiscoveredResourceCommand,
|
|
@@ -44,6 +51,15 @@ const commands = {
|
|
|
44
51
|
NotifyMigrationTaskStateCommand,
|
|
45
52
|
PutResourceAttributesCommand,
|
|
46
53
|
};
|
|
54
|
+
const paginators = {
|
|
55
|
+
paginateListApplicationStates,
|
|
56
|
+
paginateListCreatedArtifacts,
|
|
57
|
+
paginateListDiscoveredResources,
|
|
58
|
+
paginateListMigrationTasks,
|
|
59
|
+
paginateListMigrationTaskUpdates,
|
|
60
|
+
paginateListProgressUpdateStreams,
|
|
61
|
+
paginateListSourceResources,
|
|
62
|
+
};
|
|
47
63
|
export class MigrationHub extends MigrationHubClient {
|
|
48
64
|
}
|
|
49
|
-
createAggregatedClient(commands, MigrationHub);
|
|
65
|
+
createAggregatedClient(commands, MigrationHub, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput } from "./commands/AssociateCreatedArtifactCommand";
|
|
3
3
|
import { AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput } from "./commands/AssociateDiscoveredResourceCommand";
|
|
4
4
|
import { AssociateSourceResourceCommandInput, AssociateSourceResourceCommandOutput } from "./commands/AssociateSourceResourceCommand";
|
|
@@ -151,6 +151,55 @@ export interface MigrationHub {
|
|
|
151
151
|
putResourceAttributes(args: PutResourceAttributesCommandInput, options?: __HttpHandlerOptions): Promise<PutResourceAttributesCommandOutput>;
|
|
152
152
|
putResourceAttributes(args: PutResourceAttributesCommandInput, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
|
|
153
153
|
putResourceAttributes(args: PutResourceAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourceAttributesCommandOutput) => void): void;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link ListApplicationStatesCommand}
|
|
156
|
+
* @param args - command input.
|
|
157
|
+
* @param paginationConfig - optional pagination config.
|
|
158
|
+
* @returns AsyncIterable of {@link ListApplicationStatesCommandOutput}.
|
|
159
|
+
*/
|
|
160
|
+
paginateListApplicationStates(args?: ListApplicationStatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListApplicationStatesCommandOutput>;
|
|
161
|
+
/**
|
|
162
|
+
* @see {@link ListCreatedArtifactsCommand}
|
|
163
|
+
* @param args - command input.
|
|
164
|
+
* @param paginationConfig - optional pagination config.
|
|
165
|
+
* @returns AsyncIterable of {@link ListCreatedArtifactsCommandOutput}.
|
|
166
|
+
*/
|
|
167
|
+
paginateListCreatedArtifacts(args: ListCreatedArtifactsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCreatedArtifactsCommandOutput>;
|
|
168
|
+
/**
|
|
169
|
+
* @see {@link ListDiscoveredResourcesCommand}
|
|
170
|
+
* @param args - command input.
|
|
171
|
+
* @param paginationConfig - optional pagination config.
|
|
172
|
+
* @returns AsyncIterable of {@link ListDiscoveredResourcesCommandOutput}.
|
|
173
|
+
*/
|
|
174
|
+
paginateListDiscoveredResources(args: ListDiscoveredResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDiscoveredResourcesCommandOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link ListMigrationTasksCommand}
|
|
177
|
+
* @param args - command input.
|
|
178
|
+
* @param paginationConfig - optional pagination config.
|
|
179
|
+
* @returns AsyncIterable of {@link ListMigrationTasksCommandOutput}.
|
|
180
|
+
*/
|
|
181
|
+
paginateListMigrationTasks(args?: ListMigrationTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMigrationTasksCommandOutput>;
|
|
182
|
+
/**
|
|
183
|
+
* @see {@link ListMigrationTaskUpdatesCommand}
|
|
184
|
+
* @param args - command input.
|
|
185
|
+
* @param paginationConfig - optional pagination config.
|
|
186
|
+
* @returns AsyncIterable of {@link ListMigrationTaskUpdatesCommandOutput}.
|
|
187
|
+
*/
|
|
188
|
+
paginateListMigrationTaskUpdates(args: ListMigrationTaskUpdatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMigrationTaskUpdatesCommandOutput>;
|
|
189
|
+
/**
|
|
190
|
+
* @see {@link ListProgressUpdateStreamsCommand}
|
|
191
|
+
* @param args - command input.
|
|
192
|
+
* @param paginationConfig - optional pagination config.
|
|
193
|
+
* @returns AsyncIterable of {@link ListProgressUpdateStreamsCommandOutput}.
|
|
194
|
+
*/
|
|
195
|
+
paginateListProgressUpdateStreams(args?: ListProgressUpdateStreamsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProgressUpdateStreamsCommandOutput>;
|
|
196
|
+
/**
|
|
197
|
+
* @see {@link ListSourceResourcesCommand}
|
|
198
|
+
* @param args - command input.
|
|
199
|
+
* @param paginationConfig - optional pagination config.
|
|
200
|
+
* @returns AsyncIterable of {@link ListSourceResourcesCommandOutput}.
|
|
201
|
+
*/
|
|
202
|
+
paginateListSourceResources(args: ListSourceResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSourceResourcesCommandOutput>;
|
|
154
203
|
}
|
|
155
204
|
/**
|
|
156
205
|
* <p>The AWS Migration Hub API methods help to obtain server and application migration status
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
AssociateCreatedArtifactCommandInput,
|
|
4
8
|
AssociateCreatedArtifactCommandOutput,
|
|
@@ -361,6 +365,55 @@ export interface MigrationHub {
|
|
|
361
365
|
options: __HttpHandlerOptions,
|
|
362
366
|
cb: (err: any, data?: PutResourceAttributesCommandOutput) => void
|
|
363
367
|
): void;
|
|
368
|
+
paginateListApplicationStates(
|
|
369
|
+
args?: ListApplicationStatesCommandInput,
|
|
370
|
+
paginationConfig?: Pick<
|
|
371
|
+
PaginationConfiguration,
|
|
372
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
373
|
+
>
|
|
374
|
+
): Paginator<ListApplicationStatesCommandOutput>;
|
|
375
|
+
paginateListCreatedArtifacts(
|
|
376
|
+
args: ListCreatedArtifactsCommandInput,
|
|
377
|
+
paginationConfig?: Pick<
|
|
378
|
+
PaginationConfiguration,
|
|
379
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
380
|
+
>
|
|
381
|
+
): Paginator<ListCreatedArtifactsCommandOutput>;
|
|
382
|
+
paginateListDiscoveredResources(
|
|
383
|
+
args: ListDiscoveredResourcesCommandInput,
|
|
384
|
+
paginationConfig?: Pick<
|
|
385
|
+
PaginationConfiguration,
|
|
386
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
387
|
+
>
|
|
388
|
+
): Paginator<ListDiscoveredResourcesCommandOutput>;
|
|
389
|
+
paginateListMigrationTasks(
|
|
390
|
+
args?: ListMigrationTasksCommandInput,
|
|
391
|
+
paginationConfig?: Pick<
|
|
392
|
+
PaginationConfiguration,
|
|
393
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
394
|
+
>
|
|
395
|
+
): Paginator<ListMigrationTasksCommandOutput>;
|
|
396
|
+
paginateListMigrationTaskUpdates(
|
|
397
|
+
args: ListMigrationTaskUpdatesCommandInput,
|
|
398
|
+
paginationConfig?: Pick<
|
|
399
|
+
PaginationConfiguration,
|
|
400
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
401
|
+
>
|
|
402
|
+
): Paginator<ListMigrationTaskUpdatesCommandOutput>;
|
|
403
|
+
paginateListProgressUpdateStreams(
|
|
404
|
+
args?: ListProgressUpdateStreamsCommandInput,
|
|
405
|
+
paginationConfig?: Pick<
|
|
406
|
+
PaginationConfiguration,
|
|
407
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
408
|
+
>
|
|
409
|
+
): Paginator<ListProgressUpdateStreamsCommandOutput>;
|
|
410
|
+
paginateListSourceResources(
|
|
411
|
+
args: ListSourceResourcesCommandInput,
|
|
412
|
+
paginationConfig?: Pick<
|
|
413
|
+
PaginationConfiguration,
|
|
414
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
415
|
+
>
|
|
416
|
+
): Paginator<ListSourceResourcesCommandOutput>;
|
|
364
417
|
}
|
|
365
418
|
export declare class MigrationHub
|
|
366
419
|
extends MigrationHubClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migration-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migration Hub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-migration-hub",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|