summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 09:53:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 09:53:12 +0000
commit76de6ffb9d9a797659c72da7898c60be5ba88eb3 (patch)
tree2668f1823ce044af1ae937e9de38d0f166bcd478
parenta6afb1df354effbb93d1cecd42bb38b06c9a6fed (diff)
automatic import of python-cdk-events-notify
-rw-r--r--.gitignore1
-rw-r--r--python-cdk-events-notify.spec365
-rw-r--r--sources1
3 files changed, 367 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c1d90c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cdk-events-notify-2.0.434.tar.gz
diff --git a/python-cdk-events-notify.spec b/python-cdk-events-notify.spec
new file mode 100644
index 0000000..47e591c
--- /dev/null
+++ b/python-cdk-events-notify.spec
@@ -0,0 +1,365 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cdk-events-notify
+Version: 2.0.434
+Release: 1
+Summary: The Events Notify AWS Construct lib for AWS CDK
+License: Apache-2.0
+URL: https://github.com/neilkuan/cdk-events-notify.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/12/1c/f62f7d74832846bf6439ab7fc69b3f0f498d1c95d7ca99daf425e8e7f23d/cdk-events-notify-2.0.434.tar.gz
+BuildArch: noarch
+
+Requires: python3-aws-cdk-lib
+Requires: python3-constructs
+Requires: python3-jsii
+Requires: python3-publication
+Requires: python3-typeguard
+
+%description
+[![NPM version](https://badge.fury.io/js/cdk-events-notify.svg)](https://badge.fury.io/js/cdk-events-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-events-notify.svg)](https://badge.fury.io/py/cdk-events-notify)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-events-notify?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-events-notify?label=pypi&color=blue)
+
+# cdk-events-notify
+
+`cdk-events-notify` is an AWS CDK Construct Library that provides you know who login in your aws console.
+
+## Why
+
+It’s just a small feature at the moment,
+Provides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or swith role event through Cloudtrail.
+
+> Welcome to contribute another event notify case you want.
+
+## Overview
+
+![](./images/overview.png)
+
+### Now support
+
+* Line Notify
+* Slack ([webhooks](https://api.slack.com/messaging/webhooks#posting_with_webhooks))
+
+## You need enable one `Management events` in your account.
+
+> more see https://aws.amazon.com/tw/cloudtrail/pricing/
+> ![](./images/management-events.png)
+
+# You need Line Notify access token
+
+> more see [line notify docs](https://notify-bot.line.me/doc/en/)
+
+![](./images/access-token.png)
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-events-notify
+or
+npm install cdk-events-notify@latest
+
+// for CDKv1
+npm install cdk-events-notify@cdkv1
+```
+
+## πŸ’‘πŸ’‘πŸ’‘ please click [here](https://github.com/neilkuan/cdk-events-notify/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.πŸ’‘πŸ’‘πŸ’‘
+
+## Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EventNotify } from 'cdk-events-notify';
+
+const app = new cdk.App();
+const stack = new cdk.Stack(app, 'integ-stack', { env });
+new EventNotify(stack, 'LineEventNotify', { lineNotifyToken: process.env.LINE_NOTIFY_TOKEN });
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+cdk destroy
+```
+
+### Finally
+
+* line
+ ![](./images/line-chat.jpg)
+* slack
+ ![](./images/slack.jpg)
+
+## More about EventBridge and Lambda
+
+* [EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)
+* [Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)
+
+> Note: Event Bridge can not cross region , if you console sign in not the cdk-events-notify region will not get the evnet in cloudtrail see this [docs](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-regions)
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/stars/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/stargazers)
+[![Forkers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/forks/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/network/members)
+
+
+%package -n python3-cdk-events-notify
+Summary: The Events Notify AWS Construct lib for AWS CDK
+Provides: python-cdk-events-notify
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cdk-events-notify
+[![NPM version](https://badge.fury.io/js/cdk-events-notify.svg)](https://badge.fury.io/js/cdk-events-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-events-notify.svg)](https://badge.fury.io/py/cdk-events-notify)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-events-notify?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-events-notify?label=pypi&color=blue)
+
+# cdk-events-notify
+
+`cdk-events-notify` is an AWS CDK Construct Library that provides you know who login in your aws console.
+
+## Why
+
+It’s just a small feature at the moment,
+Provides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or swith role event through Cloudtrail.
+
+> Welcome to contribute another event notify case you want.
+
+## Overview
+
+![](./images/overview.png)
+
+### Now support
+
+* Line Notify
+* Slack ([webhooks](https://api.slack.com/messaging/webhooks#posting_with_webhooks))
+
+## You need enable one `Management events` in your account.
+
+> more see https://aws.amazon.com/tw/cloudtrail/pricing/
+> ![](./images/management-events.png)
+
+# You need Line Notify access token
+
+> more see [line notify docs](https://notify-bot.line.me/doc/en/)
+
+![](./images/access-token.png)
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-events-notify
+or
+npm install cdk-events-notify@latest
+
+// for CDKv1
+npm install cdk-events-notify@cdkv1
+```
+
+## πŸ’‘πŸ’‘πŸ’‘ please click [here](https://github.com/neilkuan/cdk-events-notify/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.πŸ’‘πŸ’‘πŸ’‘
+
+## Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EventNotify } from 'cdk-events-notify';
+
+const app = new cdk.App();
+const stack = new cdk.Stack(app, 'integ-stack', { env });
+new EventNotify(stack, 'LineEventNotify', { lineNotifyToken: process.env.LINE_NOTIFY_TOKEN });
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+cdk destroy
+```
+
+### Finally
+
+* line
+ ![](./images/line-chat.jpg)
+* slack
+ ![](./images/slack.jpg)
+
+## More about EventBridge and Lambda
+
+* [EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)
+* [Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)
+
+> Note: Event Bridge can not cross region , if you console sign in not the cdk-events-notify region will not get the evnet in cloudtrail see this [docs](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-regions)
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/stars/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/stargazers)
+[![Forkers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/forks/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/network/members)
+
+
+%package help
+Summary: Development documents and examples for cdk-events-notify
+Provides: python3-cdk-events-notify-doc
+%description help
+[![NPM version](https://badge.fury.io/js/cdk-events-notify.svg)](https://badge.fury.io/js/cdk-events-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-events-notify.svg)](https://badge.fury.io/py/cdk-events-notify)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-events-notify?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-events-notify?label=pypi&color=blue)
+
+# cdk-events-notify
+
+`cdk-events-notify` is an AWS CDK Construct Library that provides you know who login in your aws console.
+
+## Why
+
+It’s just a small feature at the moment,
+Provides you to trigger Lambda Function push notifications to Line Notify or Slack when you discover Console Login event or swith role event through Cloudtrail.
+
+> Welcome to contribute another event notify case you want.
+
+## Overview
+
+![](./images/overview.png)
+
+### Now support
+
+* Line Notify
+* Slack ([webhooks](https://api.slack.com/messaging/webhooks#posting_with_webhooks))
+
+## You need enable one `Management events` in your account.
+
+> more see https://aws.amazon.com/tw/cloudtrail/pricing/
+> ![](./images/management-events.png)
+
+# You need Line Notify access token
+
+> more see [line notify docs](https://notify-bot.line.me/doc/en/)
+
+![](./images/access-token.png)
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-events-notify
+or
+npm install cdk-events-notify@latest
+
+// for CDKv1
+npm install cdk-events-notify@cdkv1
+```
+
+## πŸ’‘πŸ’‘πŸ’‘ please click [here](https://github.com/neilkuan/cdk-events-notify/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.πŸ’‘πŸ’‘πŸ’‘
+
+## Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EventNotify } from 'cdk-events-notify';
+
+const app = new cdk.App();
+const stack = new cdk.Stack(app, 'integ-stack', { env });
+new EventNotify(stack, 'LineEventNotify', { lineNotifyToken: process.env.LINE_NOTIFY_TOKEN });
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+cdk destroy
+```
+
+### Finally
+
+* line
+ ![](./images/line-chat.jpg)
+* slack
+ ![](./images/slack.jpg)
+
+## More about EventBridge and Lambda
+
+* [EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html)
+* [Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)
+
+> Note: Event Bridge can not cross region , if you console sign in not the cdk-events-notify region will not get the evnet in cloudtrail see this [docs](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-regions)
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/stars/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/stargazers)
+[![Forkers repo roster for @neilkuan/cdk-events-notify](https://reporoster.com/forks/neilkuan/cdk-events-notify)](https://github.com/neilkuan/cdk-events-notify/network/members)
+
+
+%prep
+%autosetup -n cdk-events-notify-2.0.434
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-cdk-events-notify -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.434-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0653558
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7ed674ec8d5618523eb0c85aeba380ae cdk-events-notify-2.0.434.tar.gz