-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdadocumentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2
Description
link to reference doc page
https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_lambda/Permission.html
Describe your issue?
The documentation was just fixed in #17870. It now mentions using the addPermissions method. However, this is itself a typo, as the name of the method is addPermission (singular).
Also, in Python, the add_permission method directly takes all the constructor parameters rather than a Permission object, which was the source of my original confusion. This is similar to the situation for all the XProps classes that are effectively unused. It might be helpful to make this point more clear.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdadocumentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2