Skip to content

Commit

Permalink
chore: fixed broken inline python code in cdk example
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Dec 18, 2023
1 parent e9d84cf commit 8c6fe5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const sampleApiLambda2 = new aws_lambda.Function(this, 'sampleApiLambda2', {
handler: 'index.handler',
code: aws_lambda.Code.fromInline(`
def handler(event, context):
return {'body': 'Hello ' + event['requestContext']['authorizer']['principalId'] + ' from endpoint2!\nThese are your claims: ' + event['requestContext']['authorizer']['jwtClaims'], 'statusCode': 200}
return {'body': 'Hello ' + event['requestContext']['authorizer']['principalId'] + ' from endpoint2! These are your claims: ' + event['requestContext']['authorizer']['jwtClaims'], 'statusCode': 200}
`)
});
Expand Down
2 changes: 1 addition & 1 deletion examples/cdk-from-sar/lib/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def handler(event, context):
handler: 'index.handler',
code: aws_lambda.Code.fromInline(`
def handler(event, context):
return {'body': 'Hello ' + event['requestContext']['authorizer']['principalId'] + ' from endpoint2!\nThese are your claims: ' + event['requestContext']['authorizer']['jwtClaims'], 'statusCode': 200}
return {'body': 'Hello ' + event['requestContext']['authorizer']['principalId'] + ' from endpoint2! These are your claims: ' + event['requestContext']['authorizer']['jwtClaims'], 'statusCode': 200}
`)
});

Expand Down

0 comments on commit 8c6fe5a

Please sign in to comment.