Skip to content

Commit

Permalink
docs(trigger): fix incorrect construct id in README for aws-cdk-lib.t…
Browse files Browse the repository at this point in the history
…riggers module (#26436)

README for aws-cdk-lib.triggers module includes incorrect construct id `myLambdaFunction`. 
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.triggers-readme.html#usage
> In the above example, the AWS Lambda function defined in myLambdaFunction will be invoked when the stack is deployed.

In my understanding, it should be `MyTrigger`.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
tam0ri authored Jul 19, 2023
1 parent d130bd7 commit 898cda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/triggers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ new triggers.TriggerFunction(this, 'MyTrigger', {
});
```

In the above example, the AWS Lambda function defined in `myLambdaFunction` will
In the above example, the AWS Lambda function defined in `MyTrigger` will
be invoked when the stack is deployed.

It is also possible to trigger a predefined Lambda function by using the `Trigger` construct:
Expand Down

0 comments on commit 898cda6

Please sign in to comment.