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