Skip to content

Commit 2744a00

Browse files
committed
fix(lambda): fix typo in local variable name resouceArns to resourceArns
Fix a typo in a local variable name in `FunctionBase.grantInvokeVersion()`. The variable `resouceArns` is renamed to `resourceArns`. This is a local variable only, so there is no public API impact.
1 parent 012cf32 commit 2744a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/aws-cdk-lib/aws-lambda/lib/function-base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,11 @@ export abstract class FunctionBase extends Resource implements IFunction, ec2.IC
553553
// Memoize the result so subsequent grantInvoke() calls are idempotent
554554
let grant = this._invocationGrants[identifier];
555555
if (!grant) {
556-
let resouceArns = [`${this.functionArn}:${version.version}`];
556+
let resourceArns = [`${this.functionArn}:${version.version}`];
557557
if (version == this.latestVersion) {
558-
resouceArns.push(this.functionArn);
558+
resourceArns.push(this.functionArn);
559559
}
560-
grant = this.grant(grantee, identifier, 'lambda:InvokeFunction', resouceArns);
560+
grant = this.grant(grantee, identifier, 'lambda:InvokeFunction', resourceArns);
561561
this._invocationGrants[identifier] = grant;
562562
}
563563
return grant;

0 commit comments

Comments
 (0)