本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
搭配 使用 Amazon EventBridge AWS Billing Conductor
AWS Billing Conductor 已與 Amazon EventBridge 整合,Amazon EventBridge 是一種事件匯流排服務,可用來將應用程式與來自各種來源的資料連線。如需詳細資訊,請參閱「Amazon EventBridge 使用者指南」。
您可以使用 Amazon EventBridge 來接收 AWS Billing Conductor 事件。然後,當事件符合您在規則中指定的值時,Amazon EventBridge 會根據您建立的規則叫用一或多個目標動作。根據事件的類型,您可以擷取事件資訊、傳送通知或執行其他動作。若要設定 AWS Billing Conductor 事件的 Amazon EventBridge 規則,請參閱《Amazon EventBridge 使用者指南》中的在 Amazon 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 } ] } }