@aws-sdk/client-applicationcostprofiler 3.957.0 → 3.962.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/README.md CHANGED
@@ -14,10 +14,8 @@ service.</p>
14
14
  Profiler User Guide</a>.</p>
15
15
 
16
16
  ## Installing
17
-
18
17
  To install this package, simply type add or install @aws-sdk/client-applicationcostprofiler
19
18
  using your favorite package manager:
20
-
21
19
  - `npm install @aws-sdk/client-applicationcostprofiler`
22
20
  - `yarn add @aws-sdk/client-applicationcostprofiler`
23
21
  - `pnpm add @aws-sdk/client-applicationcostprofiler`
@@ -32,10 +30,7 @@ the commands you need, for example `ListReportDefinitionsCommand`:
32
30
 
33
31
  ```js
34
32
  // ES5 example
35
- const {
36
- ApplicationCostProfilerClient,
37
- ListReportDefinitionsCommand,
38
- } = require("@aws-sdk/client-applicationcostprofiler");
33
+ const { ApplicationCostProfilerClient, ListReportDefinitionsCommand } = require("@aws-sdk/client-applicationcostprofiler");
39
34
  ```
40
35
 
41
36
  ```ts
@@ -56,9 +51,7 @@ To send a request, you:
56
51
  // a client can be shared by different commands.
57
52
  const client = new ApplicationCostProfilerClient({ region: "REGION" });
58
53
 
59
- const params = {
60
- /** input parameters */
61
- };
54
+ const params = { /** input parameters */ };
62
55
  const command = new ListReportDefinitionsCommand(params);
63
56
  ```
64
57
 
@@ -217,7 +210,6 @@ DeleteReportDefinition
217
210
  </summary>
218
211
 
219
212
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/DeleteReportDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/DeleteReportDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/DeleteReportDefinitionCommandOutput/)
220
-
221
213
  </details>
222
214
  <details>
223
215
  <summary>
@@ -225,7 +217,6 @@ GetReportDefinition
225
217
  </summary>
226
218
 
227
219
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/GetReportDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/GetReportDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/GetReportDefinitionCommandOutput/)
228
-
229
220
  </details>
230
221
  <details>
231
222
  <summary>
@@ -233,7 +224,6 @@ ImportApplicationUsage
233
224
  </summary>
234
225
 
235
226
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/ImportApplicationUsageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/ImportApplicationUsageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/ImportApplicationUsageCommandOutput/)
236
-
237
227
  </details>
238
228
  <details>
239
229
  <summary>
@@ -241,7 +231,6 @@ ListReportDefinitions
241
231
  </summary>
242
232
 
243
233
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/ListReportDefinitionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/ListReportDefinitionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/ListReportDefinitionsCommandOutput/)
244
-
245
234
  </details>
246
235
  <details>
247
236
  <summary>
@@ -249,7 +238,6 @@ PutReportDefinition
249
238
  </summary>
250
239
 
251
240
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/PutReportDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/PutReportDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/PutReportDefinitionCommandOutput/)
252
-
253
241
  </details>
254
242
  <details>
255
243
  <summary>
@@ -257,5 +245,4 @@ UpdateReportDefinition
257
245
  </summary>
258
246
 
259
247
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/applicationcostprofiler/command/UpdateReportDefinitionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/UpdateReportDefinitionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-applicationcostprofiler/Interface/UpdateReportDefinitionCommandOutput/)
260
-
261
248
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultApplicationCostProfilerHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultApplicationCostProfilerHttpAuthSchemeParametersProvider = defaultApplicationCostProfilerHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -231,133 +231,133 @@ const _s = "server";
231
231
  const _sSL = "sourceS3Location";
232
232
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.applicationcostprofiler";
233
233
  const n0 = "com.amazonaws.applicationcostprofiler";
234
- var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
234
+ var AccessDeniedException$ = [-3, n0, _ADE,
235
+ { [_e]: _c, [_hE]: 403 },
236
+ [_m],
237
+ [0]
238
+ ];
235
239
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
236
- var DeleteReportDefinitionRequest$ = [3, n0, _DRDR, 0, [_rI], [[0, 1]]];
237
- var DeleteReportDefinitionResult$ = [3, n0, _DRDRe, 0, [_rI], [0]];
238
- var GetReportDefinitionRequest$ = [3, n0, _GRDR, 0, [_rI], [[0, 1]]];
239
- var GetReportDefinitionResult$ = [
240
- 3,
241
- n0,
242
- _GRDRe,
240
+ var DeleteReportDefinitionRequest$ = [3, n0, _DRDR,
241
+ 0,
242
+ [_rI],
243
+ [[0, 1]]
244
+ ];
245
+ var DeleteReportDefinitionResult$ = [3, n0, _DRDRe,
246
+ 0,
247
+ [_rI],
248
+ [0]
249
+ ];
250
+ var GetReportDefinitionRequest$ = [3, n0, _GRDR,
251
+ 0,
252
+ [_rI],
253
+ [[0, 1]]
254
+ ];
255
+ var GetReportDefinitionResult$ = [3, n0, _GRDRe,
243
256
  0,
244
257
  [_rI, _rD, _rF, _f, _dSL, _cA, _lU],
245
- [0, 0, 0, 0, () => S3Location$, 4, 4],
258
+ [0, 0, 0, 0, () => S3Location$, 4, 4]
259
+ ];
260
+ var ImportApplicationUsageRequest$ = [3, n0, _IAUR,
261
+ 0,
262
+ [_sSL],
263
+ [() => SourceS3Location$]
264
+ ];
265
+ var ImportApplicationUsageResult$ = [3, n0, _IAURm,
266
+ 0,
267
+ [_iI],
268
+ [0]
269
+ ];
270
+ var InternalServerException$ = [-3, n0, _ISE,
271
+ { [_e]: _s, [_hE]: 500 },
272
+ [_m],
273
+ [0]
246
274
  ];
247
- var ImportApplicationUsageRequest$ = [3, n0, _IAUR, 0, [_sSL], [() => SourceS3Location$]];
248
- var ImportApplicationUsageResult$ = [3, n0, _IAURm, 0, [_iI], [0]];
249
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
250
275
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
251
- var ListReportDefinitionsRequest$ = [
252
- 3,
253
- n0,
254
- _LRDR,
276
+ var ListReportDefinitionsRequest$ = [3, n0, _LRDR,
255
277
  0,
256
278
  [_nT, _mR],
257
- [
258
- [0, { [_hQ]: _nT }],
259
- [1, { [_hQ]: _mR }],
260
- ],
279
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
261
280
  ];
262
- var ListReportDefinitionsResult$ = [
263
- 3,
264
- n0,
265
- _LRDRi,
281
+ var ListReportDefinitionsResult$ = [3, n0, _LRDRi,
266
282
  0,
267
283
  [_rDe, _nT],
268
- [() => ReportDefinitionList, 0],
284
+ [() => ReportDefinitionList, 0]
269
285
  ];
270
- var PutReportDefinitionRequest$ = [
271
- 3,
272
- n0,
273
- _PRDR,
286
+ var PutReportDefinitionRequest$ = [3, n0, _PRDR,
274
287
  0,
275
288
  [_rI, _rD, _rF, _f, _dSL],
276
- [0, 0, 0, 0, () => S3Location$],
289
+ [0, 0, 0, 0, () => S3Location$]
277
290
  ];
278
- var PutReportDefinitionResult$ = [3, n0, _PRDRu, 0, [_rI], [0]];
279
- var ReportDefinition$ = [
280
- 3,
281
- n0,
282
- _RD,
291
+ var PutReportDefinitionResult$ = [3, n0, _PRDRu,
292
+ 0,
293
+ [_rI],
294
+ [0]
295
+ ];
296
+ var ReportDefinition$ = [3, n0, _RD,
283
297
  0,
284
298
  [_rI, _rD, _rF, _f, _dSL, _cA, _lUA],
285
- [0, 0, 0, 0, () => S3Location$, 4, 4],
299
+ [0, 0, 0, 0, () => S3Location$, 4, 4]
300
+ ];
301
+ var S3Location$ = [3, n0, _SL,
302
+ 0,
303
+ [_b, _p],
304
+ [0, 0]
305
+ ];
306
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
307
+ { [_e]: _c, [_hE]: 402 },
308
+ [_m],
309
+ [0]
286
310
  ];
287
- var S3Location$ = [3, n0, _SL, 0, [_b, _p], [0, 0]];
288
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m], [0]];
289
311
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
290
- var SourceS3Location$ = [3, n0, _SSL, 0, [_b, _k, _r], [0, 0, 0]];
291
- var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
312
+ var SourceS3Location$ = [3, n0, _SSL,
313
+ 0,
314
+ [_b, _k, _r],
315
+ [0, 0, 0]
316
+ ];
317
+ var ThrottlingException$ = [-3, n0, _TE,
318
+ { [_e]: _c, [_hE]: 429 },
319
+ [_m],
320
+ [0]
321
+ ];
292
322
  schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
293
- var UpdateReportDefinitionRequest$ = [
294
- 3,
295
- n0,
296
- _URDR,
323
+ var UpdateReportDefinitionRequest$ = [3, n0, _URDR,
297
324
  0,
298
325
  [_rI, _rD, _rF, _f, _dSL],
299
- [[0, 1], 0, 0, 0, () => S3Location$],
326
+ [[0, 1], 0, 0, 0, () => S3Location$]
300
327
  ];
301
- var UpdateReportDefinitionResult$ = [3, n0, _URDRp, 0, [_rI], [0]];
302
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
303
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
304
- var ApplicationCostProfilerServiceException$ = [
305
- -3,
306
- _sm,
307
- "ApplicationCostProfilerServiceException",
328
+ var UpdateReportDefinitionResult$ = [3, n0, _URDRp,
308
329
  0,
309
- [],
310
- [],
330
+ [_rI],
331
+ [0]
311
332
  ];
333
+ var ValidationException$ = [-3, n0, _VE,
334
+ { [_e]: _c, [_hE]: 400 },
335
+ [_m],
336
+ [0]
337
+ ];
338
+ schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
339
+ var ApplicationCostProfilerServiceException$ = [-3, _sm, "ApplicationCostProfilerServiceException", 0, [], []];
312
340
  schema.TypeRegistry.for(_sm).registerError(ApplicationCostProfilerServiceException$, ApplicationCostProfilerServiceException);
313
- var ReportDefinitionList = [1, n0, _RDL, 0, () => ReportDefinition$];
314
- var DeleteReportDefinition$ = [
315
- 9,
316
- n0,
317
- _DRD,
318
- { [_h]: ["DELETE", "/reportDefinition/{reportId}", 200] },
319
- () => DeleteReportDefinitionRequest$,
320
- () => DeleteReportDefinitionResult$,
341
+ var ReportDefinitionList = [1, n0, _RDL,
342
+ 0, () => ReportDefinition$
343
+ ];
344
+ var DeleteReportDefinition$ = [9, n0, _DRD,
345
+ { [_h]: ["DELETE", "/reportDefinition/{reportId}", 200] }, () => DeleteReportDefinitionRequest$, () => DeleteReportDefinitionResult$
321
346
  ];
322
- var GetReportDefinition$ = [
323
- 9,
324
- n0,
325
- _GRD,
326
- { [_h]: ["GET", "/reportDefinition/{reportId}", 200] },
327
- () => GetReportDefinitionRequest$,
328
- () => GetReportDefinitionResult$,
347
+ var GetReportDefinition$ = [9, n0, _GRD,
348
+ { [_h]: ["GET", "/reportDefinition/{reportId}", 200] }, () => GetReportDefinitionRequest$, () => GetReportDefinitionResult$
329
349
  ];
330
- var ImportApplicationUsage$ = [
331
- 9,
332
- n0,
333
- _IAU,
334
- { [_h]: ["POST", "/importApplicationUsage", 200] },
335
- () => ImportApplicationUsageRequest$,
336
- () => ImportApplicationUsageResult$,
350
+ var ImportApplicationUsage$ = [9, n0, _IAU,
351
+ { [_h]: ["POST", "/importApplicationUsage", 200] }, () => ImportApplicationUsageRequest$, () => ImportApplicationUsageResult$
337
352
  ];
338
- var ListReportDefinitions$ = [
339
- 9,
340
- n0,
341
- _LRD,
342
- { [_h]: ["GET", "/reportDefinition", 200] },
343
- () => ListReportDefinitionsRequest$,
344
- () => ListReportDefinitionsResult$,
353
+ var ListReportDefinitions$ = [9, n0, _LRD,
354
+ { [_h]: ["GET", "/reportDefinition", 200] }, () => ListReportDefinitionsRequest$, () => ListReportDefinitionsResult$
345
355
  ];
346
- var PutReportDefinition$ = [
347
- 9,
348
- n0,
349
- _PRD,
350
- { [_h]: ["POST", "/reportDefinition", 200] },
351
- () => PutReportDefinitionRequest$,
352
- () => PutReportDefinitionResult$,
356
+ var PutReportDefinition$ = [9, n0, _PRD,
357
+ { [_h]: ["POST", "/reportDefinition", 200] }, () => PutReportDefinitionRequest$, () => PutReportDefinitionResult$
353
358
  ];
354
- var UpdateReportDefinition$ = [
355
- 9,
356
- n0,
357
- _URD,
358
- { [_h]: ["PUT", "/reportDefinition/{reportId}", 200] },
359
- () => UpdateReportDefinitionRequest$,
360
- () => UpdateReportDefinitionResult$,
359
+ var UpdateReportDefinition$ = [9, n0, _URD,
360
+ { [_h]: ["PUT", "/reportDefinition/{reportId}", 200] }, () => UpdateReportDefinitionRequest$, () => UpdateReportDefinitionResult$
361
361
  ];
362
362
 
363
363
  class DeleteReportDefinitionCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultApplicationCostProfilerHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -54,131 +54,131 @@ const n0 = "com.amazonaws.applicationcostprofiler";
54
54
  import { TypeRegistry } from "@smithy/core/schema";
55
55
  import { ApplicationCostProfilerServiceException } from "../models/ApplicationCostProfilerServiceException";
56
56
  import { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
57
- export var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
57
+ export var AccessDeniedException$ = [-3, n0, _ADE,
58
+ { [_e]: _c, [_hE]: 403 },
59
+ [_m],
60
+ [0]
61
+ ];
58
62
  TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
59
- export var DeleteReportDefinitionRequest$ = [3, n0, _DRDR, 0, [_rI], [[0, 1]]];
60
- export var DeleteReportDefinitionResult$ = [3, n0, _DRDRe, 0, [_rI], [0]];
61
- export var GetReportDefinitionRequest$ = [3, n0, _GRDR, 0, [_rI], [[0, 1]]];
62
- export var GetReportDefinitionResult$ = [
63
- 3,
64
- n0,
65
- _GRDRe,
63
+ export var DeleteReportDefinitionRequest$ = [3, n0, _DRDR,
64
+ 0,
65
+ [_rI],
66
+ [[0, 1]]
67
+ ];
68
+ export var DeleteReportDefinitionResult$ = [3, n0, _DRDRe,
69
+ 0,
70
+ [_rI],
71
+ [0]
72
+ ];
73
+ export var GetReportDefinitionRequest$ = [3, n0, _GRDR,
74
+ 0,
75
+ [_rI],
76
+ [[0, 1]]
77
+ ];
78
+ export var GetReportDefinitionResult$ = [3, n0, _GRDRe,
66
79
  0,
67
80
  [_rI, _rD, _rF, _f, _dSL, _cA, _lU],
68
- [0, 0, 0, 0, () => S3Location$, 4, 4],
81
+ [0, 0, 0, 0, () => S3Location$, 4, 4]
82
+ ];
83
+ export var ImportApplicationUsageRequest$ = [3, n0, _IAUR,
84
+ 0,
85
+ [_sSL],
86
+ [() => SourceS3Location$]
87
+ ];
88
+ export var ImportApplicationUsageResult$ = [3, n0, _IAURm,
89
+ 0,
90
+ [_iI],
91
+ [0]
92
+ ];
93
+ export var InternalServerException$ = [-3, n0, _ISE,
94
+ { [_e]: _s, [_hE]: 500 },
95
+ [_m],
96
+ [0]
69
97
  ];
70
- export var ImportApplicationUsageRequest$ = [3, n0, _IAUR, 0, [_sSL], [() => SourceS3Location$]];
71
- export var ImportApplicationUsageResult$ = [3, n0, _IAURm, 0, [_iI], [0]];
72
- export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
73
98
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
74
- export var ListReportDefinitionsRequest$ = [
75
- 3,
76
- n0,
77
- _LRDR,
99
+ export var ListReportDefinitionsRequest$ = [3, n0, _LRDR,
78
100
  0,
79
101
  [_nT, _mR],
80
- [
81
- [0, { [_hQ]: _nT }],
82
- [1, { [_hQ]: _mR }],
83
- ],
84
- ];
85
- export var ListReportDefinitionsResult$ = [
86
- 3,
87
- n0,
88
- _LRDRi,
102
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
103
+ ];
104
+ export var ListReportDefinitionsResult$ = [3, n0, _LRDRi,
89
105
  0,
90
106
  [_rDe, _nT],
91
- [() => ReportDefinitionList, 0],
107
+ [() => ReportDefinitionList, 0]
92
108
  ];
93
- export var PutReportDefinitionRequest$ = [
94
- 3,
95
- n0,
96
- _PRDR,
109
+ export var PutReportDefinitionRequest$ = [3, n0, _PRDR,
97
110
  0,
98
111
  [_rI, _rD, _rF, _f, _dSL],
99
- [0, 0, 0, 0, () => S3Location$],
112
+ [0, 0, 0, 0, () => S3Location$]
113
+ ];
114
+ export var PutReportDefinitionResult$ = [3, n0, _PRDRu,
115
+ 0,
116
+ [_rI],
117
+ [0]
100
118
  ];
101
- export var PutReportDefinitionResult$ = [3, n0, _PRDRu, 0, [_rI], [0]];
102
- export var ReportDefinition$ = [
103
- 3,
104
- n0,
105
- _RD,
119
+ export var ReportDefinition$ = [3, n0, _RD,
106
120
  0,
107
121
  [_rI, _rD, _rF, _f, _dSL, _cA, _lUA],
108
- [0, 0, 0, 0, () => S3Location$, 4, 4],
122
+ [0, 0, 0, 0, () => S3Location$, 4, 4]
123
+ ];
124
+ export var S3Location$ = [3, n0, _SL,
125
+ 0,
126
+ [_b, _p],
127
+ [0, 0]
128
+ ];
129
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
130
+ { [_e]: _c, [_hE]: 402 },
131
+ [_m],
132
+ [0]
109
133
  ];
110
- export var S3Location$ = [3, n0, _SL, 0, [_b, _p], [0, 0]];
111
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m], [0]];
112
134
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
113
- export var SourceS3Location$ = [3, n0, _SSL, 0, [_b, _k, _r], [0, 0, 0]];
114
- export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
135
+ export var SourceS3Location$ = [3, n0, _SSL,
136
+ 0,
137
+ [_b, _k, _r],
138
+ [0, 0, 0]
139
+ ];
140
+ export var ThrottlingException$ = [-3, n0, _TE,
141
+ { [_e]: _c, [_hE]: 429 },
142
+ [_m],
143
+ [0]
144
+ ];
115
145
  TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
116
- export var UpdateReportDefinitionRequest$ = [
117
- 3,
118
- n0,
119
- _URDR,
146
+ export var UpdateReportDefinitionRequest$ = [3, n0, _URDR,
120
147
  0,
121
148
  [_rI, _rD, _rF, _f, _dSL],
122
- [[0, 1], 0, 0, 0, () => S3Location$],
149
+ [[0, 1], 0, 0, 0, () => S3Location$]
123
150
  ];
124
- export var UpdateReportDefinitionResult$ = [3, n0, _URDRp, 0, [_rI], [0]];
125
- export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
126
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
127
- export var ApplicationCostProfilerServiceException$ = [
128
- -3,
129
- _sm,
130
- "ApplicationCostProfilerServiceException",
151
+ export var UpdateReportDefinitionResult$ = [3, n0, _URDRp,
131
152
  0,
132
- [],
133
- [],
153
+ [_rI],
154
+ [0]
155
+ ];
156
+ export var ValidationException$ = [-3, n0, _VE,
157
+ { [_e]: _c, [_hE]: 400 },
158
+ [_m],
159
+ [0]
134
160
  ];
161
+ TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
162
+ export var ApplicationCostProfilerServiceException$ = [-3, _sm, "ApplicationCostProfilerServiceException", 0, [], []];
135
163
  TypeRegistry.for(_sm).registerError(ApplicationCostProfilerServiceException$, ApplicationCostProfilerServiceException);
136
- var ReportDefinitionList = [1, n0, _RDL, 0, () => ReportDefinition$];
137
- export var DeleteReportDefinition$ = [
138
- 9,
139
- n0,
140
- _DRD,
141
- { [_h]: ["DELETE", "/reportDefinition/{reportId}", 200] },
142
- () => DeleteReportDefinitionRequest$,
143
- () => DeleteReportDefinitionResult$,
144
- ];
145
- export var GetReportDefinition$ = [
146
- 9,
147
- n0,
148
- _GRD,
149
- { [_h]: ["GET", "/reportDefinition/{reportId}", 200] },
150
- () => GetReportDefinitionRequest$,
151
- () => GetReportDefinitionResult$,
152
- ];
153
- export var ImportApplicationUsage$ = [
154
- 9,
155
- n0,
156
- _IAU,
157
- { [_h]: ["POST", "/importApplicationUsage", 200] },
158
- () => ImportApplicationUsageRequest$,
159
- () => ImportApplicationUsageResult$,
160
- ];
161
- export var ListReportDefinitions$ = [
162
- 9,
163
- n0,
164
- _LRD,
165
- { [_h]: ["GET", "/reportDefinition", 200] },
166
- () => ListReportDefinitionsRequest$,
167
- () => ListReportDefinitionsResult$,
168
- ];
169
- export var PutReportDefinition$ = [
170
- 9,
171
- n0,
172
- _PRD,
173
- { [_h]: ["POST", "/reportDefinition", 200] },
174
- () => PutReportDefinitionRequest$,
175
- () => PutReportDefinitionResult$,
176
- ];
177
- export var UpdateReportDefinition$ = [
178
- 9,
179
- n0,
180
- _URD,
181
- { [_h]: ["PUT", "/reportDefinition/{reportId}", 200] },
182
- () => UpdateReportDefinitionRequest$,
183
- () => UpdateReportDefinitionResult$,
164
+ var ReportDefinitionList = [1, n0, _RDL,
165
+ 0, () => ReportDefinition$
166
+ ];
167
+ export var DeleteReportDefinition$ = [9, n0, _DRD,
168
+ { [_h]: ["DELETE", "/reportDefinition/{reportId}", 200] }, () => DeleteReportDefinitionRequest$, () => DeleteReportDefinitionResult$
169
+ ];
170
+ export var GetReportDefinition$ = [9, n0, _GRD,
171
+ { [_h]: ["GET", "/reportDefinition/{reportId}", 200] }, () => GetReportDefinitionRequest$, () => GetReportDefinitionResult$
172
+ ];
173
+ export var ImportApplicationUsage$ = [9, n0, _IAU,
174
+ { [_h]: ["POST", "/importApplicationUsage", 200] }, () => ImportApplicationUsageRequest$, () => ImportApplicationUsageResult$
175
+ ];
176
+ export var ListReportDefinitions$ = [9, n0, _LRD,
177
+ { [_h]: ["GET", "/reportDefinition", 200] }, () => ListReportDefinitionsRequest$, () => ListReportDefinitionsResult$
178
+ ];
179
+ export var PutReportDefinition$ = [9, n0, _PRD,
180
+ { [_h]: ["POST", "/reportDefinition", 200] }, () => PutReportDefinitionRequest$, () => PutReportDefinitionResult$
181
+ ];
182
+ export var UpdateReportDefinition$ = [9, n0, _URD,
183
+ { [_h]: ["PUT", "/reportDefinition/{reportId}", 200] }, () => UpdateReportDefinitionRequest$, () => UpdateReportDefinitionResult$
184
184
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-applicationcostprofiler",
3
3
  "description": "AWS SDK for JavaScript Applicationcostprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.957.0",
4
+ "version": "3.962.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-applicationcostprofiler",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
24
  "@aws-sdk/core": "3.957.0",
25
- "@aws-sdk/credential-provider-node": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.962.0",
26
26
  "@aws-sdk/middleware-host-header": "3.957.0",
27
27
  "@aws-sdk/middleware-logger": "3.957.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.957.0",