Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy question #1109

Open
moltar opened this issue Feb 2, 2024 · 0 comments
Open

Policy question #1109

moltar opened this issue Feb 2, 2024 · 0 comments

Comments

@moltar
Copy link
Contributor

moltar commented Feb 2, 2024

First of all, thanks for this construct. Even tho it's simple, it's someone one doesn't need to reinvent!


Now, for the question.

I see that the policy prop is exposed, and I think it is a great idea.

But I am not entirely sure how to use it?

E.g. I'm trying to add it to a role, but the role does not accept IPolicy, and only accepts concrete Policy object.

role.attachInlinePolicy(policy)
                     // ^^^^^^ Argument of type 'IPolicy' is not assignable to parameter of type 'Policy'.

readonly policy: aws_iam.IPolicy;

Am I holding it wrong?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant