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 without compilation. See https://github.com/aws/jsii/issues/826
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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85106565c7d4061616307c0f2232735039bbc47cf30acae5cfeb20cf0aaf33fe |
|
MD5 | 19fc80cf2b88c9a47bcdfbb64c6190e7 |
|
BLAKE2b-256 | 69ed1c3a0b1773bf5e9cbfee0530464a5edc70b3360428ea59021cd5cd2c724a |
Close
Hashes for cloudcomponents.cdk_s3_antivirus-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eaf8d1fa9de9d08ccb798b7367f9dca3a49f0d66119744938177e9162218d0d |
|
MD5 | 35bbea778b7590fbab611db831f4a7bc |
|
BLAKE2b-256 | 4bbf4784731e484a1258d2e614904048dd04e20004a3c75d328228544c8a7916 |