Skip to main content

A set of core objects utilized by the rest of the SWA Cloud Catalog

Project description

SWA Secure S3 Storage Bucket Stack Library

Define a S3 bucket that security will be proud of.

S3StorageBucketStack exposes the following deploy-time attributes from the underlying bucket construct:

  • bucketArn - the ARN of the bucket (i.e. arn:aws:s3:::bucket_name)
  • bucketName - the name of the bucket (i.e. bucket_name)
  • arnForObjects(pattern) - the ARN of an object or objects within the bucket (i.e. arn:aws:s3:::bucket_name/exampleobject.png or arn:aws:s3:::bucket_name/Development/*)
  • urlForObject(key) - the URL of an object within the bucket (i.e. https://s3.cn-north-1.amazonaws.com.cn/china-bucket/mykey)

S3StorageBucketStack exposes the following deploy-time methods from the underlying bucket construct:

  • add_lifecycle_rule
  • add_metric
  • add_object_created_notification
  • add_object_removed_notificationself
  • add_event_notification
  • add_to_resource_policy
  • arn_for_objects
  • on_cloud_trail_event
  • on_cloud_trail_put_object
  • url_for_object

Helpfull commands

  • Package code for publishing. First increment the version in setup.py then run the following python3 setup.py sdist bdist_wheel
  • Publish code python3 -m twine upload dist/*
  • Generate documentation cd docs && make html
  • Run unit tests pytest --cov . --cov-report=html --html=testreport/report.html
  • upload to sonar sonar-scanner \ -Dsonar.projectKey=swa_cc_secure_s3_storage_bucket \ -Dsonar.sources=source\swa_cc \ -Dsonar.host.url=https://sonar-tools.swacorp.com/EC \ -Dsonar.login=eda1a69701cd879fe142e1c36b2ed3db6769a01c

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

swa_cc.core-1.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

swa_cc.core-1.3.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file swa_cc.core-1.3.0.tar.gz.

File metadata

  • Download URL: swa_cc.core-1.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for swa_cc.core-1.3.0.tar.gz
Algorithm Hash digest
SHA256 11a0e99a0bb94ee9e8948ed979376fcf6cb786d610b3bbb7b279d7f08f8e04e6
MD5 62bde5072471f4d4cd4b6dac1277017f
BLAKE2b-256 bcc458a31dbdb694421c046cbe697acaa1bb3136efcb1c0c51ac3bdb28b2ecb9

See more details on using hashes here.

File details

Details for the file swa_cc.core-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: swa_cc.core-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for swa_cc.core-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb15f8b5859282c73a58fed5105f93400a416194fbd9d3ca76bb29a631e5c0a1
MD5 a7ff39cdf3c0b3020fe3e9928247fde7
BLAKE2b-256 3de94d7c1aa8abef3fabac5e50437f15cb3ea75e5e222b9d9611bc7ca168fd89

See more details on using hashes here.

Supported by

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