sns-notification-opsgenie v1.1.0
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
.