@aws-sdk/client-cost-optimization-hub 3.956.0 → 3.958.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/README.md +1 -13
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +325 -512
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/pagination/index.js +1 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +323 -510
- package/dist-types/pagination/index.d.ts +1 -1
- package/dist-types/ts3.4/pagination/index.d.ts +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -9,10 +9,8 @@ AWS SDK for JavaScript CostOptimizationHub Client for Node.js, Browser and React
|
|
|
9
9
|
<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>
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
|
-
|
|
13
12
|
To install this package, simply type add or install @aws-sdk/client-cost-optimization-hub
|
|
14
13
|
using your favorite package manager:
|
|
15
|
-
|
|
16
14
|
- `npm install @aws-sdk/client-cost-optimization-hub`
|
|
17
15
|
- `yarn add @aws-sdk/client-cost-optimization-hub`
|
|
18
16
|
- `pnpm add @aws-sdk/client-cost-optimization-hub`
|
|
@@ -48,9 +46,7 @@ To send a request, you:
|
|
|
48
46
|
// a client can be shared by different commands.
|
|
49
47
|
const client = new CostOptimizationHubClient({ region: "REGION" });
|
|
50
48
|
|
|
51
|
-
const params = {
|
|
52
|
-
/** input parameters */
|
|
53
|
-
};
|
|
49
|
+
const params = { /** input parameters */ };
|
|
54
50
|
const command = new ListEnrollmentStatusesCommand(params);
|
|
55
51
|
```
|
|
56
52
|
|
|
@@ -209,7 +205,6 @@ GetPreferences
|
|
|
209
205
|
</summary>
|
|
210
206
|
|
|
211
207
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/GetPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetPreferencesCommandOutput/)
|
|
212
|
-
|
|
213
208
|
</details>
|
|
214
209
|
<details>
|
|
215
210
|
<summary>
|
|
@@ -217,7 +212,6 @@ GetRecommendation
|
|
|
217
212
|
</summary>
|
|
218
213
|
|
|
219
214
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/GetRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetRecommendationCommandOutput/)
|
|
220
|
-
|
|
221
215
|
</details>
|
|
222
216
|
<details>
|
|
223
217
|
<summary>
|
|
@@ -225,7 +219,6 @@ ListEfficiencyMetrics
|
|
|
225
219
|
</summary>
|
|
226
220
|
|
|
227
221
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/ListEfficiencyMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEfficiencyMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEfficiencyMetricsCommandOutput/)
|
|
228
|
-
|
|
229
222
|
</details>
|
|
230
223
|
<details>
|
|
231
224
|
<summary>
|
|
@@ -233,7 +226,6 @@ ListEnrollmentStatuses
|
|
|
233
226
|
</summary>
|
|
234
227
|
|
|
235
228
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/ListEnrollmentStatusesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEnrollmentStatusesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEnrollmentStatusesCommandOutput/)
|
|
236
|
-
|
|
237
229
|
</details>
|
|
238
230
|
<details>
|
|
239
231
|
<summary>
|
|
@@ -241,7 +233,6 @@ ListRecommendations
|
|
|
241
233
|
</summary>
|
|
242
234
|
|
|
243
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/ListRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListRecommendationsCommandOutput/)
|
|
244
|
-
|
|
245
236
|
</details>
|
|
246
237
|
<details>
|
|
247
238
|
<summary>
|
|
@@ -249,7 +240,6 @@ ListRecommendationSummaries
|
|
|
249
240
|
</summary>
|
|
250
241
|
|
|
251
242
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/ListRecommendationSummariesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListRecommendationSummariesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListRecommendationSummariesCommandOutput/)
|
|
252
|
-
|
|
253
243
|
</details>
|
|
254
244
|
<details>
|
|
255
245
|
<summary>
|
|
@@ -257,7 +247,6 @@ UpdateEnrollmentStatus
|
|
|
257
247
|
</summary>
|
|
258
248
|
|
|
259
249
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/UpdateEnrollmentStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/UpdateEnrollmentStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/UpdateEnrollmentStatusCommandOutput/)
|
|
260
|
-
|
|
261
250
|
</details>
|
|
262
251
|
<details>
|
|
263
252
|
<summary>
|
|
@@ -265,5 +254,4 @@ UpdatePreferences
|
|
|
265
254
|
</summary>
|
|
266
255
|
|
|
267
256
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/UpdatePreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/UpdatePreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/UpdatePreferencesCommandOutput/)
|
|
268
|
-
|
|
269
257
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultCostOptimizationHubHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultCostOptimizationHubHttpAuthSchemeParametersProvider = defaultCostOptimizationHubHttpAuthSchemeParametersProvider;
|