@aws-sdk/client-cost-optimization-hub 3.1076.0 → 3.1078.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 +19 -85
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/GetPreferencesCommand.js +2 -14
- package/dist-es/commands/GetRecommendationCommand.js +2 -14
- package/dist-es/commands/ListEfficiencyMetricsCommand.js +2 -14
- package/dist-es/commands/ListEnrollmentStatusesCommand.js +2 -14
- package/dist-es/commands/ListRecommendationSummariesCommand.js +2 -14
- package/dist-es/commands/ListRecommendationsCommand.js +2 -14
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +2 -14
- package/dist-es/commands/UpdatePreferencesCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +3 -8
- package/dist-types/commands/GetRecommendationCommand.d.ts +3 -8
- package/dist-types/commands/ListEfficiencyMetricsCommand.d.ts +3 -8
- package/dist-types/commands/ListEnrollmentStatusesCommand.d.ts +3 -8
- package/dist-types/commands/ListRecommendationSummariesCommand.d.ts +3 -8
- package/dist-types/commands/ListRecommendationsCommand.d.ts +3 -8
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +3 -8
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/GetPreferencesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListEfficiencyMetricsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListEnrollmentStatusesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListRecommendationSummariesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdatePreferencesCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultCostOptimizationHubHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -67,7 +69,7 @@ const commonParams = {
|
|
|
67
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -1030,6 +1032,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
1030
1032
|
serviceTarget: "CostOptimizationHubService",
|
|
1031
1033
|
},
|
|
1032
1034
|
serviceId: config?.serviceId ?? "Cost Optimization Hub",
|
|
1035
|
+
sha256: config?.sha256 ?? Sha256,
|
|
1033
1036
|
urlParser: config?.urlParser ?? parseUrl,
|
|
1034
1037
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
1035
1038
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1063,7 +1066,6 @@ const getRuntimeConfig = (config) => {
|
|
|
1063
1066
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
1064
1067
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
1065
1068
|
}, config),
|
|
1066
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
1067
1069
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
1068
1070
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1069
1071
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1151,100 +1153,32 @@ class CostOptimizationHubClient extends Client {
|
|
|
1151
1153
|
}
|
|
1152
1154
|
}
|
|
1153
1155
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
})
|
|
1160
|
-
.s("CostOptimizationHubService", "GetPreferences", {})
|
|
1161
|
-
.n("CostOptimizationHubClient", "GetPreferencesCommand")
|
|
1162
|
-
.sc(GetPreferences$)
|
|
1163
|
-
.build() {
|
|
1156
|
+
const command = makeBuilder(commonParams, "CostOptimizationHubService", "CostOptimizationHubClient", getEndpointPlugin);
|
|
1157
|
+
const _ep0 = {};
|
|
1158
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
1159
|
+
|
|
1160
|
+
class GetPreferencesCommand extends command(_ep0, _mw0, "GetPreferences", GetPreferences$) {
|
|
1164
1161
|
}
|
|
1165
1162
|
|
|
1166
|
-
class GetRecommendationCommand extends
|
|
1167
|
-
.classBuilder()
|
|
1168
|
-
.ep(commonParams)
|
|
1169
|
-
.m(function (Command, cs, config, o) {
|
|
1170
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1171
|
-
})
|
|
1172
|
-
.s("CostOptimizationHubService", "GetRecommendation", {})
|
|
1173
|
-
.n("CostOptimizationHubClient", "GetRecommendationCommand")
|
|
1174
|
-
.sc(GetRecommendation$)
|
|
1175
|
-
.build() {
|
|
1163
|
+
class GetRecommendationCommand extends command(_ep0, _mw0, "GetRecommendation", GetRecommendation$) {
|
|
1176
1164
|
}
|
|
1177
1165
|
|
|
1178
|
-
class ListEfficiencyMetricsCommand extends
|
|
1179
|
-
.classBuilder()
|
|
1180
|
-
.ep(commonParams)
|
|
1181
|
-
.m(function (Command, cs, config, o) {
|
|
1182
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1183
|
-
})
|
|
1184
|
-
.s("CostOptimizationHubService", "ListEfficiencyMetrics", {})
|
|
1185
|
-
.n("CostOptimizationHubClient", "ListEfficiencyMetricsCommand")
|
|
1186
|
-
.sc(ListEfficiencyMetrics$)
|
|
1187
|
-
.build() {
|
|
1166
|
+
class ListEfficiencyMetricsCommand extends command(_ep0, _mw0, "ListEfficiencyMetrics", ListEfficiencyMetrics$) {
|
|
1188
1167
|
}
|
|
1189
1168
|
|
|
1190
|
-
class ListEnrollmentStatusesCommand extends
|
|
1191
|
-
.classBuilder()
|
|
1192
|
-
.ep(commonParams)
|
|
1193
|
-
.m(function (Command, cs, config, o) {
|
|
1194
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1195
|
-
})
|
|
1196
|
-
.s("CostOptimizationHubService", "ListEnrollmentStatuses", {})
|
|
1197
|
-
.n("CostOptimizationHubClient", "ListEnrollmentStatusesCommand")
|
|
1198
|
-
.sc(ListEnrollmentStatuses$)
|
|
1199
|
-
.build() {
|
|
1169
|
+
class ListEnrollmentStatusesCommand extends command(_ep0, _mw0, "ListEnrollmentStatuses", ListEnrollmentStatuses$) {
|
|
1200
1170
|
}
|
|
1201
1171
|
|
|
1202
|
-
class ListRecommendationsCommand extends
|
|
1203
|
-
.classBuilder()
|
|
1204
|
-
.ep(commonParams)
|
|
1205
|
-
.m(function (Command, cs, config, o) {
|
|
1206
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1207
|
-
})
|
|
1208
|
-
.s("CostOptimizationHubService", "ListRecommendations", {})
|
|
1209
|
-
.n("CostOptimizationHubClient", "ListRecommendationsCommand")
|
|
1210
|
-
.sc(ListRecommendations$)
|
|
1211
|
-
.build() {
|
|
1172
|
+
class ListRecommendationsCommand extends command(_ep0, _mw0, "ListRecommendations", ListRecommendations$) {
|
|
1212
1173
|
}
|
|
1213
1174
|
|
|
1214
|
-
class ListRecommendationSummariesCommand extends
|
|
1215
|
-
.classBuilder()
|
|
1216
|
-
.ep(commonParams)
|
|
1217
|
-
.m(function (Command, cs, config, o) {
|
|
1218
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1219
|
-
})
|
|
1220
|
-
.s("CostOptimizationHubService", "ListRecommendationSummaries", {})
|
|
1221
|
-
.n("CostOptimizationHubClient", "ListRecommendationSummariesCommand")
|
|
1222
|
-
.sc(ListRecommendationSummaries$)
|
|
1223
|
-
.build() {
|
|
1175
|
+
class ListRecommendationSummariesCommand extends command(_ep0, _mw0, "ListRecommendationSummaries", ListRecommendationSummaries$) {
|
|
1224
1176
|
}
|
|
1225
1177
|
|
|
1226
|
-
class UpdateEnrollmentStatusCommand extends
|
|
1227
|
-
.classBuilder()
|
|
1228
|
-
.ep(commonParams)
|
|
1229
|
-
.m(function (Command, cs, config, o) {
|
|
1230
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1231
|
-
})
|
|
1232
|
-
.s("CostOptimizationHubService", "UpdateEnrollmentStatus", {})
|
|
1233
|
-
.n("CostOptimizationHubClient", "UpdateEnrollmentStatusCommand")
|
|
1234
|
-
.sc(UpdateEnrollmentStatus$)
|
|
1235
|
-
.build() {
|
|
1178
|
+
class UpdateEnrollmentStatusCommand extends command(_ep0, _mw0, "UpdateEnrollmentStatus", UpdateEnrollmentStatus$) {
|
|
1236
1179
|
}
|
|
1237
1180
|
|
|
1238
|
-
class UpdatePreferencesCommand extends
|
|
1239
|
-
.classBuilder()
|
|
1240
|
-
.ep(commonParams)
|
|
1241
|
-
.m(function (Command, cs, config, o) {
|
|
1242
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1243
|
-
})
|
|
1244
|
-
.s("CostOptimizationHubService", "UpdatePreferences", {})
|
|
1245
|
-
.n("CostOptimizationHubClient", "UpdatePreferencesCommand")
|
|
1246
|
-
.sc(UpdatePreferences$)
|
|
1247
|
-
.build() {
|
|
1181
|
+
class UpdatePreferencesCommand extends command(_ep0, _mw0, "UpdatePreferences", UpdatePreferences$) {
|
|
1248
1182
|
}
|
|
1249
1183
|
|
|
1250
1184
|
const paginateListEfficiencyMetrics = createPaginator(CostOptimizationHubClient, ListEfficiencyMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "CostOptimizationHubService", "CostOptimizationHubClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetPreferences$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetPreferencesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "GetPreferences", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "GetPreferencesCommand")
|
|
14
|
-
.sc(GetPreferences$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetPreferencesCommand extends command(_ep0, _mw0, "GetPreferences", GetPreferences$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetRecommendation$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetRecommendationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "GetRecommendation", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "GetRecommendationCommand")
|
|
14
|
-
.sc(GetRecommendation$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetRecommendationCommand extends command(_ep0, _mw0, "GetRecommendation", GetRecommendation$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListEfficiencyMetrics$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListEfficiencyMetricsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "ListEfficiencyMetrics", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "ListEfficiencyMetricsCommand")
|
|
14
|
-
.sc(ListEfficiencyMetrics$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListEfficiencyMetricsCommand extends command(_ep0, _mw0, "ListEfficiencyMetrics", ListEfficiencyMetrics$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListEnrollmentStatuses$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListEnrollmentStatusesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "ListEnrollmentStatuses", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "ListEnrollmentStatusesCommand")
|
|
14
|
-
.sc(ListEnrollmentStatuses$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListEnrollmentStatusesCommand extends command(_ep0, _mw0, "ListEnrollmentStatuses", ListEnrollmentStatuses$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListRecommendationSummaries$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListRecommendationSummariesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "ListRecommendationSummaries", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "ListRecommendationSummariesCommand")
|
|
14
|
-
.sc(ListRecommendationSummaries$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListRecommendationSummariesCommand extends command(_ep0, _mw0, "ListRecommendationSummaries", ListRecommendationSummaries$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListRecommendations$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListRecommendationsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "ListRecommendations", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "ListRecommendationsCommand")
|
|
14
|
-
.sc(ListRecommendations$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListRecommendationsCommand extends command(_ep0, _mw0, "ListRecommendations", ListRecommendations$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UpdateEnrollmentStatus$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdateEnrollmentStatusCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "UpdateEnrollmentStatus", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "UpdateEnrollmentStatusCommand")
|
|
14
|
-
.sc(UpdateEnrollmentStatus$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdateEnrollmentStatusCommand extends command(_ep0, _mw0, "UpdateEnrollmentStatus", UpdateEnrollmentStatus$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UpdatePreferences$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdatePreferencesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CostOptimizationHubService", "UpdatePreferences", {})
|
|
13
|
-
.n("CostOptimizationHubClient", "UpdatePreferencesCommand")
|
|
14
|
-
.sc(UpdatePreferences$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdatePreferencesCommand extends command(_ep0, _mw0, "UpdatePreferences", UpdatePreferences$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CostOptimizationHubClient";
|
|
2
2
|
export * from "./CostOptimizationHub";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
4
5
|
export * from "./schemas/schemas_0";
|
|
5
6
|
export * from "./pagination";
|
|
6
7
|
export * from "./models/enums";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "CostOptimizationHubService",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Cost Optimization Hub",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./CostOptimizationHubClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { GetPreferencesRequest, GetPreferencesResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface GetPreferencesCommandInput extends GetPreferencesRequest {
|
|
|
22
19
|
export interface GetPreferencesCommandOutput extends GetPreferencesResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const GetPreferencesCommand_base: {
|
|
25
|
-
new (input: GetPreferencesCommandInput): import("@smithy/core/client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [GetPreferencesCommandInput]): import("@smithy/core/client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: GetPreferencesCommandInput): import("@smithy/core/client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [GetPreferencesCommandInput]): import("@smithy/core/client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { GetRecommendationRequest, GetRecommendationResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface GetRecommendationCommandInput extends GetRecommendationRequest
|
|
|
22
19
|
export interface GetRecommendationCommandOutput extends GetRecommendationResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const GetRecommendationCommand_base: {
|
|
25
|
-
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns both the current and recommended resource configuration and the estimated cost impact for a recommendation.</p> <p>The <code>recommendationId</code> is only valid for up to a maximum of 24 hours as recommendations are refreshed daily. To retrieve the <code>recommendationId</code>, use the <code>ListRecommendations</code> API.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { ListEfficiencyMetricsRequest, ListEfficiencyMetricsResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ListEfficiencyMetricsCommandInput extends ListEfficiencyMetrics
|
|
|
22
19
|
export interface ListEfficiencyMetricsCommandOutput extends ListEfficiencyMetricsResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ListEfficiencyMetricsCommand_base: {
|
|
25
|
-
new (input: ListEfficiencyMetricsCommandInput): import("@smithy/core/client").CommandImpl<ListEfficiencyMetricsCommandInput, ListEfficiencyMetricsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: ListEfficiencyMetricsCommandInput): import("@smithy/core/client").CommandImpl<ListEfficiencyMetricsCommandInput, ListEfficiencyMetricsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ListEfficiencyMetricsCommandInput): import("@smithy/core/client").CommandImpl<ListEfficiencyMetricsCommandInput, ListEfficiencyMetricsCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListEfficiencyMetricsCommandInput): import("@smithy/core/client").CommandImpl<ListEfficiencyMetricsCommandInput, ListEfficiencyMetricsCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns cost efficiency metrics aggregated over time and optionally grouped by a specified dimension. The metrics provide insights into your cost optimization progress by tracking estimated savings, spending, and measures how effectively you're optimizing your Cloud resources.</p> <p>The operation supports both daily and monthly time granularities and allows grouping results by account ID, Amazon Web Services Region. Results are returned as time-series data, enabling you to analyze trends in your cost optimization performance over the specified time period.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { ListEnrollmentStatusesRequest, ListEnrollmentStatusesResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ListEnrollmentStatusesCommandInput extends ListEnrollmentStatus
|
|
|
22
19
|
export interface ListEnrollmentStatusesCommandOutput extends ListEnrollmentStatusesResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ListEnrollmentStatusesCommand_base: {
|
|
25
|
-
new (input: ListEnrollmentStatusesCommandInput): import("@smithy/core/client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [ListEnrollmentStatusesCommandInput]): import("@smithy/core/client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ListEnrollmentStatusesCommandInput): import("@smithy/core/client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListEnrollmentStatusesCommandInput]): import("@smithy/core/client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Retrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { ListRecommendationSummariesRequest, ListRecommendationSummariesResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ListRecommendationSummariesCommandInput extends ListRecommendat
|
|
|
22
19
|
export interface ListRecommendationSummariesCommandOutput extends ListRecommendationSummariesResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ListRecommendationSummariesCommand_base: {
|
|
25
|
-
new (input: ListRecommendationSummariesCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: ListRecommendationSummariesCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ListRecommendationSummariesCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListRecommendationSummariesCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns a concise representation of savings estimates for resources. Also returns de-duped savings across different types of recommendations.</p> <note> <p>The following filters are not supported for this API: <code>recommendationIds</code>, <code>resourceArns</code>, and <code>resourceIds</code>.</p> </note>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { ListRecommendationsRequest, ListRecommendationsResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface ListRecommendationsCommandInput extends ListRecommendationsRequ
|
|
|
22
19
|
export interface ListRecommendationsCommandOutput extends ListRecommendationsResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const ListRecommendationsCommand_base: {
|
|
25
|
-
new (input: ListRecommendationsCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [ListRecommendationsCommandInput]): import("@smithy/core/client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: ListRecommendationsCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListRecommendationsCommandInput]): import("@smithy/core/client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Returns a list of recommendations.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
4
2
|
import type { UpdateEnrollmentStatusRequest, UpdateEnrollmentStatusResponse } from "../models/models_0";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface UpdateEnrollmentStatusCommandInput extends UpdateEnrollmentStat
|
|
|
22
19
|
export interface UpdateEnrollmentStatusCommandOutput extends UpdateEnrollmentStatusResponse, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const UpdateEnrollmentStatusCommand_base: {
|
|
25
|
-
new (input: UpdateEnrollmentStatusCommandInput): import("@smithy/core/client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: UpdateEnrollmentStatusCommandInput): import("@smithy/core/client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: UpdateEnrollmentStatusCommandInput): import("@smithy/core/client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateEnrollmentStatusCommandInput): import("@smithy/core/client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, import("..").CostOptimizationHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.</p> <p>If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.</p> <p>You must have the appropriate permissions to opt in to Cost Optimization Hub and to view its recommendations. When you opt in, Cost Optimization Hub automatically creates a service-linked role in your account to access its data.</p>
|