@aws-sdk/client-applicationcostprofiler 3.490.0 → 3.496.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/ApplicationCostProfiler.js +1 -23
- package/dist-cjs/ApplicationCostProfilerClient.js +1 -43
- package/dist-cjs/commands/DeleteReportDefinitionCommand.js +1 -28
- package/dist-cjs/commands/GetReportDefinitionCommand.js +1 -28
- package/dist-cjs/commands/ImportApplicationUsageCommand.js +1 -28
- package/dist-cjs/commands/ListReportDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/PutReportDefinitionCommand.js +1 -28
- package/dist-cjs/commands/UpdateReportDefinitionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -9
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +880 -11
- package/dist-cjs/models/ApplicationCostProfilerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -84
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListReportDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -497
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,881 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ApplicationCostProfiler: () => ApplicationCostProfiler,
|
|
26
|
+
ApplicationCostProfilerClient: () => ApplicationCostProfilerClient,
|
|
27
|
+
ApplicationCostProfilerServiceException: () => ApplicationCostProfilerServiceException,
|
|
28
|
+
DeleteReportDefinitionCommand: () => DeleteReportDefinitionCommand,
|
|
29
|
+
Format: () => Format,
|
|
30
|
+
GetReportDefinitionCommand: () => GetReportDefinitionCommand,
|
|
31
|
+
ImportApplicationUsageCommand: () => ImportApplicationUsageCommand,
|
|
32
|
+
InternalServerException: () => InternalServerException,
|
|
33
|
+
ListReportDefinitionsCommand: () => ListReportDefinitionsCommand,
|
|
34
|
+
PutReportDefinitionCommand: () => PutReportDefinitionCommand,
|
|
35
|
+
ReportFrequency: () => ReportFrequency,
|
|
36
|
+
S3BucketRegion: () => S3BucketRegion,
|
|
37
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
38
|
+
ThrottlingException: () => ThrottlingException,
|
|
39
|
+
UpdateReportDefinitionCommand: () => UpdateReportDefinitionCommand,
|
|
40
|
+
ValidationException: () => ValidationException,
|
|
41
|
+
__Client: () => import_smithy_client.Client,
|
|
42
|
+
paginateListReportDefinitions: () => paginateListReportDefinitions
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(src_exports);
|
|
45
|
+
|
|
46
|
+
// src/ApplicationCostProfilerClient.ts
|
|
47
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
48
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
49
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
50
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
51
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
52
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
53
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
54
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
55
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// src/endpoint/EndpointParameters.ts
|
|
59
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
60
|
+
return {
|
|
61
|
+
...options,
|
|
62
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
63
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
64
|
+
defaultSigningName: "application-cost-profiler"
|
|
65
|
+
};
|
|
66
|
+
}, "resolveClientEndpointParameters");
|
|
67
|
+
var commonParams = {
|
|
68
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
69
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
70
|
+
Region: { type: "builtInParams", name: "region" },
|
|
71
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// src/ApplicationCostProfilerClient.ts
|
|
75
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
76
|
+
|
|
77
|
+
// src/runtimeExtensions.ts
|
|
78
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
79
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
80
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
81
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
82
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
83
|
+
const extensionConfiguration = {
|
|
84
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
85
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
86
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
87
|
+
};
|
|
88
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
89
|
+
return {
|
|
90
|
+
...runtimeConfig,
|
|
91
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
92
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
93
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
94
|
+
};
|
|
95
|
+
}, "resolveRuntimeExtensions");
|
|
96
|
+
|
|
97
|
+
// src/ApplicationCostProfilerClient.ts
|
|
98
|
+
var _ApplicationCostProfilerClient = class _ApplicationCostProfilerClient extends import_smithy_client.Client {
|
|
99
|
+
constructor(...[configuration]) {
|
|
100
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
101
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
102
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
103
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
104
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
105
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
106
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
107
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
108
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
109
|
+
super(_config_8);
|
|
110
|
+
this.config = _config_8;
|
|
111
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
112
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
121
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
122
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
123
|
+
*/
|
|
124
|
+
destroy() {
|
|
125
|
+
super.destroy();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
__name(_ApplicationCostProfilerClient, "ApplicationCostProfilerClient");
|
|
129
|
+
var ApplicationCostProfilerClient = _ApplicationCostProfilerClient;
|
|
130
|
+
|
|
131
|
+
// src/ApplicationCostProfiler.ts
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// src/commands/DeleteReportDefinitionCommand.ts
|
|
135
|
+
|
|
136
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
137
|
+
|
|
138
|
+
var import_types = require("@smithy/types");
|
|
139
|
+
|
|
140
|
+
// src/protocols/Aws_restJson1.ts
|
|
141
|
+
var import_core = require("@smithy/core");
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
// src/models/ApplicationCostProfilerServiceException.ts
|
|
145
|
+
|
|
146
|
+
var _ApplicationCostProfilerServiceException = class _ApplicationCostProfilerServiceException extends import_smithy_client.ServiceException {
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
constructor(options) {
|
|
151
|
+
super(options);
|
|
152
|
+
Object.setPrototypeOf(this, _ApplicationCostProfilerServiceException.prototype);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
__name(_ApplicationCostProfilerServiceException, "ApplicationCostProfilerServiceException");
|
|
156
|
+
var ApplicationCostProfilerServiceException = _ApplicationCostProfilerServiceException;
|
|
157
|
+
|
|
158
|
+
// src/models/models_0.ts
|
|
159
|
+
var _AccessDeniedException = class _AccessDeniedException extends ApplicationCostProfilerServiceException {
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "AccessDeniedException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts
|
|
168
|
+
});
|
|
169
|
+
this.name = "AccessDeniedException";
|
|
170
|
+
this.$fault = "client";
|
|
171
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
175
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
176
|
+
var _InternalServerException = class _InternalServerException extends ApplicationCostProfilerServiceException {
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "InternalServerException",
|
|
183
|
+
$fault: "server",
|
|
184
|
+
...opts
|
|
185
|
+
});
|
|
186
|
+
this.name = "InternalServerException";
|
|
187
|
+
this.$fault = "server";
|
|
188
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
__name(_InternalServerException, "InternalServerException");
|
|
192
|
+
var InternalServerException = _InternalServerException;
|
|
193
|
+
var _ThrottlingException = class _ThrottlingException extends ApplicationCostProfilerServiceException {
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ThrottlingException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts
|
|
202
|
+
});
|
|
203
|
+
this.name = "ThrottlingException";
|
|
204
|
+
this.$fault = "client";
|
|
205
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
209
|
+
var ThrottlingException = _ThrottlingException;
|
|
210
|
+
var _ValidationException = class _ValidationException extends ApplicationCostProfilerServiceException {
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ValidationException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts
|
|
219
|
+
});
|
|
220
|
+
this.name = "ValidationException";
|
|
221
|
+
this.$fault = "client";
|
|
222
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
__name(_ValidationException, "ValidationException");
|
|
226
|
+
var ValidationException = _ValidationException;
|
|
227
|
+
var Format = {
|
|
228
|
+
CSV: "CSV",
|
|
229
|
+
PARQUET: "PARQUET"
|
|
230
|
+
};
|
|
231
|
+
var ReportFrequency = {
|
|
232
|
+
ALL: "ALL",
|
|
233
|
+
DAILY: "DAILY",
|
|
234
|
+
MONTHLY: "MONTHLY"
|
|
235
|
+
};
|
|
236
|
+
var S3BucketRegion = {
|
|
237
|
+
AF_SOUTH_1: "af-south-1",
|
|
238
|
+
AP_EAST_1: "ap-east-1",
|
|
239
|
+
EU_SOUTH_1: "eu-south-1",
|
|
240
|
+
ME_SOUTH_1: "me-south-1"
|
|
241
|
+
};
|
|
242
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ApplicationCostProfilerServiceException {
|
|
243
|
+
/**
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
constructor(opts) {
|
|
247
|
+
super({
|
|
248
|
+
name: "ServiceQuotaExceededException",
|
|
249
|
+
$fault: "client",
|
|
250
|
+
...opts
|
|
251
|
+
});
|
|
252
|
+
this.name = "ServiceQuotaExceededException";
|
|
253
|
+
this.$fault = "client";
|
|
254
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
258
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
259
|
+
|
|
260
|
+
// src/protocols/Aws_restJson1.ts
|
|
261
|
+
var se_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
262
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
263
|
+
const headers = {};
|
|
264
|
+
b.bp("/reportDefinition/{reportId}");
|
|
265
|
+
b.p("reportId", () => input.reportId, "{reportId}", false);
|
|
266
|
+
let body;
|
|
267
|
+
b.m("DELETE").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
269
|
+
}, "se_DeleteReportDefinitionCommand");
|
|
270
|
+
var se_GetReportDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
271
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
272
|
+
const headers = {};
|
|
273
|
+
b.bp("/reportDefinition/{reportId}");
|
|
274
|
+
b.p("reportId", () => input.reportId, "{reportId}", false);
|
|
275
|
+
let body;
|
|
276
|
+
b.m("GET").h(headers).b(body);
|
|
277
|
+
return b.build();
|
|
278
|
+
}, "se_GetReportDefinitionCommand");
|
|
279
|
+
var se_ImportApplicationUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
280
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
281
|
+
const headers = {
|
|
282
|
+
"content-type": "application/json"
|
|
283
|
+
};
|
|
284
|
+
b.bp("/importApplicationUsage");
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(
|
|
287
|
+
(0, import_smithy_client.take)(input, {
|
|
288
|
+
sourceS3Location: (_) => (0, import_smithy_client._json)(_)
|
|
289
|
+
})
|
|
290
|
+
);
|
|
291
|
+
b.m("POST").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
293
|
+
}, "se_ImportApplicationUsageCommand");
|
|
294
|
+
var se_ListReportDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
295
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
296
|
+
const headers = {};
|
|
297
|
+
b.bp("/reportDefinition");
|
|
298
|
+
const query = (0, import_smithy_client.map)({
|
|
299
|
+
[_nT]: [, input[_nT]],
|
|
300
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
301
|
+
});
|
|
302
|
+
let body;
|
|
303
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
304
|
+
return b.build();
|
|
305
|
+
}, "se_ListReportDefinitionsCommand");
|
|
306
|
+
var se_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
307
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
308
|
+
const headers = {
|
|
309
|
+
"content-type": "application/json"
|
|
310
|
+
};
|
|
311
|
+
b.bp("/reportDefinition");
|
|
312
|
+
let body;
|
|
313
|
+
body = JSON.stringify(
|
|
314
|
+
(0, import_smithy_client.take)(input, {
|
|
315
|
+
destinationS3Location: (_) => (0, import_smithy_client._json)(_),
|
|
316
|
+
format: [],
|
|
317
|
+
reportDescription: [],
|
|
318
|
+
reportFrequency: [],
|
|
319
|
+
reportId: []
|
|
320
|
+
})
|
|
321
|
+
);
|
|
322
|
+
b.m("POST").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
}, "se_PutReportDefinitionCommand");
|
|
325
|
+
var se_UpdateReportDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
326
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
327
|
+
const headers = {
|
|
328
|
+
"content-type": "application/json"
|
|
329
|
+
};
|
|
330
|
+
b.bp("/reportDefinition/{reportId}");
|
|
331
|
+
b.p("reportId", () => input.reportId, "{reportId}", false);
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(
|
|
334
|
+
(0, import_smithy_client.take)(input, {
|
|
335
|
+
destinationS3Location: (_) => (0, import_smithy_client._json)(_),
|
|
336
|
+
format: [],
|
|
337
|
+
reportDescription: [],
|
|
338
|
+
reportFrequency: []
|
|
339
|
+
})
|
|
340
|
+
);
|
|
341
|
+
b.m("PUT").h(headers).b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
}, "se_UpdateReportDefinitionCommand");
|
|
344
|
+
var de_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
+
return de_DeleteReportDefinitionCommandError(output, context);
|
|
347
|
+
}
|
|
348
|
+
const contents = (0, import_smithy_client.map)({
|
|
349
|
+
$metadata: deserializeMetadata(output)
|
|
350
|
+
});
|
|
351
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
352
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
353
|
+
reportId: import_smithy_client.expectString
|
|
354
|
+
});
|
|
355
|
+
Object.assign(contents, doc);
|
|
356
|
+
return contents;
|
|
357
|
+
}, "de_DeleteReportDefinitionCommand");
|
|
358
|
+
var de_DeleteReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
359
|
+
const parsedOutput = {
|
|
360
|
+
...output,
|
|
361
|
+
body: await parseErrorBody(output.body, context)
|
|
362
|
+
};
|
|
363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
364
|
+
switch (errorCode) {
|
|
365
|
+
case "AccessDeniedException":
|
|
366
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
367
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
368
|
+
case "InternalServerException":
|
|
369
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
370
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
371
|
+
case "ThrottlingException":
|
|
372
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
373
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
374
|
+
case "ValidationException":
|
|
375
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
376
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
377
|
+
default:
|
|
378
|
+
const parsedBody = parsedOutput.body;
|
|
379
|
+
return throwDefaultError({
|
|
380
|
+
output,
|
|
381
|
+
parsedBody,
|
|
382
|
+
errorCode
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}, "de_DeleteReportDefinitionCommandError");
|
|
386
|
+
var de_GetReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
+
return de_GetReportDefinitionCommandError(output, context);
|
|
389
|
+
}
|
|
390
|
+
const contents = (0, import_smithy_client.map)({
|
|
391
|
+
$metadata: deserializeMetadata(output)
|
|
392
|
+
});
|
|
393
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
394
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
395
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
396
|
+
destinationS3Location: import_smithy_client._json,
|
|
397
|
+
format: import_smithy_client.expectString,
|
|
398
|
+
lastUpdated: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
399
|
+
reportDescription: import_smithy_client.expectString,
|
|
400
|
+
reportFrequency: import_smithy_client.expectString,
|
|
401
|
+
reportId: import_smithy_client.expectString
|
|
402
|
+
});
|
|
403
|
+
Object.assign(contents, doc);
|
|
404
|
+
return contents;
|
|
405
|
+
}, "de_GetReportDefinitionCommand");
|
|
406
|
+
var de_GetReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
|
+
const parsedOutput = {
|
|
408
|
+
...output,
|
|
409
|
+
body: await parseErrorBody(output.body, context)
|
|
410
|
+
};
|
|
411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
+
switch (errorCode) {
|
|
413
|
+
case "AccessDeniedException":
|
|
414
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
415
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
416
|
+
case "InternalServerException":
|
|
417
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
418
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
419
|
+
case "ThrottlingException":
|
|
420
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
421
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
422
|
+
case "ValidationException":
|
|
423
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
424
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
425
|
+
default:
|
|
426
|
+
const parsedBody = parsedOutput.body;
|
|
427
|
+
return throwDefaultError({
|
|
428
|
+
output,
|
|
429
|
+
parsedBody,
|
|
430
|
+
errorCode
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}, "de_GetReportDefinitionCommandError");
|
|
434
|
+
var de_ImportApplicationUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
+
return de_ImportApplicationUsageCommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const contents = (0, import_smithy_client.map)({
|
|
439
|
+
$metadata: deserializeMetadata(output)
|
|
440
|
+
});
|
|
441
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
442
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
443
|
+
importId: import_smithy_client.expectString
|
|
444
|
+
});
|
|
445
|
+
Object.assign(contents, doc);
|
|
446
|
+
return contents;
|
|
447
|
+
}, "de_ImportApplicationUsageCommand");
|
|
448
|
+
var de_ImportApplicationUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
449
|
+
const parsedOutput = {
|
|
450
|
+
...output,
|
|
451
|
+
body: await parseErrorBody(output.body, context)
|
|
452
|
+
};
|
|
453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
|
+
switch (errorCode) {
|
|
455
|
+
case "AccessDeniedException":
|
|
456
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
457
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
458
|
+
case "InternalServerException":
|
|
459
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
460
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
461
|
+
case "ThrottlingException":
|
|
462
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
463
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
464
|
+
case "ValidationException":
|
|
465
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
466
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
467
|
+
default:
|
|
468
|
+
const parsedBody = parsedOutput.body;
|
|
469
|
+
return throwDefaultError({
|
|
470
|
+
output,
|
|
471
|
+
parsedBody,
|
|
472
|
+
errorCode
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}, "de_ImportApplicationUsageCommandError");
|
|
476
|
+
var de_ListReportDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
477
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
478
|
+
return de_ListReportDefinitionsCommandError(output, context);
|
|
479
|
+
}
|
|
480
|
+
const contents = (0, import_smithy_client.map)({
|
|
481
|
+
$metadata: deserializeMetadata(output)
|
|
482
|
+
});
|
|
483
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
484
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
485
|
+
nextToken: import_smithy_client.expectString,
|
|
486
|
+
reportDefinitions: (_) => de_ReportDefinitionList(_, context)
|
|
487
|
+
});
|
|
488
|
+
Object.assign(contents, doc);
|
|
489
|
+
return contents;
|
|
490
|
+
}, "de_ListReportDefinitionsCommand");
|
|
491
|
+
var de_ListReportDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
|
+
const parsedOutput = {
|
|
493
|
+
...output,
|
|
494
|
+
body: await parseErrorBody(output.body, context)
|
|
495
|
+
};
|
|
496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
+
switch (errorCode) {
|
|
498
|
+
case "AccessDeniedException":
|
|
499
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
500
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
501
|
+
case "InternalServerException":
|
|
502
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
503
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
504
|
+
case "ThrottlingException":
|
|
505
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
506
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
|
+
case "ValidationException":
|
|
508
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
509
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
510
|
+
default:
|
|
511
|
+
const parsedBody = parsedOutput.body;
|
|
512
|
+
return throwDefaultError({
|
|
513
|
+
output,
|
|
514
|
+
parsedBody,
|
|
515
|
+
errorCode
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
}, "de_ListReportDefinitionsCommandError");
|
|
519
|
+
var de_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
+
return de_PutReportDefinitionCommandError(output, context);
|
|
522
|
+
}
|
|
523
|
+
const contents = (0, import_smithy_client.map)({
|
|
524
|
+
$metadata: deserializeMetadata(output)
|
|
525
|
+
});
|
|
526
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
527
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
528
|
+
reportId: import_smithy_client.expectString
|
|
529
|
+
});
|
|
530
|
+
Object.assign(contents, doc);
|
|
531
|
+
return contents;
|
|
532
|
+
}, "de_PutReportDefinitionCommand");
|
|
533
|
+
var de_PutReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
534
|
+
const parsedOutput = {
|
|
535
|
+
...output,
|
|
536
|
+
body: await parseErrorBody(output.body, context)
|
|
537
|
+
};
|
|
538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
+
switch (errorCode) {
|
|
540
|
+
case "AccessDeniedException":
|
|
541
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
542
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
+
case "InternalServerException":
|
|
544
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
545
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
+
case "ServiceQuotaExceededException":
|
|
547
|
+
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
548
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
549
|
+
case "ThrottlingException":
|
|
550
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
551
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
552
|
+
case "ValidationException":
|
|
553
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
554
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
|
+
default:
|
|
556
|
+
const parsedBody = parsedOutput.body;
|
|
557
|
+
return throwDefaultError({
|
|
558
|
+
output,
|
|
559
|
+
parsedBody,
|
|
560
|
+
errorCode
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}, "de_PutReportDefinitionCommandError");
|
|
564
|
+
var de_UpdateReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
566
|
+
return de_UpdateReportDefinitionCommandError(output, context);
|
|
567
|
+
}
|
|
568
|
+
const contents = (0, import_smithy_client.map)({
|
|
569
|
+
$metadata: deserializeMetadata(output)
|
|
570
|
+
});
|
|
571
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
572
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
573
|
+
reportId: import_smithy_client.expectString
|
|
574
|
+
});
|
|
575
|
+
Object.assign(contents, doc);
|
|
576
|
+
return contents;
|
|
577
|
+
}, "de_UpdateReportDefinitionCommand");
|
|
578
|
+
var de_UpdateReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
579
|
+
const parsedOutput = {
|
|
580
|
+
...output,
|
|
581
|
+
body: await parseErrorBody(output.body, context)
|
|
582
|
+
};
|
|
583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
|
+
switch (errorCode) {
|
|
585
|
+
case "AccessDeniedException":
|
|
586
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
587
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
588
|
+
case "InternalServerException":
|
|
589
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
590
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
591
|
+
case "ThrottlingException":
|
|
592
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
593
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
594
|
+
case "ValidationException":
|
|
595
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
596
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
597
|
+
default:
|
|
598
|
+
const parsedBody = parsedOutput.body;
|
|
599
|
+
return throwDefaultError({
|
|
600
|
+
output,
|
|
601
|
+
parsedBody,
|
|
602
|
+
errorCode
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
}, "de_UpdateReportDefinitionCommandError");
|
|
606
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationCostProfilerServiceException);
|
|
607
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
608
|
+
const contents = (0, import_smithy_client.map)({});
|
|
609
|
+
const data = parsedOutput.body;
|
|
610
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
611
|
+
message: import_smithy_client.expectString
|
|
612
|
+
});
|
|
613
|
+
Object.assign(contents, doc);
|
|
614
|
+
const exception = new AccessDeniedException({
|
|
615
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
616
|
+
...contents
|
|
617
|
+
});
|
|
618
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
619
|
+
}, "de_AccessDeniedExceptionRes");
|
|
620
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
621
|
+
const contents = (0, import_smithy_client.map)({});
|
|
622
|
+
const data = parsedOutput.body;
|
|
623
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
624
|
+
message: import_smithy_client.expectString
|
|
625
|
+
});
|
|
626
|
+
Object.assign(contents, doc);
|
|
627
|
+
const exception = new InternalServerException({
|
|
628
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
629
|
+
...contents
|
|
630
|
+
});
|
|
631
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
632
|
+
}, "de_InternalServerExceptionRes");
|
|
633
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
634
|
+
const contents = (0, import_smithy_client.map)({});
|
|
635
|
+
const data = parsedOutput.body;
|
|
636
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
637
|
+
message: import_smithy_client.expectString
|
|
638
|
+
});
|
|
639
|
+
Object.assign(contents, doc);
|
|
640
|
+
const exception = new ServiceQuotaExceededException({
|
|
641
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
642
|
+
...contents
|
|
643
|
+
});
|
|
644
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
645
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
646
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
647
|
+
const contents = (0, import_smithy_client.map)({});
|
|
648
|
+
const data = parsedOutput.body;
|
|
649
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
650
|
+
message: import_smithy_client.expectString
|
|
651
|
+
});
|
|
652
|
+
Object.assign(contents, doc);
|
|
653
|
+
const exception = new ThrottlingException({
|
|
654
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
655
|
+
...contents
|
|
656
|
+
});
|
|
657
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
658
|
+
}, "de_ThrottlingExceptionRes");
|
|
659
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
660
|
+
const contents = (0, import_smithy_client.map)({});
|
|
661
|
+
const data = parsedOutput.body;
|
|
662
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
663
|
+
message: import_smithy_client.expectString
|
|
664
|
+
});
|
|
665
|
+
Object.assign(contents, doc);
|
|
666
|
+
const exception = new ValidationException({
|
|
667
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
668
|
+
...contents
|
|
669
|
+
});
|
|
670
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
671
|
+
}, "de_ValidationExceptionRes");
|
|
672
|
+
var de_ReportDefinition = /* @__PURE__ */ __name((output, context) => {
|
|
673
|
+
return (0, import_smithy_client.take)(output, {
|
|
674
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
675
|
+
destinationS3Location: import_smithy_client._json,
|
|
676
|
+
format: import_smithy_client.expectString,
|
|
677
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
678
|
+
reportDescription: import_smithy_client.expectString,
|
|
679
|
+
reportFrequency: import_smithy_client.expectString,
|
|
680
|
+
reportId: import_smithy_client.expectString
|
|
681
|
+
});
|
|
682
|
+
}, "de_ReportDefinition");
|
|
683
|
+
var de_ReportDefinitionList = /* @__PURE__ */ __name((output, context) => {
|
|
684
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
685
|
+
return de_ReportDefinition(entry, context);
|
|
686
|
+
});
|
|
687
|
+
return retVal;
|
|
688
|
+
}, "de_ReportDefinitionList");
|
|
689
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
690
|
+
httpStatusCode: output.statusCode,
|
|
691
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
692
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
693
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
694
|
+
}), "deserializeMetadata");
|
|
695
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
696
|
+
var _mR = "maxResults";
|
|
697
|
+
var _nT = "nextToken";
|
|
698
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
699
|
+
if (encoded.length) {
|
|
700
|
+
return JSON.parse(encoded);
|
|
701
|
+
}
|
|
702
|
+
return {};
|
|
703
|
+
}), "parseBody");
|
|
704
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
705
|
+
const value = await parseBody(errorBody, context);
|
|
706
|
+
value.message = value.message ?? value.Message;
|
|
707
|
+
return value;
|
|
708
|
+
}, "parseErrorBody");
|
|
709
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
710
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
711
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
712
|
+
let cleanValue = rawValue;
|
|
713
|
+
if (typeof cleanValue === "number") {
|
|
714
|
+
cleanValue = cleanValue.toString();
|
|
715
|
+
}
|
|
716
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
717
|
+
cleanValue = cleanValue.split(",")[0];
|
|
718
|
+
}
|
|
719
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
720
|
+
cleanValue = cleanValue.split(":")[0];
|
|
721
|
+
}
|
|
722
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
723
|
+
cleanValue = cleanValue.split("#")[1];
|
|
724
|
+
}
|
|
725
|
+
return cleanValue;
|
|
726
|
+
}, "sanitizeErrorCode");
|
|
727
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
728
|
+
if (headerKey !== void 0) {
|
|
729
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
730
|
+
}
|
|
731
|
+
if (data.code !== void 0) {
|
|
732
|
+
return sanitizeErrorCode(data.code);
|
|
733
|
+
}
|
|
734
|
+
if (data["__type"] !== void 0) {
|
|
735
|
+
return sanitizeErrorCode(data["__type"]);
|
|
736
|
+
}
|
|
737
|
+
}, "loadRestJsonErrorCode");
|
|
738
|
+
|
|
739
|
+
// src/commands/DeleteReportDefinitionCommand.ts
|
|
740
|
+
var _DeleteReportDefinitionCommand = class _DeleteReportDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
741
|
+
...commonParams
|
|
742
|
+
}).m(function(Command, cs, config, o) {
|
|
743
|
+
return [
|
|
744
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
745
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
746
|
+
];
|
|
747
|
+
}).s("AWSApplicationCostProfiler", "DeleteReportDefinition", {}).n("ApplicationCostProfilerClient", "DeleteReportDefinitionCommand").f(void 0, void 0).ser(se_DeleteReportDefinitionCommand).de(de_DeleteReportDefinitionCommand).build() {
|
|
748
|
+
};
|
|
749
|
+
__name(_DeleteReportDefinitionCommand, "DeleteReportDefinitionCommand");
|
|
750
|
+
var DeleteReportDefinitionCommand = _DeleteReportDefinitionCommand;
|
|
751
|
+
|
|
752
|
+
// src/commands/GetReportDefinitionCommand.ts
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
var _GetReportDefinitionCommand = class _GetReportDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
758
|
+
...commonParams
|
|
759
|
+
}).m(function(Command, cs, config, o) {
|
|
760
|
+
return [
|
|
761
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
762
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
763
|
+
];
|
|
764
|
+
}).s("AWSApplicationCostProfiler", "GetReportDefinition", {}).n("ApplicationCostProfilerClient", "GetReportDefinitionCommand").f(void 0, void 0).ser(se_GetReportDefinitionCommand).de(de_GetReportDefinitionCommand).build() {
|
|
765
|
+
};
|
|
766
|
+
__name(_GetReportDefinitionCommand, "GetReportDefinitionCommand");
|
|
767
|
+
var GetReportDefinitionCommand = _GetReportDefinitionCommand;
|
|
768
|
+
|
|
769
|
+
// src/commands/ImportApplicationUsageCommand.ts
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
var _ImportApplicationUsageCommand = class _ImportApplicationUsageCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
775
|
+
...commonParams
|
|
776
|
+
}).m(function(Command, cs, config, o) {
|
|
777
|
+
return [
|
|
778
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
779
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
780
|
+
];
|
|
781
|
+
}).s("AWSApplicationCostProfiler", "ImportApplicationUsage", {}).n("ApplicationCostProfilerClient", "ImportApplicationUsageCommand").f(void 0, void 0).ser(se_ImportApplicationUsageCommand).de(de_ImportApplicationUsageCommand).build() {
|
|
782
|
+
};
|
|
783
|
+
__name(_ImportApplicationUsageCommand, "ImportApplicationUsageCommand");
|
|
784
|
+
var ImportApplicationUsageCommand = _ImportApplicationUsageCommand;
|
|
785
|
+
|
|
786
|
+
// src/commands/ListReportDefinitionsCommand.ts
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
var _ListReportDefinitionsCommand = class _ListReportDefinitionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
792
|
+
...commonParams
|
|
793
|
+
}).m(function(Command, cs, config, o) {
|
|
794
|
+
return [
|
|
795
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
796
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
797
|
+
];
|
|
798
|
+
}).s("AWSApplicationCostProfiler", "ListReportDefinitions", {}).n("ApplicationCostProfilerClient", "ListReportDefinitionsCommand").f(void 0, void 0).ser(se_ListReportDefinitionsCommand).de(de_ListReportDefinitionsCommand).build() {
|
|
799
|
+
};
|
|
800
|
+
__name(_ListReportDefinitionsCommand, "ListReportDefinitionsCommand");
|
|
801
|
+
var ListReportDefinitionsCommand = _ListReportDefinitionsCommand;
|
|
802
|
+
|
|
803
|
+
// src/commands/PutReportDefinitionCommand.ts
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
var _PutReportDefinitionCommand = class _PutReportDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
809
|
+
...commonParams
|
|
810
|
+
}).m(function(Command, cs, config, o) {
|
|
811
|
+
return [
|
|
812
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
813
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
814
|
+
];
|
|
815
|
+
}).s("AWSApplicationCostProfiler", "PutReportDefinition", {}).n("ApplicationCostProfilerClient", "PutReportDefinitionCommand").f(void 0, void 0).ser(se_PutReportDefinitionCommand).de(de_PutReportDefinitionCommand).build() {
|
|
816
|
+
};
|
|
817
|
+
__name(_PutReportDefinitionCommand, "PutReportDefinitionCommand");
|
|
818
|
+
var PutReportDefinitionCommand = _PutReportDefinitionCommand;
|
|
819
|
+
|
|
820
|
+
// src/commands/UpdateReportDefinitionCommand.ts
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
var _UpdateReportDefinitionCommand = class _UpdateReportDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
826
|
+
...commonParams
|
|
827
|
+
}).m(function(Command, cs, config, o) {
|
|
828
|
+
return [
|
|
829
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
830
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
831
|
+
];
|
|
832
|
+
}).s("AWSApplicationCostProfiler", "UpdateReportDefinition", {}).n("ApplicationCostProfilerClient", "UpdateReportDefinitionCommand").f(void 0, void 0).ser(se_UpdateReportDefinitionCommand).de(de_UpdateReportDefinitionCommand).build() {
|
|
833
|
+
};
|
|
834
|
+
__name(_UpdateReportDefinitionCommand, "UpdateReportDefinitionCommand");
|
|
835
|
+
var UpdateReportDefinitionCommand = _UpdateReportDefinitionCommand;
|
|
836
|
+
|
|
837
|
+
// src/ApplicationCostProfiler.ts
|
|
838
|
+
var commands = {
|
|
839
|
+
DeleteReportDefinitionCommand,
|
|
840
|
+
GetReportDefinitionCommand,
|
|
841
|
+
ImportApplicationUsageCommand,
|
|
842
|
+
ListReportDefinitionsCommand,
|
|
843
|
+
PutReportDefinitionCommand,
|
|
844
|
+
UpdateReportDefinitionCommand
|
|
845
|
+
};
|
|
846
|
+
var _ApplicationCostProfiler = class _ApplicationCostProfiler extends ApplicationCostProfilerClient {
|
|
847
|
+
};
|
|
848
|
+
__name(_ApplicationCostProfiler, "ApplicationCostProfiler");
|
|
849
|
+
var ApplicationCostProfiler = _ApplicationCostProfiler;
|
|
850
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ApplicationCostProfiler);
|
|
851
|
+
|
|
852
|
+
// src/pagination/ListReportDefinitionsPaginator.ts
|
|
853
|
+
|
|
854
|
+
var paginateListReportDefinitions = (0, import_core.createPaginator)(ApplicationCostProfilerClient, ListReportDefinitionsCommand, "nextToken", "nextToken", "maxResults");
|
|
855
|
+
|
|
856
|
+
// src/index.ts
|
|
857
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
858
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
859
|
+
|
|
860
|
+
0 && (module.exports = {
|
|
861
|
+
AccessDeniedException,
|
|
862
|
+
ApplicationCostProfiler,
|
|
863
|
+
ApplicationCostProfilerClient,
|
|
864
|
+
ApplicationCostProfilerServiceException,
|
|
865
|
+
DeleteReportDefinitionCommand,
|
|
866
|
+
Format,
|
|
867
|
+
GetReportDefinitionCommand,
|
|
868
|
+
ImportApplicationUsageCommand,
|
|
869
|
+
InternalServerException,
|
|
870
|
+
ListReportDefinitionsCommand,
|
|
871
|
+
PutReportDefinitionCommand,
|
|
872
|
+
ReportFrequency,
|
|
873
|
+
S3BucketRegion,
|
|
874
|
+
ServiceQuotaExceededException,
|
|
875
|
+
ThrottlingException,
|
|
876
|
+
UpdateReportDefinitionCommand,
|
|
877
|
+
ValidationException,
|
|
878
|
+
__Client,
|
|
879
|
+
paginateListReportDefinitions
|
|
880
|
+
});
|
|
881
|
+
|