@aws-sdk/client-bcm-recommended-actions 3.901.0 → 3.907.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +352 -482
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,513 +1,383 @@
1
- "use strict";
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);
1
+ 'use strict';
43
2
 
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");
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
54
19
 
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" }
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
23
+ defaultSigningName: "bcm-recommended-actions",
24
+ });
25
+ };
26
+ const commonParams = {
27
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
28
+ Endpoint: { type: "builtInParams", name: "endpoint" },
29
+ Region: { type: "builtInParams", name: "region" },
68
30
  };
69
31
 
70
- // src/BCMRecommendedActionsClient.ts
71
- var import_runtimeConfig = require("././runtimeConfig");
32
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
35
+ let _credentials = runtimeConfig.credentials;
36
+ return {
37
+ setHttpAuthScheme(httpAuthScheme) {
38
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
39
+ if (index === -1) {
40
+ _httpAuthSchemes.push(httpAuthScheme);
41
+ }
42
+ else {
43
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
44
+ }
45
+ },
46
+ httpAuthSchemes() {
47
+ return _httpAuthSchemes;
48
+ },
49
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
50
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
51
+ },
52
+ httpAuthSchemeProvider() {
53
+ return _httpAuthSchemeProvider;
54
+ },
55
+ setCredentials(credentials) {
56
+ _credentials = credentials;
57
+ },
58
+ credentials() {
59
+ return _credentials;
60
+ },
61
+ };
62
+ };
63
+ const resolveHttpAuthRuntimeConfig = (config) => {
64
+ return {
65
+ httpAuthSchemes: config.httpAuthSchemes(),
66
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
67
+ credentials: config.credentials(),
68
+ };
69
+ };
72
70
 
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");
71
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
72
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
73
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
75
+ };
77
76
 
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;
77
+ class BCMRecommendedActionsClient extends smithyClient.Client {
78
+ config;
79
+ constructor(...[configuration]) {
80
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
81
+ super(_config_0);
82
+ this.initConfig = _config_0;
83
+ const _config_1 = resolveClientEndpointParameters(_config_0);
84
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
85
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
86
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
87
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
89
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
90
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
91
+ this.config = _config_8;
92
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
93
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
94
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
95
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
96
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
98
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
99
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBCMRecommendedActionsHttpAuthSchemeParametersProvider,
100
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
101
+ "aws.auth#sigv4": config.credentials,
102
+ }),
103
+ }));
104
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
106
105
  }
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");
106
+ destroy() {
107
+ super.destroy();
108
+ }
109
+ }
116
110
 
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");
111
+ class BCMRecommendedActionsServiceException extends smithyClient.ServiceException {
112
+ constructor(options) {
113
+ super(options);
114
+ Object.setPrototypeOf(this, BCMRecommendedActionsServiceException.prototype);
115
+ }
116
+ }
134
117
 
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
- }
118
+ class AccessDeniedException extends BCMRecommendedActionsServiceException {
119
+ name = "AccessDeniedException";
120
+ $fault = "client";
121
+ constructor(opts) {
122
+ super({
123
+ name: "AccessDeniedException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
+ }
129
+ }
130
+ const FilterName = {
131
+ FEATURE: "FEATURE",
132
+ SEVERITY: "SEVERITY",
133
+ TYPE: "TYPE",
181
134
  };
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
- }
135
+ const MatchOption = {
136
+ EQUALS: "EQUALS",
137
+ NOT_EQUALS: "NOT_EQUALS",
209
138
  };
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
- }
139
+ const ActionType = {
140
+ ADD_ALTERNATE_BILLING_CONTACT: "ADD_ALTERNATE_BILLING_CONTACT",
141
+ CREATE_ANOMALY_MONITOR: "CREATE_ANOMALY_MONITOR",
142
+ CREATE_BUDGET: "CREATE_BUDGET",
143
+ ENABLE_COST_OPTIMIZATION_HUB: "ENABLE_COST_OPTIMIZATION_HUB",
144
+ MIGRATE_TO_GRANULAR_PERMISSIONS: "MIGRATE_TO_GRANULAR_PERMISSIONS",
145
+ PAYMENTS_DUE: "PAYMENTS_DUE",
146
+ PAYMENTS_PAST_DUE: "PAYMENTS_PAST_DUE",
147
+ REVIEW_ANOMALIES: "REVIEW_ANOMALIES",
148
+ REVIEW_BUDGETS_EXCEEDED: "REVIEW_BUDGETS_EXCEEDED",
149
+ REVIEW_BUDGET_ALERTS: "REVIEW_BUDGET_ALERTS",
150
+ REVIEW_EXPIRING_RI: "REVIEW_EXPIRING_RI",
151
+ REVIEW_EXPIRING_SP: "REVIEW_EXPIRING_SP",
152
+ REVIEW_FREETIER_USAGE_ALERTS: "REVIEW_FREETIER_USAGE_ALERTS",
153
+ REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS: "REVIEW_SAVINGS_OPPORTUNITY_RECOMMENDATIONS",
154
+ UPDATE_EXPIRED_PAYMENT_METHOD: "UPDATE_EXPIRED_PAYMENT_METHOD",
155
+ UPDATE_INVALID_PAYMENT_METHOD: "UPDATE_INVALID_PAYMENT_METHOD",
156
+ UPDATE_TAX_EXEMPTION_CERTIFICATE: "UPDATE_TAX_EXEMPTION_CERTIFICATE",
157
+ UPDATE_TAX_REGISTRATION_NUMBER: "UPDATE_TAX_REGISTRATION_NUMBER",
229
158
  };
230
- var FilterName = {
231
- FEATURE: "FEATURE",
232
- SEVERITY: "SEVERITY",
233
- TYPE: "TYPE"
159
+ class InternalServerException extends BCMRecommendedActionsServiceException {
160
+ name = "InternalServerException";
161
+ $fault = "server";
162
+ constructor(opts) {
163
+ super({
164
+ name: "InternalServerException",
165
+ $fault: "server",
166
+ ...opts,
167
+ });
168
+ Object.setPrototypeOf(this, InternalServerException.prototype);
169
+ }
170
+ }
171
+ const Feature = {
172
+ ACCOUNT: "ACCOUNT",
173
+ BUDGETS: "BUDGETS",
174
+ COST_ANOMALY_DETECTION: "COST_ANOMALY_DETECTION",
175
+ COST_OPTIMIZATION_HUB: "COST_OPTIMIZATION_HUB",
176
+ FREE_TIER: "FREE_TIER",
177
+ IAM: "IAM",
178
+ PAYMENTS: "PAYMENTS",
179
+ RESERVATIONS: "RESERVATIONS",
180
+ SAVINGS_PLANS: "SAVINGS_PLANS",
181
+ TAX_SETTINGS: "TAX_SETTINGS",
234
182
  };
235
- var MatchOption = {
236
- EQUALS: "EQUALS",
237
- NOT_EQUALS: "NOT_EQUALS"
183
+ const Severity = {
184
+ CRITICAL: "CRITICAL",
185
+ INFO: "INFO",
186
+ WARNING: "WARNING",
238
187
  };
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"
188
+ class ThrottlingException extends BCMRecommendedActionsServiceException {
189
+ name = "ThrottlingException";
190
+ $fault = "client";
191
+ constructor(opts) {
192
+ super({
193
+ name: "ThrottlingException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
198
+ }
199
+ }
200
+ const ValidationExceptionReason = {
201
+ CANNOT_PARSE: "cannotParse",
202
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
203
+ OTHER: "other",
204
+ UNKNOWN_OPERATION: "unknownOperation",
258
205
  };
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
- }
206
+ class ValidationException extends BCMRecommendedActionsServiceException {
207
+ name = "ValidationException";
208
+ $fault = "client";
209
+ reason;
210
+ fieldList;
211
+ constructor(opts) {
212
+ super({
213
+ name: "ValidationException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ Object.setPrototypeOf(this, ValidationException.prototype);
218
+ this.reason = opts.reason;
219
+ this.fieldList = opts.fieldList;
220
+ }
221
+ }
222
+
223
+ const se_ListRecommendedActionsCommand = async (input, context) => {
224
+ const headers = sharedHeaders("ListRecommendedActions");
225
+ let body;
226
+ body = JSON.stringify(smithyClient._json(input));
227
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
228
  };
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"
229
+ const de_ListRecommendedActionsCommand = async (output, context) => {
230
+ if (output.statusCode >= 300) {
231
+ return de_CommandError(output, context);
232
+ }
233
+ const data = await core$1.parseJsonBody(output.body, context);
234
+ let contents = {};
235
+ contents = smithyClient._json(data);
236
+ const response = {
237
+ $metadata: deserializeMetadata(output),
238
+ ...contents,
239
+ };
240
+ return response;
241
+ };
242
+ const de_CommandError = async (output, context) => {
243
+ const parsedOutput = {
244
+ ...output,
245
+ body: await core$1.parseJsonErrorBody(output.body, context),
246
+ };
247
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
248
+ switch (errorCode) {
249
+ case "AccessDeniedException":
250
+ case "com.amazonaws.bcmrecommendedactions#AccessDeniedException":
251
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
252
+ case "InternalServerException":
253
+ case "com.amazonaws.bcmrecommendedactions#InternalServerException":
254
+ throw await de_InternalServerExceptionRes(parsedOutput);
255
+ case "ThrottlingException":
256
+ case "com.amazonaws.bcmrecommendedactions#ThrottlingException":
257
+ throw await de_ThrottlingExceptionRes(parsedOutput);
258
+ case "ValidationException":
259
+ case "com.amazonaws.bcmrecommendedactions#ValidationException":
260
+ throw await de_ValidationExceptionRes(parsedOutput);
261
+ default:
262
+ const parsedBody = parsedOutput.body;
263
+ return throwDefaultError({
264
+ output,
265
+ parsedBody,
266
+ errorCode,
267
+ });
268
+ }
288
269
  };
289
- var Severity = {
290
- CRITICAL: "CRITICAL",
291
- INFO: "INFO",
292
- WARNING: "WARNING"
270
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
271
+ const body = parsedOutput.body;
272
+ const deserialized = smithyClient._json(body);
273
+ const exception = new AccessDeniedException({
274
+ $metadata: deserializeMetadata(parsedOutput),
275
+ ...deserialized,
276
+ });
277
+ return smithyClient.decorateServiceException(exception, body);
293
278
  };
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
279
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
280
+ const body = parsedOutput.body;
281
+ const deserialized = smithyClient._json(body);
282
+ const exception = new InternalServerException({
283
+ $metadata: deserializeMetadata(parsedOutput),
284
+ ...deserialized,
308
285
  });
309
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
310
- }
286
+ return smithyClient.decorateServiceException(exception, body);
311
287
  };
312
- var ValidationExceptionReason = {
313
- CANNOT_PARSE: "cannotParse",
314
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
315
- OTHER: "other",
316
- UNKNOWN_OPERATION: "unknownOperation"
288
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
289
+ const body = parsedOutput.body;
290
+ const deserialized = smithyClient._json(body);
291
+ const exception = new ThrottlingException({
292
+ $metadata: deserializeMetadata(parsedOutput),
293
+ ...deserialized,
294
+ });
295
+ return smithyClient.decorateServiceException(exception, body);
317
296
  };
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
297
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
298
+ const body = parsedOutput.body;
299
+ const deserialized = smithyClient._json(body);
300
+ const exception = new ValidationException({
301
+ $metadata: deserializeMetadata(parsedOutput),
302
+ ...deserialized,
342
303
  });
343
- Object.setPrototypeOf(this, _ValidationException.prototype);
344
- this.reason = opts.reason;
345
- this.fieldList = opts.fieldList;
346
- }
304
+ return smithyClient.decorateServiceException(exception, body);
305
+ };
306
+ const deserializeMetadata = (output) => ({
307
+ httpStatusCode: output.statusCode,
308
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
309
+ extendedRequestId: output.headers["x-amz-id-2"],
310
+ cfId: output.headers["x-amz-cf-id"],
311
+ });
312
+ const throwDefaultError = smithyClient.withBaseException(BCMRecommendedActionsServiceException);
313
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
314
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const contents = {
316
+ protocol,
317
+ hostname,
318
+ port,
319
+ method: "POST",
320
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
321
+ headers,
322
+ };
323
+ if (body !== undefined) {
324
+ contents.body = body;
325
+ }
326
+ return new protocolHttp.HttpRequest(contents);
347
327
  };
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
328
  function sharedHeaders(operation) {
459
- return {
460
- "content-type": "application/x-amz-json-1.0",
461
- "x-amz-target": `AWSBillingAndCostManagementRecommendedActions.${operation}`
462
- };
329
+ return {
330
+ "content-type": "application/x-amz-json-1.0",
331
+ "x-amz-target": `AWSBillingAndCostManagementRecommendedActions.${operation}`,
332
+ };
463
333
  }
464
- __name(sharedHeaders, "sharedHeaders");
465
334
 
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
- };
335
+ class ListRecommendedActionsCommand extends smithyClient.Command
336
+ .classBuilder()
337
+ .ep(commonParams)
338
+ .m(function (Command, cs, config, o) {
339
+ return [
340
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
341
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
342
+ ];
343
+ })
344
+ .s("AWSBillingAndCostManagementRecommendedActions", "ListRecommendedActions", {})
345
+ .n("BCMRecommendedActionsClient", "ListRecommendedActionsCommand")
346
+ .f(void 0, void 0)
347
+ .ser(se_ListRecommendedActionsCommand)
348
+ .de(de_ListRecommendedActionsCommand)
349
+ .build() {
350
+ }
477
351
 
478
- // src/BCMRecommendedActions.ts
479
- var commands = {
480
- ListRecommendedActionsCommand
481
- };
482
- var BCMRecommendedActions = class extends BCMRecommendedActionsClient {
483
- static {
484
- __name(this, "BCMRecommendedActions");
485
- }
352
+ const commands = {
353
+ ListRecommendedActionsCommand,
486
354
  };
487
- (0, import_smithy_client.createAggregatedClient)(commands, BCMRecommendedActions);
488
-
489
- // src/pagination/ListRecommendedActionsPaginator.ts
355
+ class BCMRecommendedActions extends BCMRecommendedActionsClient {
356
+ }
357
+ smithyClient.createAggregatedClient(commands, BCMRecommendedActions);
490
358
 
491
- var paginateListRecommendedActions = (0, import_core.createPaginator)(BCMRecommendedActionsClient, ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
492
- // Annotate the CommonJS export names for ESM import in node:
359
+ const paginateListRecommendedActions = core.createPaginator(BCMRecommendedActionsClient, ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
493
360
 
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
361
+ Object.defineProperty(exports, "$Command", {
362
+ enumerable: true,
363
+ get: function () { return smithyClient.Command; }
512
364
  });
513
-
365
+ Object.defineProperty(exports, "__Client", {
366
+ enumerable: true,
367
+ get: function () { return smithyClient.Client; }
368
+ });
369
+ exports.AccessDeniedException = AccessDeniedException;
370
+ exports.ActionType = ActionType;
371
+ exports.BCMRecommendedActions = BCMRecommendedActions;
372
+ exports.BCMRecommendedActionsClient = BCMRecommendedActionsClient;
373
+ exports.BCMRecommendedActionsServiceException = BCMRecommendedActionsServiceException;
374
+ exports.Feature = Feature;
375
+ exports.FilterName = FilterName;
376
+ exports.InternalServerException = InternalServerException;
377
+ exports.ListRecommendedActionsCommand = ListRecommendedActionsCommand;
378
+ exports.MatchOption = MatchOption;
379
+ exports.Severity = Severity;
380
+ exports.ThrottlingException = ThrottlingException;
381
+ exports.ValidationException = ValidationException;
382
+ exports.ValidationExceptionReason = ValidationExceptionReason;
383
+ exports.paginateListRecommendedActions = paginateListRecommendedActions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.901.0",
4
+ "version": "3.907.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bcm-recommended-actions",
@@ -20,17 +20,17 @@
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.901.0",
24
- "@aws-sdk/credential-provider-node": "3.901.0",
23
+ "@aws-sdk/core": "3.907.0",
24
+ "@aws-sdk/credential-provider-node": "3.907.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.907.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
- "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.901.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.907.0",
33
+ "@aws-sdk/util-user-agent-node": "3.907.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
35
  "@smithy/core": "^3.14.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.0",