本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
CreateAlias
下列範例顯示作CreateAlias業的AWS CloudTrail記錄項目。resources
元素包含別名和 KMS 金鑰資源的欄位。如需有關在 AWS KMS 中建立別名的資訊,請參閱 建立別名。
CloudTrail 在 2022 年 12 月或之後記錄的此作業的記錄項目會在responseElements.keyId
值中包含受影響 KMS 金鑰的金鑰 ARN,即使此作業不會傳回金鑰 ARN。
{ "eventVersion": "1.08", "userIdentity": { "type": "IAMUser", "principalId": "EX_PRINCIPAL_ID", "arn": "arn:aws:iam::111122223333:user/Alice", "accountId": "111122223333", "accessKeyId": "EXAMPLE_KEY_ID", "userName": "Alice" }, "eventTime": "2022-08-14T23:08:31Z", "eventSource": "kms.amazonaws.com", "eventName": "CreateAlias", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "AWS Internal", "requestParameters": { "aliasName": "alias/ExampleAlias", "targetKeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" }, "responseElements": { "keyId":"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" }, "requestID": "caec1e0c-ce03-419e-bdab-6ab1f7c57c01", "eventID": "2dd6e784-8286-46a6-befd-d64e5a02fb28", "readOnly": false, "resources": [ { "accountId": "111122223333", "type": "AWS::KMS::Key", "ARN": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" }, { "accountId": "111122223333", "type": "AWS::KMS::Key", "ARN": "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" } ], "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "111122223333", "eventCategory": "Management" }