diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:53:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 09:53:12 +0000 |
| commit | 76de6ffb9d9a797659c72da7898c60be5ba88eb3 (patch) | |
| tree | 2668f1823ce044af1ae937e9de38d0f166bcd478 /python-cdk-events-notify.spec | |
| parent | a6afb1df354effbb93d1cecd42bb38b06c9a6fed (diff) | |
automatic import of python-cdk-events-notify
Diffstat (limited to 'python-cdk-events-notify.spec')
| -rw-r--r-- | python-cdk-events-notify.spec | 365 |
1 files changed, 365 insertions, 0 deletions
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 +[](https://badge.fury.io/js/cdk-events-notify) +[](https://badge.fury.io/py/cdk-events-notify) + + + + + + +# 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 + + + +### 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/ +>  + +# You need Line Notify access token + +> more see [line notify docs](https://notify-bot.line.me/doc/en/) + + + +## 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 +  +* slack +  + +## 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 + +[](https://github.com/neilkuan/cdk-events-notify/stargazers) +[](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 +[](https://badge.fury.io/js/cdk-events-notify) +[](https://badge.fury.io/py/cdk-events-notify) + + + + + + +# 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 + + + +### 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/ +>  + +# You need Line Notify access token + +> more see [line notify docs](https://notify-bot.line.me/doc/en/) + + + +## 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 +  +* slack +  + +## 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 + +[](https://github.com/neilkuan/cdk-events-notify/stargazers) +[](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 +[](https://badge.fury.io/js/cdk-events-notify) +[](https://badge.fury.io/py/cdk-events-notify) + + + + + + +# 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 + + + +### 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/ +>  + +# You need Line Notify access token + +> more see [line notify docs](https://notify-bot.line.me/doc/en/) + + + +## 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 +  +* slack +  + +## 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 + +[](https://github.com/neilkuan/cdk-events-notify/stargazers) +[](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 |
