Skip to content

Commit 898cda6

Browse files
authored
docs(trigger): fix incorrect construct id in README for aws-cdk-lib.triggers 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*
1 parent d130bd7 commit 898cda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/triggers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ new triggers.TriggerFunction(this, 'MyTrigger', {
2424
});
2525
```
2626

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

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

0 commit comments

Comments
 (0)