package
1.0.0
Repository: https://github.com/apex/go-apex.git
Documentation: pkg.go.dev

# README

Apex CloudWatch

Providing CloudWatch Events for Apex

Features

Currently only supports the following event details:

  • AutoScaling
  • EC2
  • Console Sign-In
  • Schedule

Unknown events will have empty details

Example

package main

import (
    "log"

	"github.com/apex/go-apex"
	"github.com/apex/go-apex/cloudwatch"
)

func main() {
	cloudwatch.HandleFunc(func(evt *cloudwatch.Event, ctx *apex.Context) error {
        log.Println("Handler called")
        return nil
    }
}

GitHub @sthulb  ·  Twitter @sthulb

# Functions

Handle CloudWatch Events with handler.
HandleFunc handles CloudWatch Events with callback function.

# Structs

APIDetail of the triggered event This is useful for API or Console events.
AutoScalingGroupDetail of the triggered event.
EC2Detail of the triggered event.
Event represents a CloudWatch Event.
No description provided by the author

# Interfaces

Handler handles CloudWatch Events.

# Type aliases

HandlerFunc unmarshals CloudWatch Events before passing control.