@aws-sdk/client-billing 3.896.0 → 3.898.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 +16 -0
- package/dist-cjs/index.js +214 -48
- package/dist-es/Billing.js +4 -0
- package/dist-es/commands/AssociateSourceViewsCommand.js +22 -0
- package/dist-es/commands/DisassociateSourceViewsCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +47 -19
- package/dist-es/protocols/Aws_json1_0.js +98 -8
- package/dist-types/Billing.d.ts +14 -0
- package/dist-types/BillingClient.d.ts +4 -2
- package/dist-types/commands/AssociateSourceViewsCommand.d.ts +120 -0
- package/dist-types/commands/CreateBillingViewCommand.d.ts +10 -0
- package/dist-types/commands/DeleteBillingViewCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateSourceViewsCommand.d.ts +117 -0
- package/dist-types/commands/GetBillingViewCommand.d.ts +14 -0
- package/dist-types/commands/ListBillingViewsCommand.d.ts +8 -0
- package/dist-types/commands/UpdateBillingViewCommand.d.ts +7 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +290 -114
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/Billing.d.ts +34 -0
- package/dist-types/ts3.4/BillingClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/AssociateSourceViewsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateSourceViewsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +103 -41
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,6 +203,14 @@ see LICENSE for more information.
|
|
|
203
203
|
|
|
204
204
|
## Client Commands (Operations List)
|
|
205
205
|
|
|
206
|
+
<details>
|
|
207
|
+
<summary>
|
|
208
|
+
AssociateSourceViews
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/billing/command/AssociateSourceViewsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/AssociateSourceViewsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/AssociateSourceViewsCommandOutput/)
|
|
212
|
+
|
|
213
|
+
</details>
|
|
206
214
|
<details>
|
|
207
215
|
<summary>
|
|
208
216
|
CreateBillingView
|
|
@@ -218,6 +226,14 @@ DeleteBillingView
|
|
|
218
226
|
|
|
219
227
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/billing/command/DeleteBillingViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/DeleteBillingViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/DeleteBillingViewCommandOutput/)
|
|
220
228
|
|
|
229
|
+
</details>
|
|
230
|
+
<details>
|
|
231
|
+
<summary>
|
|
232
|
+
DisassociateSourceViews
|
|
233
|
+
</summary>
|
|
234
|
+
|
|
235
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/billing/command/DisassociateSourceViewsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/DisassociateSourceViewsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-billing/Interface/DisassociateSourceViewsCommandOutput/)
|
|
236
|
+
|
|
221
237
|
</details>
|
|
222
238
|
<details>
|
|
223
239
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -22,17 +22,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AssociateSourceViewsCommand: () => AssociateSourceViewsCommand,
|
|
25
26
|
Billing: () => Billing,
|
|
26
27
|
BillingClient: () => BillingClient,
|
|
27
28
|
BillingServiceException: () => BillingServiceException,
|
|
28
29
|
BillingViewElementFilterSensitiveLog: () => BillingViewElementFilterSensitiveLog,
|
|
30
|
+
BillingViewHealthStatusException: () => BillingViewHealthStatusException,
|
|
29
31
|
BillingViewListElementFilterSensitiveLog: () => BillingViewListElementFilterSensitiveLog,
|
|
32
|
+
BillingViewStatus: () => BillingViewStatus,
|
|
33
|
+
BillingViewStatusReason: () => BillingViewStatusReason,
|
|
30
34
|
BillingViewType: () => BillingViewType,
|
|
31
35
|
ConflictException: () => ConflictException,
|
|
32
36
|
CreateBillingViewCommand: () => CreateBillingViewCommand,
|
|
33
37
|
CreateBillingViewRequestFilterSensitiveLog: () => CreateBillingViewRequestFilterSensitiveLog,
|
|
34
38
|
DeleteBillingViewCommand: () => DeleteBillingViewCommand,
|
|
35
39
|
Dimension: () => Dimension,
|
|
40
|
+
DisassociateSourceViewsCommand: () => DisassociateSourceViewsCommand,
|
|
36
41
|
GetBillingViewCommand: () => GetBillingViewCommand,
|
|
37
42
|
GetBillingViewResponseFilterSensitiveLog: () => GetBillingViewResponseFilterSensitiveLog,
|
|
38
43
|
GetResourcePolicyCommand: () => GetResourcePolicyCommand,
|
|
@@ -200,13 +205,16 @@ var BillingClient = class extends import_smithy_client.Client {
|
|
|
200
205
|
// src/Billing.ts
|
|
201
206
|
|
|
202
207
|
|
|
203
|
-
// src/commands/
|
|
208
|
+
// src/commands/AssociateSourceViewsCommand.ts
|
|
204
209
|
|
|
205
210
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
206
211
|
|
|
207
212
|
|
|
208
|
-
// src/
|
|
213
|
+
// src/protocols/Aws_json1_0.ts
|
|
214
|
+
var import_core2 = require("@aws-sdk/core");
|
|
215
|
+
|
|
209
216
|
|
|
217
|
+
var import_uuid = require("@smithy/uuid");
|
|
210
218
|
|
|
211
219
|
// src/models/BillingServiceException.ts
|
|
212
220
|
|
|
@@ -224,6 +232,7 @@ var BillingServiceException = class _BillingServiceException extends import_smit
|
|
|
224
232
|
};
|
|
225
233
|
|
|
226
234
|
// src/models/models_0.ts
|
|
235
|
+
|
|
227
236
|
var AccessDeniedException = class _AccessDeniedException extends BillingServiceException {
|
|
228
237
|
static {
|
|
229
238
|
__name(this, "AccessDeniedException");
|
|
@@ -242,6 +251,24 @@ var AccessDeniedException = class _AccessDeniedException extends BillingServiceE
|
|
|
242
251
|
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
243
252
|
}
|
|
244
253
|
};
|
|
254
|
+
var BillingViewHealthStatusException = class _BillingViewHealthStatusException extends BillingServiceException {
|
|
255
|
+
static {
|
|
256
|
+
__name(this, "BillingViewHealthStatusException");
|
|
257
|
+
}
|
|
258
|
+
name = "BillingViewHealthStatusException";
|
|
259
|
+
$fault = "client";
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "BillingViewHealthStatusException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts
|
|
268
|
+
});
|
|
269
|
+
Object.setPrototypeOf(this, _BillingViewHealthStatusException.prototype);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
245
272
|
var ConflictException = class _ConflictException extends BillingServiceException {
|
|
246
273
|
static {
|
|
247
274
|
__name(this, "ConflictException");
|
|
@@ -272,9 +299,6 @@ var ConflictException = class _ConflictException extends BillingServiceException
|
|
|
272
299
|
this.resourceType = opts.resourceType;
|
|
273
300
|
}
|
|
274
301
|
};
|
|
275
|
-
var Dimension = {
|
|
276
|
-
LINKED_ACCOUNT: "LINKED_ACCOUNT"
|
|
277
|
-
};
|
|
278
302
|
var InternalServerException = class _InternalServerException extends BillingServiceException {
|
|
279
303
|
static {
|
|
280
304
|
__name(this, "InternalServerException");
|
|
@@ -293,6 +317,36 @@ var InternalServerException = class _InternalServerException extends BillingServ
|
|
|
293
317
|
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
294
318
|
}
|
|
295
319
|
};
|
|
320
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends BillingServiceException {
|
|
321
|
+
static {
|
|
322
|
+
__name(this, "ResourceNotFoundException");
|
|
323
|
+
}
|
|
324
|
+
name = "ResourceNotFoundException";
|
|
325
|
+
$fault = "client";
|
|
326
|
+
/**
|
|
327
|
+
* <p> Value is a list of resource IDs that were not found. </p>
|
|
328
|
+
* @public
|
|
329
|
+
*/
|
|
330
|
+
resourceId;
|
|
331
|
+
/**
|
|
332
|
+
* <p> Value is the type of resource that was not found. </p>
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
resourceType;
|
|
336
|
+
/**
|
|
337
|
+
* @internal
|
|
338
|
+
*/
|
|
339
|
+
constructor(opts) {
|
|
340
|
+
super({
|
|
341
|
+
name: "ResourceNotFoundException",
|
|
342
|
+
$fault: "client",
|
|
343
|
+
...opts
|
|
344
|
+
});
|
|
345
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
346
|
+
this.resourceId = opts.resourceId;
|
|
347
|
+
this.resourceType = opts.resourceType;
|
|
348
|
+
}
|
|
349
|
+
};
|
|
296
350
|
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BillingServiceException {
|
|
297
351
|
static {
|
|
298
352
|
__name(this, "ServiceQuotaExceededException");
|
|
@@ -389,40 +443,29 @@ var ValidationException = class _ValidationException extends BillingServiceExcep
|
|
|
389
443
|
this.fieldList = opts.fieldList;
|
|
390
444
|
}
|
|
391
445
|
};
|
|
446
|
+
var Dimension = {
|
|
447
|
+
LINKED_ACCOUNT: "LINKED_ACCOUNT"
|
|
448
|
+
};
|
|
392
449
|
var BillingViewType = {
|
|
393
450
|
BILLING_GROUP: "BILLING_GROUP",
|
|
394
451
|
CUSTOM: "CUSTOM",
|
|
395
452
|
PRIMARY: "PRIMARY"
|
|
396
453
|
};
|
|
397
|
-
var
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
resourceType;
|
|
413
|
-
/**
|
|
414
|
-
* @internal
|
|
415
|
-
*/
|
|
416
|
-
constructor(opts) {
|
|
417
|
-
super({
|
|
418
|
-
name: "ResourceNotFoundException",
|
|
419
|
-
$fault: "client",
|
|
420
|
-
...opts
|
|
421
|
-
});
|
|
422
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
423
|
-
this.resourceId = opts.resourceId;
|
|
424
|
-
this.resourceType = opts.resourceType;
|
|
425
|
-
}
|
|
454
|
+
var BillingViewStatus = {
|
|
455
|
+
CREATING: "CREATING",
|
|
456
|
+
HEALTHY: "HEALTHY",
|
|
457
|
+
UNHEALTHY: "UNHEALTHY",
|
|
458
|
+
UPDATING: "UPDATING"
|
|
459
|
+
};
|
|
460
|
+
var BillingViewStatusReason = {
|
|
461
|
+
AGGREGATE_SOURCE: "AGGREGATE_SOURCE",
|
|
462
|
+
CYCLIC_DEPENDENCY: "CYCLIC_DEPENDENCY",
|
|
463
|
+
SOURCE_VIEW_ACCESS_DENIED: "SOURCE_VIEW_ACCESS_DENIED",
|
|
464
|
+
SOURCE_VIEW_DEPTH_EXCEEDED: "SOURCE_VIEW_DEPTH_EXCEEDED",
|
|
465
|
+
SOURCE_VIEW_NOT_FOUND: "SOURCE_VIEW_NOT_FOUND",
|
|
466
|
+
SOURCE_VIEW_UNHEALTHY: "SOURCE_VIEW_UNHEALTHY",
|
|
467
|
+
SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
|
|
468
|
+
VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT"
|
|
426
469
|
};
|
|
427
470
|
var CreateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
428
471
|
...obj,
|
|
@@ -456,10 +499,12 @@ var UpdateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
456
499
|
}), "UpdateBillingViewRequestFilterSensitiveLog");
|
|
457
500
|
|
|
458
501
|
// src/protocols/Aws_json1_0.ts
|
|
459
|
-
var
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
502
|
+
var se_AssociateSourceViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
+
const headers = sharedHeaders("AssociateSourceViews");
|
|
504
|
+
let body;
|
|
505
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
506
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
507
|
+
}, "se_AssociateSourceViewsCommand");
|
|
463
508
|
var se_CreateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
509
|
const headers = sharedHeaders("CreateBillingView");
|
|
465
510
|
let body;
|
|
@@ -472,6 +517,12 @@ var se_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
472
517
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
473
518
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
474
519
|
}, "se_DeleteBillingViewCommand");
|
|
520
|
+
var se_DisassociateSourceViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const headers = sharedHeaders("DisassociateSourceViews");
|
|
522
|
+
let body;
|
|
523
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
524
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
525
|
+
}, "se_DisassociateSourceViewsCommand");
|
|
475
526
|
var se_GetBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
476
527
|
const headers = sharedHeaders("GetBillingView");
|
|
477
528
|
let body;
|
|
@@ -517,9 +568,22 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
517
568
|
var se_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
569
|
const headers = sharedHeaders("UpdateBillingView");
|
|
519
570
|
let body;
|
|
520
|
-
body = JSON.stringify((
|
|
571
|
+
body = JSON.stringify(se_UpdateBillingViewRequest(input, context));
|
|
521
572
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
522
573
|
}, "se_UpdateBillingViewCommand");
|
|
574
|
+
var de_AssociateSourceViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
575
|
+
if (output.statusCode >= 300) {
|
|
576
|
+
return de_CommandError(output, context);
|
|
577
|
+
}
|
|
578
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
579
|
+
let contents = {};
|
|
580
|
+
contents = (0, import_smithy_client._json)(data);
|
|
581
|
+
const response = {
|
|
582
|
+
$metadata: deserializeMetadata(output),
|
|
583
|
+
...contents
|
|
584
|
+
};
|
|
585
|
+
return response;
|
|
586
|
+
}, "de_AssociateSourceViewsCommand");
|
|
523
587
|
var de_CreateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
588
|
if (output.statusCode >= 300) {
|
|
525
589
|
return de_CommandError(output, context);
|
|
@@ -546,6 +610,19 @@ var de_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
546
610
|
};
|
|
547
611
|
return response;
|
|
548
612
|
}, "de_DeleteBillingViewCommand");
|
|
613
|
+
var de_DisassociateSourceViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
614
|
+
if (output.statusCode >= 300) {
|
|
615
|
+
return de_CommandError(output, context);
|
|
616
|
+
}
|
|
617
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
618
|
+
let contents = {};
|
|
619
|
+
contents = (0, import_smithy_client._json)(data);
|
|
620
|
+
const response = {
|
|
621
|
+
$metadata: deserializeMetadata(output),
|
|
622
|
+
...contents
|
|
623
|
+
};
|
|
624
|
+
return response;
|
|
625
|
+
}, "de_DisassociateSourceViewsCommand");
|
|
549
626
|
var de_GetBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
627
|
if (output.statusCode >= 300) {
|
|
551
628
|
return de_CommandError(output, context);
|
|
@@ -660,12 +737,18 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
660
737
|
case "AccessDeniedException":
|
|
661
738
|
case "com.amazonaws.billing#AccessDeniedException":
|
|
662
739
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
740
|
+
case "BillingViewHealthStatusException":
|
|
741
|
+
case "com.amazonaws.billing#BillingViewHealthStatusException":
|
|
742
|
+
throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
|
|
663
743
|
case "ConflictException":
|
|
664
744
|
case "com.amazonaws.billing#ConflictException":
|
|
665
745
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
666
746
|
case "InternalServerException":
|
|
667
747
|
case "com.amazonaws.billing#InternalServerException":
|
|
668
748
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
749
|
+
case "ResourceNotFoundException":
|
|
750
|
+
case "com.amazonaws.billing#ResourceNotFoundException":
|
|
751
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
669
752
|
case "ServiceQuotaExceededException":
|
|
670
753
|
case "com.amazonaws.billing#ServiceQuotaExceededException":
|
|
671
754
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -675,9 +758,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
675
758
|
case "ValidationException":
|
|
676
759
|
case "com.amazonaws.billing#ValidationException":
|
|
677
760
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ResourceNotFoundException":
|
|
679
|
-
case "com.amazonaws.billing#ResourceNotFoundException":
|
|
680
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
681
761
|
default:
|
|
682
762
|
const parsedBody = parsedOutput.body;
|
|
683
763
|
return throwDefaultError({
|
|
@@ -696,6 +776,15 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
|
|
|
696
776
|
});
|
|
697
777
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
698
778
|
}, "de_AccessDeniedExceptionRes");
|
|
779
|
+
var de_BillingViewHealthStatusExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
780
|
+
const body = parsedOutput.body;
|
|
781
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
782
|
+
const exception = new BillingViewHealthStatusException({
|
|
783
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
784
|
+
...deserialized
|
|
785
|
+
});
|
|
786
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
787
|
+
}, "de_BillingViewHealthStatusExceptionRes");
|
|
699
788
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
700
789
|
const body = parsedOutput.body;
|
|
701
790
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -759,13 +848,20 @@ var se_ActiveTimeRange = /* @__PURE__ */ __name((input, context) => {
|
|
|
759
848
|
var se_CreateBillingViewRequest = /* @__PURE__ */ __name((input, context) => {
|
|
760
849
|
return (0, import_smithy_client.take)(input, {
|
|
761
850
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
762
|
-
dataFilterExpression:
|
|
851
|
+
dataFilterExpression: /* @__PURE__ */ __name((_) => se_Expression(_, context), "dataFilterExpression"),
|
|
763
852
|
description: [],
|
|
764
853
|
name: [],
|
|
765
854
|
resourceTags: import_smithy_client._json,
|
|
766
855
|
sourceViews: import_smithy_client._json
|
|
767
856
|
});
|
|
768
857
|
}, "se_CreateBillingViewRequest");
|
|
858
|
+
var se_Expression = /* @__PURE__ */ __name((input, context) => {
|
|
859
|
+
return (0, import_smithy_client.take)(input, {
|
|
860
|
+
dimensions: import_smithy_client._json,
|
|
861
|
+
tags: import_smithy_client._json,
|
|
862
|
+
timeRange: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "timeRange")
|
|
863
|
+
});
|
|
864
|
+
}, "se_Expression");
|
|
769
865
|
var se_ListBillingViewsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
770
866
|
return (0, import_smithy_client.take)(input, {
|
|
771
867
|
activeTimeRange: /* @__PURE__ */ __name((_) => se_ActiveTimeRange(_, context), "activeTimeRange"),
|
|
@@ -773,19 +869,39 @@ var se_ListBillingViewsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
773
869
|
billingViewTypes: import_smithy_client._json,
|
|
774
870
|
maxResults: [],
|
|
775
871
|
nextToken: [],
|
|
776
|
-
ownerAccountId: []
|
|
872
|
+
ownerAccountId: [],
|
|
873
|
+
sourceAccountId: []
|
|
777
874
|
});
|
|
778
875
|
}, "se_ListBillingViewsRequest");
|
|
876
|
+
var se_TimeRange = /* @__PURE__ */ __name((input, context) => {
|
|
877
|
+
return (0, import_smithy_client.take)(input, {
|
|
878
|
+
beginDateInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "beginDateInclusive"),
|
|
879
|
+
endDateInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "endDateInclusive")
|
|
880
|
+
});
|
|
881
|
+
}, "se_TimeRange");
|
|
882
|
+
var se_UpdateBillingViewRequest = /* @__PURE__ */ __name((input, context) => {
|
|
883
|
+
return (0, import_smithy_client.take)(input, {
|
|
884
|
+
arn: [],
|
|
885
|
+
dataFilterExpression: /* @__PURE__ */ __name((_) => se_Expression(_, context), "dataFilterExpression"),
|
|
886
|
+
description: [],
|
|
887
|
+
name: []
|
|
888
|
+
});
|
|
889
|
+
}, "se_UpdateBillingViewRequest");
|
|
779
890
|
var de_BillingViewElement = /* @__PURE__ */ __name((output, context) => {
|
|
780
891
|
return (0, import_smithy_client.take)(output, {
|
|
781
892
|
arn: import_smithy_client.expectString,
|
|
782
893
|
billingViewType: import_smithy_client.expectString,
|
|
783
894
|
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
784
|
-
dataFilterExpression:
|
|
895
|
+
dataFilterExpression: /* @__PURE__ */ __name((_) => de_Expression(_, context), "dataFilterExpression"),
|
|
896
|
+
derivedViewCount: import_smithy_client.expectInt32,
|
|
785
897
|
description: import_smithy_client.expectString,
|
|
898
|
+
healthStatus: import_smithy_client._json,
|
|
786
899
|
name: import_smithy_client.expectString,
|
|
787
900
|
ownerAccountId: import_smithy_client.expectString,
|
|
788
|
-
|
|
901
|
+
sourceAccountId: import_smithy_client.expectString,
|
|
902
|
+
sourceViewCount: import_smithy_client.expectInt32,
|
|
903
|
+
updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
|
|
904
|
+
viewDefinitionLastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "viewDefinitionLastUpdatedAt")
|
|
789
905
|
});
|
|
790
906
|
}, "de_BillingViewElement");
|
|
791
907
|
var de_CreateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -794,11 +910,24 @@ var de_CreateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
794
910
|
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt")
|
|
795
911
|
});
|
|
796
912
|
}, "de_CreateBillingViewResponse");
|
|
913
|
+
var de_Expression = /* @__PURE__ */ __name((output, context) => {
|
|
914
|
+
return (0, import_smithy_client.take)(output, {
|
|
915
|
+
dimensions: import_smithy_client._json,
|
|
916
|
+
tags: import_smithy_client._json,
|
|
917
|
+
timeRange: /* @__PURE__ */ __name((_) => de_TimeRange(_, context), "timeRange")
|
|
918
|
+
});
|
|
919
|
+
}, "de_Expression");
|
|
797
920
|
var de_GetBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
|
|
798
921
|
return (0, import_smithy_client.take)(output, {
|
|
799
922
|
billingView: /* @__PURE__ */ __name((_) => de_BillingViewElement(_, context), "billingView")
|
|
800
923
|
});
|
|
801
924
|
}, "de_GetBillingViewResponse");
|
|
925
|
+
var de_TimeRange = /* @__PURE__ */ __name((output, context) => {
|
|
926
|
+
return (0, import_smithy_client.take)(output, {
|
|
927
|
+
beginDateInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "beginDateInclusive"),
|
|
928
|
+
endDateInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endDateInclusive")
|
|
929
|
+
});
|
|
930
|
+
}, "de_TimeRange");
|
|
802
931
|
var de_UpdateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
|
|
803
932
|
return (0, import_smithy_client.take)(output, {
|
|
804
933
|
arn: import_smithy_client.expectString,
|
|
@@ -838,7 +967,22 @@ function sharedHeaders(operation) {
|
|
|
838
967
|
}
|
|
839
968
|
__name(sharedHeaders, "sharedHeaders");
|
|
840
969
|
|
|
970
|
+
// src/commands/AssociateSourceViewsCommand.ts
|
|
971
|
+
var AssociateSourceViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
972
|
+
return [
|
|
973
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
974
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
975
|
+
];
|
|
976
|
+
}).s("AWSBilling", "AssociateSourceViews", {}).n("BillingClient", "AssociateSourceViewsCommand").f(void 0, void 0).ser(se_AssociateSourceViewsCommand).de(de_AssociateSourceViewsCommand).build() {
|
|
977
|
+
static {
|
|
978
|
+
__name(this, "AssociateSourceViewsCommand");
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
|
|
841
982
|
// src/commands/CreateBillingViewCommand.ts
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
842
986
|
var CreateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
843
987
|
return [
|
|
844
988
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
@@ -865,6 +1009,21 @@ var DeleteBillingViewCommand = class extends import_smithy_client.Command.classB
|
|
|
865
1009
|
}
|
|
866
1010
|
};
|
|
867
1011
|
|
|
1012
|
+
// src/commands/DisassociateSourceViewsCommand.ts
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
var DisassociateSourceViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1017
|
+
return [
|
|
1018
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1019
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1020
|
+
];
|
|
1021
|
+
}).s("AWSBilling", "DisassociateSourceViews", {}).n("BillingClient", "DisassociateSourceViewsCommand").f(void 0, void 0).ser(se_DisassociateSourceViewsCommand).de(de_DisassociateSourceViewsCommand).build() {
|
|
1022
|
+
static {
|
|
1023
|
+
__name(this, "DisassociateSourceViewsCommand");
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
|
|
868
1027
|
// src/commands/GetBillingViewCommand.ts
|
|
869
1028
|
|
|
870
1029
|
|
|
@@ -987,8 +1146,10 @@ var UpdateBillingViewCommand = class extends import_smithy_client.Command.classB
|
|
|
987
1146
|
|
|
988
1147
|
// src/Billing.ts
|
|
989
1148
|
var commands = {
|
|
1149
|
+
AssociateSourceViewsCommand,
|
|
990
1150
|
CreateBillingViewCommand,
|
|
991
1151
|
DeleteBillingViewCommand,
|
|
1152
|
+
DisassociateSourceViewsCommand,
|
|
992
1153
|
GetBillingViewCommand,
|
|
993
1154
|
GetResourcePolicyCommand,
|
|
994
1155
|
ListBillingViewsCommand,
|
|
@@ -1020,8 +1181,10 @@ var paginateListSourceViewsForBillingView = (0, import_core.createPaginator)(Bil
|
|
|
1020
1181
|
BillingClient,
|
|
1021
1182
|
Billing,
|
|
1022
1183
|
$Command,
|
|
1184
|
+
AssociateSourceViewsCommand,
|
|
1023
1185
|
CreateBillingViewCommand,
|
|
1024
1186
|
DeleteBillingViewCommand,
|
|
1187
|
+
DisassociateSourceViewsCommand,
|
|
1025
1188
|
GetBillingViewCommand,
|
|
1026
1189
|
GetResourcePolicyCommand,
|
|
1027
1190
|
ListBillingViewsCommand,
|
|
@@ -1033,15 +1196,18 @@ var paginateListSourceViewsForBillingView = (0, import_core.createPaginator)(Bil
|
|
|
1033
1196
|
paginateListBillingViews,
|
|
1034
1197
|
paginateListSourceViewsForBillingView,
|
|
1035
1198
|
AccessDeniedException,
|
|
1199
|
+
BillingViewHealthStatusException,
|
|
1036
1200
|
ConflictException,
|
|
1037
|
-
Dimension,
|
|
1038
1201
|
InternalServerException,
|
|
1202
|
+
ResourceNotFoundException,
|
|
1039
1203
|
ServiceQuotaExceededException,
|
|
1040
1204
|
ThrottlingException,
|
|
1041
1205
|
ValidationExceptionReason,
|
|
1042
1206
|
ValidationException,
|
|
1207
|
+
Dimension,
|
|
1043
1208
|
BillingViewType,
|
|
1044
|
-
|
|
1209
|
+
BillingViewStatus,
|
|
1210
|
+
BillingViewStatusReason,
|
|
1045
1211
|
CreateBillingViewRequestFilterSensitiveLog,
|
|
1046
1212
|
BillingViewElementFilterSensitiveLog,
|
|
1047
1213
|
GetBillingViewResponseFilterSensitiveLog,
|
package/dist-es/Billing.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BillingClient } from "./BillingClient";
|
|
3
|
+
import { AssociateSourceViewsCommand, } from "./commands/AssociateSourceViewsCommand";
|
|
3
4
|
import { CreateBillingViewCommand, } from "./commands/CreateBillingViewCommand";
|
|
4
5
|
import { DeleteBillingViewCommand, } from "./commands/DeleteBillingViewCommand";
|
|
6
|
+
import { DisassociateSourceViewsCommand, } from "./commands/DisassociateSourceViewsCommand";
|
|
5
7
|
import { GetBillingViewCommand, } from "./commands/GetBillingViewCommand";
|
|
6
8
|
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
7
9
|
import { ListBillingViewsCommand, } from "./commands/ListBillingViewsCommand";
|
|
@@ -11,8 +13,10 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
11
13
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
12
14
|
import { UpdateBillingViewCommand, } from "./commands/UpdateBillingViewCommand";
|
|
13
15
|
const commands = {
|
|
16
|
+
AssociateSourceViewsCommand,
|
|
14
17
|
CreateBillingViewCommand,
|
|
15
18
|
DeleteBillingViewCommand,
|
|
19
|
+
DisassociateSourceViewsCommand,
|
|
16
20
|
GetBillingViewCommand,
|
|
17
21
|
GetResourcePolicyCommand,
|
|
18
22
|
ListBillingViewsCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_AssociateSourceViewsCommand, se_AssociateSourceViewsCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class AssociateSourceViewsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBilling", "AssociateSourceViews", {})
|
|
17
|
+
.n("BillingClient", "AssociateSourceViewsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_AssociateSourceViewsCommand)
|
|
20
|
+
.de(de_AssociateSourceViewsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DisassociateSourceViewsCommand, se_DisassociateSourceViewsCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DisassociateSourceViewsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSBilling", "DisassociateSourceViews", {})
|
|
17
|
+
.n("BillingClient", "DisassociateSourceViewsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DisassociateSourceViewsCommand)
|
|
20
|
+
.de(de_DisassociateSourceViewsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from "./AssociateSourceViewsCommand";
|
|
1
2
|
export * from "./CreateBillingViewCommand";
|
|
2
3
|
export * from "./DeleteBillingViewCommand";
|
|
4
|
+
export * from "./DisassociateSourceViewsCommand";
|
|
3
5
|
export * from "./GetBillingViewCommand";
|
|
4
6
|
export * from "./GetResourcePolicyCommand";
|
|
5
7
|
export * from "./ListBillingViewsCommand";
|