agent-claw: automated task changes
This commit is contained in:
Generated
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
from constructs import Construct
|
||||
from aws_cdk import (
|
||||
Duration,
|
||||
Stack,
|
||||
aws_iam as iam,
|
||||
aws_sqs as sqs,
|
||||
aws_sns as sns,
|
||||
aws_sns_subscriptions as subs,
|
||||
)
|
||||
|
||||
|
||||
class %name.PascalCased%Stack(Stack):
|
||||
|
||||
def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
|
||||
super().__init__(scope, construct_id, **kwargs)
|
||||
|
||||
queue = sqs.Queue(
|
||||
self, "%name.PascalCased%Queue",
|
||||
visibility_timeout=Duration.seconds(300),
|
||||
)
|
||||
|
||||
topic = sns.Topic(
|
||||
self, "%name.PascalCased%Topic"
|
||||
)
|
||||
|
||||
topic.add_subscription(subs.SqsSubscription(queue))
|
||||
Reference in New Issue
Block a user