@aws-sdk/client-bcm-recommended-actions 3.891.0 → 3.894.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 +512 -10
- package/package.json +19 -19
- package/dist-cjs/BCMRecommendedActions.js +0 -13
- package/dist-cjs/BCMRecommendedActionsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/ListRecommendedActionsCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -4
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/BCMRecommendedActionsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -112
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListRecommendedActionsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -5
- package/dist-cjs/protocols/Aws_json1_0.js +0 -125
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,513 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
$Command: () => import_smithy_client.Command,
|
|
25
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
26
|
+
ActionType: () => ActionType,
|
|
27
|
+
BCMRecommendedActions: () => BCMRecommendedActions,
|
|
28
|
+
BCMRecommendedActionsClient: () => BCMRecommendedActionsClient,
|
|
29
|
+
BCMRecommendedActionsServiceException: () => BCMRecommendedActionsServiceException,
|
|
30
|
+
Feature: () => Feature,
|
|
31
|
+
FilterName: () => FilterName,
|
|
32
|
+
InternalServerException: () => InternalServerException,
|
|
33
|
+
ListRecommendedActionsCommand: () => ListRecommendedActionsCommand,
|
|
34
|
+
MatchOption: () => MatchOption,
|
|
35
|
+
Severity: () => Severity,
|
|
36
|
+
ThrottlingException: () => ThrottlingException,
|
|
37
|
+
ValidationException: () => ValidationException,
|
|
38
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
39
|
+
__Client: () => import_smithy_client.Client,
|
|
40
|
+
paginateListRecommendedActions: () => paginateListRecommendedActions
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
|
43
|
+
|
|
44
|
+
// src/BCMRecommendedActionsClient.ts
|
|
45
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
46
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
47
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
48
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
49
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
50
|
+
var import_core = require("@smithy/core");
|
|
51
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
52
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
53
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
54
|
+
|
|
55
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
56
|
+
|
|
57
|
+
// src/endpoint/EndpointParameters.ts
|
|
58
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
59
|
+
return Object.assign(options, {
|
|
60
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
61
|
+
defaultSigningName: "bcm-recommended-actions"
|
|
62
|
+
});
|
|
63
|
+
}, "resolveClientEndpointParameters");
|
|
64
|
+
var commonParams = {
|
|
65
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
66
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
67
|
+
Region: { type: "builtInParams", name: "region" }
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/BCMRecommendedActionsClient.ts
|
|
71
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
72
|
+
|
|
73
|
+
// src/runtimeExtensions.ts
|
|
74
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
75
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
76
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
77
|
+
|
|
78
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
79
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
80
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
81
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
82
|
+
let _credentials = runtimeConfig.credentials;
|
|
83
|
+
return {
|
|
84
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
85
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
86
|
+
if (index === -1) {
|
|
87
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
88
|
+
} else {
|
|
89
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
httpAuthSchemes() {
|
|
93
|
+
return _httpAuthSchemes;
|
|
94
|
+
},
|
|
95
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
96
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
97
|
+
},
|
|
98
|
+
httpAuthSchemeProvider() {
|
|
99
|
+
return _httpAuthSchemeProvider;
|
|
100
|
+
},
|
|
101
|
+
setCredentials(credentials) {
|
|
102
|
+
_credentials = credentials;
|
|
103
|
+
},
|
|
104
|
+
credentials() {
|
|
105
|
+
return _credentials;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
109
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
110
|
+
return {
|
|
111
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
112
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
113
|
+
credentials: config.credentials()
|
|
114
|
+
};
|
|
115
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
116
|
+
|
|
117
|
+
// src/runtimeExtensions.ts
|
|
118
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
119
|
+
const extensionConfiguration = Object.assign(
|
|
120
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
121
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
122
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
123
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
124
|
+
);
|
|
125
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
126
|
+
return Object.assign(
|
|
127
|
+
runtimeConfig,
|
|
128
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
129
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
130
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
131
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
132
|
+
);
|
|
133
|
+
}, "resolveRuntimeExtensions");
|
|
134
|
+
|
|
135
|
+
// src/BCMRecommendedActionsClient.ts
|
|
136
|
+
var BCMRecommendedActionsClient = class extends import_smithy_client.Client {
|
|
137
|
+
static {
|
|
138
|
+
__name(this, "BCMRecommendedActionsClient");
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The resolved configuration of BCMRecommendedActionsClient class. This is resolved and normalized from the {@link BCMRecommendedActionsClientConfig | constructor configuration interface}.
|
|
142
|
+
*/
|
|
143
|
+
config;
|
|
144
|
+
constructor(...[configuration]) {
|
|
145
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
146
|
+
super(_config_0);
|
|
147
|
+
this.initConfig = _config_0;
|
|
148
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
149
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
150
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
151
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
152
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
153
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
154
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
155
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
156
|
+
this.config = _config_8;
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use(
|
|
164
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
165
|
+
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBCMRecommendedActionsHttpAuthSchemeParametersProvider,
|
|
166
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
167
|
+
"aws.auth#sigv4": config.credentials
|
|
168
|
+
}), "identityProviderConfigProvider")
|
|
169
|
+
})
|
|
170
|
+
);
|
|
171
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
175
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
176
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
177
|
+
*/
|
|
178
|
+
destroy() {
|
|
179
|
+
super.destroy();
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
// src/BCMRecommendedActions.ts
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
// src/commands/ListRecommendedActionsCommand.ts
|
|
187
|
+
|
|
188
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
// src/protocols/Aws_json1_0.ts
|
|
192
|
+
var import_core2 = require("@aws-sdk/core");
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
// src/models/BCMRecommendedActionsServiceException.ts
|
|
197
|
+
|
|
198
|
+
var BCMRecommendedActionsServiceException = class _BCMRecommendedActionsServiceException extends import_smithy_client.ServiceException {
|
|
199
|
+
static {
|
|
200
|
+
__name(this, "BCMRecommendedActionsServiceException");
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(options) {
|
|
206
|
+
super(options);
|
|
207
|
+
Object.setPrototypeOf(this, _BCMRecommendedActionsServiceException.prototype);
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// src/models/models_0.ts
|
|
212
|
+
var AccessDeniedException = class _AccessDeniedException extends BCMRecommendedActionsServiceException {
|
|
213
|
+
static {
|
|
214
|
+
__name(this, "AccessDeniedException");
|
|
215
|
+
}
|
|
216
|
+
name = "AccessDeniedException";
|
|
217
|
+
$fault = "client";
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "AccessDeniedException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts
|
|
226
|
+
});
|
|
227
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
var FilterName = {
|
|
231
|
+
FEATURE: "FEATURE",
|
|
232
|
+
SEVERITY: "SEVERITY",
|
|
233
|
+
TYPE: "TYPE"
|
|
234
|
+
};
|
|
235
|
+
var MatchOption = {
|
|
236
|
+
EQUALS: "EQUALS",
|
|
237
|
+
NOT_EQUALS: "NOT_EQUALS"
|
|
238
|
+
};
|
|
239
|
+
var ActionType = {
|
|
240
|
+
ADD_ALTERNATE_BILLING_CONTACT: "ADD_ALTERNATE_BILLING_CONTACT",
|
|
241
|
+
CREATE_ANOMALY_MONITOR: "CREATE_ANOMALY_MONITOR",
|
|
242
|
+
CREATE_BUDGET: "CREATE_BUDGET",
|
|
243
|
+
ENABLE_COST_OPTIMIZATION_HUB: "ENABLE_COST_OPTIMIZATION_HUB",
|
|
244
|
+
MIGRATE_TO_GRANULAR_PERMISSIONS: "MIGRATE_TO_GRANULAR_PERMISSIONS",
|
|
245
|
+
PAYMENTS_DUE: "PAYMENTS_DUE",
|
|
246
|
+
PAYMENTS_PAST_DUE: "PAYMENTS_PAST_DUE",
|
|
247
|
+
REVIEW_ANOMALIES: "REVIEW_ANOMALIES",
|
|
248
|
+
REVIEW_BUDGETS_EXCEEDED: "REVIEW_BUDGETS_EXCEEDED",
|
|
249
|
+
REVIEW_BUDGET_ALERTS: "REVIEW_BUDGET_ALERTS",
|
|
250
|
+
REVIEW_EXPIRING_RI: "REVIEW_EXPIRING_RI",
|
|
251
|
+
REVIEW_EXPIRING_SP: "REVIEW_EXPIRING_SP",
|
|
252
|
+
REVIEW_FREETIER_USAGE_ALERTS: "REVIEW_FREETIER_USAGE_ALERTS",
|
|
253
|
+
REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS: "REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS",
|
|
254
|
+
UPDATE_EXPIRED_PAYMENT_METHOD: "UPDATE_EXPIRED_PAYMENT_METHOD",
|
|
255
|
+
UPDATE_INVALID_PAYMENT_METHOD: "UPDATE_INVALID_PAYMENT_METHOD",
|
|
256
|
+
UPDATE_TAX_EXEMPTION_CERTIFICATE: "UPDATE_TAX_EXEMPTION_CERTIFICATE",
|
|
257
|
+
UPDATE_TAX_REGISTRATION_NUMBER: "UPDATE_TAX_REGISTRATION_NUMBER"
|
|
258
|
+
};
|
|
259
|
+
var InternalServerException = class _InternalServerException extends BCMRecommendedActionsServiceException {
|
|
260
|
+
static {
|
|
261
|
+
__name(this, "InternalServerException");
|
|
262
|
+
}
|
|
263
|
+
name = "InternalServerException";
|
|
264
|
+
$fault = "server";
|
|
265
|
+
/**
|
|
266
|
+
* @internal
|
|
267
|
+
*/
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "InternalServerException",
|
|
271
|
+
$fault: "server",
|
|
272
|
+
...opts
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var Feature = {
|
|
278
|
+
ACCOUNT: "ACCOUNT",
|
|
279
|
+
BUDGETS: "BUDGETS",
|
|
280
|
+
COST_ANOMALY_DETECTION: "COST_ANOMALY_DETECTION",
|
|
281
|
+
COST_OPTIMIZATION_HUB: "COST_OPTIMIZATION_HUB",
|
|
282
|
+
FREE_TIER: "FREE_TIER",
|
|
283
|
+
IAM: "IAM",
|
|
284
|
+
PAYMENTS: "PAYMENTS",
|
|
285
|
+
RESERVATIONS: "RESERVATIONS",
|
|
286
|
+
SAVINGS_PLANS: "SAVINGS_PLANS",
|
|
287
|
+
TAX_SETTINGS: "TAX_SETTINGS"
|
|
288
|
+
};
|
|
289
|
+
var Severity = {
|
|
290
|
+
CRITICAL: "CRITICAL",
|
|
291
|
+
INFO: "INFO",
|
|
292
|
+
WARNING: "WARNING"
|
|
293
|
+
};
|
|
294
|
+
var ThrottlingException = class _ThrottlingException extends BCMRecommendedActionsServiceException {
|
|
295
|
+
static {
|
|
296
|
+
__name(this, "ThrottlingException");
|
|
297
|
+
}
|
|
298
|
+
name = "ThrottlingException";
|
|
299
|
+
$fault = "client";
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "ThrottlingException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
...opts
|
|
308
|
+
});
|
|
309
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
var ValidationExceptionReason = {
|
|
313
|
+
CANNOT_PARSE: "cannotParse",
|
|
314
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
315
|
+
OTHER: "other",
|
|
316
|
+
UNKNOWN_OPERATION: "unknownOperation"
|
|
317
|
+
};
|
|
318
|
+
var ValidationException = class _ValidationException extends BCMRecommendedActionsServiceException {
|
|
319
|
+
static {
|
|
320
|
+
__name(this, "ValidationException");
|
|
321
|
+
}
|
|
322
|
+
name = "ValidationException";
|
|
323
|
+
$fault = "client";
|
|
324
|
+
/**
|
|
325
|
+
* <p>Provides a single, overarching explanation for the validation failure.</p>
|
|
326
|
+
* @public
|
|
327
|
+
*/
|
|
328
|
+
reason;
|
|
329
|
+
/**
|
|
330
|
+
* <p>Lists each problematic field and why it failed validation.</p>
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
fieldList;
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
*/
|
|
337
|
+
constructor(opts) {
|
|
338
|
+
super({
|
|
339
|
+
name: "ValidationException",
|
|
340
|
+
$fault: "client",
|
|
341
|
+
...opts
|
|
342
|
+
});
|
|
343
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
344
|
+
this.reason = opts.reason;
|
|
345
|
+
this.fieldList = opts.fieldList;
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
// src/protocols/Aws_json1_0.ts
|
|
350
|
+
var se_ListRecommendedActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
351
|
+
const headers = sharedHeaders("ListRecommendedActions");
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
354
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
355
|
+
}, "se_ListRecommendedActionsCommand");
|
|
356
|
+
var de_ListRecommendedActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
357
|
+
if (output.statusCode >= 300) {
|
|
358
|
+
return de_CommandError(output, context);
|
|
359
|
+
}
|
|
360
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
361
|
+
let contents = {};
|
|
362
|
+
contents = (0, import_smithy_client._json)(data);
|
|
363
|
+
const response = {
|
|
364
|
+
$metadata: deserializeMetadata(output),
|
|
365
|
+
...contents
|
|
366
|
+
};
|
|
367
|
+
return response;
|
|
368
|
+
}, "de_ListRecommendedActionsCommand");
|
|
369
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
370
|
+
const parsedOutput = {
|
|
371
|
+
...output,
|
|
372
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
373
|
+
};
|
|
374
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
375
|
+
switch (errorCode) {
|
|
376
|
+
case "AccessDeniedException":
|
|
377
|
+
case "com.amazonaws.bcmrecommendedactions#AccessDeniedException":
|
|
378
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
379
|
+
case "InternalServerException":
|
|
380
|
+
case "com.amazonaws.bcmrecommendedactions#InternalServerException":
|
|
381
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
382
|
+
case "ThrottlingException":
|
|
383
|
+
case "com.amazonaws.bcmrecommendedactions#ThrottlingException":
|
|
384
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
385
|
+
case "ValidationException":
|
|
386
|
+
case "com.amazonaws.bcmrecommendedactions#ValidationException":
|
|
387
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
388
|
+
default:
|
|
389
|
+
const parsedBody = parsedOutput.body;
|
|
390
|
+
return throwDefaultError({
|
|
391
|
+
output,
|
|
392
|
+
parsedBody,
|
|
393
|
+
errorCode
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}, "de_CommandError");
|
|
397
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
398
|
+
const body = parsedOutput.body;
|
|
399
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
400
|
+
const exception = new AccessDeniedException({
|
|
401
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
402
|
+
...deserialized
|
|
403
|
+
});
|
|
404
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
405
|
+
}, "de_AccessDeniedExceptionRes");
|
|
406
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
407
|
+
const body = parsedOutput.body;
|
|
408
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
409
|
+
const exception = new InternalServerException({
|
|
410
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
411
|
+
...deserialized
|
|
412
|
+
});
|
|
413
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
414
|
+
}, "de_InternalServerExceptionRes");
|
|
415
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
416
|
+
const body = parsedOutput.body;
|
|
417
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
418
|
+
const exception = new ThrottlingException({
|
|
419
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
420
|
+
...deserialized
|
|
421
|
+
});
|
|
422
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
423
|
+
}, "de_ThrottlingExceptionRes");
|
|
424
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
425
|
+
const body = parsedOutput.body;
|
|
426
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
427
|
+
const exception = new ValidationException({
|
|
428
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
429
|
+
...deserialized
|
|
430
|
+
});
|
|
431
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
432
|
+
}, "de_ValidationExceptionRes");
|
|
433
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
434
|
+
httpStatusCode: output.statusCode,
|
|
435
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
436
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
437
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
438
|
+
}), "deserializeMetadata");
|
|
439
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(BCMRecommendedActionsServiceException);
|
|
440
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
441
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
|
+
const contents = {
|
|
443
|
+
protocol,
|
|
444
|
+
hostname,
|
|
445
|
+
port,
|
|
446
|
+
method: "POST",
|
|
447
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
448
|
+
headers
|
|
449
|
+
};
|
|
450
|
+
if (resolvedHostname !== void 0) {
|
|
451
|
+
contents.hostname = resolvedHostname;
|
|
452
|
+
}
|
|
453
|
+
if (body !== void 0) {
|
|
454
|
+
contents.body = body;
|
|
455
|
+
}
|
|
456
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
457
|
+
}, "buildHttpRpcRequest");
|
|
458
|
+
function sharedHeaders(operation) {
|
|
459
|
+
return {
|
|
460
|
+
"content-type": "application/x-amz-json-1.0",
|
|
461
|
+
"x-amz-target": `AWSBillingAndCostManagementRecommendedActions.${operation}`
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
465
|
+
|
|
466
|
+
// src/commands/ListRecommendedActionsCommand.ts
|
|
467
|
+
var ListRecommendedActionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
468
|
+
return [
|
|
469
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
470
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
471
|
+
];
|
|
472
|
+
}).s("AWSBillingAndCostManagementRecommendedActions", "ListRecommendedActions", {}).n("BCMRecommendedActionsClient", "ListRecommendedActionsCommand").f(void 0, void 0).ser(se_ListRecommendedActionsCommand).de(de_ListRecommendedActionsCommand).build() {
|
|
473
|
+
static {
|
|
474
|
+
__name(this, "ListRecommendedActionsCommand");
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
// src/BCMRecommendedActions.ts
|
|
479
|
+
var commands = {
|
|
480
|
+
ListRecommendedActionsCommand
|
|
481
|
+
};
|
|
482
|
+
var BCMRecommendedActions = class extends BCMRecommendedActionsClient {
|
|
483
|
+
static {
|
|
484
|
+
__name(this, "BCMRecommendedActions");
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
(0, import_smithy_client.createAggregatedClient)(commands, BCMRecommendedActions);
|
|
488
|
+
|
|
489
|
+
// src/pagination/ListRecommendedActionsPaginator.ts
|
|
490
|
+
|
|
491
|
+
var paginateListRecommendedActions = (0, import_core.createPaginator)(BCMRecommendedActionsClient, ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
492
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
493
|
+
|
|
494
|
+
0 && (module.exports = {
|
|
495
|
+
BCMRecommendedActionsServiceException,
|
|
496
|
+
__Client,
|
|
497
|
+
BCMRecommendedActionsClient,
|
|
498
|
+
BCMRecommendedActions,
|
|
499
|
+
$Command,
|
|
500
|
+
ListRecommendedActionsCommand,
|
|
501
|
+
paginateListRecommendedActions,
|
|
502
|
+
AccessDeniedException,
|
|
503
|
+
FilterName,
|
|
504
|
+
MatchOption,
|
|
505
|
+
ActionType,
|
|
506
|
+
InternalServerException,
|
|
507
|
+
Feature,
|
|
508
|
+
Severity,
|
|
509
|
+
ThrottlingException,
|
|
510
|
+
ValidationExceptionReason,
|
|
511
|
+
ValidationException
|
|
512
|
+
});
|
|
513
|
+
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bcm-recommended-actions",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bcm Recommended Actions Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.894.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-bcm-recommended-actions",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.894.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.894.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.893.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.893.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.893.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.894.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.893.0",
|
|
30
|
+
"@aws-sdk/types": "3.893.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.893.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.893.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.894.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.2.2",
|
|
35
|
-
"@smithy/core": "^3.11.
|
|
35
|
+
"@smithy/core": "^3.11.1",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.2.1",
|
|
37
37
|
"@smithy/hash-node": "^4.1.1",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.1.1",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.1.1",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
41
|
-
"@smithy/middleware-retry": "^4.2.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.2.3",
|
|
41
|
+
"@smithy/middleware-retry": "^4.2.4",
|
|
42
42
|
"@smithy/middleware-serde": "^4.1.1",
|
|
43
43
|
"@smithy/middleware-stack": "^4.1.1",
|
|
44
44
|
"@smithy/node-config-provider": "^4.2.2",
|
|
45
45
|
"@smithy/node-http-handler": "^4.2.1",
|
|
46
46
|
"@smithy/protocol-http": "^5.2.1",
|
|
47
|
-
"@smithy/smithy-client": "^4.6.
|
|
47
|
+
"@smithy/smithy-client": "^4.6.3",
|
|
48
48
|
"@smithy/types": "^4.5.0",
|
|
49
49
|
"@smithy/url-parser": "^4.1.1",
|
|
50
50
|
"@smithy/util-base64": "^4.1.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.1.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.1.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.1.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.1.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.1.3",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.1.3",
|
|
55
55
|
"@smithy/util-endpoints": "^3.1.2",
|
|
56
56
|
"@smithy/util-middleware": "^4.1.1",
|
|
57
57
|
"@smithy/util-retry": "^4.1.2",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BCMRecommendedActions = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const BCMRecommendedActionsClient_1 = require("./BCMRecommendedActionsClient");
|
|
6
|
-
const ListRecommendedActionsCommand_1 = require("./commands/ListRecommendedActionsCommand");
|
|
7
|
-
const commands = {
|
|
8
|
-
ListRecommendedActionsCommand: ListRecommendedActionsCommand_1.ListRecommendedActionsCommand,
|
|
9
|
-
};
|
|
10
|
-
class BCMRecommendedActions extends BCMRecommendedActionsClient_1.BCMRecommendedActionsClient {
|
|
11
|
-
}
|
|
12
|
-
exports.BCMRecommendedActions = BCMRecommendedActions;
|
|
13
|
-
(0, smithy_client_1.createAggregatedClient)(commands, BCMRecommendedActions);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BCMRecommendedActionsClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
-
const core_1 = require("@smithy/core");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
16
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
17
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
19
|
-
class BCMRecommendedActionsClient extends smithy_client_1.Client {
|
|
20
|
-
config;
|
|
21
|
-
constructor(...[configuration]) {
|
|
22
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
23
|
-
super(_config_0);
|
|
24
|
-
this.initConfig = _config_0;
|
|
25
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
26
|
-
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
27
|
-
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
28
|
-
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
29
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
30
|
-
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
31
|
-
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
32
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
33
|
-
this.config = _config_8;
|
|
34
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
38
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
39
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
40
|
-
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
41
|
-
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultBCMRecommendedActionsHttpAuthSchemeParametersProvider,
|
|
42
|
-
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
43
|
-
"aws.auth#sigv4": config.credentials,
|
|
44
|
-
}),
|
|
45
|
-
}));
|
|
46
|
-
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
47
|
-
}
|
|
48
|
-
destroy() {
|
|
49
|
-
super.destroy();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.BCMRecommendedActionsClient = BCMRecommendedActionsClient;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
-
let _credentials = runtimeConfig.credentials;
|
|
8
|
-
return {
|
|
9
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
-
if (index === -1) {
|
|
12
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
httpAuthSchemes() {
|
|
19
|
-
return _httpAuthSchemes;
|
|
20
|
-
},
|
|
21
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
-
},
|
|
24
|
-
httpAuthSchemeProvider() {
|
|
25
|
-
return _httpAuthSchemeProvider;
|
|
26
|
-
},
|
|
27
|
-
setCredentials(credentials) {
|
|
28
|
-
_credentials = credentials;
|
|
29
|
-
},
|
|
30
|
-
credentials() {
|
|
31
|
-
return _credentials;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
-
return {
|
|
38
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
-
credentials: config.credentials(),
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListRecommendedActionsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
-
class ListRecommendedActionsCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep(EndpointParameters_1.commonParams)
|
|
13
|
-
.m(function (Command, cs, config, o) {
|
|
14
|
-
return [
|
|
15
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
];
|
|
18
|
-
})
|
|
19
|
-
.s("AWSBillingAndCostManagementRecommendedActions", "ListRecommendedActions", {})
|
|
20
|
-
.n("BCMRecommendedActionsClient", "ListRecommendedActionsCommand")
|
|
21
|
-
.f(void 0, void 0)
|
|
22
|
-
.ser(Aws_json1_0_1.se_ListRecommendedActionsCommand)
|
|
23
|
-
.de(Aws_json1_0_1.de_ListRecommendedActionsCommand)
|
|
24
|
-
.build() {
|
|
25
|
-
}
|
|
26
|
-
exports.ListRecommendedActionsCommand = ListRecommendedActionsCommand;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return Object.assign(options, {
|
|
6
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
7
|
-
defaultSigningName: "bcm-recommended-actions",
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
11
|
-
exports.commonParams = {
|
|
12
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
-
Region: { type: "builtInParams", name: "region" },
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BCMRecommendedActionsServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class BCMRecommendedActionsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, BCMRecommendedActionsServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.BCMRecommendedActionsServiceException = BCMRecommendedActionsServiceException;
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.Severity = exports.Feature = exports.InternalServerException = exports.ActionType = exports.MatchOption = exports.FilterName = exports.AccessDeniedException = void 0;
|
|
4
|
-
const BCMRecommendedActionsServiceException_1 = require("./BCMRecommendedActionsServiceException");
|
|
5
|
-
class AccessDeniedException extends BCMRecommendedActionsServiceException_1.BCMRecommendedActionsServiceException {
|
|
6
|
-
name = "AccessDeniedException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "AccessDeniedException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
exports.FilterName = {
|
|
19
|
-
FEATURE: "FEATURE",
|
|
20
|
-
SEVERITY: "SEVERITY",
|
|
21
|
-
TYPE: "TYPE",
|
|
22
|
-
};
|
|
23
|
-
exports.MatchOption = {
|
|
24
|
-
EQUALS: "EQUALS",
|
|
25
|
-
NOT_EQUALS: "NOT_EQUALS",
|
|
26
|
-
};
|
|
27
|
-
exports.ActionType = {
|
|
28
|
-
ADD_ALTERNATE_BILLING_CONTACT: "ADD_ALTERNATE_BILLING_CONTACT",
|
|
29
|
-
CREATE_ANOMALY_MONITOR: "CREATE_ANOMALY_MONITOR",
|
|
30
|
-
CREATE_BUDGET: "CREATE_BUDGET",
|
|
31
|
-
ENABLE_COST_OPTIMIZATION_HUB: "ENABLE_COST_OPTIMIZATION_HUB",
|
|
32
|
-
MIGRATE_TO_GRANULAR_PERMISSIONS: "MIGRATE_TO_GRANULAR_PERMISSIONS",
|
|
33
|
-
PAYMENTS_DUE: "PAYMENTS_DUE",
|
|
34
|
-
PAYMENTS_PAST_DUE: "PAYMENTS_PAST_DUE",
|
|
35
|
-
REVIEW_ANOMALIES: "REVIEW_ANOMALIES",
|
|
36
|
-
REVIEW_BUDGETS_EXCEEDED: "REVIEW_BUDGETS_EXCEEDED",
|
|
37
|
-
REVIEW_BUDGET_ALERTS: "REVIEW_BUDGET_ALERTS",
|
|
38
|
-
REVIEW_EXPIRING_RI: "REVIEW_EXPIRING_RI",
|
|
39
|
-
REVIEW_EXPIRING_SP: "REVIEW_EXPIRING_SP",
|
|
40
|
-
REVIEW_FREETIER_USAGE_ALERTS: "REVIEW_FREETIER_USAGE_ALERTS",
|
|
41
|
-
REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS: "REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS",
|
|
42
|
-
UPDATE_EXPIRED_PAYMENT_METHOD: "UPDATE_EXPIRED_PAYMENT_METHOD",
|
|
43
|
-
UPDATE_INVALID_PAYMENT_METHOD: "UPDATE_INVALID_PAYMENT_METHOD",
|
|
44
|
-
UPDATE_TAX_EXEMPTION_CERTIFICATE: "UPDATE_TAX_EXEMPTION_CERTIFICATE",
|
|
45
|
-
UPDATE_TAX_REGISTRATION_NUMBER: "UPDATE_TAX_REGISTRATION_NUMBER",
|
|
46
|
-
};
|
|
47
|
-
class InternalServerException extends BCMRecommendedActionsServiceException_1.BCMRecommendedActionsServiceException {
|
|
48
|
-
name = "InternalServerException";
|
|
49
|
-
$fault = "server";
|
|
50
|
-
constructor(opts) {
|
|
51
|
-
super({
|
|
52
|
-
name: "InternalServerException",
|
|
53
|
-
$fault: "server",
|
|
54
|
-
...opts,
|
|
55
|
-
});
|
|
56
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.InternalServerException = InternalServerException;
|
|
60
|
-
exports.Feature = {
|
|
61
|
-
ACCOUNT: "ACCOUNT",
|
|
62
|
-
BUDGETS: "BUDGETS",
|
|
63
|
-
COST_ANOMALY_DETECTION: "COST_ANOMALY_DETECTION",
|
|
64
|
-
COST_OPTIMIZATION_HUB: "COST_OPTIMIZATION_HUB",
|
|
65
|
-
FREE_TIER: "FREE_TIER",
|
|
66
|
-
IAM: "IAM",
|
|
67
|
-
PAYMENTS: "PAYMENTS",
|
|
68
|
-
RESERVATIONS: "RESERVATIONS",
|
|
69
|
-
SAVINGS_PLANS: "SAVINGS_PLANS",
|
|
70
|
-
TAX_SETTINGS: "TAX_SETTINGS",
|
|
71
|
-
};
|
|
72
|
-
exports.Severity = {
|
|
73
|
-
CRITICAL: "CRITICAL",
|
|
74
|
-
INFO: "INFO",
|
|
75
|
-
WARNING: "WARNING",
|
|
76
|
-
};
|
|
77
|
-
class ThrottlingException extends BCMRecommendedActionsServiceException_1.BCMRecommendedActionsServiceException {
|
|
78
|
-
name = "ThrottlingException";
|
|
79
|
-
$fault = "client";
|
|
80
|
-
constructor(opts) {
|
|
81
|
-
super({
|
|
82
|
-
name: "ThrottlingException",
|
|
83
|
-
$fault: "client",
|
|
84
|
-
...opts,
|
|
85
|
-
});
|
|
86
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.ThrottlingException = ThrottlingException;
|
|
90
|
-
exports.ValidationExceptionReason = {
|
|
91
|
-
CANNOT_PARSE: "cannotParse",
|
|
92
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
93
|
-
OTHER: "other",
|
|
94
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
95
|
-
};
|
|
96
|
-
class ValidationException extends BCMRecommendedActionsServiceException_1.BCMRecommendedActionsServiceException {
|
|
97
|
-
name = "ValidationException";
|
|
98
|
-
$fault = "client";
|
|
99
|
-
reason;
|
|
100
|
-
fieldList;
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "ValidationException",
|
|
104
|
-
$fault: "client",
|
|
105
|
-
...opts,
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
108
|
-
this.reason = opts.reason;
|
|
109
|
-
this.fieldList = opts.fieldList;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exports.ValidationException = ValidationException;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListRecommendedActions = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const BCMRecommendedActionsClient_1 = require("../BCMRecommendedActionsClient");
|
|
6
|
-
const ListRecommendedActionsCommand_1 = require("../commands/ListRecommendedActionsCommand");
|
|
7
|
-
exports.paginateListRecommendedActions = (0, core_1.createPaginator)(BCMRecommendedActionsClient_1.BCMRecommendedActionsClient, ListRecommendedActionsCommand_1.ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListRecommendedActionsCommand = exports.se_ListRecommendedActionsCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const BCMRecommendedActionsServiceException_1 = require("../models/BCMRecommendedActionsServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_ListRecommendedActionsCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("ListRecommendedActions");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_ListRecommendedActionsCommand = se_ListRecommendedActionsCommand;
|
|
16
|
-
const de_ListRecommendedActionsCommand = async (output, context) => {
|
|
17
|
-
if (output.statusCode >= 300) {
|
|
18
|
-
return de_CommandError(output, context);
|
|
19
|
-
}
|
|
20
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
21
|
-
let contents = {};
|
|
22
|
-
contents = (0, smithy_client_1._json)(data);
|
|
23
|
-
const response = {
|
|
24
|
-
$metadata: deserializeMetadata(output),
|
|
25
|
-
...contents,
|
|
26
|
-
};
|
|
27
|
-
return response;
|
|
28
|
-
};
|
|
29
|
-
exports.de_ListRecommendedActionsCommand = de_ListRecommendedActionsCommand;
|
|
30
|
-
const de_CommandError = async (output, context) => {
|
|
31
|
-
const parsedOutput = {
|
|
32
|
-
...output,
|
|
33
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
34
|
-
};
|
|
35
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
36
|
-
switch (errorCode) {
|
|
37
|
-
case "AccessDeniedException":
|
|
38
|
-
case "com.amazonaws.bcmrecommendedactions#AccessDeniedException":
|
|
39
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
40
|
-
case "InternalServerException":
|
|
41
|
-
case "com.amazonaws.bcmrecommendedactions#InternalServerException":
|
|
42
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
43
|
-
case "ThrottlingException":
|
|
44
|
-
case "com.amazonaws.bcmrecommendedactions#ThrottlingException":
|
|
45
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
46
|
-
case "ValidationException":
|
|
47
|
-
case "com.amazonaws.bcmrecommendedactions#ValidationException":
|
|
48
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
49
|
-
default:
|
|
50
|
-
const parsedBody = parsedOutput.body;
|
|
51
|
-
return throwDefaultError({
|
|
52
|
-
output,
|
|
53
|
-
parsedBody,
|
|
54
|
-
errorCode,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
59
|
-
const body = parsedOutput.body;
|
|
60
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
61
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
62
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
63
|
-
...deserialized,
|
|
64
|
-
});
|
|
65
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
66
|
-
};
|
|
67
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
68
|
-
const body = parsedOutput.body;
|
|
69
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
70
|
-
const exception = new models_0_1.InternalServerException({
|
|
71
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
72
|
-
...deserialized,
|
|
73
|
-
});
|
|
74
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
75
|
-
};
|
|
76
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
77
|
-
const body = parsedOutput.body;
|
|
78
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
79
|
-
const exception = new models_0_1.ThrottlingException({
|
|
80
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
81
|
-
...deserialized,
|
|
82
|
-
});
|
|
83
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
84
|
-
};
|
|
85
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
86
|
-
const body = parsedOutput.body;
|
|
87
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
88
|
-
const exception = new models_0_1.ValidationException({
|
|
89
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
90
|
-
...deserialized,
|
|
91
|
-
});
|
|
92
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
93
|
-
};
|
|
94
|
-
const deserializeMetadata = (output) => ({
|
|
95
|
-
httpStatusCode: output.statusCode,
|
|
96
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
97
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
98
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
99
|
-
});
|
|
100
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
101
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(BCMRecommendedActionsServiceException_1.BCMRecommendedActionsServiceException);
|
|
102
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
103
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
|
-
const contents = {
|
|
105
|
-
protocol,
|
|
106
|
-
hostname,
|
|
107
|
-
port,
|
|
108
|
-
method: "POST",
|
|
109
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
110
|
-
headers,
|
|
111
|
-
};
|
|
112
|
-
if (resolvedHostname !== undefined) {
|
|
113
|
-
contents.hostname = resolvedHostname;
|
|
114
|
-
}
|
|
115
|
-
if (body !== undefined) {
|
|
116
|
-
contents.body = body;
|
|
117
|
-
}
|
|
118
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
119
|
-
};
|
|
120
|
-
function sharedHeaders(operation) {
|
|
121
|
-
return {
|
|
122
|
-
"content-type": "application/x-amz-json-1.0",
|
|
123
|
-
"x-amz-target": `AWSBillingAndCostManagementRecommendedActions.${operation}`,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|