Class S3EventNotificationRecord
java.lang.Object
software.amazon.awssdk.eventnotifications.s3.model.S3EventNotificationRecord
A record representing a notification for a single event. The
Event message structure
page of S3 user guide contains additional information about the different fields of the
notification record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The name of the event type for this notification.The service from which this event was generated, usually"aws:s3"
.The eventVersion key value contains a major and minor version in the form<major>.<minor>
.The GlacierEventData is only visible for s3:ObjectRestore:Completed events.The IntelligentTieringEventData key is only visible for S3 Intelligent-Tiering related events.The LifecycleEventData is only visible for S3 Lifecycle transition related events.The ReplicationEventData is only visible for replication related events.Request Parameters contains thesourceIPAddress
field, which is the ip address where request came from.The responseElements key value is useful if you want to trace a request by following up with AWS Support.getS3()
Contains information about the bucket and object involved in the event.The user identity contains theprincipalId
field, which has the Amazon customer ID of the user who caused the event.int
hashCode()
void
setAwsRegion
(String awsRegion) void
setEventName
(String eventName) void
setEventSource
(String eventSource) void
setEventTime
(Instant eventTime) void
setEventVersion
(String eventVersion) void
setGlacierEventData
(GlacierEventData glacierEventData) void
setIntelligentTieringEventData
(IntelligentTieringEventData intelligentTieringEventData) void
setLifecycleEventData
(LifecycleEventData lifecycleEventData) void
setReplicationEventData
(ReplicationEventData replicationEventData) void
setRequestParameters
(RequestParameters requestParameters) void
setResponseElements
(ResponseElements responseElements) void
void
setUserIdentity
(UserIdentity userIdentity) toString()
-
Constructor Details
-
S3EventNotificationRecord
public S3EventNotificationRecord()
-
-
Method Details
-
getAwsRegion
-
getEventName
The name of the event type for this notification. For more information about the various event type, visit the Event notification types and destinations page of S3 user guide. It references the list of event notification types but doesn't contain the s3: prefix.- Returns:
- the event name.
-
getEventSource
The service from which this event was generated, usually"aws:s3"
.- Returns:
- the event source.
-
getEventTime
- Returns:
- The time, in ISO-8601 format, for example, 1970-01-01T00:00:00.000Z, when Amazon S3 finished processing the request.
-
getEventVersion
The eventVersion key value contains a major and minor version in the form<major>.<minor>
.- Returns:
- the event version.
-
getRequestParameters
Request Parameters contains thesourceIPAddress
field, which is the ip address where request came from.- Returns:
- the request parameter containing the source IP address.
-
getResponseElements
The responseElements key value is useful if you want to trace a request by following up with AWS Support. Both x-amz-request-id and x-amz-id-2 help Amazon S3 trace an individual request. These values are the same as those that Amazon S3 returns in the response to the request that initiates the events. This is so they can be used to match the event to the request.- Returns:
- The response element containing the trace information.
-
getS3
Contains information about the bucket and object involved in the event. The object key name value is URL encoded. For example, "red flower.jpg" becomes "red+flower.jpg" (Amazon S3 returns "application/x-www-form-urlencoded" as the content type in the response).- Returns:
- the instance of
S3
containing object information.
-
getUserIdentity
The user identity contains theprincipalId
field, which has the Amazon customer ID of the user who caused the event.- Returns:
- the user identity containing the
principalId
.
-
getGlacierEventData
The GlacierEventData is only visible for s3:ObjectRestore:Completed events. Contains information related to restoring an archived object. For more information about archive and storage classes, see Restoring an archived object- Returns:
- the glacier event data.
-
getLifecycleEventData
The LifecycleEventData is only visible for S3 Lifecycle transition related events.- Returns:
- the lifecycle event data.
-
getIntelligentTieringEventData
The IntelligentTieringEventData key is only visible for S3 Intelligent-Tiering related events.- Returns:
- the intelligent tiering event data.
-
getReplicationEventData
The ReplicationEventData is only visible for replication related events.- Returns:
-
setAwsRegion
-
setEventName
-
setEventSource
-
setEventVersion
-
setRequestParameters
-
setResponseElements
-
setS3
-
setUserIdentity
-
setGlacierEventData
-
setLifecycleEventData
-
setIntelligentTieringEventData
-
setReplicationEventData
-
setEventTime
-
equals
-
hashCode
public int hashCode() -
toString
-