View a markdown version of this page

将 Amazon EventBridge 与 AWS Billing Conductor - AWS 计费指挥家

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

将 Amazon EventBridge 与 AWS Billing Conductor

AWS Billing Conductor 已与 Amazon 集成 EventBridge,Amazon 是一项事件总线服务,可用于将应用程序与来自各种来源的数据连接起来。有关更多信息,请参阅 Amazon EventBridge 用户指南

您可以使用 Amazon EventBridge 来接收 AWS Billing Conductor 活动。然后,当事件与您在规则中指定的值相匹配时,Amazon 会根据您创建的规则 EventBridge 调用一个或多个目标操作。根据事件的类型,您可以捕获事件信息、发送通知或执行其他操作。要为 AWS Billing Conductor 事件设置亚马逊 EventBridge 规则,请参阅亚马逊 EventBridge 用户指南中的 EventBridge在亚马逊中创建规则

示例:Amazon 的 EventBridge 活动适用于 AWS Billing Conductor

AWS Billing Conductor 当接受账单转账但未配置相应的账单组时,或者当与有效账单转账关联的账单组被删除时,会发出包含Billing Group Configuration Recommended for Billing Transfer详细信息的每日摘要事件。接受账单转账后,我们建议为账单来源账户的组织配置账单组,这样该组织中的账户就可以访问账单和成本管理工具中的预计成本数据。如果没有账单组,使用量数据仍可通过 CloudWatch,但是配置账单组可以让账单来源账户管理员更轻松地监控成本,例如通过预算配置。

注意

目前仅美国东部(弗吉尼亚北部)区域 (us-east-1) 支持此事件类型。

以下是此事件的概括示例。您可以使用订阅 Amazon EventBridge 活动(例如本次活动) AWS 用户通知服务。

{ "account": "<account ID>", // 12-digit account ID "region": "us-east-1", // Currently only us-east-1 is supported "detail-type": "Billing Group Configuration Recommended for Billing Transfer", "source": "aws.billingconductor", "version": "0", "time": "<date>", // Format: yyyy-MM-dd'T'HH:mm:ssZ "id": "<id>", // alphanumeric string "resources": [], "detail": { "targetDate": "<date>", // Format: yyyy-MM-dd "recipientId": "<account ID>", // 12-digit recipient account ID "eventBridgeEventId": "<event ID>", // unique event identifier "directTransfersAccepted": [ { "transferArn": "<transfer ARN>", // ARN of the one-level billing transfer "billSourceAccountId": "<account ID>", // 12-digit bill source account ID "effectiveTimestamp": "<timestamp>", // Format: yyyy-MM-dd'T'HH:mm:ssZ "acceptedTimestamp": "<timestamp>" // Format: yyyy-MM-dd'T'HH:mm:ssZ } ], "indirectTransfersAccepted": [ { "receiverTransferTransferArn": "<transfer ARN>", // ARN of the receiver's transfer "transferBillSourceTransferArn": "<transfer ARN>", // ARN of the bill source's transfer "billTransferAccountId": "<account ID>", // 12-digit bill transfer account ID "billSourceAccountId": "<account ID>", // 12-digit bill source account ID "effectiveTimestamp": "<timestamp>", // Format: yyyy-MM-dd'T'HH:mm:ssZ "acceptedTimestamp": "<timestamp>" // Format: yyyy-MM-dd'T'HH:mm:ssZ } ], "directBillingGroupsDeleted": [ { "billingGroupArn": "<billing group ARN>", // ARN of the deleted billing group "billSourceAccountId": "<account ID>", // 12-digit bill source account ID "transferId": "<transfer ID>", // associated transfer ID "deletedTimestamp": "<timestamp>" // Format: yyyy-MM-dd'T'HH:mm:ssZ } ], "indirectBillingGroupsDeleted": [ { "billingGroupArn": "<billing group ARN>", // ARN of the deleted billing group "billTransferAccountId": "<account ID>", // 12-digit bill transfer account ID "billSourceAccountId": "<account ID>", // 12-digit bill source account ID "receiverTransferTransferId": "<transfer ID>", // receiver's transfer ID "transferBillSourceTransferId": "<transfer ID>", // bill source's transfer ID "deletedTimestamp": "<timestamp>" // Format: yyyy-MM-dd'T'HH:mm:ssZ } ] } }