Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't specify cognitoUserPoolClientProps on aws-cognito-apigateway-lambda #71

Closed
purplebari opened this issue Sep 17, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@purplebari
Copy link

cognitoUserPoolClientProps has a required property, userPool, that isn't available in the before construct is instantiated - so although cognitoUserPoolClientProps is made available in construct properties, it cannot be specified. One solution would be relax the type requirements of cognitoUserPoolClientProps by adding | any to the type specification of the property.

    const api = new CognitoToApiGatewayToLambda(
      this,
      'example',
      {
        cognitoUserPoolClientProps: {
          userPool: // No idea what to put here, but must specify something
        },
        lambdaFunctionProps: {
          code: lambda.Code.fromAsset(`lambda`),
          runtime: lambda.Runtime.NODEJS_12_X,
          handler: "handler.handler",
        }
        }
      }
    );
@hnishar hnishar self-assigned this Sep 17, 2020
@hnishar hnishar added bug Something isn't working in-progress This issue is being actively worked on labels Sep 17, 2020
@hnishar
Copy link
Contributor

hnishar commented Sep 24, 2020

This has been fixed in v1.64.0

@hnishar hnishar closed this as completed Sep 24, 2020
@hnishar hnishar removed the in-progress This issue is being actively worked on label Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants