diff --git a/v2/emailpassword/serverless/with-aws-lambda/authorizer.mdx b/v2/emailpassword/serverless/with-aws-lambda/authorizer.mdx index 1ca705d24..078cb159b 100644 --- a/v2/emailpassword/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/emailpassword/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17', diff --git a/v2/passwordless/serverless/with-aws-lambda/authorizer.mdx b/v2/passwordless/serverless/with-aws-lambda/authorizer.mdx index 79b62439b..02a71860c 100644 --- a/v2/passwordless/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/passwordless/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17', diff --git a/v2/session/serverless/with-aws-lambda/authorizer.mdx b/v2/session/serverless/with-aws-lambda/authorizer.mdx index 1ca705d24..078cb159b 100644 --- a/v2/session/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/session/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17', diff --git a/v2/thirdparty/serverless/with-aws-lambda/authorizer.mdx b/v2/thirdparty/serverless/with-aws-lambda/authorizer.mdx index 1ca705d24..078cb159b 100644 --- a/v2/thirdparty/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/thirdparty/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17', diff --git a/v2/thirdpartyemailpassword/serverless/with-aws-lambda/authorizer.mdx b/v2/thirdpartyemailpassword/serverless/with-aws-lambda/authorizer.mdx index 1ca705d24..078cb159b 100644 --- a/v2/thirdpartyemailpassword/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/thirdpartyemailpassword/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17', diff --git a/v2/thirdpartypasswordless/serverless/with-aws-lambda/authorizer.mdx b/v2/thirdpartypasswordless/serverless/with-aws-lambda/authorizer.mdx index 79b62439b..02a71860c 100644 --- a/v2/thirdpartypasswordless/serverless/with-aws-lambda/authorizer.mdx +++ b/v2/thirdpartypasswordless/serverless/with-aws-lambda/authorizer.mdx @@ -152,7 +152,7 @@ Use the code below as the handler for the lambda. Remember that whenever we want ```tsx title="index.mjs" import supertokens from "supertokens-node"; import { SessionEvent } from "supertokens-node/framework/awsLambda"; // typecheck-only, removed from output -import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse } from "aws-lambda"; // typecheck-only, removed from output +import { APIGatewayAuthorizerEvent, PolicyDocument, Statement, AuthResponse, StatementEffect } from "aws-lambda"; // typecheck-only, removed from output import Session from "supertokens-node/recipe/session"; // @ts-ignore @@ -198,7 +198,7 @@ export const handler = async function (event__OMIT_START__: AuthorizerEvent__OMI } // Help function to generate an IAM policy -const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: string__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { +const generatePolicy = function (principalId__OMIT_START__: string__OMIT_END__, effect__OMIT_START__: StatementEffect__OMIT_END__, resource__OMIT_START__: string__OMIT_END__, context__OMIT_START__?: any__OMIT_END__) { // Required output: const policyDocument__OMIT_START__: PolicyDocument__OMIT_END__ = { Version: '2012-10-17',