@aws-sdk/client-applicationcostprofiler 3.927.0 → 3.929.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 +283 -352
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ApplicationCostProfilerClient.js +2 -0
- package/dist-es/commands/DeleteReportDefinitionCommand.js +3 -9
- package/dist-es/commands/GetReportDefinitionCommand.js +3 -9
- package/dist-es/commands/ImportApplicationUsageCommand.js +3 -9
- package/dist-es/commands/ListReportDefinitionsCommand.js +3 -9
- package/dist-es/commands/PutReportDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateReportDefinitionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +257 -0
- package/dist-types/ApplicationCostProfilerClient.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 +30 -0
- package/dist-types/ts3.4/ApplicationCostProfilerClient.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 +35 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -298
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -77
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, {
|
|
@@ -91,6 +90,7 @@ class ApplicationCostProfilerClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class ApplicationCostProfilerClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class ApplicationCostProfilerServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let ApplicationCostProfilerServiceException$1 = class ApplicationCostProfilerServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, ApplicationCostProfilerServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class AccessDeniedException extends ApplicationCostProfilerServiceException {
|
|
120
|
+
let AccessDeniedException$1 = class AccessDeniedException extends ApplicationCostProfilerServiceException$1 {
|
|
121
121
|
name = "AccessDeniedException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ class AccessDeniedException extends ApplicationCostProfilerServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
class InternalServerException extends ApplicationCostProfilerServiceException {
|
|
131
|
+
};
|
|
132
|
+
let InternalServerException$1 = class InternalServerException extends ApplicationCostProfilerServiceException$1 {
|
|
133
133
|
name = "InternalServerException";
|
|
134
134
|
$fault = "server";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,8 +140,8 @@ class InternalServerException extends ApplicationCostProfilerServiceException {
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
class ThrottlingException extends ApplicationCostProfilerServiceException {
|
|
143
|
+
};
|
|
144
|
+
let ThrottlingException$1 = class ThrottlingException extends ApplicationCostProfilerServiceException$1 {
|
|
145
145
|
name = "ThrottlingException";
|
|
146
146
|
$fault = "client";
|
|
147
147
|
constructor(opts) {
|
|
@@ -152,8 +152,8 @@ class ThrottlingException extends ApplicationCostProfilerServiceException {
|
|
|
152
152
|
});
|
|
153
153
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
class ValidationException extends ApplicationCostProfilerServiceException {
|
|
155
|
+
};
|
|
156
|
+
let ValidationException$1 = class ValidationException extends ApplicationCostProfilerServiceException$1 {
|
|
157
157
|
name = "ValidationException";
|
|
158
158
|
$fault = "client";
|
|
159
159
|
constructor(opts) {
|
|
@@ -164,7 +164,7 @@ class ValidationException extends ApplicationCostProfilerServiceException {
|
|
|
164
164
|
});
|
|
165
165
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
};
|
|
168
168
|
const Format = {
|
|
169
169
|
CSV: "CSV",
|
|
170
170
|
PARQUET: "PARQUET",
|
|
@@ -180,7 +180,7 @@ const S3BucketRegion = {
|
|
|
180
180
|
EU_SOUTH_1: "eu-south-1",
|
|
181
181
|
ME_SOUTH_1: "me-south-1",
|
|
182
182
|
};
|
|
183
|
-
class ServiceQuotaExceededException extends ApplicationCostProfilerServiceException {
|
|
183
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends ApplicationCostProfilerServiceException$1 {
|
|
184
184
|
name = "ServiceQuotaExceededException";
|
|
185
185
|
$fault = "client";
|
|
186
186
|
constructor(opts) {
|
|
@@ -191,315 +191,271 @@ class ServiceQuotaExceededException extends ApplicationCostProfilerServiceExcept
|
|
|
191
191
|
});
|
|
192
192
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
193
193
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
const se_DeleteReportDefinitionCommand = async (input, context) => {
|
|
197
|
-
const b = core.requestBuilder(input, context);
|
|
198
|
-
const headers = {};
|
|
199
|
-
b.bp("/reportDefinition/{reportId}");
|
|
200
|
-
b.p("reportId", () => input.reportId, "{reportId}", false);
|
|
201
|
-
let body;
|
|
202
|
-
b.m("DELETE").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
194
|
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
destinationS3Location: (_) => smithyClient._json(_),
|
|
248
|
-
format: [],
|
|
249
|
-
reportDescription: [],
|
|
250
|
-
reportFrequency: [],
|
|
251
|
-
reportId: [],
|
|
252
|
-
}));
|
|
253
|
-
b.m("POST").h(headers).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
const se_UpdateReportDefinitionCommand = async (input, context) => {
|
|
257
|
-
const b = core.requestBuilder(input, context);
|
|
258
|
-
const headers = {
|
|
259
|
-
"content-type": "application/json",
|
|
260
|
-
};
|
|
261
|
-
b.bp("/reportDefinition/{reportId}");
|
|
262
|
-
b.p("reportId", () => input.reportId, "{reportId}", false);
|
|
263
|
-
let body;
|
|
264
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
265
|
-
destinationS3Location: (_) => smithyClient._json(_),
|
|
266
|
-
format: [],
|
|
267
|
-
reportDescription: [],
|
|
268
|
-
reportFrequency: [],
|
|
269
|
-
}));
|
|
270
|
-
b.m("PUT").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
274
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
275
|
-
return de_CommandError(output, context);
|
|
276
|
-
}
|
|
277
|
-
const contents = smithyClient.map({
|
|
278
|
-
$metadata: deserializeMetadata(output),
|
|
279
|
-
});
|
|
280
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
281
|
-
const doc = smithyClient.take(data, {
|
|
282
|
-
reportId: smithyClient.expectString,
|
|
283
|
-
});
|
|
284
|
-
Object.assign(contents, doc);
|
|
285
|
-
return contents;
|
|
286
|
-
};
|
|
287
|
-
const de_GetReportDefinitionCommand = async (output, context) => {
|
|
288
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
|
-
return de_CommandError(output, context);
|
|
290
|
-
}
|
|
291
|
-
const contents = smithyClient.map({
|
|
292
|
-
$metadata: deserializeMetadata(output),
|
|
293
|
-
});
|
|
294
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
295
|
-
const doc = smithyClient.take(data, {
|
|
296
|
-
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
297
|
-
destinationS3Location: smithyClient._json,
|
|
298
|
-
format: smithyClient.expectString,
|
|
299
|
-
lastUpdated: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
300
|
-
reportDescription: smithyClient.expectString,
|
|
301
|
-
reportFrequency: smithyClient.expectString,
|
|
302
|
-
reportId: smithyClient.expectString,
|
|
303
|
-
});
|
|
304
|
-
Object.assign(contents, doc);
|
|
305
|
-
return contents;
|
|
306
|
-
};
|
|
307
|
-
const de_ImportApplicationUsageCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
const contents = smithyClient.map({
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
});
|
|
314
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
315
|
-
const doc = smithyClient.take(data, {
|
|
316
|
-
importId: smithyClient.expectString,
|
|
317
|
-
});
|
|
318
|
-
Object.assign(contents, doc);
|
|
319
|
-
return contents;
|
|
320
|
-
};
|
|
321
|
-
const de_ListReportDefinitionsCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
const contents = smithyClient.map({
|
|
326
|
-
$metadata: deserializeMetadata(output),
|
|
327
|
-
});
|
|
328
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
329
|
-
const doc = smithyClient.take(data, {
|
|
330
|
-
nextToken: smithyClient.expectString,
|
|
331
|
-
reportDefinitions: (_) => de_ReportDefinitionList(_),
|
|
332
|
-
});
|
|
333
|
-
Object.assign(contents, doc);
|
|
334
|
-
return contents;
|
|
335
|
-
};
|
|
336
|
-
const de_PutReportDefinitionCommand = async (output, context) => {
|
|
337
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
338
|
-
return de_CommandError(output, context);
|
|
339
|
-
}
|
|
340
|
-
const contents = smithyClient.map({
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
});
|
|
343
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
344
|
-
const doc = smithyClient.take(data, {
|
|
345
|
-
reportId: smithyClient.expectString,
|
|
346
|
-
});
|
|
347
|
-
Object.assign(contents, doc);
|
|
348
|
-
return contents;
|
|
349
|
-
};
|
|
350
|
-
const de_UpdateReportDefinitionCommand = async (output, context) => {
|
|
351
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
352
|
-
return de_CommandError(output, context);
|
|
353
|
-
}
|
|
354
|
-
const contents = smithyClient.map({
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
});
|
|
357
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
358
|
-
const doc = smithyClient.take(data, {
|
|
359
|
-
reportId: smithyClient.expectString,
|
|
360
|
-
});
|
|
361
|
-
Object.assign(contents, doc);
|
|
362
|
-
return contents;
|
|
363
|
-
};
|
|
364
|
-
const de_CommandError = async (output, context) => {
|
|
365
|
-
const parsedOutput = {
|
|
366
|
-
...output,
|
|
367
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
368
|
-
};
|
|
369
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
-
switch (errorCode) {
|
|
371
|
-
case "AccessDeniedException":
|
|
372
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
374
|
-
case "InternalServerException":
|
|
375
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
376
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
377
|
-
case "ThrottlingException":
|
|
378
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
379
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
380
|
-
case "ValidationException":
|
|
381
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
382
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
383
|
-
case "ServiceQuotaExceededException":
|
|
384
|
-
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
385
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
386
|
-
default:
|
|
387
|
-
const parsedBody = parsedOutput.body;
|
|
388
|
-
return throwDefaultError({
|
|
389
|
-
output,
|
|
390
|
-
parsedBody,
|
|
391
|
-
errorCode,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
const throwDefaultError = smithyClient.withBaseException(ApplicationCostProfilerServiceException);
|
|
396
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
397
|
-
const contents = smithyClient.map({});
|
|
398
|
-
const data = parsedOutput.body;
|
|
399
|
-
const doc = smithyClient.take(data, {
|
|
400
|
-
message: smithyClient.expectString,
|
|
401
|
-
});
|
|
402
|
-
Object.assign(contents, doc);
|
|
403
|
-
const exception = new AccessDeniedException({
|
|
404
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
405
|
-
...contents,
|
|
406
|
-
});
|
|
407
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
408
|
-
};
|
|
409
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
410
|
-
const contents = smithyClient.map({});
|
|
411
|
-
const data = parsedOutput.body;
|
|
412
|
-
const doc = smithyClient.take(data, {
|
|
413
|
-
message: smithyClient.expectString,
|
|
414
|
-
});
|
|
415
|
-
Object.assign(contents, doc);
|
|
416
|
-
const exception = new InternalServerException({
|
|
417
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
418
|
-
...contents,
|
|
419
|
-
});
|
|
420
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
421
|
-
};
|
|
422
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
423
|
-
const contents = smithyClient.map({});
|
|
424
|
-
const data = parsedOutput.body;
|
|
425
|
-
const doc = smithyClient.take(data, {
|
|
426
|
-
message: smithyClient.expectString,
|
|
427
|
-
});
|
|
428
|
-
Object.assign(contents, doc);
|
|
429
|
-
const exception = new ServiceQuotaExceededException({
|
|
430
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
431
|
-
...contents,
|
|
432
|
-
});
|
|
433
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
434
|
-
};
|
|
435
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
436
|
-
const contents = smithyClient.map({});
|
|
437
|
-
const data = parsedOutput.body;
|
|
438
|
-
const doc = smithyClient.take(data, {
|
|
439
|
-
message: smithyClient.expectString,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
const exception = new ThrottlingException({
|
|
443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
444
|
-
...contents,
|
|
445
|
-
});
|
|
446
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
447
|
-
};
|
|
448
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
449
|
-
const contents = smithyClient.map({});
|
|
450
|
-
const data = parsedOutput.body;
|
|
451
|
-
const doc = smithyClient.take(data, {
|
|
452
|
-
message: smithyClient.expectString,
|
|
453
|
-
});
|
|
454
|
-
Object.assign(contents, doc);
|
|
455
|
-
const exception = new ValidationException({
|
|
456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
457
|
-
...contents,
|
|
458
|
-
});
|
|
459
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
460
|
-
};
|
|
461
|
-
const de_ReportDefinition = (output, context) => {
|
|
462
|
-
return smithyClient.take(output, {
|
|
463
|
-
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
464
|
-
destinationS3Location: smithyClient._json,
|
|
465
|
-
format: smithyClient.expectString,
|
|
466
|
-
lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
467
|
-
reportDescription: smithyClient.expectString,
|
|
468
|
-
reportFrequency: smithyClient.expectString,
|
|
469
|
-
reportId: smithyClient.expectString,
|
|
470
|
-
});
|
|
471
|
-
};
|
|
472
|
-
const de_ReportDefinitionList = (output, context) => {
|
|
473
|
-
const retVal = (output || [])
|
|
474
|
-
.filter((e) => e != null)
|
|
475
|
-
.map((entry) => {
|
|
476
|
-
return de_ReportDefinition(entry);
|
|
477
|
-
});
|
|
478
|
-
return retVal;
|
|
479
|
-
};
|
|
480
|
-
const deserializeMetadata = (output) => ({
|
|
481
|
-
httpStatusCode: output.statusCode,
|
|
482
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
483
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
484
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
485
|
-
});
|
|
195
|
+
|
|
196
|
+
const _ADE = "AccessDeniedException";
|
|
197
|
+
const _DRD = "DeleteReportDefinition";
|
|
198
|
+
const _DRDR = "DeleteReportDefinitionRequest";
|
|
199
|
+
const _DRDRe = "DeleteReportDefinitionResult";
|
|
200
|
+
const _GRD = "GetReportDefinition";
|
|
201
|
+
const _GRDR = "GetReportDefinitionRequest";
|
|
202
|
+
const _GRDRe = "GetReportDefinitionResult";
|
|
203
|
+
const _IAU = "ImportApplicationUsage";
|
|
204
|
+
const _IAUR = "ImportApplicationUsageRequest";
|
|
205
|
+
const _IAURm = "ImportApplicationUsageResult";
|
|
206
|
+
const _ISE = "InternalServerException";
|
|
207
|
+
const _LRD = "ListReportDefinitions";
|
|
208
|
+
const _LRDR = "ListReportDefinitionsRequest";
|
|
209
|
+
const _LRDRi = "ListReportDefinitionsResult";
|
|
210
|
+
const _PRD = "PutReportDefinition";
|
|
211
|
+
const _PRDR = "PutReportDefinitionRequest";
|
|
212
|
+
const _PRDRu = "PutReportDefinitionResult";
|
|
213
|
+
const _RD = "ReportDefinition";
|
|
214
|
+
const _RDL = "ReportDefinitionList";
|
|
215
|
+
const _SL = "S3Location";
|
|
216
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
217
|
+
const _SSL = "SourceS3Location";
|
|
218
|
+
const _TE = "ThrottlingException";
|
|
219
|
+
const _URD = "UpdateReportDefinition";
|
|
220
|
+
const _URDR = "UpdateReportDefinitionRequest";
|
|
221
|
+
const _URDRp = "UpdateReportDefinitionResult";
|
|
222
|
+
const _VE = "ValidationException";
|
|
223
|
+
const _b = "bucket";
|
|
224
|
+
const _c = "client";
|
|
225
|
+
const _cA = "createdAt";
|
|
226
|
+
const _dSL = "destinationS3Location";
|
|
227
|
+
const _e = "error";
|
|
228
|
+
const _f = "format";
|
|
229
|
+
const _h = "http";
|
|
230
|
+
const _hE = "httpError";
|
|
231
|
+
const _hQ = "httpQuery";
|
|
232
|
+
const _iI = "importId";
|
|
233
|
+
const _k = "key";
|
|
234
|
+
const _lU = "lastUpdated";
|
|
235
|
+
const _lUA = "lastUpdatedAt";
|
|
236
|
+
const _m = "message";
|
|
486
237
|
const _mR = "maxResults";
|
|
487
238
|
const _nT = "nextToken";
|
|
239
|
+
const _p = "prefix";
|
|
240
|
+
const _r = "region";
|
|
241
|
+
const _rD = "reportDescription";
|
|
242
|
+
const _rDe = "reportDefinitions";
|
|
243
|
+
const _rF = "reportFrequency";
|
|
244
|
+
const _rI = "reportId";
|
|
245
|
+
const _s = "server";
|
|
246
|
+
const _sSL = "sourceS3Location";
|
|
247
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.applicationcostprofiler";
|
|
248
|
+
const n0 = "com.amazonaws.applicationcostprofiler";
|
|
249
|
+
var AccessDeniedException = [
|
|
250
|
+
-3,
|
|
251
|
+
n0,
|
|
252
|
+
_ADE,
|
|
253
|
+
{
|
|
254
|
+
[_e]: _c,
|
|
255
|
+
[_hE]: 403,
|
|
256
|
+
},
|
|
257
|
+
[_m],
|
|
258
|
+
[0],
|
|
259
|
+
];
|
|
260
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
261
|
+
var DeleteReportDefinitionRequest = [3, n0, _DRDR, 0, [_rI], [[0, 1]]];
|
|
262
|
+
var DeleteReportDefinitionResult = [3, n0, _DRDRe, 0, [_rI], [0]];
|
|
263
|
+
var GetReportDefinitionRequest = [3, n0, _GRDR, 0, [_rI], [[0, 1]]];
|
|
264
|
+
var GetReportDefinitionResult = [
|
|
265
|
+
3,
|
|
266
|
+
n0,
|
|
267
|
+
_GRDRe,
|
|
268
|
+
0,
|
|
269
|
+
[_rI, _rD, _rF, _f, _dSL, _cA, _lU],
|
|
270
|
+
[0, 0, 0, 0, () => S3Location, 4, 4],
|
|
271
|
+
];
|
|
272
|
+
var ImportApplicationUsageRequest = [3, n0, _IAUR, 0, [_sSL], [() => SourceS3Location]];
|
|
273
|
+
var ImportApplicationUsageResult = [3, n0, _IAURm, 0, [_iI], [0]];
|
|
274
|
+
var InternalServerException = [
|
|
275
|
+
-3,
|
|
276
|
+
n0,
|
|
277
|
+
_ISE,
|
|
278
|
+
{
|
|
279
|
+
[_e]: _s,
|
|
280
|
+
[_hE]: 500,
|
|
281
|
+
},
|
|
282
|
+
[_m],
|
|
283
|
+
[0],
|
|
284
|
+
];
|
|
285
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
286
|
+
var ListReportDefinitionsRequest = [
|
|
287
|
+
3,
|
|
288
|
+
n0,
|
|
289
|
+
_LRDR,
|
|
290
|
+
0,
|
|
291
|
+
[_nT, _mR],
|
|
292
|
+
[
|
|
293
|
+
[
|
|
294
|
+
0,
|
|
295
|
+
{
|
|
296
|
+
[_hQ]: _nT,
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
[
|
|
300
|
+
1,
|
|
301
|
+
{
|
|
302
|
+
[_hQ]: _mR,
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
],
|
|
306
|
+
];
|
|
307
|
+
var ListReportDefinitionsResult = [
|
|
308
|
+
3,
|
|
309
|
+
n0,
|
|
310
|
+
_LRDRi,
|
|
311
|
+
0,
|
|
312
|
+
[_rDe, _nT],
|
|
313
|
+
[() => ReportDefinitionList, 0],
|
|
314
|
+
];
|
|
315
|
+
var PutReportDefinitionRequest = [
|
|
316
|
+
3,
|
|
317
|
+
n0,
|
|
318
|
+
_PRDR,
|
|
319
|
+
0,
|
|
320
|
+
[_rI, _rD, _rF, _f, _dSL],
|
|
321
|
+
[0, 0, 0, 0, () => S3Location],
|
|
322
|
+
];
|
|
323
|
+
var PutReportDefinitionResult = [3, n0, _PRDRu, 0, [_rI], [0]];
|
|
324
|
+
var ReportDefinition = [
|
|
325
|
+
3,
|
|
326
|
+
n0,
|
|
327
|
+
_RD,
|
|
328
|
+
0,
|
|
329
|
+
[_rI, _rD, _rF, _f, _dSL, _cA, _lUA],
|
|
330
|
+
[0, 0, 0, 0, () => S3Location, 4, 4],
|
|
331
|
+
];
|
|
332
|
+
var S3Location = [3, n0, _SL, 0, [_b, _p], [0, 0]];
|
|
333
|
+
var ServiceQuotaExceededException = [
|
|
334
|
+
-3,
|
|
335
|
+
n0,
|
|
336
|
+
_SQEE,
|
|
337
|
+
{
|
|
338
|
+
[_e]: _c,
|
|
339
|
+
[_hE]: 402,
|
|
340
|
+
},
|
|
341
|
+
[_m],
|
|
342
|
+
[0],
|
|
343
|
+
];
|
|
344
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
345
|
+
var SourceS3Location = [3, n0, _SSL, 0, [_b, _k, _r], [0, 0, 0]];
|
|
346
|
+
var ThrottlingException = [
|
|
347
|
+
-3,
|
|
348
|
+
n0,
|
|
349
|
+
_TE,
|
|
350
|
+
{
|
|
351
|
+
[_e]: _c,
|
|
352
|
+
[_hE]: 429,
|
|
353
|
+
},
|
|
354
|
+
[_m],
|
|
355
|
+
[0],
|
|
356
|
+
];
|
|
357
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
358
|
+
var UpdateReportDefinitionRequest = [
|
|
359
|
+
3,
|
|
360
|
+
n0,
|
|
361
|
+
_URDR,
|
|
362
|
+
0,
|
|
363
|
+
[_rI, _rD, _rF, _f, _dSL],
|
|
364
|
+
[[0, 1], 0, 0, 0, () => S3Location],
|
|
365
|
+
];
|
|
366
|
+
var UpdateReportDefinitionResult = [3, n0, _URDRp, 0, [_rI], [0]];
|
|
367
|
+
var ValidationException = [
|
|
368
|
+
-3,
|
|
369
|
+
n0,
|
|
370
|
+
_VE,
|
|
371
|
+
{
|
|
372
|
+
[_e]: _c,
|
|
373
|
+
[_hE]: 400,
|
|
374
|
+
},
|
|
375
|
+
[_m],
|
|
376
|
+
[0],
|
|
377
|
+
];
|
|
378
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
379
|
+
var ApplicationCostProfilerServiceException = [
|
|
380
|
+
-3,
|
|
381
|
+
_sm,
|
|
382
|
+
"ApplicationCostProfilerServiceException",
|
|
383
|
+
0,
|
|
384
|
+
[],
|
|
385
|
+
[],
|
|
386
|
+
];
|
|
387
|
+
schema.TypeRegistry.for(_sm).registerError(ApplicationCostProfilerServiceException, ApplicationCostProfilerServiceException$1);
|
|
388
|
+
var ReportDefinitionList = [1, n0, _RDL, 0, () => ReportDefinition];
|
|
389
|
+
var DeleteReportDefinition = [
|
|
390
|
+
9,
|
|
391
|
+
n0,
|
|
392
|
+
_DRD,
|
|
393
|
+
{
|
|
394
|
+
[_h]: ["DELETE", "/reportDefinition/{reportId}", 200],
|
|
395
|
+
},
|
|
396
|
+
() => DeleteReportDefinitionRequest,
|
|
397
|
+
() => DeleteReportDefinitionResult,
|
|
398
|
+
];
|
|
399
|
+
var GetReportDefinition = [
|
|
400
|
+
9,
|
|
401
|
+
n0,
|
|
402
|
+
_GRD,
|
|
403
|
+
{
|
|
404
|
+
[_h]: ["GET", "/reportDefinition/{reportId}", 200],
|
|
405
|
+
},
|
|
406
|
+
() => GetReportDefinitionRequest,
|
|
407
|
+
() => GetReportDefinitionResult,
|
|
408
|
+
];
|
|
409
|
+
var ImportApplicationUsage = [
|
|
410
|
+
9,
|
|
411
|
+
n0,
|
|
412
|
+
_IAU,
|
|
413
|
+
{
|
|
414
|
+
[_h]: ["POST", "/importApplicationUsage", 200],
|
|
415
|
+
},
|
|
416
|
+
() => ImportApplicationUsageRequest,
|
|
417
|
+
() => ImportApplicationUsageResult,
|
|
418
|
+
];
|
|
419
|
+
var ListReportDefinitions = [
|
|
420
|
+
9,
|
|
421
|
+
n0,
|
|
422
|
+
_LRD,
|
|
423
|
+
{
|
|
424
|
+
[_h]: ["GET", "/reportDefinition", 200],
|
|
425
|
+
},
|
|
426
|
+
() => ListReportDefinitionsRequest,
|
|
427
|
+
() => ListReportDefinitionsResult,
|
|
428
|
+
];
|
|
429
|
+
var PutReportDefinition = [
|
|
430
|
+
9,
|
|
431
|
+
n0,
|
|
432
|
+
_PRD,
|
|
433
|
+
{
|
|
434
|
+
[_h]: ["POST", "/reportDefinition", 200],
|
|
435
|
+
},
|
|
436
|
+
() => PutReportDefinitionRequest,
|
|
437
|
+
() => PutReportDefinitionResult,
|
|
438
|
+
];
|
|
439
|
+
var UpdateReportDefinition = [
|
|
440
|
+
9,
|
|
441
|
+
n0,
|
|
442
|
+
_URD,
|
|
443
|
+
{
|
|
444
|
+
[_h]: ["PUT", "/reportDefinition/{reportId}", 200],
|
|
445
|
+
},
|
|
446
|
+
() => UpdateReportDefinitionRequest,
|
|
447
|
+
() => UpdateReportDefinitionResult,
|
|
448
|
+
];
|
|
488
449
|
|
|
489
450
|
class DeleteReportDefinitionCommand extends smithyClient.Command
|
|
490
451
|
.classBuilder()
|
|
491
452
|
.ep(commonParams)
|
|
492
453
|
.m(function (Command, cs, config, o) {
|
|
493
|
-
return [
|
|
494
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
495
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
496
|
-
];
|
|
454
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
497
455
|
})
|
|
498
456
|
.s("AWSApplicationCostProfiler", "DeleteReportDefinition", {})
|
|
499
457
|
.n("ApplicationCostProfilerClient", "DeleteReportDefinitionCommand")
|
|
500
|
-
.
|
|
501
|
-
.ser(se_DeleteReportDefinitionCommand)
|
|
502
|
-
.de(de_DeleteReportDefinitionCommand)
|
|
458
|
+
.sc(DeleteReportDefinition)
|
|
503
459
|
.build() {
|
|
504
460
|
}
|
|
505
461
|
|
|
@@ -507,16 +463,11 @@ class GetReportDefinitionCommand extends smithyClient.Command
|
|
|
507
463
|
.classBuilder()
|
|
508
464
|
.ep(commonParams)
|
|
509
465
|
.m(function (Command, cs, config, o) {
|
|
510
|
-
return [
|
|
511
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
512
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
513
|
-
];
|
|
466
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
514
467
|
})
|
|
515
468
|
.s("AWSApplicationCostProfiler", "GetReportDefinition", {})
|
|
516
469
|
.n("ApplicationCostProfilerClient", "GetReportDefinitionCommand")
|
|
517
|
-
.
|
|
518
|
-
.ser(se_GetReportDefinitionCommand)
|
|
519
|
-
.de(de_GetReportDefinitionCommand)
|
|
470
|
+
.sc(GetReportDefinition)
|
|
520
471
|
.build() {
|
|
521
472
|
}
|
|
522
473
|
|
|
@@ -524,16 +475,11 @@ class ImportApplicationUsageCommand extends smithyClient.Command
|
|
|
524
475
|
.classBuilder()
|
|
525
476
|
.ep(commonParams)
|
|
526
477
|
.m(function (Command, cs, config, o) {
|
|
527
|
-
return [
|
|
528
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
529
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
530
|
-
];
|
|
478
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
531
479
|
})
|
|
532
480
|
.s("AWSApplicationCostProfiler", "ImportApplicationUsage", {})
|
|
533
481
|
.n("ApplicationCostProfilerClient", "ImportApplicationUsageCommand")
|
|
534
|
-
.
|
|
535
|
-
.ser(se_ImportApplicationUsageCommand)
|
|
536
|
-
.de(de_ImportApplicationUsageCommand)
|
|
482
|
+
.sc(ImportApplicationUsage)
|
|
537
483
|
.build() {
|
|
538
484
|
}
|
|
539
485
|
|
|
@@ -541,16 +487,11 @@ class ListReportDefinitionsCommand extends smithyClient.Command
|
|
|
541
487
|
.classBuilder()
|
|
542
488
|
.ep(commonParams)
|
|
543
489
|
.m(function (Command, cs, config, o) {
|
|
544
|
-
return [
|
|
545
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
546
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
547
|
-
];
|
|
490
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
548
491
|
})
|
|
549
492
|
.s("AWSApplicationCostProfiler", "ListReportDefinitions", {})
|
|
550
493
|
.n("ApplicationCostProfilerClient", "ListReportDefinitionsCommand")
|
|
551
|
-
.
|
|
552
|
-
.ser(se_ListReportDefinitionsCommand)
|
|
553
|
-
.de(de_ListReportDefinitionsCommand)
|
|
494
|
+
.sc(ListReportDefinitions)
|
|
554
495
|
.build() {
|
|
555
496
|
}
|
|
556
497
|
|
|
@@ -558,16 +499,11 @@ class PutReportDefinitionCommand extends smithyClient.Command
|
|
|
558
499
|
.classBuilder()
|
|
559
500
|
.ep(commonParams)
|
|
560
501
|
.m(function (Command, cs, config, o) {
|
|
561
|
-
return [
|
|
562
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
563
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
564
|
-
];
|
|
502
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
565
503
|
})
|
|
566
504
|
.s("AWSApplicationCostProfiler", "PutReportDefinition", {})
|
|
567
505
|
.n("ApplicationCostProfilerClient", "PutReportDefinitionCommand")
|
|
568
|
-
.
|
|
569
|
-
.ser(se_PutReportDefinitionCommand)
|
|
570
|
-
.de(de_PutReportDefinitionCommand)
|
|
506
|
+
.sc(PutReportDefinition)
|
|
571
507
|
.build() {
|
|
572
508
|
}
|
|
573
509
|
|
|
@@ -575,16 +511,11 @@ class UpdateReportDefinitionCommand extends smithyClient.Command
|
|
|
575
511
|
.classBuilder()
|
|
576
512
|
.ep(commonParams)
|
|
577
513
|
.m(function (Command, cs, config, o) {
|
|
578
|
-
return [
|
|
579
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
580
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
581
|
-
];
|
|
514
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
582
515
|
})
|
|
583
516
|
.s("AWSApplicationCostProfiler", "UpdateReportDefinition", {})
|
|
584
517
|
.n("ApplicationCostProfilerClient", "UpdateReportDefinitionCommand")
|
|
585
|
-
.
|
|
586
|
-
.ser(se_UpdateReportDefinitionCommand)
|
|
587
|
-
.de(de_UpdateReportDefinitionCommand)
|
|
518
|
+
.sc(UpdateReportDefinition)
|
|
588
519
|
.build() {
|
|
589
520
|
}
|
|
590
521
|
|
|
@@ -610,21 +541,21 @@ Object.defineProperty(exports, "__Client", {
|
|
|
610
541
|
enumerable: true,
|
|
611
542
|
get: function () { return smithyClient.Client; }
|
|
612
543
|
});
|
|
613
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
544
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
614
545
|
exports.ApplicationCostProfiler = ApplicationCostProfiler;
|
|
615
546
|
exports.ApplicationCostProfilerClient = ApplicationCostProfilerClient;
|
|
616
|
-
exports.ApplicationCostProfilerServiceException = ApplicationCostProfilerServiceException;
|
|
547
|
+
exports.ApplicationCostProfilerServiceException = ApplicationCostProfilerServiceException$1;
|
|
617
548
|
exports.DeleteReportDefinitionCommand = DeleteReportDefinitionCommand;
|
|
618
549
|
exports.Format = Format;
|
|
619
550
|
exports.GetReportDefinitionCommand = GetReportDefinitionCommand;
|
|
620
551
|
exports.ImportApplicationUsageCommand = ImportApplicationUsageCommand;
|
|
621
|
-
exports.InternalServerException = InternalServerException;
|
|
552
|
+
exports.InternalServerException = InternalServerException$1;
|
|
622
553
|
exports.ListReportDefinitionsCommand = ListReportDefinitionsCommand;
|
|
623
554
|
exports.PutReportDefinitionCommand = PutReportDefinitionCommand;
|
|
624
555
|
exports.ReportFrequency = ReportFrequency;
|
|
625
556
|
exports.S3BucketRegion = S3BucketRegion;
|
|
626
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
627
|
-
exports.ThrottlingException = ThrottlingException;
|
|
557
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
558
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
628
559
|
exports.UpdateReportDefinitionCommand = UpdateReportDefinitionCommand;
|
|
629
|
-
exports.ValidationException = ValidationException;
|
|
560
|
+
exports.ValidationException = ValidationException$1;
|
|
630
561
|
exports.paginateListReportDefinitions = paginateListReportDefinitions;
|