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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudcomponents.cdk-s3-antivirus-1.3.1.tar.gz.
File metadata
- Download URL: cloudcomponents.cdk-s3-antivirus-1.3.1.tar.gz
- Upload date:
- Size: 11.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a948a73bff9ea7fe6dde2fc2f128a1735f3fbfe1ce7371300859afb6f83a53
|
|
| MD5 |
fd0967d577d72aa59d42cae753434829
|
|
| BLAKE2b-256 |
6009e644b116bcf6d95fe5e82eb1c7a53eed1e5d2aa26fd8904348cf6352db4c
|
File details
Details for the file cloudcomponents.cdk_s3_antivirus-1.3.1-py3-none-any.whl.
File metadata
- Download URL: cloudcomponents.cdk_s3_antivirus-1.3.1-py3-none-any.whl
- Upload date:
- Size: 11.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d3a0098dd262e14603f42ebd87489ffbd3cdcacaf941b22edc214a21a0fa28b
|
|
| MD5 |
561485eab93e22593364f24ec9c59dfe
|
|
| BLAKE2b-256 |
a8b8c75d52f09e3b50131dfa665ca77d03795dc47ca151a69a4204e58cfd608d
|