Skip to content

LambdaRestApi doesn't add the handler when .withOptions is used #965

@leepa

Description

@leepa

If I do this - I end up with the Lambda Handler not added to the {proxy+} and instead it points to MOCK

        LambdaRestApi edgeApi = new LambdaRestApi(this, "ShopBackendEdge", LambdaRestApiProps.builder()
                .withOptions(RestApiProps.builder()
                        .withRestApiName("TroutApiEdge")
                        .withDescription("Artifishial Intelligence ordering API @ Edge")
                        .build())
                .withProxyPath("/")
                .withHandler(dummyLambda)
                .build());

If I remove the .withOptions, then handler is correctly added and the API works.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.language/javaRelated to Java bindings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions