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.24.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc522f5d86e32024eb075aaa36d7b71afffbda3642196fa02613d96c2053846d |
|
MD5 | 28619205a94e67890eb96dfaffd0e355 |
|
BLAKE2b-256 | bc7fa24042a45c69dee9e1c1ade1324d9164c06fb032c6f34f7fd6a36f81b7ec |
Close
Hashes for cloudcomponents.cdk_deletable_bucket-1.24.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4855be80f651d32ba274b619fdab796bd6b78cd563c5d77ec2187c0e2e71f5 |
|
MD5 | be570c9f3894f3b54dc677ad3b60a97a |
|
BLAKE2b-256 | a1a139ecea5c8a4f1c72b4de73e93bd78b9a1511c2bfd1d4a9dfd05ad9ce16c4 |