snsevents

package
v0.0.0-...-4e65831 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudtrailSNSEvent

type CloudtrailSNSEvent struct {
	S3Bucket     string   `json:"s3Bucket,omitempty"`
	S3ObjectKeys []string `json:"s3ObjectKey,omitempty"`
}

CloudtrailSNSEvent event provided in the default SNS topic when a new file is written to the s3 bucket

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor translates s3 events into sns messages

func NewProcessor

func NewProcessor(cfg flags.S3Processor, awscfg *aws.Config) *Processor

NewProcessor setup a new s3 event processor

func (*Processor) Handler

func (ps *Processor) Handler(ctx context.Context, payload []byte) ([]byte, error)

Handler send s3 events to sns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL