Skip to content

aws_lambda: how to use Permission construct #17567

@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 for aws_lambda.Permission mentions that it can be passed to the addToResourcePolicy method. However, there is no such method on aws_lambda.Function. https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_lambda/Function.html

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS LambdabugThis issue is a bug.documentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions