MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / MyStack

Class MyStack

python/custom-resource/app.py:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9# attribute from it.
10
11class MyStack(Stack):
12 def __init__(self, scope: App, id: str, **kwargs) -> None:
13 super().__init__(scope, id, **kwargs)
14
15 # Create s3 bucket
16 bucket = s3.Bucket(self, "CustomResourceTestBucket",
17 encryption=s3.BucketEncryption.S3_MANAGED, block_public_access=s3.BlockPublicAccess.BLOCK_ALL)
18
19 resource = MyCustomResource(
20 self, "MyCustomResource",
21 bucket_name=bucket.bucket_name
22 )
23
24app = App()
25MyStack(app, "CustomResourceDemoStack")

Callers 1

app.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected