@aws-sdk/client-billing 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultBillingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateSourceViews$, CreateBillingView$, DeleteBillingView$, DisassociateSourceViews$, GetBillingView$, GetResourcePolicy$, ListBillingViews$, ListSourceViewsForBillingView$, ListTagsForResource$, TagResource$, UntagResource$, UpdateBillingView$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { BillingServiceException } = require("./models/BillingServiceException");
18
- exports.BillingServiceException = BillingServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultBillingHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "billing",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultBillingHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,672 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const l = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "sigv4", h = { [l]: "Endpoint" }, i = { [l]: d }, j = { "authSchemes": [{ "name": g, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, k = [{ [l]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [h]],
79
+ [c, k],
80
+ ["aws.partition", k, d],
81
+ [e, [{ [l]: "UseFIPS" }, b]],
82
+ ["stringEquals", [{ fn: f, argv: [i, "name"] }, "aws"]],
83
+ [e, [{ [l]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [h, {}],
92
+ ["https://billing.us-east-1.api.aws", { authSchemes: [{ name: g, signingRegion: "us-east-1" }] }],
93
+ ["https://billing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", j],
94
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
95
+ ["https://billing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", j],
96
+ [a, "FIPS is enabled but this partition does not support FIPS"],
97
+ ["https://billing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", j],
98
+ [a, "DualStack is enabled but this partition does not support DualStack"],
99
+ ["https://billing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", j],
100
+ [a, "Invalid Configuration: Missing Region"]
101
+ ]
102
+ };
103
+ const root = 2;
104
+ const r = 100_000_000;
105
+ const nodes = new Int32Array([
106
+ -1, 1, -1,
107
+ 0, 13, 3,
108
+ 1, 4, r + 12,
109
+ 2, 5, r + 12,
110
+ 3, 9, 6,
111
+ 4, r + 4, 7,
112
+ 5, 8, r + 11,
113
+ 6, r + 9, r + 10,
114
+ 5, 11, 10,
115
+ 7, r + 7, r + 8,
116
+ 6, 12, r + 6,
117
+ 7, r + 5, r + 6,
118
+ 3, r + 1, 14,
119
+ 5, r + 2, r + 3,
120
+ ]);
121
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
122
+
123
+ const cache = new EndpointCache({
124
+ size: 50,
125
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
126
+ });
127
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
128
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
129
+ endpointParams: endpointParams,
130
+ logger: context.logger,
131
+ }));
132
+ };
133
+ customEndpointFunctions.aws = awsEndpointFunctions;
134
+
135
+ class BillingServiceException extends ServiceException {
136
+ constructor(options) {
137
+ super(options);
138
+ Object.setPrototypeOf(this, BillingServiceException.prototype);
139
+ }
140
+ }
141
+
142
+ class AccessDeniedException extends BillingServiceException {
143
+ name = "AccessDeniedException";
144
+ $fault = "client";
145
+ constructor(opts) {
146
+ super({
147
+ name: "AccessDeniedException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
152
+ }
153
+ }
154
+ class BillingViewHealthStatusException extends BillingServiceException {
155
+ name = "BillingViewHealthStatusException";
156
+ $fault = "client";
157
+ constructor(opts) {
158
+ super({
159
+ name: "BillingViewHealthStatusException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
164
+ }
165
+ }
166
+ class ConflictException extends BillingServiceException {
167
+ name = "ConflictException";
168
+ $fault = "client";
169
+ resourceId;
170
+ resourceType;
171
+ constructor(opts) {
172
+ super({
173
+ name: "ConflictException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, ConflictException.prototype);
178
+ this.resourceId = opts.resourceId;
179
+ this.resourceType = opts.resourceType;
180
+ }
181
+ }
182
+ class InternalServerException extends BillingServiceException {
183
+ name = "InternalServerException";
184
+ $fault = "server";
185
+ constructor(opts) {
186
+ super({
187
+ name: "InternalServerException",
188
+ $fault: "server",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, InternalServerException.prototype);
192
+ }
193
+ }
194
+ class ResourceNotFoundException extends BillingServiceException {
195
+ name = "ResourceNotFoundException";
196
+ $fault = "client";
197
+ resourceId;
198
+ resourceType;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ResourceNotFoundException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
206
+ this.resourceId = opts.resourceId;
207
+ this.resourceType = opts.resourceType;
208
+ }
209
+ }
210
+ class ServiceQuotaExceededException extends BillingServiceException {
211
+ name = "ServiceQuotaExceededException";
212
+ $fault = "client";
213
+ resourceId;
214
+ resourceType;
215
+ serviceCode;
216
+ quotaCode;
217
+ constructor(opts) {
218
+ super({
219
+ name: "ServiceQuotaExceededException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
224
+ this.resourceId = opts.resourceId;
225
+ this.resourceType = opts.resourceType;
226
+ this.serviceCode = opts.serviceCode;
227
+ this.quotaCode = opts.quotaCode;
228
+ }
229
+ }
230
+ class ThrottlingException extends BillingServiceException {
231
+ name = "ThrottlingException";
232
+ $fault = "client";
233
+ constructor(opts) {
234
+ super({
235
+ name: "ThrottlingException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
240
+ }
241
+ }
242
+ class ValidationException extends BillingServiceException {
243
+ name = "ValidationException";
244
+ $fault = "client";
245
+ reason;
246
+ fieldList;
247
+ constructor(opts) {
248
+ super({
249
+ name: "ValidationException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ Object.setPrototypeOf(this, ValidationException.prototype);
254
+ this.reason = opts.reason;
255
+ this.fieldList = opts.fieldList;
256
+ }
257
+ }
258
+
259
+ const _ADE = "AccessDeniedException";
260
+ const _ASV = "AssociateSourceViews";
261
+ const _ASVR = "AssociateSourceViewsRequest";
262
+ const _ASVRs = "AssociateSourceViewsResponse";
263
+ const _ATR = "ActiveTimeRange";
264
+ const _BVD = "BillingViewDescription";
265
+ const _BVE = "BillingViewElement";
266
+ const _BVHS = "BillingViewHealthStatus";
267
+ const _BVHSE = "BillingViewHealthStatusException";
268
+ const _BVL = "BillingViewList";
269
+ const _BVLE = "BillingViewListElement";
270
+ const _BVN = "BillingViewName";
271
+ const _CBV = "CreateBillingView";
272
+ const _CBVR = "CreateBillingViewRequest";
273
+ const _CBVRr = "CreateBillingViewResponse";
274
+ const _CCV = "CostCategoryValues";
275
+ const _CE = "ConflictException";
276
+ const _DBV = "DeleteBillingView";
277
+ const _DBVR = "DeleteBillingViewRequest";
278
+ const _DBVRe = "DeleteBillingViewResponse";
279
+ const _DSV = "DisassociateSourceViews";
280
+ const _DSVR = "DisassociateSourceViewsRequest";
281
+ const _DSVRi = "DisassociateSourceViewsResponse";
282
+ const _DV = "DimensionValues";
283
+ const _E = "Expression";
284
+ const _GBV = "GetBillingView";
285
+ const _GBVR = "GetBillingViewRequest";
286
+ const _GBVRe = "GetBillingViewResponse";
287
+ const _GRP = "GetResourcePolicy";
288
+ const _GRPR = "GetResourcePolicyRequest";
289
+ const _GRPRe = "GetResourcePolicyResponse";
290
+ const _ISE = "InternalServerException";
291
+ const _LBV = "ListBillingViews";
292
+ const _LBVR = "ListBillingViewsRequest";
293
+ const _LBVRi = "ListBillingViewsResponse";
294
+ const _LSVFBV = "ListSourceViewsForBillingView";
295
+ const _LSVFBVR = "ListSourceViewsForBillingViewRequest";
296
+ const _LSVFBVRi = "ListSourceViewsForBillingViewResponse";
297
+ const _LTFR = "ListTagsForResource";
298
+ const _LTFRR = "ListTagsForResourceRequest";
299
+ const _LTFRRi = "ListTagsForResourceResponse";
300
+ const _RNFE = "ResourceNotFoundException";
301
+ const _RT = "ResourceTag";
302
+ const _RTL = "ResourceTagList";
303
+ const _SQEE = "ServiceQuotaExceededException";
304
+ const _SS = "StringSearch";
305
+ const _SSt = "StringSearches";
306
+ const _TE = "ThrottlingException";
307
+ const _TR = "TimeRange";
308
+ const _TRR = "TagResourceRequest";
309
+ const _TRRa = "TagResourceResponse";
310
+ const _TRa = "TagResource";
311
+ const _TV = "TagValues";
312
+ const _UBV = "UpdateBillingView";
313
+ const _UBVR = "UpdateBillingViewRequest";
314
+ const _UBVRp = "UpdateBillingViewResponse";
315
+ const _UR = "UntagResource";
316
+ const _URR = "UntagResourceRequest";
317
+ const _URRn = "UntagResourceResponse";
318
+ const _VE = "ValidationException";
319
+ const _VEF = "ValidationExceptionField";
320
+ const _VEFL = "ValidationExceptionFieldList";
321
+ const _XACT = "X-Amzn-Client-Token";
322
+ const _a = "arn";
323
+ const _aAI = "activeAfterInclusive";
324
+ const _aBI = "activeBeforeInclusive";
325
+ const _aQE = "awsQueryError";
326
+ const _aTR = "activeTimeRange";
327
+ const _ar = "arns";
328
+ const _bDI = "beginDateInclusive";
329
+ const _bV = "billingView";
330
+ const _bVT = "billingViewType";
331
+ const _bVTi = "billingViewTypes";
332
+ const _bVi = "billingViews";
333
+ const _c = "client";
334
+ const _cA = "createdAt";
335
+ const _cC = "costCategories";
336
+ const _cT = "clientToken";
337
+ const _d = "description";
338
+ const _dFE = "dataFilterExpression";
339
+ const _dVC = "derivedViewCount";
340
+ const _di = "dimensions";
341
+ const _e = "error";
342
+ const _eDI = "endDateInclusive";
343
+ const _f = "force";
344
+ const _fL = "fieldList";
345
+ const _h = "http";
346
+ const _hE = "httpError";
347
+ const _hH = "httpHeader";
348
+ const _hS = "healthStatus";
349
+ const _iT = "idempotencyToken";
350
+ const _k = "key";
351
+ const _m = "message";
352
+ const _mR = "maxResults";
353
+ const _n = "name";
354
+ const _nT = "nextToken";
355
+ const _na = "names";
356
+ const _oAI = "ownerAccountId";
357
+ const _p = "policy";
358
+ const _qC = "quotaCode";
359
+ const _r = "reason";
360
+ const _rA = "resourceArn";
361
+ const _rI = "resourceId";
362
+ const _rT = "resourceType";
363
+ const _rTK = "resourceTagKeys";
364
+ const _rTe = "resourceTags";
365
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.billing";
366
+ const _sAI = "sourceAccountId";
367
+ const _sC = "serviceCode";
368
+ const _sCt = "statusCode";
369
+ const _sO = "searchOption";
370
+ const _sR = "statusReasons";
371
+ const _sV = "sourceViews";
372
+ const _sVC = "sourceViewCount";
373
+ const _sVe = "searchValue";
374
+ const _se = "server";
375
+ const _t = "tags";
376
+ const _tR = "timeRange";
377
+ const _uA = "updatedAt";
378
+ const _v = "values";
379
+ const _vDLUA = "viewDefinitionLastUpdatedAt";
380
+ const _va = "value";
381
+ const n0 = "com.amazonaws.billing";
382
+ const _s_registry = TypeRegistry.for(_s);
383
+ var BillingServiceException$ = [-3, _s, "BillingServiceException", 0, [], []];
384
+ _s_registry.registerError(BillingServiceException$, BillingServiceException);
385
+ const n0_registry = TypeRegistry.for(n0);
386
+ var AccessDeniedException$ = [-3, n0, _ADE,
387
+ { [_aQE]: [`BillingAccessDenied`, 403], [_e]: _c, [_hE]: 403 },
388
+ [_m],
389
+ [0], 1
390
+ ];
391
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
392
+ var BillingViewHealthStatusException$ = [-3, n0, _BVHSE,
393
+ { [_e]: _c, [_hE]: 400 },
394
+ [_m],
395
+ [0], 1
396
+ ];
397
+ n0_registry.registerError(BillingViewHealthStatusException$, BillingViewHealthStatusException);
398
+ var ConflictException$ = [-3, n0, _CE,
399
+ { [_aQE]: [`BillingConflict`, 409], [_e]: _c, [_hE]: 409 },
400
+ [_m, _rI, _rT],
401
+ [0, 0, 0], 3
402
+ ];
403
+ n0_registry.registerError(ConflictException$, ConflictException);
404
+ var InternalServerException$ = [-3, n0, _ISE,
405
+ { [_aQE]: [`BillingInternalServer`, 500], [_e]: _se, [_hE]: 500 },
406
+ [_m],
407
+ [0], 1
408
+ ];
409
+ n0_registry.registerError(InternalServerException$, InternalServerException);
410
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
411
+ { [_aQE]: [`BillingResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
412
+ [_m, _rI, _rT],
413
+ [0, 0, 0], 3
414
+ ];
415
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
416
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
417
+ { [_aQE]: [`BillingServiceQuotaExceeded`, 402], [_e]: _c, [_hE]: 402 },
418
+ [_m, _rI, _rT, _sC, _qC],
419
+ [0, 0, 0, 0, 0], 5
420
+ ];
421
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
422
+ var ThrottlingException$ = [-3, n0, _TE,
423
+ { [_aQE]: [`BillingThrottling`, 429], [_e]: _c, [_hE]: 429 },
424
+ [_m],
425
+ [0], 1
426
+ ];
427
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
428
+ var ValidationException$ = [-3, n0, _VE,
429
+ { [_aQE]: [`BillingValidation`, 400], [_e]: _c, [_hE]: 400 },
430
+ [_m, _r, _fL],
431
+ [0, 0, () => ValidationExceptionFieldList], 2
432
+ ];
433
+ n0_registry.registerError(ValidationException$, ValidationException);
434
+ const errorTypeRegistries = [
435
+ _s_registry,
436
+ n0_registry,
437
+ ];
438
+ var BillingViewDescription = [0, n0, _BVD, 8, 0];
439
+ var BillingViewName = [0, n0, _BVN, 8, 0];
440
+ var ActiveTimeRange$ = [3, n0, _ATR,
441
+ 0,
442
+ [_aAI, _aBI],
443
+ [4, 4], 2
444
+ ];
445
+ var AssociateSourceViewsRequest$ = [3, n0, _ASVR,
446
+ 0,
447
+ [_a, _sV],
448
+ [0, 64 | 0], 2
449
+ ];
450
+ var AssociateSourceViewsResponse$ = [3, n0, _ASVRs,
451
+ 0,
452
+ [_a],
453
+ [0], 1
454
+ ];
455
+ var BillingViewElement$ = [3, n0, _BVE,
456
+ 0,
457
+ [_a, _n, _d, _bVT, _oAI, _sAI, _dFE, _cA, _uA, _dVC, _sVC, _vDLUA, _hS],
458
+ [0, [() => BillingViewName, 0], [() => BillingViewDescription, 0], 0, 0, 0, () => Expression$, 4, 4, 1, 1, 4, () => BillingViewHealthStatus$]
459
+ ];
460
+ var BillingViewHealthStatus$ = [3, n0, _BVHS,
461
+ 0,
462
+ [_sCt, _sR],
463
+ [0, 64 | 0]
464
+ ];
465
+ var BillingViewListElement$ = [3, n0, _BVLE,
466
+ 0,
467
+ [_a, _n, _d, _oAI, _sAI, _bVT, _hS],
468
+ [0, [() => BillingViewName, 0], [() => BillingViewDescription, 0], 0, 0, 0, () => BillingViewHealthStatus$]
469
+ ];
470
+ var CostCategoryValues$ = [3, n0, _CCV,
471
+ 0,
472
+ [_k, _v],
473
+ [0, 64 | 0], 2
474
+ ];
475
+ var CreateBillingViewRequest$ = [3, n0, _CBVR,
476
+ 0,
477
+ [_n, _sV, _d, _dFE, _cT, _rTe],
478
+ [[() => BillingViewName, 0], 64 | 0, [() => BillingViewDescription, 0], () => Expression$, [0, { [_hH]: _XACT, [_iT]: 1 }], () => ResourceTagList], 2
479
+ ];
480
+ var CreateBillingViewResponse$ = [3, n0, _CBVRr,
481
+ 0,
482
+ [_a, _cA],
483
+ [0, 4], 1
484
+ ];
485
+ var DeleteBillingViewRequest$ = [3, n0, _DBVR,
486
+ 0,
487
+ [_a, _f],
488
+ [0, 2], 1
489
+ ];
490
+ var DeleteBillingViewResponse$ = [3, n0, _DBVRe,
491
+ 0,
492
+ [_a],
493
+ [0], 1
494
+ ];
495
+ var DimensionValues$ = [3, n0, _DV,
496
+ 0,
497
+ [_k, _v],
498
+ [0, 64 | 0], 2
499
+ ];
500
+ var DisassociateSourceViewsRequest$ = [3, n0, _DSVR,
501
+ 0,
502
+ [_a, _sV],
503
+ [0, 64 | 0], 2
504
+ ];
505
+ var DisassociateSourceViewsResponse$ = [3, n0, _DSVRi,
506
+ 0,
507
+ [_a],
508
+ [0], 1
509
+ ];
510
+ var Expression$ = [3, n0, _E,
511
+ 0,
512
+ [_di, _t, _cC, _tR],
513
+ [() => DimensionValues$, () => TagValues$, () => CostCategoryValues$, () => TimeRange$]
514
+ ];
515
+ var GetBillingViewRequest$ = [3, n0, _GBVR,
516
+ 0,
517
+ [_a],
518
+ [0], 1
519
+ ];
520
+ var GetBillingViewResponse$ = [3, n0, _GBVRe,
521
+ 0,
522
+ [_bV],
523
+ [[() => BillingViewElement$, 0]], 1
524
+ ];
525
+ var GetResourcePolicyRequest$ = [3, n0, _GRPR,
526
+ 0,
527
+ [_rA],
528
+ [0], 1
529
+ ];
530
+ var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
531
+ 0,
532
+ [_rA, _p],
533
+ [0, 0], 1
534
+ ];
535
+ var ListBillingViewsRequest$ = [3, n0, _LBVR,
536
+ 0,
537
+ [_aTR, _ar, _bVTi, _na, _oAI, _sAI, _mR, _nT],
538
+ [() => ActiveTimeRange$, 64 | 0, 64 | 0, () => StringSearches, 0, 0, 1, 0]
539
+ ];
540
+ var ListBillingViewsResponse$ = [3, n0, _LBVRi,
541
+ 0,
542
+ [_bVi, _nT],
543
+ [[() => BillingViewList, 0], 0], 1
544
+ ];
545
+ var ListSourceViewsForBillingViewRequest$ = [3, n0, _LSVFBVR,
546
+ 0,
547
+ [_a, _mR, _nT],
548
+ [0, 1, 0], 1
549
+ ];
550
+ var ListSourceViewsForBillingViewResponse$ = [3, n0, _LSVFBVRi,
551
+ 0,
552
+ [_sV, _nT],
553
+ [64 | 0, 0], 1
554
+ ];
555
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
556
+ 0,
557
+ [_rA],
558
+ [0], 1
559
+ ];
560
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
561
+ 0,
562
+ [_rTe],
563
+ [() => ResourceTagList]
564
+ ];
565
+ var ResourceTag$ = [3, n0, _RT,
566
+ 0,
567
+ [_k, _va],
568
+ [0, 0], 1
569
+ ];
570
+ var StringSearch$ = [3, n0, _SS,
571
+ 0,
572
+ [_sO, _sVe],
573
+ [0, 0], 2
574
+ ];
575
+ var TagResourceRequest$ = [3, n0, _TRR,
576
+ 0,
577
+ [_rA, _rTe],
578
+ [0, () => ResourceTagList], 2
579
+ ];
580
+ var TagResourceResponse$ = [3, n0, _TRRa,
581
+ 0,
582
+ [],
583
+ []
584
+ ];
585
+ var TagValues$ = [3, n0, _TV,
586
+ 0,
587
+ [_k, _v],
588
+ [0, 64 | 0], 2
589
+ ];
590
+ var TimeRange$ = [3, n0, _TR,
591
+ 0,
592
+ [_bDI, _eDI],
593
+ [4, 4]
594
+ ];
595
+ var UntagResourceRequest$ = [3, n0, _URR,
596
+ 0,
597
+ [_rA, _rTK],
598
+ [0, 64 | 0], 2
599
+ ];
600
+ var UntagResourceResponse$ = [3, n0, _URRn,
601
+ 0,
602
+ [],
603
+ []
604
+ ];
605
+ var UpdateBillingViewRequest$ = [3, n0, _UBVR,
606
+ 0,
607
+ [_a, _n, _d, _dFE],
608
+ [0, [() => BillingViewName, 0], [() => BillingViewDescription, 0], () => Expression$], 1
609
+ ];
610
+ var UpdateBillingViewResponse$ = [3, n0, _UBVRp,
611
+ 0,
612
+ [_a, _uA],
613
+ [0, 4], 1
614
+ ];
615
+ var ValidationExceptionField$ = [3, n0, _VEF,
616
+ 0,
617
+ [_n, _m],
618
+ [0, 0], 2
619
+ ];
620
+ var BillingViewList = [1, n0, _BVL,
621
+ 0, [() => BillingViewListElement$,
622
+ 0]
623
+ ];
624
+ var ResourceTagList = [1, n0, _RTL,
625
+ 0, () => ResourceTag$
626
+ ];
627
+ var StringSearches = [1, n0, _SSt,
628
+ 0, () => StringSearch$
629
+ ];
630
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
631
+ 0, () => ValidationExceptionField$
632
+ ];
633
+ var AssociateSourceViews$ = [9, n0, _ASV,
634
+ 2, () => AssociateSourceViewsRequest$, () => AssociateSourceViewsResponse$
635
+ ];
636
+ var CreateBillingView$ = [9, n0, _CBV,
637
+ 2, () => CreateBillingViewRequest$, () => CreateBillingViewResponse$
638
+ ];
639
+ var DeleteBillingView$ = [9, n0, _DBV,
640
+ 2, () => DeleteBillingViewRequest$, () => DeleteBillingViewResponse$
641
+ ];
642
+ var DisassociateSourceViews$ = [9, n0, _DSV,
643
+ 2, () => DisassociateSourceViewsRequest$, () => DisassociateSourceViewsResponse$
644
+ ];
645
+ var GetBillingView$ = [9, n0, _GBV,
646
+ 0, () => GetBillingViewRequest$, () => GetBillingViewResponse$
647
+ ];
648
+ var GetResourcePolicy$ = [9, n0, _GRP,
649
+ 0, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
650
+ ];
651
+ var ListBillingViews$ = [9, n0, _LBV,
652
+ { [_h]: ["POST", "/", 200] }, () => ListBillingViewsRequest$, () => ListBillingViewsResponse$
653
+ ];
654
+ var ListSourceViewsForBillingView$ = [9, n0, _LSVFBV,
655
+ 0, () => ListSourceViewsForBillingViewRequest$, () => ListSourceViewsForBillingViewResponse$
656
+ ];
657
+ var ListTagsForResource$ = [9, n0, _LTFR,
658
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
659
+ ];
660
+ var TagResource$ = [9, n0, _TRa,
661
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
662
+ ];
663
+ var UntagResource$ = [9, n0, _UR,
664
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
665
+ ];
666
+ var UpdateBillingView$ = [9, n0, _UBV,
667
+ 2, () => UpdateBillingViewRequest$, () => UpdateBillingViewResponse$
668
+ ];
669
+
670
+ const getRuntimeConfig$1 = (config) => {
671
+ return {
672
+ apiVersion: "2023-09-07",
673
+ base64Decoder: config?.base64Decoder ?? fromBase64,
674
+ base64Encoder: config?.base64Encoder ?? toBase64,
675
+ disableHostPrefix: config?.disableHostPrefix ?? false,
676
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
677
+ extensions: config?.extensions ?? [],
678
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBillingHttpAuthSchemeProvider,
679
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
680
+ {
681
+ schemeId: "aws.auth#sigv4",
682
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
683
+ signer: new AwsSdkSigV4Signer(),
684
+ },
685
+ ],
686
+ logger: config?.logger ?? new NoOpLogger(),
687
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
688
+ protocolSettings: config?.protocolSettings ?? {
689
+ defaultNamespace: "com.amazonaws.billing",
690
+ errorTypeRegistries,
691
+ version: "2023-09-07",
692
+ serviceTarget: "AWSBilling",
693
+ },
694
+ serviceId: config?.serviceId ?? "Billing",
695
+ urlParser: config?.urlParser ?? parseUrl,
696
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
697
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
698
+ };
699
+ };
700
+
701
+ const getRuntimeConfig = (config) => {
702
+ emitWarningIfUnsupportedVersion(process.version);
703
+ const defaultsMode = resolveDefaultsModeConfig(config);
704
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
705
+ const clientSharedValues = getRuntimeConfig$1(config);
706
+ emitWarningIfUnsupportedVersion$1(process.version);
707
+ const loaderConfig = {
708
+ profile: config?.profile,
709
+ logger: clientSharedValues.logger,
710
+ };
711
+ return {
712
+ ...clientSharedValues,
713
+ ...config,
714
+ runtime: "node",
715
+ defaultsMode,
716
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
717
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
718
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
719
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
720
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
721
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
722
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
723
+ retryMode: config?.retryMode ??
724
+ loadConfig({
725
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
726
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
727
+ }, config),
728
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
729
+ streamCollector: config?.streamCollector ?? streamCollector,
730
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
731
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
732
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
733
+ };
734
+ };
735
+
34
736
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
737
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
738
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -317,25 +1019,92 @@ const SearchOption = {
317
1019
  STARTS_WITH: "STARTS_WITH",
318
1020
  };
319
1021
 
1022
+ exports.AccessDeniedException = AccessDeniedException;
1023
+ exports.AccessDeniedException$ = AccessDeniedException$;
1024
+ exports.ActiveTimeRange$ = ActiveTimeRange$;
1025
+ exports.AssociateSourceViews$ = AssociateSourceViews$;
320
1026
  exports.AssociateSourceViewsCommand = AssociateSourceViewsCommand;
1027
+ exports.AssociateSourceViewsRequest$ = AssociateSourceViewsRequest$;
1028
+ exports.AssociateSourceViewsResponse$ = AssociateSourceViewsResponse$;
321
1029
  exports.Billing = Billing;
322
1030
  exports.BillingClient = BillingClient;
1031
+ exports.BillingServiceException = BillingServiceException;
1032
+ exports.BillingServiceException$ = BillingServiceException$;
1033
+ exports.BillingViewElement$ = BillingViewElement$;
1034
+ exports.BillingViewHealthStatus$ = BillingViewHealthStatus$;
1035
+ exports.BillingViewHealthStatusException = BillingViewHealthStatusException;
1036
+ exports.BillingViewHealthStatusException$ = BillingViewHealthStatusException$;
1037
+ exports.BillingViewListElement$ = BillingViewListElement$;
323
1038
  exports.BillingViewStatus = BillingViewStatus;
324
1039
  exports.BillingViewStatusReason = BillingViewStatusReason;
325
1040
  exports.BillingViewType = BillingViewType;
1041
+ exports.ConflictException = ConflictException;
1042
+ exports.ConflictException$ = ConflictException$;
1043
+ exports.CostCategoryValues$ = CostCategoryValues$;
1044
+ exports.CreateBillingView$ = CreateBillingView$;
326
1045
  exports.CreateBillingViewCommand = CreateBillingViewCommand;
1046
+ exports.CreateBillingViewRequest$ = CreateBillingViewRequest$;
1047
+ exports.CreateBillingViewResponse$ = CreateBillingViewResponse$;
1048
+ exports.DeleteBillingView$ = DeleteBillingView$;
327
1049
  exports.DeleteBillingViewCommand = DeleteBillingViewCommand;
1050
+ exports.DeleteBillingViewRequest$ = DeleteBillingViewRequest$;
1051
+ exports.DeleteBillingViewResponse$ = DeleteBillingViewResponse$;
328
1052
  exports.Dimension = Dimension;
1053
+ exports.DimensionValues$ = DimensionValues$;
1054
+ exports.DisassociateSourceViews$ = DisassociateSourceViews$;
329
1055
  exports.DisassociateSourceViewsCommand = DisassociateSourceViewsCommand;
1056
+ exports.DisassociateSourceViewsRequest$ = DisassociateSourceViewsRequest$;
1057
+ exports.DisassociateSourceViewsResponse$ = DisassociateSourceViewsResponse$;
1058
+ exports.Expression$ = Expression$;
1059
+ exports.GetBillingView$ = GetBillingView$;
330
1060
  exports.GetBillingViewCommand = GetBillingViewCommand;
1061
+ exports.GetBillingViewRequest$ = GetBillingViewRequest$;
1062
+ exports.GetBillingViewResponse$ = GetBillingViewResponse$;
1063
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
331
1064
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1065
+ exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
1066
+ exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
1067
+ exports.InternalServerException = InternalServerException;
1068
+ exports.InternalServerException$ = InternalServerException$;
1069
+ exports.ListBillingViews$ = ListBillingViews$;
332
1070
  exports.ListBillingViewsCommand = ListBillingViewsCommand;
1071
+ exports.ListBillingViewsRequest$ = ListBillingViewsRequest$;
1072
+ exports.ListBillingViewsResponse$ = ListBillingViewsResponse$;
1073
+ exports.ListSourceViewsForBillingView$ = ListSourceViewsForBillingView$;
333
1074
  exports.ListSourceViewsForBillingViewCommand = ListSourceViewsForBillingViewCommand;
1075
+ exports.ListSourceViewsForBillingViewRequest$ = ListSourceViewsForBillingViewRequest$;
1076
+ exports.ListSourceViewsForBillingViewResponse$ = ListSourceViewsForBillingViewResponse$;
1077
+ exports.ListTagsForResource$ = ListTagsForResource$;
334
1078
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1079
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1080
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1081
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1082
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1083
+ exports.ResourceTag$ = ResourceTag$;
335
1084
  exports.SearchOption = SearchOption;
1085
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1086
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1087
+ exports.StringSearch$ = StringSearch$;
1088
+ exports.TagResource$ = TagResource$;
336
1089
  exports.TagResourceCommand = TagResourceCommand;
1090
+ exports.TagResourceRequest$ = TagResourceRequest$;
1091
+ exports.TagResourceResponse$ = TagResourceResponse$;
1092
+ exports.TagValues$ = TagValues$;
1093
+ exports.ThrottlingException = ThrottlingException;
1094
+ exports.ThrottlingException$ = ThrottlingException$;
1095
+ exports.TimeRange$ = TimeRange$;
1096
+ exports.UntagResource$ = UntagResource$;
337
1097
  exports.UntagResourceCommand = UntagResourceCommand;
1098
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1099
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1100
+ exports.UpdateBillingView$ = UpdateBillingView$;
338
1101
  exports.UpdateBillingViewCommand = UpdateBillingViewCommand;
1102
+ exports.UpdateBillingViewRequest$ = UpdateBillingViewRequest$;
1103
+ exports.UpdateBillingViewResponse$ = UpdateBillingViewResponse$;
1104
+ exports.ValidationException = ValidationException;
1105
+ exports.ValidationException$ = ValidationException$;
1106
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
339
1107
  exports.ValidationExceptionReason = ValidationExceptionReason;
1108
+ exports.errorTypeRegistries = errorTypeRegistries;
340
1109
  exports.paginateListBillingViews = paginateListBillingViews;
341
1110
  exports.paginateListSourceViewsForBillingView = paginateListSourceViewsForBillingView;