

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

# AWS 用户通知服务 与一起使用 AWS Billing Conductor
<a name="using-user-notifications"></a>

您可以使用设置发送渠道[AWS 用户通知服务](https://docs.aws.amazon.com/notifications/latest/userguide/what-is-service.html)来通知您有关 AWS Billing Conductor 事件的信息。当事件与指定的规则匹配时，您会收到通知。您可以通过多种渠道接收事件通知，包括电子邮件、[Amazon Chime、Microsoft Teams 和 Slack 等聊天应用程序中的 Amazon Q](https://docs.aws.amazon.com/chatbot/latest/adminguide/what-is.html) Developer 或[AWS Console Mobile Application](https://docs.aws.amazon.com/consolemobileapp/latest/userguide/what-is-consolemobileapp.html)推送通知。您还可以使用[控制台中的控制台通知中心](https://console.aws.amazon.com/notifications/)查看通知。 AWS 用户通知服务 

AWS 用户通知服务 还支持聚合，这可以减少您在特定事件期间收到的通知数量。有关更多信息，请参阅 [AWS 用户通知服务 《用户指南》](https://docs.aws.amazon.com/notifications/latest/userguide/what-is-service.html)。

要使用 AWS 用户通知服务，您必须拥有正确的 AWS Identity and Access Management (IAM) 权限。有关配置您的 IAM 权限的更多信息，请参阅*AWS 用户通知服务 用户指南*中的[创建通知配置](https://docs.aws.amazon.com/notifications/latest/userguide/getting-started.html#getting-started-step1)。

下表列出了支持 AWS Billing Conductor 的事件类型 AWS 用户通知服务。


**AWS Billing Conductor 事件类型**  

| 事件类型 | 说明 | 
| --- | --- | 
| 账单转账推荐的账单组配置 | 账单转账事件的每日摘要，其中已接受的转账未配置相应的账单组，或者与有效账单转账关联的账单组已删除。接受账单转账后，我们建议为账单来源账户的组织配置账单组，这样该组织中的账户就可以访问账单和成本管理工具中的预计成本数据。如果没有账单组，使用量数据仍可通过 CloudWatch，但是配置账单组可以让账单来源账户管理员更轻松地监控成本，例如通过预算配置。目前仅美国东部（弗吉尼亚北部）区域 (us-east-1) 支持此事件类型。 | 

## 事件示例
<a name="using-user-notifications-example-event"></a>

以下是来自`Billing Group Configuration Recommended for Billing Transfer`的事件的示例 AWS Billing Conductor。此事件与源 EventBridge `aws.billingconductor`一起发送给 Amazon。

```
{
  "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
      }
    ]
  }
}
```