|
15 | 15 | "uid":"billing-2023-09-07" |
16 | 16 | }, |
17 | 17 | "operations":{ |
| 18 | + "AssociateSourceViews":{ |
| 19 | + "name":"AssociateSourceViews", |
| 20 | + "http":{ |
| 21 | + "method":"POST", |
| 22 | + "requestUri":"/" |
| 23 | + }, |
| 24 | + "input":{"shape":"AssociateSourceViewsRequest"}, |
| 25 | + "output":{"shape":"AssociateSourceViewsResponse"}, |
| 26 | + "errors":[ |
| 27 | + {"shape":"BillingViewHealthStatusException"}, |
| 28 | + {"shape":"ServiceQuotaExceededException"}, |
| 29 | + {"shape":"ThrottlingException"}, |
| 30 | + {"shape":"ResourceNotFoundException"}, |
| 31 | + {"shape":"AccessDeniedException"}, |
| 32 | + {"shape":"ConflictException"}, |
| 33 | + {"shape":"ValidationException"}, |
| 34 | + {"shape":"InternalServerException"} |
| 35 | + ], |
| 36 | + "documentation":"<p> Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. </p>", |
| 37 | + "idempotent":true |
| 38 | + }, |
18 | 39 | "CreateBillingView":{ |
19 | 40 | "name":"CreateBillingView", |
20 | 41 | "http":{ |
|
24 | 45 | "input":{"shape":"CreateBillingViewRequest"}, |
25 | 46 | "output":{"shape":"CreateBillingViewResponse"}, |
26 | 47 | "errors":[ |
| 48 | + {"shape":"BillingViewHealthStatusException"}, |
27 | 49 | {"shape":"ServiceQuotaExceededException"}, |
28 | 50 | {"shape":"ThrottlingException"}, |
| 51 | + {"shape":"ResourceNotFoundException"}, |
29 | 52 | {"shape":"AccessDeniedException"}, |
30 | 53 | {"shape":"ConflictException"}, |
31 | 54 | {"shape":"ValidationException"}, |
|
52 | 75 | "documentation":"<p>Deletes the specified billing view.</p>", |
53 | 76 | "idempotent":true |
54 | 77 | }, |
| 78 | + "DisassociateSourceViews":{ |
| 79 | + "name":"DisassociateSourceViews", |
| 80 | + "http":{ |
| 81 | + "method":"POST", |
| 82 | + "requestUri":"/" |
| 83 | + }, |
| 84 | + "input":{"shape":"DisassociateSourceViewsRequest"}, |
| 85 | + "output":{"shape":"DisassociateSourceViewsResponse"}, |
| 86 | + "errors":[ |
| 87 | + {"shape":"BillingViewHealthStatusException"}, |
| 88 | + {"shape":"ThrottlingException"}, |
| 89 | + {"shape":"ResourceNotFoundException"}, |
| 90 | + {"shape":"AccessDeniedException"}, |
| 91 | + {"shape":"ConflictException"}, |
| 92 | + {"shape":"ValidationException"}, |
| 93 | + {"shape":"InternalServerException"} |
| 94 | + ], |
| 95 | + "documentation":"<p> Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views. </p>", |
| 96 | + "idempotent":true |
| 97 | + }, |
55 | 98 | "GetBillingView":{ |
56 | 99 | "name":"GetBillingView", |
57 | 100 | "http":{ |
|
67 | 110 | {"shape":"ValidationException"}, |
68 | 111 | {"shape":"InternalServerException"} |
69 | 112 | ], |
70 | | - "documentation":"<p>Returns the metadata associated to the specified billing view ARN. </p>" |
| 113 | + "documentation":"<p>Returns the metadata associated to the specified billing view ARN. </p>", |
| 114 | + "readonly":true |
71 | 115 | }, |
72 | 116 | "GetResourcePolicy":{ |
73 | 117 | "name":"GetResourcePolicy", |
|
84 | 128 | {"shape":"ValidationException"}, |
85 | 129 | {"shape":"InternalServerException"} |
86 | 130 | ], |
87 | | - "documentation":"<p>Returns the resource-based policy document attached to the resource in <code>JSON</code> format. </p>" |
| 131 | + "documentation":"<p>Returns the resource-based policy document attached to the resource in <code>JSON</code> format. </p>", |
| 132 | + "readonly":true |
88 | 133 | }, |
89 | 134 | "ListBillingViews":{ |
90 | 135 | "name":"ListBillingViews", |
|
100 | 145 | {"shape":"ValidationException"}, |
101 | 146 | {"shape":"InternalServerException"} |
102 | 147 | ], |
103 | | - "documentation":"<p>Lists the billing views available for a given time period. </p> <p>Every Amazon Web Services account has a unique <code>PRIMARY</code> billing view that represents the billing data available by default. Accounts that use Billing Conductor also have <code>BILLING_GROUP</code> billing views representing pro forma costs associated with each created billing group.</p>" |
| 148 | + "documentation":"<p>Lists the billing views available for a given time period. </p> <p>Every Amazon Web Services account has a unique <code>PRIMARY</code> billing view that represents the billing data available by default. Accounts that use Billing Conductor also have <code>BILLING_GROUP</code> billing views representing pro forma costs associated with each created billing group.</p>", |
| 149 | + "readonly":true |
104 | 150 | }, |
105 | 151 | "ListSourceViewsForBillingView":{ |
106 | 152 | "name":"ListSourceViewsForBillingView", |
|
117 | 163 | {"shape":"ValidationException"}, |
118 | 164 | {"shape":"InternalServerException"} |
119 | 165 | ], |
120 | | - "documentation":"<p>Lists the source views (managed Amazon Web Services billing views) associated with the billing view. </p>" |
| 166 | + "documentation":"<p>Lists the source views (managed Amazon Web Services billing views) associated with the billing view. </p>", |
| 167 | + "readonly":true |
121 | 168 | }, |
122 | 169 | "ListTagsForResource":{ |
123 | 170 | "name":"ListTagsForResource", |
|
134 | 181 | {"shape":"ValidationException"}, |
135 | 182 | {"shape":"InternalServerException"} |
136 | 183 | ], |
137 | | - "documentation":"<p>Lists tags associated with the billing view resource. </p>" |
| 184 | + "documentation":"<p>Lists tags associated with the billing view resource. </p>", |
| 185 | + "readonly":true |
138 | 186 | }, |
139 | 187 | "TagResource":{ |
140 | 188 | "name":"TagResource", |
|
179 | 227 | "input":{"shape":"UpdateBillingViewRequest"}, |
180 | 228 | "output":{"shape":"UpdateBillingViewResponse"}, |
181 | 229 | "errors":[ |
| 230 | + {"shape":"BillingViewHealthStatusException"}, |
182 | 231 | {"shape":"ServiceQuotaExceededException"}, |
183 | 232 | {"shape":"ThrottlingException"}, |
184 | 233 | {"shape":"ResourceNotFoundException"}, |
|
223 | 272 | }, |
224 | 273 | "documentation":"<p>A time range with a start and end time.</p>" |
225 | 274 | }, |
| 275 | + "AssociateSourceViewsRequest":{ |
| 276 | + "type":"structure", |
| 277 | + "required":[ |
| 278 | + "arn", |
| 279 | + "sourceViews" |
| 280 | + ], |
| 281 | + "members":{ |
| 282 | + "arn":{ |
| 283 | + "shape":"BillingViewArn", |
| 284 | + "documentation":"<p> The Amazon Resource Name (ARN) of the billing view to associate source views with. </p>" |
| 285 | + }, |
| 286 | + "sourceViews":{ |
| 287 | + "shape":"BillingViewSourceViewsList", |
| 288 | + "documentation":"<p> A list of ARNs of the source billing views to associate. </p>" |
| 289 | + } |
| 290 | + } |
| 291 | + }, |
| 292 | + "AssociateSourceViewsResponse":{ |
| 293 | + "type":"structure", |
| 294 | + "required":["arn"], |
| 295 | + "members":{ |
| 296 | + "arn":{ |
| 297 | + "shape":"BillingViewArn", |
| 298 | + "documentation":"<p> The ARN of the billing view that the source views were associated with. </p>" |
| 299 | + } |
| 300 | + } |
| 301 | + }, |
226 | 302 | "BillingViewArn":{ |
227 | 303 | "type":"string", |
228 | | - "pattern":"arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\\+=\\.\\-@]{0,59}[a-zA-Z0-9]" |
| 304 | + "pattern":"arn:aws[a-z-]*:(billing)::[0-9]{12}:billingview/[a-zA-Z0-9/:_\\+=\\.\\-@]{0,75}[a-zA-Z0-9]" |
229 | 305 | }, |
230 | 306 | "BillingViewArnList":{ |
231 | 307 | "type":"list", |
|
263 | 339 | "shape":"AccountId", |
264 | 340 | "documentation":"<p>The account owner of the billing view. </p>" |
265 | 341 | }, |
| 342 | + "sourceAccountId":{ |
| 343 | + "shape":"AccountId", |
| 344 | + "documentation":"<p> The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view. </p>" |
| 345 | + }, |
266 | 346 | "dataFilterExpression":{ |
267 | 347 | "shape":"Expression", |
268 | 348 | "documentation":"<p> See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code> and <code>Tags</code>. </p>" |
|
274 | 354 | "updatedAt":{ |
275 | 355 | "shape":"Timestamp", |
276 | 356 | "documentation":"<p>The time when the billing view was last updated. </p>" |
| 357 | + }, |
| 358 | + "derivedViewCount":{ |
| 359 | + "shape":"Integer", |
| 360 | + "documentation":"<p> The number of billing views that use this billing view as a source. </p>" |
| 361 | + }, |
| 362 | + "sourceViewCount":{ |
| 363 | + "shape":"Integer", |
| 364 | + "documentation":"<p> The number of source views associated with this billing view. </p>" |
| 365 | + }, |
| 366 | + "viewDefinitionLastUpdatedAt":{ |
| 367 | + "shape":"Timestamp", |
| 368 | + "documentation":"<p> The timestamp of when the billing view definition was last updated. </p>" |
| 369 | + }, |
| 370 | + "healthStatus":{ |
| 371 | + "shape":"BillingViewHealthStatus", |
| 372 | + "documentation":"<p> The current health status of the billing view. </p>" |
277 | 373 | } |
278 | 374 | }, |
279 | 375 | "documentation":"<p>The metadata associated to the billing view. </p>" |
280 | 376 | }, |
| 377 | + "BillingViewHealthStatus":{ |
| 378 | + "type":"structure", |
| 379 | + "members":{ |
| 380 | + "statusCode":{ |
| 381 | + "shape":"BillingViewStatus", |
| 382 | + "documentation":"<p>The current health status code of the billing view.</p>" |
| 383 | + }, |
| 384 | + "statusReasons":{ |
| 385 | + "shape":"BillingViewStatusReasons", |
| 386 | + "documentation":"<p>A list of reasons explaining the current health status, if applicable.</p>" |
| 387 | + } |
| 388 | + }, |
| 389 | + "documentation":"<p> Represents the health status of a billing view, including a status code and optional reasons for the status. </p>" |
| 390 | + }, |
| 391 | + "BillingViewHealthStatusException":{ |
| 392 | + "type":"structure", |
| 393 | + "required":["message"], |
| 394 | + "members":{ |
| 395 | + "message":{"shape":"ErrorMessage"} |
| 396 | + }, |
| 397 | + "documentation":"<p> Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than <code>HEALTHY</code>.</p>", |
| 398 | + "exception":true |
| 399 | + }, |
281 | 400 | "BillingViewList":{ |
282 | 401 | "type":"list", |
283 | 402 | "member":{"shape":"BillingViewListElement"} |
|
301 | 420 | "shape":"AccountId", |
302 | 421 | "documentation":"<p> The list of owners of the Billing view. </p>" |
303 | 422 | }, |
| 423 | + "sourceAccountId":{ |
| 424 | + "shape":"AccountId", |
| 425 | + "documentation":"<p> The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view. </p>" |
| 426 | + }, |
304 | 427 | "billingViewType":{ |
305 | 428 | "shape":"BillingViewType", |
306 | 429 | "documentation":"<p>The type of billing view.</p>" |
| 430 | + }, |
| 431 | + "healthStatus":{ |
| 432 | + "shape":"BillingViewHealthStatus", |
| 433 | + "documentation":"<p> The current health status of the billing view. </p>" |
307 | 434 | } |
308 | 435 | }, |
309 | 436 | "documentation":"<p>A representation of a billing view.</p>" |
|
318 | 445 | "BillingViewSourceViewsList":{ |
319 | 446 | "type":"list", |
320 | 447 | "member":{"shape":"BillingViewArn"}, |
321 | | - "max":1, |
| 448 | + "max":10, |
322 | 449 | "min":1 |
323 | 450 | }, |
| 451 | + "BillingViewStatus":{ |
| 452 | + "type":"string", |
| 453 | + "enum":[ |
| 454 | + "HEALTHY", |
| 455 | + "UNHEALTHY", |
| 456 | + "CREATING", |
| 457 | + "UPDATING" |
| 458 | + ] |
| 459 | + }, |
| 460 | + "BillingViewStatusReason":{ |
| 461 | + "type":"string", |
| 462 | + "enum":[ |
| 463 | + "SOURCE_VIEW_UNHEALTHY", |
| 464 | + "SOURCE_VIEW_UPDATING", |
| 465 | + "SOURCE_VIEW_ACCESS_DENIED", |
| 466 | + "SOURCE_VIEW_NOT_FOUND", |
| 467 | + "CYCLIC_DEPENDENCY", |
| 468 | + "SOURCE_VIEW_DEPTH_EXCEEDED", |
| 469 | + "AGGREGATE_SOURCE", |
| 470 | + "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT" |
| 471 | + ] |
| 472 | + }, |
| 473 | + "BillingViewStatusReasons":{ |
| 474 | + "type":"list", |
| 475 | + "member":{"shape":"BillingViewStatusReason"} |
| 476 | + }, |
324 | 477 | "BillingViewType":{ |
325 | 478 | "type":"string", |
326 | 479 | "enum":[ |
|
339 | 492 | "max":100, |
340 | 493 | "min":1 |
341 | 494 | }, |
| 495 | + "Boolean":{ |
| 496 | + "type":"boolean", |
| 497 | + "box":true |
| 498 | + }, |
342 | 499 | "ClientToken":{ |
343 | 500 | "type":"string", |
344 | 501 | "pattern":"[a-zA-Z0-9-]+" |
|
419 | 576 | "arn":{ |
420 | 577 | "shape":"BillingViewArn", |
421 | 578 | "documentation":"<p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>" |
| 579 | + }, |
| 580 | + "force":{ |
| 581 | + "shape":"Boolean", |
| 582 | + "documentation":"<p> If set to true, forces deletion of the billing view even if it has derived resources (e.g. other billing views or budgets). Use with caution as this may break dependent resources. </p>" |
422 | 583 | } |
423 | 584 | } |
424 | 585 | }, |
|
454 | 615 | }, |
455 | 616 | "documentation":"<p> The metadata that you can use to filter and group your results. </p>" |
456 | 617 | }, |
| 618 | + "DisassociateSourceViewsRequest":{ |
| 619 | + "type":"structure", |
| 620 | + "required":[ |
| 621 | + "arn", |
| 622 | + "sourceViews" |
| 623 | + ], |
| 624 | + "members":{ |
| 625 | + "arn":{ |
| 626 | + "shape":"BillingViewArn", |
| 627 | + "documentation":"<p> The Amazon Resource Name (ARN) of the billing view to disassociate source views from. </p>" |
| 628 | + }, |
| 629 | + "sourceViews":{ |
| 630 | + "shape":"BillingViewSourceViewsList", |
| 631 | + "documentation":"<p> A list of ARNs of the source billing views to disassociate. </p>" |
| 632 | + } |
| 633 | + } |
| 634 | + }, |
| 635 | + "DisassociateSourceViewsResponse":{ |
| 636 | + "type":"structure", |
| 637 | + "required":["arn"], |
| 638 | + "members":{ |
| 639 | + "arn":{ |
| 640 | + "shape":"BillingViewArn", |
| 641 | + "documentation":"<p> The ARN of the billing view that the source views were disassociated from. </p>" |
| 642 | + } |
| 643 | + } |
| 644 | + }, |
457 | 645 | "ErrorMessage":{ |
458 | 646 | "type":"string", |
459 | 647 | "max":1024, |
|
469 | 657 | "tags":{ |
470 | 658 | "shape":"TagValues", |
471 | 659 | "documentation":"<p> The specific <code>Tag</code> to use for <code>Expression</code>. </p>" |
| 660 | + }, |
| 661 | + "timeRange":{ |
| 662 | + "shape":"TimeRange", |
| 663 | + "documentation":"<p> Specifies a time range filter for the billing view data. </p>" |
472 | 664 | } |
473 | 665 | }, |
474 | 666 | "documentation":"<p> See <a href=\"https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html\">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code> and <code>Tags</code>. </p>" |
|
522 | 714 | } |
523 | 715 | } |
524 | 716 | }, |
| 717 | + "Integer":{ |
| 718 | + "type":"integer", |
| 719 | + "box":true |
| 720 | + }, |
525 | 721 | "InternalServerException":{ |
526 | 722 | "type":"structure", |
527 | 723 | "required":["message"], |
|
551 | 747 | "shape":"AccountId", |
552 | 748 | "documentation":"<p> The list of owners of the billing view. </p>" |
553 | 749 | }, |
| 750 | + "sourceAccountId":{ |
| 751 | + "shape":"AccountId", |
| 752 | + "documentation":"<p> Filters the results to include only billing views that use the specified account as a source. </p>" |
| 753 | + }, |
554 | 754 | "maxResults":{ |
555 | 755 | "shape":"BillingViewsMaxResults", |
556 | 756 | "documentation":"<p>The maximum number of billing views to retrieve. Default is 100. </p>" |
|
799 | 999 | "documentation":"<p>The request was denied due to request throttling. </p>", |
800 | 1000 | "exception":true |
801 | 1001 | }, |
| 1002 | + "TimeRange":{ |
| 1003 | + "type":"structure", |
| 1004 | + "members":{ |
| 1005 | + "beginDateInclusive":{ |
| 1006 | + "shape":"Timestamp", |
| 1007 | + "documentation":"<p> The inclusive start date of the time range. </p>" |
| 1008 | + }, |
| 1009 | + "endDateInclusive":{ |
| 1010 | + "shape":"Timestamp", |
| 1011 | + "documentation":"<p> The inclusive end date of the time range. </p>" |
| 1012 | + } |
| 1013 | + }, |
| 1014 | + "documentation":"<p> Specifies a time range with inclusive begin and end dates. </p>" |
| 1015 | + }, |
802 | 1016 | "Timestamp":{"type":"timestamp"}, |
803 | 1017 | "UntagResourceRequest":{ |
804 | 1018 | "type":"structure", |
|
0 commit comments