@aws-sdk/client-bcm-recommended-actions 3.926.0 → 3.928.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 +159 -135
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/BCMRecommendedActionsClient.js +2 -0
- package/dist-es/commands/ListRecommendedActionsCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +147 -0
- package/dist-types/BCMRecommendedActionsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +20 -0
- package/dist-types/ts3.4/BCMRecommendedActionsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -120
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -11
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -17
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -89,6 +88,7 @@ class BCMRecommendedActionsClient extends smithyClient.Client {
|
|
|
89
88
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
89
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
90
|
this.config = _config_8;
|
|
91
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
92
92
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
93
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -108,14 +108,14 @@ class BCMRecommendedActionsClient extends smithyClient.Client {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
class BCMRecommendedActionsServiceException extends smithyClient.ServiceException {
|
|
111
|
+
let BCMRecommendedActionsServiceException$1 = class BCMRecommendedActionsServiceException extends smithyClient.ServiceException {
|
|
112
112
|
constructor(options) {
|
|
113
113
|
super(options);
|
|
114
114
|
Object.setPrototypeOf(this, BCMRecommendedActionsServiceException.prototype);
|
|
115
115
|
}
|
|
116
|
-
}
|
|
116
|
+
};
|
|
117
117
|
|
|
118
|
-
class AccessDeniedException extends BCMRecommendedActionsServiceException {
|
|
118
|
+
let AccessDeniedException$1 = class AccessDeniedException extends BCMRecommendedActionsServiceException$1 {
|
|
119
119
|
name = "AccessDeniedException";
|
|
120
120
|
$fault = "client";
|
|
121
121
|
constructor(opts) {
|
|
@@ -126,7 +126,7 @@ class AccessDeniedException extends BCMRecommendedActionsServiceException {
|
|
|
126
126
|
});
|
|
127
127
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
};
|
|
130
130
|
const FilterName = {
|
|
131
131
|
FEATURE: "FEATURE",
|
|
132
132
|
SEVERITY: "SEVERITY",
|
|
@@ -156,7 +156,7 @@ const ActionType = {
|
|
|
156
156
|
UPDATE_TAX_EXEMPTION_CERTIFICATE: "UPDATE_TAX_EXEMPTION_CERTIFICATE",
|
|
157
157
|
UPDATE_TAX_REGISTRATION_NUMBER: "UPDATE_TAX_REGISTRATION_NUMBER",
|
|
158
158
|
};
|
|
159
|
-
class InternalServerException extends BCMRecommendedActionsServiceException {
|
|
159
|
+
let InternalServerException$1 = class InternalServerException extends BCMRecommendedActionsServiceException$1 {
|
|
160
160
|
name = "InternalServerException";
|
|
161
161
|
$fault = "server";
|
|
162
162
|
constructor(opts) {
|
|
@@ -167,7 +167,7 @@ class InternalServerException extends BCMRecommendedActionsServiceException {
|
|
|
167
167
|
});
|
|
168
168
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
169
169
|
}
|
|
170
|
-
}
|
|
170
|
+
};
|
|
171
171
|
const Feature = {
|
|
172
172
|
ACCOUNT: "ACCOUNT",
|
|
173
173
|
BUDGETS: "BUDGETS",
|
|
@@ -185,7 +185,7 @@ const Severity = {
|
|
|
185
185
|
INFO: "INFO",
|
|
186
186
|
WARNING: "WARNING",
|
|
187
187
|
};
|
|
188
|
-
class ThrottlingException extends BCMRecommendedActionsServiceException {
|
|
188
|
+
let ThrottlingException$1 = class ThrottlingException extends BCMRecommendedActionsServiceException$1 {
|
|
189
189
|
name = "ThrottlingException";
|
|
190
190
|
$fault = "client";
|
|
191
191
|
constructor(opts) {
|
|
@@ -196,14 +196,14 @@ class ThrottlingException extends BCMRecommendedActionsServiceException {
|
|
|
196
196
|
});
|
|
197
197
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
198
198
|
}
|
|
199
|
-
}
|
|
199
|
+
};
|
|
200
200
|
const ValidationExceptionReason = {
|
|
201
201
|
CANNOT_PARSE: "cannotParse",
|
|
202
202
|
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
203
203
|
OTHER: "other",
|
|
204
204
|
UNKNOWN_OPERATION: "unknownOperation",
|
|
205
205
|
};
|
|
206
|
-
class ValidationException extends BCMRecommendedActionsServiceException {
|
|
206
|
+
let ValidationException$1 = class ValidationException extends BCMRecommendedActionsServiceException$1 {
|
|
207
207
|
name = "ValidationException";
|
|
208
208
|
$fault = "client";
|
|
209
209
|
reason;
|
|
@@ -218,134 +218,158 @@ class ValidationException extends BCMRecommendedActionsServiceException {
|
|
|
218
218
|
this.reason = opts.reason;
|
|
219
219
|
this.fieldList = opts.fieldList;
|
|
220
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);
|
|
228
|
-
};
|
|
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
|
-
}
|
|
269
221
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
222
|
+
|
|
223
|
+
const _ADE = "AccessDeniedException";
|
|
224
|
+
const _AF = "ActionFilter";
|
|
225
|
+
const _AFL = "ActionFilterList";
|
|
226
|
+
const _ISE = "InternalServerException";
|
|
227
|
+
const _LRA = "ListRecommendedActions";
|
|
228
|
+
const _LRAR = "ListRecommendedActionsRequest";
|
|
229
|
+
const _LRARi = "ListRecommendedActionsResponse";
|
|
230
|
+
const _RA = "RecommendedAction";
|
|
231
|
+
const _RAe = "RecommendedActions";
|
|
232
|
+
const _RF = "RequestFilter";
|
|
233
|
+
const _TE = "ThrottlingException";
|
|
234
|
+
const _VE = "ValidationException";
|
|
235
|
+
const _VEF = "ValidationExceptionField";
|
|
236
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
237
|
+
const _a = "actions";
|
|
238
|
+
const _aI = "accountId";
|
|
239
|
+
const _aQE = "awsQueryError";
|
|
240
|
+
const _c = "client";
|
|
241
|
+
const _co = "context";
|
|
242
|
+
const _e = "error";
|
|
243
|
+
const _f = "filter";
|
|
244
|
+
const _fL = "fieldList";
|
|
245
|
+
const _fe = "feature";
|
|
246
|
+
const _hE = "httpError";
|
|
247
|
+
const _i = "id";
|
|
248
|
+
const _k = "key";
|
|
249
|
+
const _lUTS = "lastUpdatedTimeStamp";
|
|
250
|
+
const _m = "message";
|
|
251
|
+
const _mO = "matchOption";
|
|
252
|
+
const _mR = "maxResults";
|
|
253
|
+
const _n = "name";
|
|
254
|
+
const _nS = "nextSteps";
|
|
255
|
+
const _nT = "nextToken";
|
|
256
|
+
const _r = "reason";
|
|
257
|
+
const _rA = "recommendedActions";
|
|
258
|
+
const _s = "server";
|
|
259
|
+
const _se = "severity";
|
|
260
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.bcmrecommendedactions";
|
|
261
|
+
const _t = "type";
|
|
262
|
+
const _v = "values";
|
|
263
|
+
const n0 = "com.amazonaws.bcmrecommendedactions";
|
|
264
|
+
var AccessDeniedException = [
|
|
265
|
+
-3,
|
|
266
|
+
n0,
|
|
267
|
+
_ADE,
|
|
268
|
+
{
|
|
269
|
+
[_e]: _c,
|
|
270
|
+
[_hE]: 403,
|
|
271
|
+
[_aQE]: [`BCMRecommendedActionsAccessDenied`, 403],
|
|
272
|
+
},
|
|
273
|
+
[_m],
|
|
274
|
+
[0],
|
|
275
|
+
];
|
|
276
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
277
|
+
var ActionFilter = [3, n0, _AF, 0, [_k, _mO, _v], [0, 0, 64 | 0]];
|
|
278
|
+
var InternalServerException = [
|
|
279
|
+
-3,
|
|
280
|
+
n0,
|
|
281
|
+
_ISE,
|
|
282
|
+
{
|
|
283
|
+
[_e]: _s,
|
|
284
|
+
[_hE]: 500,
|
|
285
|
+
[_aQE]: [`BCMRecommendedActionsInternalServer`, 500],
|
|
286
|
+
},
|
|
287
|
+
[_m],
|
|
288
|
+
[0],
|
|
289
|
+
];
|
|
290
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
291
|
+
var ListRecommendedActionsRequest = [
|
|
292
|
+
3,
|
|
293
|
+
n0,
|
|
294
|
+
_LRAR,
|
|
295
|
+
0,
|
|
296
|
+
[_f, _mR, _nT],
|
|
297
|
+
[() => RequestFilter, 1, 0],
|
|
298
|
+
];
|
|
299
|
+
var ListRecommendedActionsResponse = [
|
|
300
|
+
3,
|
|
301
|
+
n0,
|
|
302
|
+
_LRARi,
|
|
303
|
+
0,
|
|
304
|
+
[_rA, _nT],
|
|
305
|
+
[() => RecommendedActions, 0],
|
|
306
|
+
];
|
|
307
|
+
var RecommendedAction = [
|
|
308
|
+
3,
|
|
309
|
+
n0,
|
|
310
|
+
_RA,
|
|
311
|
+
0,
|
|
312
|
+
[_i, _t, _aI, _se, _fe, _co, _nS, _lUTS],
|
|
313
|
+
[0, 0, 0, 0, 0, 128 | 0, 64 | 0, 0],
|
|
314
|
+
];
|
|
315
|
+
var RequestFilter = [3, n0, _RF, 0, [_a], [() => ActionFilterList]];
|
|
316
|
+
var ThrottlingException = [
|
|
317
|
+
-3,
|
|
318
|
+
n0,
|
|
319
|
+
_TE,
|
|
320
|
+
{
|
|
321
|
+
[_e]: _c,
|
|
322
|
+
[_hE]: 429,
|
|
323
|
+
[_aQE]: [`BCMRecommendedActionsThrottling`, 429],
|
|
324
|
+
},
|
|
325
|
+
[_m],
|
|
326
|
+
[0],
|
|
327
|
+
];
|
|
328
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
329
|
+
var ValidationException = [
|
|
330
|
+
-3,
|
|
331
|
+
n0,
|
|
332
|
+
_VE,
|
|
333
|
+
{
|
|
334
|
+
[_e]: _c,
|
|
335
|
+
[_hE]: 400,
|
|
336
|
+
[_aQE]: [`BCMRecommendedActionsValidation`, 400],
|
|
337
|
+
},
|
|
338
|
+
[_m, _r, _fL],
|
|
339
|
+
[0, 0, () => ValidationExceptionFieldList],
|
|
340
|
+
];
|
|
341
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
342
|
+
var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
|
|
343
|
+
var BCMRecommendedActionsServiceException = [
|
|
344
|
+
-3,
|
|
345
|
+
_sm,
|
|
346
|
+
"BCMRecommendedActionsServiceException",
|
|
347
|
+
0,
|
|
348
|
+
[],
|
|
349
|
+
[],
|
|
350
|
+
];
|
|
351
|
+
schema.TypeRegistry.for(_sm).registerError(BCMRecommendedActionsServiceException, BCMRecommendedActionsServiceException$1);
|
|
352
|
+
var ActionFilterList = [1, n0, _AFL, 0, () => ActionFilter];
|
|
353
|
+
var RecommendedActions = [1, n0, _RAe, 0, () => RecommendedAction];
|
|
354
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
355
|
+
var ListRecommendedActions = [
|
|
356
|
+
9,
|
|
357
|
+
n0,
|
|
358
|
+
_LRA,
|
|
359
|
+
0,
|
|
360
|
+
() => ListRecommendedActionsRequest,
|
|
361
|
+
() => ListRecommendedActionsResponse,
|
|
362
|
+
];
|
|
334
363
|
|
|
335
364
|
class ListRecommendedActionsCommand extends smithyClient.Command
|
|
336
365
|
.classBuilder()
|
|
337
366
|
.ep(commonParams)
|
|
338
367
|
.m(function (Command, cs, config, o) {
|
|
339
|
-
return [
|
|
340
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
341
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
342
|
-
];
|
|
368
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
343
369
|
})
|
|
344
370
|
.s("AWSBillingAndCostManagementRecommendedActions", "ListRecommendedActions", {})
|
|
345
371
|
.n("BCMRecommendedActionsClient", "ListRecommendedActionsCommand")
|
|
346
|
-
.
|
|
347
|
-
.ser(se_ListRecommendedActionsCommand)
|
|
348
|
-
.de(de_ListRecommendedActionsCommand)
|
|
372
|
+
.sc(ListRecommendedActions)
|
|
349
373
|
.build() {
|
|
350
374
|
}
|
|
351
375
|
|
|
@@ -366,18 +390,18 @@ Object.defineProperty(exports, "__Client", {
|
|
|
366
390
|
enumerable: true,
|
|
367
391
|
get: function () { return smithyClient.Client; }
|
|
368
392
|
});
|
|
369
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
393
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
370
394
|
exports.ActionType = ActionType;
|
|
371
395
|
exports.BCMRecommendedActions = BCMRecommendedActions;
|
|
372
396
|
exports.BCMRecommendedActionsClient = BCMRecommendedActionsClient;
|
|
373
|
-
exports.BCMRecommendedActionsServiceException = BCMRecommendedActionsServiceException;
|
|
397
|
+
exports.BCMRecommendedActionsServiceException = BCMRecommendedActionsServiceException$1;
|
|
374
398
|
exports.Feature = Feature;
|
|
375
399
|
exports.FilterName = FilterName;
|
|
376
|
-
exports.InternalServerException = InternalServerException;
|
|
400
|
+
exports.InternalServerException = InternalServerException$1;
|
|
377
401
|
exports.ListRecommendedActionsCommand = ListRecommendedActionsCommand;
|
|
378
402
|
exports.MatchOption = MatchOption;
|
|
379
403
|
exports.Severity = Severity;
|
|
380
|
-
exports.ThrottlingException = ThrottlingException;
|
|
381
|
-
exports.ValidationException = ValidationException;
|
|
404
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
405
|
+
exports.ValidationException = ValidationException$1;
|
|
382
406
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
383
407
|
exports.paginateListRecommendedActions = paginateListRecommendedActions;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ??
|
|
30
|
+
new protocols_1.AwsJson1_0Protocol({
|
|
31
|
+
defaultNamespace: "com.amazonaws.bcmrecommendedactions",
|
|
32
|
+
serviceTarget: "AWSBillingAndCostManagementRecommendedActions",
|
|
33
|
+
awsQueryCompatible: false,
|
|
34
|
+
}),
|
|
28
35
|
serviceId: config?.serviceId ?? "BCM Recommended Actions",
|
|
29
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class BCMRecommendedActionsClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListRecommendedActions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListRecommendedActionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSBillingAndCostManagementRecommendedActions", "ListRecommendedActions", {})
|
|
17
13
|
.n("BCMRecommendedActionsClient", "ListRecommendedActionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListRecommendedActionsCommand)
|
|
20
|
-
.de(de_ListRecommendedActionsCommand)
|
|
14
|
+
.sc(ListRecommendedActions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_0Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.bcmrecommendedactions",
|
|
29
|
+
serviceTarget: "AWSBillingAndCostManagementRecommendedActions",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "BCM Recommended Actions",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _AF = "ActionFilter";
|
|
3
|
+
const _AFL = "ActionFilterList";
|
|
4
|
+
const _ISE = "InternalServerException";
|
|
5
|
+
const _LRA = "ListRecommendedActions";
|
|
6
|
+
const _LRAR = "ListRecommendedActionsRequest";
|
|
7
|
+
const _LRARi = "ListRecommendedActionsResponse";
|
|
8
|
+
const _RA = "RecommendedAction";
|
|
9
|
+
const _RAe = "RecommendedActions";
|
|
10
|
+
const _RF = "RequestFilter";
|
|
11
|
+
const _TE = "ThrottlingException";
|
|
12
|
+
const _VE = "ValidationException";
|
|
13
|
+
const _VEF = "ValidationExceptionField";
|
|
14
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
15
|
+
const _a = "actions";
|
|
16
|
+
const _aI = "accountId";
|
|
17
|
+
const _aQE = "awsQueryError";
|
|
18
|
+
const _c = "client";
|
|
19
|
+
const _co = "context";
|
|
20
|
+
const _e = "error";
|
|
21
|
+
const _f = "filter";
|
|
22
|
+
const _fL = "fieldList";
|
|
23
|
+
const _fe = "feature";
|
|
24
|
+
const _hE = "httpError";
|
|
25
|
+
const _i = "id";
|
|
26
|
+
const _k = "key";
|
|
27
|
+
const _lUTS = "lastUpdatedTimeStamp";
|
|
28
|
+
const _m = "message";
|
|
29
|
+
const _mO = "matchOption";
|
|
30
|
+
const _mR = "maxResults";
|
|
31
|
+
const _n = "name";
|
|
32
|
+
const _nS = "nextSteps";
|
|
33
|
+
const _nT = "nextToken";
|
|
34
|
+
const _r = "reason";
|
|
35
|
+
const _rA = "recommendedActions";
|
|
36
|
+
const _s = "server";
|
|
37
|
+
const _se = "severity";
|
|
38
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.bcmrecommendedactions";
|
|
39
|
+
const _t = "type";
|
|
40
|
+
const _v = "values";
|
|
41
|
+
const n0 = "com.amazonaws.bcmrecommendedactions";
|
|
42
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
43
|
+
import { BCMRecommendedActionsServiceException as __BCMRecommendedActionsServiceException } from "../models/BCMRecommendedActionsServiceException";
|
|
44
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
|
|
45
|
+
export var AccessDeniedException = [
|
|
46
|
+
-3,
|
|
47
|
+
n0,
|
|
48
|
+
_ADE,
|
|
49
|
+
{
|
|
50
|
+
[_e]: _c,
|
|
51
|
+
[_hE]: 403,
|
|
52
|
+
[_aQE]: [`BCMRecommendedActionsAccessDenied`, 403],
|
|
53
|
+
},
|
|
54
|
+
[_m],
|
|
55
|
+
[0],
|
|
56
|
+
];
|
|
57
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
58
|
+
export var ActionFilter = [3, n0, _AF, 0, [_k, _mO, _v], [0, 0, 64 | 0]];
|
|
59
|
+
export var InternalServerException = [
|
|
60
|
+
-3,
|
|
61
|
+
n0,
|
|
62
|
+
_ISE,
|
|
63
|
+
{
|
|
64
|
+
[_e]: _s,
|
|
65
|
+
[_hE]: 500,
|
|
66
|
+
[_aQE]: [`BCMRecommendedActionsInternalServer`, 500],
|
|
67
|
+
},
|
|
68
|
+
[_m],
|
|
69
|
+
[0],
|
|
70
|
+
];
|
|
71
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
72
|
+
export var ListRecommendedActionsRequest = [
|
|
73
|
+
3,
|
|
74
|
+
n0,
|
|
75
|
+
_LRAR,
|
|
76
|
+
0,
|
|
77
|
+
[_f, _mR, _nT],
|
|
78
|
+
[() => RequestFilter, 1, 0],
|
|
79
|
+
];
|
|
80
|
+
export var ListRecommendedActionsResponse = [
|
|
81
|
+
3,
|
|
82
|
+
n0,
|
|
83
|
+
_LRARi,
|
|
84
|
+
0,
|
|
85
|
+
[_rA, _nT],
|
|
86
|
+
[() => RecommendedActions, 0],
|
|
87
|
+
];
|
|
88
|
+
export var RecommendedAction = [
|
|
89
|
+
3,
|
|
90
|
+
n0,
|
|
91
|
+
_RA,
|
|
92
|
+
0,
|
|
93
|
+
[_i, _t, _aI, _se, _fe, _co, _nS, _lUTS],
|
|
94
|
+
[0, 0, 0, 0, 0, 128 | 0, 64 | 0, 0],
|
|
95
|
+
];
|
|
96
|
+
export var RequestFilter = [3, n0, _RF, 0, [_a], [() => ActionFilterList]];
|
|
97
|
+
export var ThrottlingException = [
|
|
98
|
+
-3,
|
|
99
|
+
n0,
|
|
100
|
+
_TE,
|
|
101
|
+
{
|
|
102
|
+
[_e]: _c,
|
|
103
|
+
[_hE]: 429,
|
|
104
|
+
[_aQE]: [`BCMRecommendedActionsThrottling`, 429],
|
|
105
|
+
},
|
|
106
|
+
[_m],
|
|
107
|
+
[0],
|
|
108
|
+
];
|
|
109
|
+
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
110
|
+
export var ValidationException = [
|
|
111
|
+
-3,
|
|
112
|
+
n0,
|
|
113
|
+
_VE,
|
|
114
|
+
{
|
|
115
|
+
[_e]: _c,
|
|
116
|
+
[_hE]: 400,
|
|
117
|
+
[_aQE]: [`BCMRecommendedActionsValidation`, 400],
|
|
118
|
+
},
|
|
119
|
+
[_m, _r, _fL],
|
|
120
|
+
[0, 0, () => ValidationExceptionFieldList],
|
|
121
|
+
];
|
|
122
|
+
TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
|
|
123
|
+
export var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
|
|
124
|
+
export var __Unit = "unit";
|
|
125
|
+
export var BCMRecommendedActionsServiceException = [
|
|
126
|
+
-3,
|
|
127
|
+
_sm,
|
|
128
|
+
"BCMRecommendedActionsServiceException",
|
|
129
|
+
0,
|
|
130
|
+
[],
|
|
131
|
+
[],
|
|
132
|
+
];
|
|
133
|
+
TypeRegistry.for(_sm).registerError(BCMRecommendedActionsServiceException, __BCMRecommendedActionsServiceException);
|
|
134
|
+
export var ActionFilterList = [1, n0, _AFL, 0, () => ActionFilter];
|
|
135
|
+
export var FilterValues = 64 | 0;
|
|
136
|
+
export var NextSteps = 64 | 0;
|
|
137
|
+
export var RecommendedActions = [1, n0, _RAe, 0, () => RecommendedAction];
|
|
138
|
+
export var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
139
|
+
export var Context = 128 | 0;
|
|
140
|
+
export var ListRecommendedActions = [
|
|
141
|
+
9,
|
|
142
|
+
n0,
|
|
143
|
+
_LRA,
|
|
144
|
+
0,
|
|
145
|
+
() => ListRecommendedActionsRequest,
|
|
146
|
+
() => ListRecommendedActionsResponse,
|
|
147
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput } from "./commands/ListRecommendedActionsCommand";
|
|
11
11
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -142,6 +142,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
142
142
|
* Optional extensions
|
|
143
143
|
*/
|
|
144
144
|
extensions?: RuntimeExtension[];
|
|
145
|
+
/**
|
|
146
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
147
|
+
* may be overridden. A default will always be set by the client.
|
|
148
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
149
|
+
* the client.
|
|
150
|
+
* @alpha
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
145
154
|
/**
|
|
146
155
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
147
156
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: BCMRecommendedActionsClientConfi
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: BCMRecommendedActionsClientConfi
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: BCMRecommendedActionsClientConfi
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: BCMRecommendedActionsClientConfi
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BCMRecommendedActionsHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
|
+
export declare var ActionFilter: StaticStructureSchema;
|
|
4
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
5
|
+
export declare var ListRecommendedActionsRequest: StaticStructureSchema;
|
|
6
|
+
export declare var ListRecommendedActionsResponse: StaticStructureSchema;
|
|
7
|
+
export declare var RecommendedAction: StaticStructureSchema;
|
|
8
|
+
export declare var RequestFilter: StaticStructureSchema;
|
|
9
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
10
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
11
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
12
|
+
export declare var __Unit: "unit";
|
|
13
|
+
export declare var BCMRecommendedActionsServiceException: StaticErrorSchema;
|
|
14
|
+
export declare var ActionFilterList: StaticListSchema;
|
|
15
|
+
export declare var FilterValues: number;
|
|
16
|
+
export declare var NextSteps: number;
|
|
17
|
+
export declare var RecommendedActions: StaticListSchema;
|
|
18
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
19
|
+
export declare var Context: number;
|
|
20
|
+
export declare var ListRecommendedActions: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -82,6 +85,7 @@ export interface ClientDefaults
|
|
|
82
85
|
retryMode?: string | __Provider<string>;
|
|
83
86
|
logger?: __Logger;
|
|
84
87
|
extensions?: RuntimeExtension[];
|
|
88
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
85
89
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
86
90
|
}
|
|
87
91
|
export type BCMRecommendedActionsClientConfigType = Partial<
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
profile?: string;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
43
47
|
userAgentAppId?:
|
|
44
48
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (
|
|
|
38
38
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
defaultsMode:
|
|
42
46
|
| import("@smithy/smithy-client").DefaultsMode
|
|
43
47
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BCMRecommendedActionsHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var ActionFilter: StaticStructureSchema;
|
|
9
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
10
|
+
export declare var ListRecommendedActionsRequest: StaticStructureSchema;
|
|
11
|
+
export declare var ListRecommendedActionsResponse: StaticStructureSchema;
|
|
12
|
+
export declare var RecommendedAction: StaticStructureSchema;
|
|
13
|
+
export declare var RequestFilter: StaticStructureSchema;
|
|
14
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
15
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
16
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
17
|
+
export declare var __Unit: "unit";
|
|
18
|
+
export declare var BCMRecommendedActionsServiceException: StaticErrorSchema;
|
|
19
|
+
export declare var ActionFilterList: StaticListSchema;
|
|
20
|
+
export declare var FilterValues: number;
|
|
21
|
+
export declare var NextSteps: number;
|
|
22
|
+
export declare var RecommendedActions: StaticListSchema;
|
|
23
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
24
|
+
export declare var Context: number;
|
|
25
|
+
export declare var ListRecommendedActions: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.928.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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { BCMRecommendedActionsServiceException as __BaseException } from "../models/BCMRecommendedActionsServiceException";
|
|
5
|
-
import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_ListRecommendedActionsCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("ListRecommendedActions");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const de_ListRecommendedActionsCommand = async (output, context) => {
|
|
13
|
-
if (output.statusCode >= 300) {
|
|
14
|
-
return de_CommandError(output, context);
|
|
15
|
-
}
|
|
16
|
-
const data = await parseBody(output.body, context);
|
|
17
|
-
let contents = {};
|
|
18
|
-
contents = _json(data);
|
|
19
|
-
const response = {
|
|
20
|
-
$metadata: deserializeMetadata(output),
|
|
21
|
-
...contents,
|
|
22
|
-
};
|
|
23
|
-
return response;
|
|
24
|
-
};
|
|
25
|
-
const de_CommandError = async (output, context) => {
|
|
26
|
-
const parsedOutput = {
|
|
27
|
-
...output,
|
|
28
|
-
body: await parseErrorBody(output.body, context),
|
|
29
|
-
};
|
|
30
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
31
|
-
switch (errorCode) {
|
|
32
|
-
case "AccessDeniedException":
|
|
33
|
-
case "com.amazonaws.bcmrecommendedactions#AccessDeniedException":
|
|
34
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
35
|
-
case "InternalServerException":
|
|
36
|
-
case "com.amazonaws.bcmrecommendedactions#InternalServerException":
|
|
37
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
38
|
-
case "ThrottlingException":
|
|
39
|
-
case "com.amazonaws.bcmrecommendedactions#ThrottlingException":
|
|
40
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
41
|
-
case "ValidationException":
|
|
42
|
-
case "com.amazonaws.bcmrecommendedactions#ValidationException":
|
|
43
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
44
|
-
default:
|
|
45
|
-
const parsedBody = parsedOutput.body;
|
|
46
|
-
return throwDefaultError({
|
|
47
|
-
output,
|
|
48
|
-
parsedBody,
|
|
49
|
-
errorCode,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
54
|
-
const body = parsedOutput.body;
|
|
55
|
-
const deserialized = _json(body);
|
|
56
|
-
const exception = new AccessDeniedException({
|
|
57
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
58
|
-
...deserialized,
|
|
59
|
-
});
|
|
60
|
-
return __decorateServiceException(exception, body);
|
|
61
|
-
};
|
|
62
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
63
|
-
const body = parsedOutput.body;
|
|
64
|
-
const deserialized = _json(body);
|
|
65
|
-
const exception = new InternalServerException({
|
|
66
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
67
|
-
...deserialized,
|
|
68
|
-
});
|
|
69
|
-
return __decorateServiceException(exception, body);
|
|
70
|
-
};
|
|
71
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
72
|
-
const body = parsedOutput.body;
|
|
73
|
-
const deserialized = _json(body);
|
|
74
|
-
const exception = new ThrottlingException({
|
|
75
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
76
|
-
...deserialized,
|
|
77
|
-
});
|
|
78
|
-
return __decorateServiceException(exception, body);
|
|
79
|
-
};
|
|
80
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
81
|
-
const body = parsedOutput.body;
|
|
82
|
-
const deserialized = _json(body);
|
|
83
|
-
const exception = new ValidationException({
|
|
84
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
85
|
-
...deserialized,
|
|
86
|
-
});
|
|
87
|
-
return __decorateServiceException(exception, body);
|
|
88
|
-
};
|
|
89
|
-
const deserializeMetadata = (output) => ({
|
|
90
|
-
httpStatusCode: output.statusCode,
|
|
91
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
92
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
93
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
94
|
-
});
|
|
95
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
96
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
97
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
98
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
|
-
const contents = {
|
|
100
|
-
protocol,
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "POST",
|
|
104
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
105
|
-
headers,
|
|
106
|
-
};
|
|
107
|
-
if (resolvedHostname !== undefined) {
|
|
108
|
-
contents.hostname = resolvedHostname;
|
|
109
|
-
}
|
|
110
|
-
if (body !== undefined) {
|
|
111
|
-
contents.body = body;
|
|
112
|
-
}
|
|
113
|
-
return new __HttpRequest(contents);
|
|
114
|
-
};
|
|
115
|
-
function sharedHeaders(operation) {
|
|
116
|
-
return {
|
|
117
|
-
"content-type": "application/x-amz-json-1.0",
|
|
118
|
-
"x-amz-target": `AWSBillingAndCostManagementRecommendedActions.${operation}`,
|
|
119
|
-
};
|
|
120
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput } from "../commands/ListRecommendedActionsCommand";
|
|
4
|
-
/**
|
|
5
|
-
* serializeAws_json1_0ListRecommendedActionsCommand
|
|
6
|
-
*/
|
|
7
|
-
export declare const se_ListRecommendedActionsCommand: (input: ListRecommendedActionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
|
-
/**
|
|
9
|
-
* deserializeAws_json1_0ListRecommendedActionsCommand
|
|
10
|
-
*/
|
|
11
|
-
export declare const de_ListRecommendedActionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRecommendedActionsCommandOutput>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
ListRecommendedActionsCommandInput,
|
|
8
|
-
ListRecommendedActionsCommandOutput,
|
|
9
|
-
} from "../commands/ListRecommendedActionsCommand";
|
|
10
|
-
export declare const se_ListRecommendedActionsCommand: (
|
|
11
|
-
input: ListRecommendedActionsCommandInput,
|
|
12
|
-
context: __SerdeContext
|
|
13
|
-
) => Promise<__HttpRequest>;
|
|
14
|
-
export declare const de_ListRecommendedActionsCommand: (
|
|
15
|
-
output: __HttpResponse,
|
|
16
|
-
context: __SerdeContext
|
|
17
|
-
) => Promise<ListRecommendedActionsCommandOutput>;
|