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.36.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199173ea0ec1cc0b07d54ea6668fd55c766d32bff85d1bd7a58f15ca3ef304fb |
|
MD5 | 3b96b87d5a1a3decc38cc0b0bc9ea722 |
|
BLAKE2b-256 | 4dcc8251c5312cebc5f380211ee30d26abdd494ce5f203cc09a0085d875f89c1 |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.36.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d0d42578a22d90c42dee952e0e458bb6def2ed25fb06312669e68adc933a543 |
|
MD5 | 5a39f00372931097e1ad91f83b980d98 |
|
BLAKE2b-256 | b0fe7826bf0ec85966bbba2b104f190da54c7b7ab22bb829dee107f1e592e60e |