get_app_infra_cost_summary
async
¶
get_app_infra_cost_summary(
app_id: AppId,
started_at: Timestamp,
ended_at: Timestamp,
cost_type: CostType,
scope: RequestScope,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
group_by: Optional[InfraCostSummaryDimension] = None,
filter_by: Optional[InfraCostSummaryFilterBy] = None,
) -> GetAppInfraCostSummaryResponse
Returns infrastructure cost for an app, grouped by service (the default), user, or time. To use this operation, you must also have permission for ce:GetCostAndUsage on your primary billing view.
Parameters:
-
app_id(AppId) –The ID of the app.
-
started_at(Timestamp) –Start of the reporting window.
-
ended_at(Timestamp) –End of the reporting window. Must be after startedAt, at most 720 hours after it, and not in the future.
-
cost_type(CostType) –Specifies which cost data to return.
-
group_by(Optional[InfraCostSummaryDimension], default:None) –The breakdown dimension. Defaults to SERVICE when omitted.
-
filter_by(Optional[InfraCostSummaryFilterBy], default:None) –Filter constraints keyed by dimension. A filter dimension may differ from groupBy.
-
scope(RequestScope) –Required. The environment: live or sandbox.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appmonetization/_services/async_app_monetization.py
1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 | |