diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:31:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:31:09 +0000 |
commit | 9daa2256b59f1bf7b7b74446d5e1fd21292c518e (patch) | |
tree | b2ad3e3658347080de93a4ad35018d67e549bca9 | |
parent | 11ce5d8eca99965eecba23b4069085e55a94311c (diff) |
automatic import of python-cdk-ecr-image-scan-notify
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cdk-ecr-image-scan-notify.spec | 323 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 325 insertions, 0 deletions
@@ -0,0 +1 @@ +/cdk-ecr-image-scan-notify-1.0.242.tar.gz diff --git a/python-cdk-ecr-image-scan-notify.spec b/python-cdk-ecr-image-scan-notify.spec new file mode 100644 index 0000000..6e4cfc2 --- /dev/null +++ b/python-cdk-ecr-image-scan-notify.spec @@ -0,0 +1,323 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cdk-ecr-image-scan-notify +Version: 1.0.242 +Release: 1 +Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results +License: Apache-2.0 +URL: https://github.com/hayao-k/cdk-ecr-image-scan-notify.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/03/316ead39de94e1f0d9c7a743f29e0bd0ec2e44b4848791e0e223c1c8d3fc/cdk-ecr-image-scan-notify-1.0.242.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-ecr-image-scan-notify) +[](https://badge.fury.io/py/cdk-ecr-image-scan-notify) + + +# cdk-ecr-image-scan-notify + +cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results. + +## Overview + +Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function. +The Lambda function summarizes the scan results, formatting them and notifying Slack. + +Basic scanning + + + +Enhanced scanning (Support for initial scan only) + + + +Click on an image name to go to the scan results page. + + + +## Getting Started + +### TypeScript + +Installation + +``` +$ yarn add cdk-ecr-image-scan-notify +``` + +Usage + +```python +import * as cdk from 'aws-cdk-lib'; +import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, '<your-stack-name>'); + +new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { + webhookUrl: '<your-incoming-webhook-url>', +}); +``` + +Deploy! + +``` +$ cdk deploy +``` + +### Python + +Installation + +``` +$ pip install cdk-ecr-image-scan-notify +``` + +Usage + +```py +import aws_cdk as cdk +from cdk_ecr_image_scan_notify import EcrImageScanNotify + +app = cdk.App() +stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'}) + +EcrImageScanNotify(stack, "EcrImageScanNotify", + webhook_url = '<your-incoming-webhook-url>', +) +``` + +Deploy! + +``` +$ cdk deploy +``` + + +%package -n python3-cdk-ecr-image-scan-notify +Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results +Provides: python-cdk-ecr-image-scan-notify +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cdk-ecr-image-scan-notify +[](https://badge.fury.io/js/cdk-ecr-image-scan-notify) +[](https://badge.fury.io/py/cdk-ecr-image-scan-notify) + + +# cdk-ecr-image-scan-notify + +cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results. + +## Overview + +Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function. +The Lambda function summarizes the scan results, formatting them and notifying Slack. + +Basic scanning + + + +Enhanced scanning (Support for initial scan only) + + + +Click on an image name to go to the scan results page. + + + +## Getting Started + +### TypeScript + +Installation + +``` +$ yarn add cdk-ecr-image-scan-notify +``` + +Usage + +```python +import * as cdk from 'aws-cdk-lib'; +import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, '<your-stack-name>'); + +new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { + webhookUrl: '<your-incoming-webhook-url>', +}); +``` + +Deploy! + +``` +$ cdk deploy +``` + +### Python + +Installation + +``` +$ pip install cdk-ecr-image-scan-notify +``` + +Usage + +```py +import aws_cdk as cdk +from cdk_ecr_image_scan_notify import EcrImageScanNotify + +app = cdk.App() +stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'}) + +EcrImageScanNotify(stack, "EcrImageScanNotify", + webhook_url = '<your-incoming-webhook-url>', +) +``` + +Deploy! + +``` +$ cdk deploy +``` + + +%package help +Summary: Development documents and examples for cdk-ecr-image-scan-notify +Provides: python3-cdk-ecr-image-scan-notify-doc +%description help +[](https://badge.fury.io/js/cdk-ecr-image-scan-notify) +[](https://badge.fury.io/py/cdk-ecr-image-scan-notify) + + +# cdk-ecr-image-scan-notify + +cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results. + +## Overview + +Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function. +The Lambda function summarizes the scan results, formatting them and notifying Slack. + +Basic scanning + + + +Enhanced scanning (Support for initial scan only) + + + +Click on an image name to go to the scan results page. + + + +## Getting Started + +### TypeScript + +Installation + +``` +$ yarn add cdk-ecr-image-scan-notify +``` + +Usage + +```python +import * as cdk from 'aws-cdk-lib'; +import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, '<your-stack-name>'); + +new EcrImageScanNotify(stack, 'ecr-image-scan-notify', { + webhookUrl: '<your-incoming-webhook-url>', +}); +``` + +Deploy! + +``` +$ cdk deploy +``` + +### Python + +Installation + +``` +$ pip install cdk-ecr-image-scan-notify +``` + +Usage + +```py +import aws_cdk as cdk +from cdk_ecr_image_scan_notify import EcrImageScanNotify + +app = cdk.App() +stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'}) + +EcrImageScanNotify(stack, "EcrImageScanNotify", + webhook_url = '<your-incoming-webhook-url>', +) +``` + +Deploy! + +``` +$ cdk deploy +``` + + +%prep +%autosetup -n cdk-ecr-image-scan-notify-1.0.242 + +%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-ecr-image-scan-notify -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.242-1 +- Package Spec generated @@ -0,0 +1 @@ +3045ccd4f02701857983e7d5cfa797b4 cdk-ecr-image-scan-notify-1.0.242.tar.gz |