

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Resource Groups ライフサイクルイベントの構造と構文
<a name="monitor-groups-syntax"></a>

**Topics**
+ [`detail` フィールドの構造](monitor-groups-syntax-detail.md)
+ [さまざまなユースケースに対応した EventBridge カスタムイベントパターンの例](monitor-groups-example-eventbridge-filters.md)

のライフサイクルイベントは AWS Resource Groups 、次の一般的な形式の [JSON](https://json.org) オブジェクト文字列の形式をとります。

```
{
    "version": "0",
    "id": "08f00e24-2e30-ec44-b824-8acddf1ac868",
    "detail-type": "ResourceGroups Group ... Change",
    "source": "aws.resource-groups",
    "account": "123456789012",
    "time": "2020-09-29T09:59:01Z",
    "region": "us-east-1",
    "resources": [
        "arn:aws:resource-groups:us-east-1:123456789012:group/MyGroupName"
    ],
    "detail": {
        ...
    }
}
```

すべての Amazon EventBridge イベントに共通するフィールドの詳細については、「Amazon EventBridge ユーザーガイド」の「[Amazon EventBridge イベント](https://docs.aws.amazon.com//eventbridge/latest/userguide/aws-events.html)」を参照してください。Resource Groups 固有の詳細を以下の表で説明します。


| フィールド名 | タイプ | 説明 | 
| --- | --- | --- | 
| detail-type | 文字列 | Resource Groups の場合、`detail-type` フィールドは常に以下のいずれかの値です。[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/ARG/latest/userguide/monitor-groups-syntax.html) | 
| source | String | Resource Groups の場合、この値は常に "aws.resource-groups" です。 | 
| resources | Amazon リソースネーム (ARN) 配列 | このフィールドには常に、このイベントをトリガーした変更が加えられたグループの [Amazon リソースネーム (ARN)](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) が含まれます。<br />このフィールドには、該当する場合、グループに追加またはグループから削除されたリソースの ARN も含めることができます。 | 
| `detail` | JSON オブジェクトの文字列 | これはイベントのペイロードです。detail フィールドの内容は、detail-type の値によって異なります。[詳細については、次のセクションを参照してください。](monitor-groups-syntax-detail.md) | 