Skip to main content

Antivirus for Amazon S3

Project description

cloudcomponents Logo

@cloudcomponents/cdk-s3-antivirus

Build Status cdkdx typescript python

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudcomponents.cdk-s3-antivirus-1.9.0.tar.gz (11.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cloudcomponents.cdk-s3-antivirus-1.9.0.tar.gz.

File metadata

  • Download URL: cloudcomponents.cdk-s3-antivirus-1.9.0.tar.gz
  • Upload date:
  • Size: 11.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for cloudcomponents.cdk-s3-antivirus-1.9.0.tar.gz
Algorithm Hash digest
SHA256 bb0d3edf99efeaa17acbabdc67bff343132f20833e1c8a64f14835123e87ce3a
MD5 33b3f4634d8e4592d68cf2894236cc2e
BLAKE2b-256 b841bea56dbcea74c686320f2e3de9a99b26267a6eb0cd0fed28606d5a5315b9

See more details on using hashes here.

File details

Details for the file cloudcomponents.cdk_s3_antivirus-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: cloudcomponents.cdk_s3_antivirus-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for cloudcomponents.cdk_s3_antivirus-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 744ad523bdc8e62379b89de746aec848f50b448e39f83d6eacf3fada7d425b92
MD5 0935554d752651255992e906f1569110
BLAKE2b-256 016727fb4e4dfc516b58010e01d0b60b3c13fb08f08aa754f7e37a42dafb8450

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page