Antivirus for Amazon S3
Project description
@cloudcomponents/cdk-s3-antivirus
Antivirus for Amazon S3
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-s3-antivirus
Python:
pip install cloudcomponents.cdk-s3-antivirus
How to use
# Example automatically generated from non-compiling source. May contain errors.
from aws_cdk.aws_lambda_destinations import SnsDestination
from aws_cdk.aws_s3 import Bucket
from aws_cdk.aws_sns import Topic
from aws_cdk.aws_sns_subscriptions import EmailSubscription
from aws_cdk.core import Construct, RemovalPolicy, Stack, StackProps
from cloudcomponents.cdk_s3_antivirus import Scanner
class S3AntivirusStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
bucket = Bucket(self, "Bucket",
auto_delete_objects=True,
removal_policy=RemovalPolicy.DESTROY
)
topic = Topic(self, "Topic")
topic.add_subscription(EmailSubscription(process.env.DEVSECOPS_TEAM_EMAIL))
scanner = Scanner(self, "Scanner",
on_result=SnsDestination(topic),
on_error=SnsDestination(topic)
)
scanner.add_source_bucket(bucket)
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for cloudcomponents.cdk-s3-antivirus-1.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6bcb91cd3d4b6bf0779a96498a59b048d399109271ae5f84dae5e6218ac1ec8 |
|
MD5 | 4fc93fb9997a2d89a1e4904731901dba |
|
BLAKE2b-256 | 7f5809cfcbe8bed13b54e58661ada5cab7f75857214668d5d47ffa23af59dc84 |
Close
Hashes for cloudcomponents.cdk_s3_antivirus-1.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae32181d035cb3bd92593f8194f4b833bd460d37a5640ac5a02aeb06f2bf4593 |
|
MD5 | eedf130a34196eb6f406712ebceb22c3 |
|
BLAKE2b-256 | 4110464df6eea2f7fd4ef6e2f44ee55e03b68039344d0e0dce6ff9df4db0a696 |