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

Method __init__

python/url-shortener/app.py:53–61  ·  view source on GitHub ↗
(self, scope: Construct, id: str)

Source from the content-addressed store, hash-verified

51# separate stack that includes the traffic generator
52class TrafficGeneratorStack(WaltersCoStack):
53 def __init__(self, scope: Construct, id: str):
54 super().__init__(scope, id)
55
56 # define a traffic generator instance that hits the URL at 5 TPS
57 # and hosted within the shared waltersco VPC
58 GenGen(self, 'generator',
59 url='https://yourdomain.com/eb4628b6',
60 tps=5,
61 vpc=self.waltersco_vpc)
62
63
64app = App()

Callers

nothing calls this directly

Calls 2

GenGenClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected