AWS Storage Gateway User Guide
Getting Notified About File Operations
Example Example—Refresh Cache Notification
The following example shows a refresh cache notification that is sent to you through CloudWatch when
the event matches the rule you created. This notification is in JSON format. You can configure this
notification to be delivered to the target as a text message.
{
"version": "2012-10-17",
"id": "2649b160-d59d-c97f-3f64-8aaa9ea6aed3",
"detail-type": "Storage Gateway Refresh Cache Event",
"source": "aws.storagegateway",
"account": "209870788375",
"time": "2017-11-06T21:34:42Z",
"region": "us-east-2",
"resources": [
"arn:aws:storagegateway:us-east-2:123456789011:share/share-F123D451",
"arn:aws:storagegateway:us-east-2:123456789011:gateway/sgw-712345DA"
],
"detail": {
"event-type": "refresh-complete",
"notification-id": "1c14106b-a18a-4890-9d47-a1a755ef5e47",
"started": "2018-02-06T21:34:42Z",
"completed": "2018-02-06T21:34:53Z"
},
"folderList": ["/"]
}
Field names
Description
version
The current version of the IAM policy.
id
The ID that identifies the IAM policy.
time
When the request to refresh the files in working-
set was made.
detail-type
A description of the type of the event that
triggered notification that was sent.
source
The AWS service that is the source of the request
and notification.
account
The id of the AWS account where the request and
notification were generated from.
source
The AWS service that is the source of the request
and the notification.
event-type
The CloudWatch Events that triggered the
notification.
notification-id
The randomly generated ID of the notification
that was sent. This ID is in UUID format. This is
the notification ID that is returned when you call
RefreshCache
.
started
when the gateway received the
RefreshCache
request and the refresh was started..
completed
When the refresh of the working-set was
completed.
API Version 2013-06-30
202