使用监控Amazon Backup事件 EventBridge - Amazon Backup
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

使用监控Amazon Backup事件 EventBridge

使用监控事件 EventBridge

您可以使用 EventBridge 来监视Amazon Backup事件。一个常见的用例是在备份任务失败时收到警报。 Amazon Backup每 5 分钟以最大努力 EventBridge 的方式将事件发送到一次。

本文档页面的目的是为您提供用于监控 EventBridge 的参考资料Amazon Backup。有关如何使用跟踪事件 EventBridge,请参阅《亚马逊 EventBridge 用户指南》中的 EventBridge在博客 Amazon Events and Metrics 中途配置Amazon Backup要发送 CloudWatch 的事件Amazon Backup或为Amazon服务创建规则

注意

有些事件会报告 status: COMPLETED,而另一些事件会报告 state: COMPLETED。这与 Amazon Backup API 一致。

有些状态是 Amazon Backup 控制台特有的:状态 Completed with issues 表示带有一条或多条状态消息的 Completed 作业。要监控 Completed with issues 事件,请监控带有状态消息的 COMPLETED 作业。

您可以在中跟踪以下Amazon Backup相关事件 EventBridge。

事件类型 状态 事件详细信息
备份作业状态更改 ABORTED, EXPIRED, RUNNING, PENDING

账户 ID、资源 recoveryPointArn:、详情、、字节、、、BytesTransfered backupJobId backupSizeIn、CompletionDate backupVaultName、 backupVaultArn、Arn、percetDone、resourceAr iAmRole n、资源类型 expectedCompletionDate、startBy、statusMessage

创建者:、创建者: backupPlanArn、创建者:、创建者: backupPlanId、创建者: backupPlanVersion backupRuleId

备份作业状态更改 COMPLETED, FAILED

账户 ID、资源 recoveryPointArn:、详情 backupJobId、、字节、、、BytesTransfered、CompletionDate backupVaultName、 backupVaultArn、Arn、percetDone、retryCount、resourceAr iAmRole n expectedCompletionDate、资源类型、startBy、statusMessage backupSizeIn

创建者:、创建者: backupPlanArn、创建者:、创建者: backupPlanId、创建者: backupPlanVersion backupRuleId

备份作业状态更改 CREATED

账户 ID、资源 recoveryPointArn:、详情、、状态 backupJobId、创建日期

复制作业状态更改 COMPLETED, FAILED, RUNNING

账户 ID、资源 recoveryPointArn:、详情、字节、完成日期、、创建日期、Arn backupSizeIn、Arn、Arn、Arn copyJobId、Resource iAmRole Ar destinationRecoveryPoint n、资源 destinationBackupVault类型、状态、StatusMessage

创建者:、创建者: backupPlanArn、创建者:、创建者: backupPlanId、创建者: backupPlanVersion backupRuleId

复制作业状态更改 CREATED

accountID、资源 recoveryPointArn:、详情、状态、创建日期、Arn、Arn sourceBackupVault destinationBackupVault

还原作业状态更改 CREATED, COMPLETED, FAILED, PENDING, RUNNING, STOPPED 账户 ID、资源 recoveryPointArn:、详情、状态、创建日期、 restoreJobId
恢复点状态更改 COMPLETED, PARTIAL, EXPIRED

账户 ID、资源:、资源 recoveryPointArn:、详情、字节 backupVaultName、、:deleteAT、 backupVaultArn:、CompletionDate backupSizeIn、CreationDate calculatedLifeCycle、CreationDate、Arn moveToCold StorageAt、isCreteClass、生命周期 calculatedLifeCycle:、生命周期 deleteAfterDays:、ResourceARN encryptionKeyArn iAmRole、资源类型、状态 lastRestoreTime、StorageClass moveToCold StorageAfterDays

创建者:、创建者: backupPlanArn、创建者:、创建者: backupPlanId、创建者: backupPlanVersion backupRuleId

恢复点状态更改 FAILED, COMPLETED, RUNNING, ABORTED, PENDING

账户 ID、资源 recoveryPointArn:、详情、字节、完成日期、、创建日期、分钟、Ar backupSizeIn n、percetDone createdResourceArn、、、statusMessag expectedCompletionTime e、statusMessag iAmRole e restoreJobId

恢复点状态更改 MODIFIED, DELETED

accountID、资源 recoveryPointArn:、资源:、详情、生命周期、计算生命周期、状态 backupVaultArn

备份保管库状态更改 CREATED, DELETED, MODIFIED 账户 ID、资源 backupVaultArn:、详情、、状态 backupVaultName
区域设置状态更改 MODIFIED 账户 ID、详情、ModifieDat、状态、 resourceTypeOpt InPreference
备份计划状态更改 CREATED, DELETED, MODIFIED 账户 ID、资源 backupPlanArn:、详情、、版本 ID、创建 backupPlanId日期、删除日期

如果您想以编程方式使用这些事件,请使用这些 JSON 负载示例。

事件状态 JSON 负载

备份作业:失败

{ "version": "0", "id": "710b0398-d48e-f3c3-afca-cfeb2fdaa656", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T20:15:26Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "34176239-e96d-4e1d-9fad-529dbb3c3556", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:9ab3e749-82c6-4342-9320-5edbf4918b86_beta", "backupVaultName": "9ab3e749-82c6-4342-9320-5edbf4918b86_beta", "bytesTransferred": "0", "creationDate": "2020-07-29T20:13:07.392Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "resourceArn": "arn:aws:cryo-mock:us-west-2:1112233445566:resource:dummy-fs-1", "resourceType": "CryoTestClient", "state": "FAILED", "statusMessage": "\"Backup job failed because backup vault arn:aws:backup:us-west-2:1112233445566:backup-vault:9ab3e749-82c6-4342-9320-5edbf4918b86_beta does not exist.\"", "startBy": "2020-07-30T04:13:07.392Z", "percentDone": 0, "retryCount": 3 } }

备份作业:已完成

{ "version": "0", "id": "dafac799-9b88-0134-26b7-fef4d54a134f", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T21:41:17Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:recovery-point:f1d966fe-a3bd-410b-b292-99f442d13b56_beta" ], "detail": { "backupJobId": "a827233a-d405-4a86-a440-759fa94f34dd", "backupSizeInBytes": "36048", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:9732c1b4-1091-472a-9d9f-52e0565ee39a_beta", "backupVaultName": "9732c1b4-1091-472a-9d9f-52e0565ee39a_beta", "bytesTransferred": "36048", "creationDate": "2020-07-15T21:40:31.207Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "resourceArn": "arn:aws:cryo-mock:us-west-2:1112233445566:resource:dummy-fs-1", "resourceType": "CryoTestClient", "state": "COMPLETED", "completionDate": "2020-07-15T21:41:05.921Z", "startBy": "2020-07-16T05:40:31.207Z", "percentDone": 100, "retryCount": 3 } }

备份作业:正在运行

{ "version": "0", "id": "44946c39-b519-3505-44e6-ba74afeb2e30", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T21:39:13Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "B6EC38D2-CB3C-EF0A-F5A4-3CF324EF4945", "backupSizeInBytes": "3221225472", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:e6625738-0655-4aa9-bd37-6ec1dd183b15_beta", "backupVaultName": "e6625738-0655-4aa9-bd37-6ec1dd183b15_beta", "bytesTransferred": "0", "creationDate": "2020-07-15T21:38:31.152Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/FullBackupIntegTestRole", "resourceArn": "arn:aws:ec2:us-west-2:1112233445566:volume/vol-0b5ae24f2ee72d926", "resourceType": "EBS", "state": "RUNNING", "startBy": "2020-07-16T05:00:00Z", "expectedCompletionDate": "Jul 15, 2020 9:39:07 PM", "percentDone": 99, "createdBy": { "backupPlanId": "bde0f455-4e24-4668-aeaa-4932a97f5cc5", "backupPlanArn": "arn:aws:backup:us-west-2:1112233445566:backup-plan:bde0f455-4e24-4668-aeaa-4932a97f5cc5_beta", "backupPlanVersion": "YTkzNmM0MmUtMWRhNS00Y2RkLThmZGUtNjA5NTc4NGM1YTc5", "backupPlanRuleId": "1f97bafa-14d6-4f39-94fd-94b51bd6d0d5" } } }

备份作业:已中止

{ "version": "0", "id": "4c91ceb0-b798-da82-6818-c29b3dce7543", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T21:33:16Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "58cdef95-7680-4c74-80d5-1b64093999c8", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:f59bffcd-2538-4bbe-8343-1c60dae27c27_beta", "backupVaultName": "f59bffcd-2538-4bbe-8343-1c60dae27c27_beta", "bytesTransferred": "0", "creationDate": "2020-07-15T21:33:00.803Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "resourceArn": "arn:aws:cryo-mock:us-west-2:1112233445566:resource:dummy-fs-1", "resourceType": "CryoTestClient", "state": "ABORTED", "statusMessage": "\"Backup job was stopped by user.\"", "completionDate": "2020-07-15T21:33:01.621Z", "startBy": "2020-07-16T05:33:00.803Z", "percentDone": 0 } }

备份作业:已过期

{ "version": "0", "id": "1d7bbc04-6120-1145-13b9-49b0af465328", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T13:04:57Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "01EE26DC-7107-4D8E-0C54-EAC27C662BA4", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:aws/backup/AutomatedBackupVaultDel2_beta", "backupVaultName": "aws/backup/AutomatedBackupVaultDel2_beta", "bytesTransferred": "0", "creationDate": "2020-07-29T05:10:20.077Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "resourceArn": "arn:aws:cryo-mock:us-west-2:1112233445566:resource.bbd99e4c-e974-489b-94f2-db9e8cc15dd5", "resourceType": "CryoTestClient", "state": "EXPIRED", "statusMessage": "\"Backup job failed because there was a running job for the same resource.\"", "completionDate": "2020-07-29T13:02:15.234Z", "startBy": "2020-07-29T13:00:00Z", "percentDone": 0, "createdBy": { "backupPlanId": "aws/efs/414a5bd4-f880-47ad-95f3-f085108a4c3b", "backupPlanArn": "arn:aws:backup:us-west-2:1112233445566:backup-plan:aws/efs/414a5bd4-f880-47ad-95f3-f085108a4c3b_beta", "backupPlanVersion": "NjBjOTUzZjYtYzZiNi00NjhlLWIzMTEtNWRjOWY0YTNjN2Vj", "backupPlanRuleId": "3eb0017c-f262-4211-a802-302cebb11dc2" } } }

备份作业:待处理

{ "version": "0", "id": "64dd1897-f863-31a3-9ee5-b05e306d81ff", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T20:03:30Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "2cffdb68-d6ed-485f-9f9b-8b530749f1c2", "backupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:ed1f2661-5587-48bf-8a98-fadb977bf975_beta", "backupVaultName": "ed1f2661-5587-48bf-8a98-fadb977bf975_beta", "bytesTransferred": "0", "creationDate": "2020-07-29T20:01:06.224Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "resourceArn": "arn:aws:cryo-mock:us-west-2:1112233445566:resource:testListProtectedResources-3", "resourceType": "CryoTestClient", "state": "PENDING", "statusMessage": "", "startBy": "2020-07-30T04:01:06.224Z", "percentDone": 0 } }

备份作业:已创建

{ "version": "0", "id": "29af2bf2-eace-58ab-da3a-8c0bf738d692", "detail-type": "Backup Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-22T20:32:53Z", "region": "us-east-1", "resources": [], "detail": { "backupJobId": "7e8845b5-ca30-415f-a842-e0152bf4d0ca", "state": "CREATED", "creationDate": "2020-06-22T20:32:47.466Z" } }
复制作业:失败
{ "version": "0", "id": "4660bc92-a44d-c939-4542-cda503f14855", "detail-type": "Copy Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T20:37:34Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::image/ami-00179b33a7a88cac5" ], "detail": { "copyJobId": "47C8EF56-74D8-059D-1301-C5BE1D5C926E", "backupSizeInBytes": 22548578304, "creationDate": "2020-07-15T20:36:13.239Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/RoleForEc2BackupWithNoDescribeTagsPermissions", "resourceArn": "arn:aws:ec2:us-west-2:1112233445566:instance/i-0515aee7de03f58e1", "resourceType": "EC2", "sourceBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:55aa945e-c46a-421b-aa27-f94b074e31b7_beta", "state": "FAILED", "statusMessage": "Access denied exception while trying to list tags", "completionDate": "2020-07-15T20:37:28.704Z", "destinationBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:55aa945e-c46a-421b-aa27-f94b074e31b7_beta", "destinationRecoveryPointArn": {} } }
复制作业:正在运行
{ "version": "0", "id": "d17480ae-7042-edb2-0ff5-8b94822c58e4", "detail-type": "Copy Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T22:07:48Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::snapshot/snap-03886bc8d6ef3a1f9" ], "detail": { "copyJobId": "0175DE71-5784-589F-D8AC-541ACCB4CAC8", "backupSizeInBytes": 3221225472, "creationDate": "2020-07-15T22:06:27.234Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/OrganizationCanaryTestRole", "resourceArn": "arn:aws:ec2:us-west-2:1112233445566:volume/vol-050eba21ee4d3c001", "resourceType": "EBS", "sourceBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:846869de-4589-45c3-ab60-4fbbabcdd3ec_beta", "state": "RUNNING", "destinationBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:846869de-4589-45c3-ab60-4fbbabcdd3ec_beta", "destinationRecoveryPointArn": {}, "createdBy": { "backupPlanId": "b58e3621-1c53-4997-ad8a-afc3347a850e", "backupPlanArn": "arn:aws:backup:us-west-2:1112233445566:backup-plan:b58e3621-1c53-4997-ad8a-afc3347a850e_beta", "backupPlanVersion": "Mjc4ZTRhMzUtMGE5Ni00NmQ5LWE1YmMtOWMwY2IwMTY4NWQ4", "backupPlanRuleId": "78e356d3-1a11-4f61-8585-af5d6b69bb18" } } }
复制作业:已完成
{ "version": "0", "id": "47deb974-6473-aef1-56c2-52c3eaedfceb", "detail-type": "Copy Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T22:08:04Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::snapshot/snap-03886bc8d6ef3a1f9" ], "detail": { "copyJobId": "0175DE71-5784-589F-D8AC-541ACCB4CAC8", "backupSizeInBytes": 3221225472, "creationDate": "2020-07-15T22:06:27.234Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/OrganizationCanaryTestRole", "resourceArn": "arn:aws:ec2:us-west-2:1112233445566:volume/vol-050eba21ee4d3c001", "resourceType": "EBS", "sourceBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:846869de-4589-45c3-ab60-4fbbabcdd3ec_beta", "state": "COMPLETED", "completionDate": "2020-07-15T22:07:58.111Z", "destinationBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:846869de-4589-45c3-ab60-4fbbabcdd3ec_beta", "destinationRecoveryPointArn": "arn:aws:ec2:us-west-2::snapshot/snap-0726fe70935586180", "createdBy": { "backupPlanId": "b58e3621-1c53-4997-ad8a-afc3347a850e", "backupPlanArn": "arn:aws:backup:us-west-2:1112233445566:backup-plan:b58e3621-1c53-4997-ad8a-afc3347a850e_beta", "backupPlanVersion": "Mjc4ZTRhMzUtMGE5Ni00NmQ5LWE1YmMtOWMwY2IwMTY4NWQ4", "backupPlanRuleId": "78e356d3-1a11-4f61-8585-af5d6b69bb18" } } }
复制作业:已创建
{ "version": "0", "id": "8398a4c4-8fe8-2b49-a4b9-fd4fdcd34a4e", "detail-type": "Copy Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-22T21:06:32Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::image/ami-0888b126e2170b98e" ], "detail": { "creationDate": "2020-06-22T21:06:25.754Z", "state": "CREATED", "sourceBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:ef09da5a-21a6-461f-a98f-857e9e621a17_beta", "destinationBackupVaultArn": "arn:aws:backup:us-west-2:1112233445566:backup-vault:ef09da5a-21a6-461f-a98f-857e9e621a17_beta" } }
还原作业:失败
{ "version": "0", "id": "296805cc-6ad4-32f2-fb86-4e66c84abce7", "detail-type": "Restore Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T20:19:29Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::image/ami-06b9894dfb1f9cf48" ], "detail": { "restoreJobId": "9B333A28-526B-01CD-4A77-9785A08922FD", "backupSizeInBytes": "22548578304", "creationDate": "2020-07-15T20:19:07.303Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/CanaryAWSBackupRole", "percentDone": 0, "resourceType": "EC2", "status": "FAILED", "statusMessage": "AWS Backup does not permit attaching a new instance profile to an EC2 instance. Please restore using the backed up instance profile." } }
还原作业:正在运行
{ "version": "0", "id": "6137a1f0-33f3-99ee-a01a-3d8b96fe2ad6", "detail-type": "Restore Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T20:26:06Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-west-2::snapshot/snap-0fe679ca138cfad2c" ], "detail": { "restoreJobId": "F143178C-A866-4782-3B19-BF776A1A790C", "backupSizeInBytes": "3221225472", "creationDate": "2020-07-29T20:26:00.098Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/OrganizationCanaryTestRole", "percentDone": 0, "resourceType": "EBS", "status": "RUNNING" } }
还原作业:已完成
{ "version": "0", "id": "8939bc73-dcf1-418c-9420-b9c5e097f0fb", "detail-type": "Restore Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T03:14:58Z", "region": "us-east-1", "resources": [ "arn:aws:rds:us-west-2:1112233445566:snapshot:awsbackup:job-f2494617-4fe0-47e3-969e-a652d902b475" ], "detail": { "restoreJobId": "EF332640-02A5-5978-693F-987970F09961", "backupSizeInBytes": "0", "creationDate": "2020-07-15T03:10:01.742Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/CanaryAWSBackupRole", "percentDone": 0, "resourceType": "RDS", "status": "COMPLETED", "createdResourceArn": "arn:aws:rds:us-west-2:1112233445566:db:cryo-instance7c3d1e78-987e-4450-92e1-3b6dbedb5384", "completionDate": "2020-07-15T03:14:53.128Z" } }
还原作业:待处理
{ "version": "0", "id": "0586085f-3079-cd79-10b7-908d3c3a21ea", "detail-type": "Restore Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T20:08:26Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:recovery-point:42bb8260-92cd-46a2-ab8d-b29f4edb47b1_beta" ], "detail": { "restoreJobId": "EB9CE5CB-2B92-8B66-FD16-9829F4DAAAD7", "backupSizeInBytes": "36048", "creationDate": "2020-07-29T20:08:21.083Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/MockRCBackupIntegTestRole", "percentDone": 0, "resourceType": "CryoTestClient", "status": "PENDING" } }
还原作业:已创建
{ "version": "0", "id": "af32977e-378f-2122-f985-fca4596f0709", "detail-type": "Restore Job State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-22T18:50:49Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:recovery-point:f6560d33-3660-494e-8d47-aaba939df32e_beta" ], "detail": { "restoreJobId": "267EA62F-C125-EFE5-7099-9D98FC0E422A", "creationDate": "2020-06-22T18:50:46.407Z", "state": "CREATED" } }
恢复点:已完成
{ "version": "0", "id": "ec6f75cc-989c-faaf-a642-dd0f1c95bff0", "detail-type": "Recovery Point Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-15T21:39:07Z", "region": "us-east-1", "resources": [ "arn:aws:rds:us-west-2:1112233445566:cluster-snapshot:awsbackup:job-4ece7121-d60e-00c2-5c3b-49960142d03b" ], "detail": { "backupVaultName": "e6625738-0655-4aa9-bd37-6ec1dd183b15_beta", "backupVaultArn": "arn:aws:backup:us-west-2:496821122410:backup-vault:e6625738-0655-4aa9-bd37-6ec1dd183b15_beta", "creationDate": "2020-07-15T21:38:31.152Z", "iamRoleArn": "arn:aws:iam::1112233445566:role/FullBackupIntegTestRole", "resourceType": "Aurora", "resourceArn": "arn:aws:rds:us-west-2:1112233445566:cluster:cryo-aurora-14029f40-b0b6-4a61-9fd2-9886f2771add", "status": "COMPLETED", "isEncrypted": "false", "storageClass": "WARM", "completionDate": "2020-07-15T21:39:05.689Z", "createdBy": { "backupPlanId": "bde0f455-4e24-4668-aeaa-4932a97f5cc5", "backupPlanArn": "arn:aws:backup:us-west-2:1112233445566:backup-plan:bde0f455-4e24-4668-aeaa-4932a97f5cc5_beta", "backupPlanVersion": "YTkzNmM0MmUtMWRhNS00Y2RkLThmZGUtNjA5NTc4NGM1YTc5", "backupPlanRuleId": "1f97bafa-14d6-4f39-94fd-94b51bd6d0d5" }, "lifecycle": { "deleteAfterDays": 100 }, "calculatedLifeCycle": { "deleteAt": "2020-10-23T21:38:31.152Z" } } }
恢复点:已删除
{ "version": "0", "id": "6089ee76-d856-0d7c-cee7-0a431cd43343", "detail-type": "Recovery Point Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-29T22:38:49Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-vault:157f892e-fe46-48da-9dbe-4154f91f8acc_beta", "arn:aws:rds:us-west-2:1112233445566:snapshot:awsbackup:job-c1a6d40a-32d1-4d54-bd70-bced933ef107" ], "detail": { "state": "DELETED", "lifecycle": { "deleteAfterDays": 300 }, "calculatedLifeCycle": { "deletedAt": "2021-05-25T22:29:02.452Z" } } }
恢复点:已修改
{ "version": "0", "id": "14365bb1-adef-bc00-1ee3-8fac188d7996", "detail-type": "Recovery Point Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-07-02T23:33:57Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-vault:helo12312_beta", "arn:aws:dynamodb:us-west-2:1112233445566:table/test/backup/01593730512469-033578ce" ], "detail": { "calculatedLifeCycle": { "toColdStorageAfterDays": "Fri Dec 04 22:55:11 UTC 2020" }, "state": "MODIFIED" } }
备份保管库:已创建
{ "version": "0", "id": "d415609e-5f35-d9a2-76d1-613683e4e024", "detail-type": "Backup Vault State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T23:18:19Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-vault:d8864642-155c-4283-a168-a04f40e12c97_beta" ], "detail": { "backupVaultName": "d8864642-155c-4283-a168-a04f40e12c97", "state": "CREATED" } }
备份保管库:已修改
{ "version": "0", "id": "1a2b3cd4-5e6f-7g8h-9i0j-123456k7l890", "detail-type": "Backup Vault State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T23:18:19Z", "region": "Region", "resources": [ "arn:aws:backup:Region:1112233445566:backup-vault:[nameOfTestBackup]" ], "detail": { "backupVaultName": "[vaultName]", "state": "MODIFIED", 'isLocked': 'true' } }
备份保管库:已删除
{ "version": "0", "id": "344bccc1-6d2e-da93-3adf-b3f82460294d", "detail-type": "Backup Vault State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-22T02:42:37Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-vault:e8189629-1f8e-4ed2-af7d-b32415d04db1_beta" ], "detail": { "backupVaultName": "e8189629-1f8e-4ed2-af7d-b32415d04db1", "state": "DELETED" } }
备份计划:已修改
{ "version": "0", "id": "2895aefb-dd4a-0a23-6071-2652abd92c3f", "detail-type": "Backup Plan State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T23:18:25Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-plan:83fcb8ee-2d93-42ac-b06f-591563f3f8de_beta" ], "detail": { "backupPlanId": "83fcb8ee-2d93-42ac-b06f-591563f3f8de", "versionId": "NjIwNDFjMDEtNmZlNC00M2JmLTkzZDgtNzNkZjQyNzkxNDk0", "modifiedAt": "2020-06-24T23:18:19.168Z", "state": "MODIFIED" } }
备份计划:已删除
{ "version": "0", "id": "33fc5c1d-6db2-b3d9-1e70-1c9a2c23645c", "detail-type": "Backup Plan State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T23:18:25Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-plan:83fcb8ee-2d93-42ac-b06f-591563f3f8de_beta" ], "detail": { "backupPlanId": "83fcb8ee-2d93-42ac-b06f-591563f3f8de", "versionId": "NjIwNDFjMDEtNmZlNC00M2JmLTkzZDgtNzNkZjQyNzkxNDk0", "deletionDate": "2020-06-24T23:18:19.411Z", "state": "DELETED" } }
备份计划:已创建
{ "version": "0", "id": "b64fb2d0-ae16-ff9a-faf6-0bdd0d4bfdef", "detail-type": "Backup Plan State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T23:18:19Z", "region": "us-east-1", "resources": [ "arn:aws:backup:us-west-2:1112233445566:backup-plan:2c103c5f-6d6e-4cac-9147-d3afa4c84f59_beta" ], "detail": { "backupPlanId": "2c103c5f-6d6e-4cac-9147-d3afa4c84f59", "versionId": "N2Q4OTczMzEtZmY1My00N2UwLWE3ODUtMjViYWYyOTUzZWY4", "creationDate": "2020-06-24T23:18:15.318Z", "state": "CREATED" } }
区域设置:已修改
{ "version": "0", "id": "e7ed82ba-4955-4de5-10d6-dbafcfb68b4f", "detail-type": "Region Setting State Change", "source": "aws.backup", "account": "1112233445566", "time": "2020-06-24T22:55:03Z", "region": "us-east-1", "resources": [], "detail": { "modifiedAt": "2020-06-24T22:54:57.161Z", "ResourceTypeOptInPreference": { "Aurora": true }, "state": "MODIFIED" } }

与 Amazon Backup 通知 API 的区别

您还可以通过 Amazon Simple Notification Service (Amazon SNS) 使用 Amazon Backup 通知 API 来跟踪 Amazon Backup 事件。但是, EventBridge跟踪的更改多于通知 API,包括对备份存储库的更改、复印任务状态、区域设置以及冷恢复点或温恢复点的数量。