sns-notification-opsgenie
Project description
SNS Notification OpsGenie
This repository contains AWS CDK constructs which can be used for sns to notify to Opsgenie using projen + jsii and publishing it to npm and pypi repositories..
Table of Contents
About projen
projen is a tool to write your project configuration using code instead of managing it yourself.projen synthesizes project configuration files such as package.json, tsconfig.json, .gitignore, GitHub Workflows, eslint, jest, etc from a well-typed definition written in JavaScript.
About jsii
jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS CDK to deliver polyglot libraries from a single codebase!
Steps For using a sns-notification-opsgenie
in your cdk Construct
-
Install the package based on your language:
If you are using python, use below comand in your terminal:
pip install sns-notification-opsgenie
If you are using Typescript, use below comand in your terminal:
npm i sns-notification-opsgenie
-
Next,import the package in your cdk construct based on your language:
for Python:
from sns-notification-opsgenie import SnsNotifyOpsgenie
for Typescript:
import { SnsNotifcationOpsgenie } from sns-notification-opsgenie
-
Use the method
getOpgsgenieTopicArn
by passingAWS AcccountId
,OpsGenie Priority
and optionallyAWS Region
. In case you do not pass any region, default region will beeu-west-1
.
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
Built Distribution
Hashes for sns-notification-opsgenie-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68fce20a8e1782352da1d91eca4937898a3cc4a9f3db21b70d1d7bb366ef927 |
|
MD5 | 3cd2c1755244ebbb57212253d9095add |
|
BLAKE2b-256 | 1efb5b3751c088315b9b3afa0a23cf47cb66e474e5af1466de20e942e1d6105c |
Hashes for sns_notification_opsgenie-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0985d3fafb95f9e275eb5442c7905c1637b4d998d0ca1df1df49c8793a273445 |
|
MD5 | 844796787bf05849dc7d5c06e7b91896 |
|
BLAKE2b-256 | 9c83c7ee5ebf46f4be4c02d02115a8bae52f5164f1f81884beaa70d4f7e50279 |