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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f510098522e15cee0ed10bae3deb89ff06a99d55ec7805cc129e40ec25b83b1b |
|
MD5 | 7e41c0e7b013855f183ef106c578edb8 |
|
BLAKE2b-256 | a92d63163b4e8736a8e9cb4b0afc36c2fa6d62866fab13be67b2805ba9475fc0 |
Close
Hashes for cloudcomponents.cdk_s3_antivirus-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df48538bbe118403856c03dcdc2db713b75135ed8902d863bd438ab65bd7233f |
|
MD5 | f4f3e7cf6efabf934741f0bf92baa537 |
|
BLAKE2b-256 | 935c710e7d4f4351873b3ebd2156379a07eb7a29ac9ea6e8feeaf28302e1d565 |