@aws-sdk/client-cost-optimization-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
CHANGED
|
@@ -1034,6 +1034,14 @@ class UpdatePreferencesCommand extends smithyClient.Command
|
|
|
1034
1034
|
.build() {
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
+
const paginateListEfficiencyMetrics = core.createPaginator(CostOptimizationHubClient, ListEfficiencyMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
1038
|
+
|
|
1039
|
+
const paginateListEnrollmentStatuses = core.createPaginator(CostOptimizationHubClient, ListEnrollmentStatusesCommand, "nextToken", "nextToken", "maxResults");
|
|
1040
|
+
|
|
1041
|
+
const paginateListRecommendations = core.createPaginator(CostOptimizationHubClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1042
|
+
|
|
1043
|
+
const paginateListRecommendationSummaries = core.createPaginator(CostOptimizationHubClient, ListRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
1044
|
+
|
|
1037
1045
|
const commands = {
|
|
1038
1046
|
GetPreferencesCommand,
|
|
1039
1047
|
GetRecommendationCommand,
|
|
@@ -1044,17 +1052,15 @@ const commands = {
|
|
|
1044
1052
|
UpdateEnrollmentStatusCommand,
|
|
1045
1053
|
UpdatePreferencesCommand,
|
|
1046
1054
|
};
|
|
1055
|
+
const paginators = {
|
|
1056
|
+
paginateListEfficiencyMetrics,
|
|
1057
|
+
paginateListEnrollmentStatuses,
|
|
1058
|
+
paginateListRecommendations,
|
|
1059
|
+
paginateListRecommendationSummaries,
|
|
1060
|
+
};
|
|
1047
1061
|
class CostOptimizationHub extends CostOptimizationHubClient {
|
|
1048
1062
|
}
|
|
1049
|
-
smithyClient.createAggregatedClient(commands, CostOptimizationHub);
|
|
1050
|
-
|
|
1051
|
-
const paginateListEfficiencyMetrics = core.createPaginator(CostOptimizationHubClient, ListEfficiencyMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
1052
|
-
|
|
1053
|
-
const paginateListEnrollmentStatuses = core.createPaginator(CostOptimizationHubClient, ListEnrollmentStatusesCommand, "nextToken", "nextToken", "maxResults");
|
|
1054
|
-
|
|
1055
|
-
const paginateListRecommendations = core.createPaginator(CostOptimizationHubClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1056
|
-
|
|
1057
|
-
const paginateListRecommendationSummaries = core.createPaginator(CostOptimizationHubClient, ListRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
1063
|
+
smithyClient.createAggregatedClient(commands, CostOptimizationHub, { paginators });
|
|
1058
1064
|
|
|
1059
1065
|
const EnrollmentStatus = {
|
|
1060
1066
|
ACTIVE: "Active",
|
|
@@ -8,6 +8,10 @@ import { ListRecommendationSummariesCommand, } from "./commands/ListRecommendati
|
|
|
8
8
|
import { UpdateEnrollmentStatusCommand, } from "./commands/UpdateEnrollmentStatusCommand";
|
|
9
9
|
import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
|
|
10
10
|
import { CostOptimizationHubClient } from "./CostOptimizationHubClient";
|
|
11
|
+
import { paginateListEfficiencyMetrics } from "./pagination/ListEfficiencyMetricsPaginator";
|
|
12
|
+
import { paginateListEnrollmentStatuses } from "./pagination/ListEnrollmentStatusesPaginator";
|
|
13
|
+
import { paginateListRecommendations } from "./pagination/ListRecommendationsPaginator";
|
|
14
|
+
import { paginateListRecommendationSummaries } from "./pagination/ListRecommendationSummariesPaginator";
|
|
11
15
|
const commands = {
|
|
12
16
|
GetPreferencesCommand,
|
|
13
17
|
GetRecommendationCommand,
|
|
@@ -18,6 +22,12 @@ const commands = {
|
|
|
18
22
|
UpdateEnrollmentStatusCommand,
|
|
19
23
|
UpdatePreferencesCommand,
|
|
20
24
|
};
|
|
25
|
+
const paginators = {
|
|
26
|
+
paginateListEfficiencyMetrics,
|
|
27
|
+
paginateListEnrollmentStatuses,
|
|
28
|
+
paginateListRecommendations,
|
|
29
|
+
paginateListRecommendationSummaries,
|
|
30
|
+
};
|
|
21
31
|
export class CostOptimizationHub extends CostOptimizationHubClient {
|
|
22
32
|
}
|
|
23
|
-
createAggregatedClient(commands, CostOptimizationHub);
|
|
33
|
+
createAggregatedClient(commands, CostOptimizationHub, { 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 { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
|
|
3
3
|
import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
|
|
4
4
|
import { ListEfficiencyMetricsCommandInput, ListEfficiencyMetricsCommandOutput } from "./commands/ListEfficiencyMetricsCommand";
|
|
@@ -61,6 +61,34 @@ export interface CostOptimizationHub {
|
|
|
61
61
|
updatePreferences(args: UpdatePreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreferencesCommandOutput>;
|
|
62
62
|
updatePreferences(args: UpdatePreferencesCommandInput, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
|
|
63
63
|
updatePreferences(args: UpdatePreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
|
|
64
|
+
/**
|
|
65
|
+
* @see {@link ListEfficiencyMetricsCommand}
|
|
66
|
+
* @param args - command input.
|
|
67
|
+
* @param paginationConfig - optional pagination config.
|
|
68
|
+
* @returns AsyncIterable of {@link ListEfficiencyMetricsCommandOutput}.
|
|
69
|
+
*/
|
|
70
|
+
paginateListEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEfficiencyMetricsCommandOutput>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link ListEnrollmentStatusesCommand}
|
|
73
|
+
* @param args - command input.
|
|
74
|
+
* @param paginationConfig - optional pagination config.
|
|
75
|
+
* @returns AsyncIterable of {@link ListEnrollmentStatusesCommandOutput}.
|
|
76
|
+
*/
|
|
77
|
+
paginateListEnrollmentStatuses(args?: ListEnrollmentStatusesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEnrollmentStatusesCommandOutput>;
|
|
78
|
+
/**
|
|
79
|
+
* @see {@link ListRecommendationsCommand}
|
|
80
|
+
* @param args - command input.
|
|
81
|
+
* @param paginationConfig - optional pagination config.
|
|
82
|
+
* @returns AsyncIterable of {@link ListRecommendationsCommandOutput}.
|
|
83
|
+
*/
|
|
84
|
+
paginateListRecommendations(args?: ListRecommendationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationsCommandOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* @see {@link ListRecommendationSummariesCommand}
|
|
87
|
+
* @param args - command input.
|
|
88
|
+
* @param paginationConfig - optional pagination config.
|
|
89
|
+
* @returns AsyncIterable of {@link ListRecommendationSummariesCommandOutput}.
|
|
90
|
+
*/
|
|
91
|
+
paginateListRecommendationSummaries(args: ListRecommendationSummariesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationSummariesCommandOutput>;
|
|
64
92
|
}
|
|
65
93
|
/**
|
|
66
94
|
* <p>You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate, and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.</p> <p>The Cost Optimization Hub API provides the following endpoint:</p> <ul> <li> <p> https://cost-optimization-hub.us-east-1.amazonaws.com </p> </li> </ul>
|
|
@@ -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
|
GetPreferencesCommandInput,
|
|
4
8
|
GetPreferencesCommandOutput,
|
|
@@ -141,6 +145,34 @@ export interface CostOptimizationHub {
|
|
|
141
145
|
options: __HttpHandlerOptions,
|
|
142
146
|
cb: (err: any, data?: UpdatePreferencesCommandOutput) => void
|
|
143
147
|
): void;
|
|
148
|
+
paginateListEfficiencyMetrics(
|
|
149
|
+
args: ListEfficiencyMetricsCommandInput,
|
|
150
|
+
paginationConfig?: Pick<
|
|
151
|
+
PaginationConfiguration,
|
|
152
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
153
|
+
>
|
|
154
|
+
): Paginator<ListEfficiencyMetricsCommandOutput>;
|
|
155
|
+
paginateListEnrollmentStatuses(
|
|
156
|
+
args?: ListEnrollmentStatusesCommandInput,
|
|
157
|
+
paginationConfig?: Pick<
|
|
158
|
+
PaginationConfiguration,
|
|
159
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
160
|
+
>
|
|
161
|
+
): Paginator<ListEnrollmentStatusesCommandOutput>;
|
|
162
|
+
paginateListRecommendations(
|
|
163
|
+
args?: ListRecommendationsCommandInput,
|
|
164
|
+
paginationConfig?: Pick<
|
|
165
|
+
PaginationConfiguration,
|
|
166
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
167
|
+
>
|
|
168
|
+
): Paginator<ListRecommendationsCommandOutput>;
|
|
169
|
+
paginateListRecommendationSummaries(
|
|
170
|
+
args: ListRecommendationSummariesCommandInput,
|
|
171
|
+
paginationConfig?: Pick<
|
|
172
|
+
PaginationConfiguration,
|
|
173
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
174
|
+
>
|
|
175
|
+
): Paginator<ListRecommendationSummariesCommandOutput>;
|
|
144
176
|
}
|
|
145
177
|
export declare class CostOptimizationHub
|
|
146
178
|
extends CostOptimizationHubClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-optimization-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Optimization 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-cost-optimization-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",
|