diff --git a/events/s3_batch_job.go b/events/s3_batch_job.go index f2626edd..5d8dc3c0 100644 --- a/events/s3_batch_job.go +++ b/events/s3_batch_job.go @@ -2,6 +2,18 @@ package events +// S3BatchJobResultCode represents the result of an S3BatchJobTask (i.e. +// succeeded, permanent failure, or temmporary failure) +type S3BatchJobResultCode string + +// S3BatchJobResultCode represents the result of an S3BatchJobTask (i.e. +// succeeded, permanent failure, or temmporary failure) +const ( + S3BatchJobResultCodeSucceeded S3BatchJobResultCode = "Succeeded" + S3BatchJobResultCodeTemporaryFailure S3BatchJobResultCode = "TemporaryFailure" + S3BatchJobResultCodePermanentFailure S3BatchJobResultCode = "PermanentFailure" +) + // S3BatchJobEvent encapsulates the detail of a s3 batch job type S3BatchJobEvent struct { InvocationSchemaVersion string `json:"invocationSchemaVersion"`