Skip to main content

Notification System

Project description

AWS Slack Notifier

A simple Python package to send Slack notifications via AWS Lambda.

Installation

pip3 demo_notification_6100

Usage

from demo_notification_6100 import SlackNotifier

# Initialize the notifier
notifier = SlackNotifier(region_name='us-east-1')

# Send a notification
notifier.notify(
    status="SUCCESS",
    message="Job completed successfully",
    client="MyGlueJob"
)

# Send a notification with error details
notifier.notify(
    status="ERROR",
    message="Job failed",
    error="ValueError: Invalid input",
    stackTrace="Full stack trace here",
    client="MyGlueJob"
)

Requirements

  • AWS Lambda function named 'trigger-slack-notification' that handles Slack messaging
  • Appropriate AWS IAM permissions to invoke Lambda functions
  • boto3 library

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demo_notification_6100-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demo_notification_6100-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file demo_notification_6100-0.1.0.tar.gz.

File metadata

  • Download URL: demo_notification_6100-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for demo_notification_6100-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9390101dddbdddd652872460323160b68611570d04b75296f2bbf829d9407a8a
MD5 f57b08cb2d0d640f07aec7abc187d572
BLAKE2b-256 c01911ecc5d5195bf7ca218f4d5b18d460166bf1eb5ec386c484cd0c5a28759d

See more details on using hashes here.

File details

Details for the file demo_notification_6100-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for demo_notification_6100-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3282aeb775dae9db69647479170cdb5fe7005b56e6bdf5432838fc6cbb91297
MD5 90471106fcb9a8e8f13da77b962bd8f3
BLAKE2b-256 ca58ec52065432b18b22e6e29cd7fdd30636d37674c8075a76cade73cf1f09b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page