本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
GetKeyLastUsage
下列範例顯示 GetKeyLastUsage 操作的 AWS CloudTrail 日誌項目。 AWS KMS 當您呼叫GetKeyLastUsage操作時, 會記錄如下所示的項目,或在 主控台中檢視 KMS 金鑰詳細資訊。 AWS KMS
{ "eventVersion": "1.11", "userIdentity": { "type": "IAMUser", "principalId": "EX_PRINCIPAL_ID", "arn": "arn:aws:iam::111122223333:user/Alice", "accountId": "111122223333", "accessKeyId": "EXAMPLE_KEY_ID", "userName": "Alice" }, "eventTime": "2026-04-27T17:11:06Z", "eventSource": "kms.amazonaws.com", "eventName": "GetKeyLastUsage", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.0", "userAgent": "AWS Internal", "requestParameters": { "keyId": "1234abcd-12ab-34cd-56ef-1234567890ab" }, "responseElements": null, "requestID": "93746dd6-63bc-11e4-bc2b-4198b6150d5c", "eventID": "4aa7e4d5-d047-452a-a5a6-2cce282a7e82", "readOnly": true, "resources": [{ "accountId": "111122223333", "type": "AWS::KMS::Key", "ARN": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" }], "eventType": "AwsApiCall", "recipientAccountId": "111122223333" }