Bucket with content cleanup to allow bucket deletion when the stack will be destroyed
Project description
@cloudcomponents/cdk-deletable-bucket
Bucket with content cleanup to allow bucket deletion when the stack will be destroyed
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-deletable-bucket
Python:
pip install cloudcomponents.cdk-deletable-bucket
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from cloudcomponents.cdk_deletable_bucket import DeletableBucket
class DeletableBucketStack(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)
DeletableBucket(self, "DeletableBucket",
bucket_name="bucket2delete",
force_delete=True
)
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-deletable-bucket-1.0.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f688eef0784e749d042a82ee9aedaeadbbef6e6f581d378a16f3a6a78b528832 |
|
MD5 | 672d53f6c7fc0c5baa7981da7ae977d4 |
|
BLAKE2b-256 | c8a3f7aebd15541ad764a1204206d995bffa52dbf6f21a96cc3d185f7cafad74 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 315399d271f864ca0fb20aa169754c369c9e8e8ffd44ced29abc7674b6376185 |
|
MD5 | 6bb26d2e7e1652be365b0b7c06769f9e |
|
BLAKE2b-256 | f1d46fde5d4d5829aa1b1e8e4ae004f9d7ef267885ca0b295828fe0a50f9801c |