constructor()

in Infra/lib/stack/ApiStack.ts [19:35]


    constructor(scope: Construct, id: string, props: ApiStackProps) {
        super(scope, id);

        const meetingProvider = new MeetingProvider(this, "MeetingProvider", {
            lambdaAssetDirectory: "ChimeCallService",
            environment: { GRAPHQL_ENDPOINT: props.graphqlEndpoint },
            policyStatements: [
                new PolicyStatement({
                    effect: iam.Effect.ALLOW,
                    actions: ["execute-api:Invoke", "chime:CreateMeeting", "chime:CreateAttendee"],
                    resources: ["*"],
                }),
            ],
        });

        this.meetingApi = meetingProvider.api;
    }