MCPcopy Create free account
hub / github.com/awsrun/aws-microservices / constructor

Method constructor

lib/microservice.ts:19–28  ·  view source on GitHub ↗
(scope: Construct, id: string, props: SwnMicroservicesProps)

Source from the content-addressed store, hash-verified

17 public readonly orderingMicroservice: NodejsFunction;
18
19 constructor(scope: Construct, id: string, props: SwnMicroservicesProps) {
20 super(scope, id);
21
22 // product microservices
23 this.productMicroservice = this.createProductFunction(props.productTable);
24 // basket microservices
25 this.basketMicroservice = this.createBasketFunction(props.basketTable);
26 // ordering Microservice
27 this.orderingMicroservice = this.createOrderingFunction(props.orderTable);
28 }
29
30 private createProductFunction(productTable: ITable) : NodejsFunction {
31 const nodeJsFunctionProps: NodejsFunctionProps = {

Callers

nothing calls this directly

Calls 3

createProductFunctionMethod · 0.95
createBasketFunctionMethod · 0.95

Tested by

no test coverage detected