Skip to content

aws_lambda: typo in Permission documentation #17873

@rittneje

Description

@rittneje

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.

cc @kaizen3031593

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS LambdadocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions