@aws-sdk/client-trustedadvisor 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 +21 -13
- package/dist-es/TrustedAdvisor.js +15 -1
- package/dist-types/TrustedAdvisor.d.ts +43 -1
- package/dist-types/ts3.4/TrustedAdvisor.d.ts +47 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -716,6 +716,18 @@ class UpdateRecommendationLifecycleCommand extends smithyClient.Command
|
|
|
716
716
|
.build() {
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
+
const paginateListChecks = core.createPaginator(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults");
|
|
720
|
+
|
|
721
|
+
const paginateListOrganizationRecommendationAccounts = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
722
|
+
|
|
723
|
+
const paginateListOrganizationRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
724
|
+
|
|
725
|
+
const paginateListOrganizationRecommendations = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
726
|
+
|
|
727
|
+
const paginateListRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
728
|
+
|
|
729
|
+
const paginateListRecommendations = core.createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
730
|
+
|
|
719
731
|
const commands = {
|
|
720
732
|
BatchUpdateRecommendationResourceExclusionCommand,
|
|
721
733
|
GetOrganizationRecommendationCommand,
|
|
@@ -729,21 +741,17 @@ const commands = {
|
|
|
729
741
|
UpdateOrganizationRecommendationLifecycleCommand,
|
|
730
742
|
UpdateRecommendationLifecycleCommand,
|
|
731
743
|
};
|
|
744
|
+
const paginators = {
|
|
745
|
+
paginateListChecks,
|
|
746
|
+
paginateListOrganizationRecommendationAccounts,
|
|
747
|
+
paginateListOrganizationRecommendationResources,
|
|
748
|
+
paginateListOrganizationRecommendations,
|
|
749
|
+
paginateListRecommendationResources,
|
|
750
|
+
paginateListRecommendations,
|
|
751
|
+
};
|
|
732
752
|
class TrustedAdvisor extends TrustedAdvisorClient {
|
|
733
753
|
}
|
|
734
|
-
smithyClient.createAggregatedClient(commands, TrustedAdvisor);
|
|
735
|
-
|
|
736
|
-
const paginateListChecks = core.createPaginator(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults");
|
|
737
|
-
|
|
738
|
-
const paginateListOrganizationRecommendationAccounts = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
739
|
-
|
|
740
|
-
const paginateListOrganizationRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
741
|
-
|
|
742
|
-
const paginateListOrganizationRecommendations = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
743
|
-
|
|
744
|
-
const paginateListRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
745
|
-
|
|
746
|
-
const paginateListRecommendations = core.createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
754
|
+
smithyClient.createAggregatedClient(commands, TrustedAdvisor, { paginators });
|
|
747
755
|
|
|
748
756
|
const RecommendationLifecycleStage = {
|
|
749
757
|
DISMISSED: "dismissed",
|
|
@@ -10,6 +10,12 @@ import { ListRecommendationResourcesCommand, } from "./commands/ListRecommendati
|
|
|
10
10
|
import { ListRecommendationsCommand, } from "./commands/ListRecommendationsCommand";
|
|
11
11
|
import { UpdateOrganizationRecommendationLifecycleCommand, } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
|
|
12
12
|
import { UpdateRecommendationLifecycleCommand, } from "./commands/UpdateRecommendationLifecycleCommand";
|
|
13
|
+
import { paginateListChecks } from "./pagination/ListChecksPaginator";
|
|
14
|
+
import { paginateListOrganizationRecommendationAccounts, } from "./pagination/ListOrganizationRecommendationAccountsPaginator";
|
|
15
|
+
import { paginateListOrganizationRecommendationResources, } from "./pagination/ListOrganizationRecommendationResourcesPaginator";
|
|
16
|
+
import { paginateListOrganizationRecommendations } from "./pagination/ListOrganizationRecommendationsPaginator";
|
|
17
|
+
import { paginateListRecommendationResources } from "./pagination/ListRecommendationResourcesPaginator";
|
|
18
|
+
import { paginateListRecommendations } from "./pagination/ListRecommendationsPaginator";
|
|
13
19
|
import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
|
|
14
20
|
const commands = {
|
|
15
21
|
BatchUpdateRecommendationResourceExclusionCommand,
|
|
@@ -24,6 +30,14 @@ const commands = {
|
|
|
24
30
|
UpdateOrganizationRecommendationLifecycleCommand,
|
|
25
31
|
UpdateRecommendationLifecycleCommand,
|
|
26
32
|
};
|
|
33
|
+
const paginators = {
|
|
34
|
+
paginateListChecks,
|
|
35
|
+
paginateListOrganizationRecommendationAccounts,
|
|
36
|
+
paginateListOrganizationRecommendationResources,
|
|
37
|
+
paginateListOrganizationRecommendations,
|
|
38
|
+
paginateListRecommendationResources,
|
|
39
|
+
paginateListRecommendations,
|
|
40
|
+
};
|
|
27
41
|
export class TrustedAdvisor extends TrustedAdvisorClient {
|
|
28
42
|
}
|
|
29
|
-
createAggregatedClient(commands, TrustedAdvisor);
|
|
43
|
+
createAggregatedClient(commands, TrustedAdvisor, { 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 { BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput } from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
|
|
3
3
|
import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "./commands/GetOrganizationRecommendationCommand";
|
|
4
4
|
import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
|
|
@@ -81,6 +81,48 @@ export interface TrustedAdvisor {
|
|
|
81
81
|
updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecommendationLifecycleCommandOutput>;
|
|
82
82
|
updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, cb: (err: any, data?: UpdateRecommendationLifecycleCommandOutput) => void): void;
|
|
83
83
|
updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecommendationLifecycleCommandOutput) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* @see {@link ListChecksCommand}
|
|
86
|
+
* @param args - command input.
|
|
87
|
+
* @param paginationConfig - optional pagination config.
|
|
88
|
+
* @returns AsyncIterable of {@link ListChecksCommandOutput}.
|
|
89
|
+
*/
|
|
90
|
+
paginateListChecks(args?: ListChecksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChecksCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link ListOrganizationRecommendationAccountsCommand}
|
|
93
|
+
* @param args - command input.
|
|
94
|
+
* @param paginationConfig - optional pagination config.
|
|
95
|
+
* @returns AsyncIterable of {@link ListOrganizationRecommendationAccountsCommandOutput}.
|
|
96
|
+
*/
|
|
97
|
+
paginateListOrganizationRecommendationAccounts(args: ListOrganizationRecommendationAccountsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOrganizationRecommendationAccountsCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link ListOrganizationRecommendationResourcesCommand}
|
|
100
|
+
* @param args - command input.
|
|
101
|
+
* @param paginationConfig - optional pagination config.
|
|
102
|
+
* @returns AsyncIterable of {@link ListOrganizationRecommendationResourcesCommandOutput}.
|
|
103
|
+
*/
|
|
104
|
+
paginateListOrganizationRecommendationResources(args: ListOrganizationRecommendationResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOrganizationRecommendationResourcesCommandOutput>;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link ListOrganizationRecommendationsCommand}
|
|
107
|
+
* @param args - command input.
|
|
108
|
+
* @param paginationConfig - optional pagination config.
|
|
109
|
+
* @returns AsyncIterable of {@link ListOrganizationRecommendationsCommandOutput}.
|
|
110
|
+
*/
|
|
111
|
+
paginateListOrganizationRecommendations(args?: ListOrganizationRecommendationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOrganizationRecommendationsCommandOutput>;
|
|
112
|
+
/**
|
|
113
|
+
* @see {@link ListRecommendationResourcesCommand}
|
|
114
|
+
* @param args - command input.
|
|
115
|
+
* @param paginationConfig - optional pagination config.
|
|
116
|
+
* @returns AsyncIterable of {@link ListRecommendationResourcesCommandOutput}.
|
|
117
|
+
*/
|
|
118
|
+
paginateListRecommendationResources(args: ListRecommendationResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationResourcesCommandOutput>;
|
|
119
|
+
/**
|
|
120
|
+
* @see {@link ListRecommendationsCommand}
|
|
121
|
+
* @param args - command input.
|
|
122
|
+
* @param paginationConfig - optional pagination config.
|
|
123
|
+
* @returns AsyncIterable of {@link ListRecommendationsCommandOutput}.
|
|
124
|
+
*/
|
|
125
|
+
paginateListRecommendations(args?: ListRecommendationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationsCommandOutput>;
|
|
84
126
|
}
|
|
85
127
|
/**
|
|
86
128
|
* <p>TrustedAdvisor Public API</p>
|
|
@@ -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
|
BatchUpdateRecommendationResourceExclusionCommandInput,
|
|
4
8
|
BatchUpdateRecommendationResourceExclusionCommandOutput,
|
|
@@ -215,6 +219,48 @@ export interface TrustedAdvisor {
|
|
|
215
219
|
options: __HttpHandlerOptions,
|
|
216
220
|
cb: (err: any, data?: UpdateRecommendationLifecycleCommandOutput) => void
|
|
217
221
|
): void;
|
|
222
|
+
paginateListChecks(
|
|
223
|
+
args?: ListChecksCommandInput,
|
|
224
|
+
paginationConfig?: Pick<
|
|
225
|
+
PaginationConfiguration,
|
|
226
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
227
|
+
>
|
|
228
|
+
): Paginator<ListChecksCommandOutput>;
|
|
229
|
+
paginateListOrganizationRecommendationAccounts(
|
|
230
|
+
args: ListOrganizationRecommendationAccountsCommandInput,
|
|
231
|
+
paginationConfig?: Pick<
|
|
232
|
+
PaginationConfiguration,
|
|
233
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
234
|
+
>
|
|
235
|
+
): Paginator<ListOrganizationRecommendationAccountsCommandOutput>;
|
|
236
|
+
paginateListOrganizationRecommendationResources(
|
|
237
|
+
args: ListOrganizationRecommendationResourcesCommandInput,
|
|
238
|
+
paginationConfig?: Pick<
|
|
239
|
+
PaginationConfiguration,
|
|
240
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
241
|
+
>
|
|
242
|
+
): Paginator<ListOrganizationRecommendationResourcesCommandOutput>;
|
|
243
|
+
paginateListOrganizationRecommendations(
|
|
244
|
+
args?: ListOrganizationRecommendationsCommandInput,
|
|
245
|
+
paginationConfig?: Pick<
|
|
246
|
+
PaginationConfiguration,
|
|
247
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
248
|
+
>
|
|
249
|
+
): Paginator<ListOrganizationRecommendationsCommandOutput>;
|
|
250
|
+
paginateListRecommendationResources(
|
|
251
|
+
args: ListRecommendationResourcesCommandInput,
|
|
252
|
+
paginationConfig?: Pick<
|
|
253
|
+
PaginationConfiguration,
|
|
254
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
255
|
+
>
|
|
256
|
+
): Paginator<ListRecommendationResourcesCommandOutput>;
|
|
257
|
+
paginateListRecommendations(
|
|
258
|
+
args?: ListRecommendationsCommandInput,
|
|
259
|
+
paginationConfig?: Pick<
|
|
260
|
+
PaginationConfiguration,
|
|
261
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
262
|
+
>
|
|
263
|
+
): Paginator<ListRecommendationsCommandOutput>;
|
|
218
264
|
}
|
|
219
265
|
export declare class TrustedAdvisor
|
|
220
266
|
extends TrustedAdvisorClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-trustedadvisor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Trustedadvisor 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-trustedadvisor",
|
|
@@ -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",
|