[aws-iam] readme typos #11624
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
in-progress
This issue is being actively worked on.
p2
link to reference doc page: https://docs.aws.amazon.com/cdk/api/latest/docs/aws-iam-readme.html
describe your issue: Wrong parameters for Roles > Opting out of automatic permissions management example
...
// You now have to manage the Role policies yourself
role.addToPolicy(new iam.PolicyStatement({
action: [/* whatever actions you want /],
resource: [/ whatever resources you intend to touch */],
});
should be:
// You now have to manage the Role policies yourself
role.addToPolicy(new iam.PolicyStatement({
actions: [/* whatever actions you want /],
resources: [/ whatever resources you intend to touch */],
});
It is actions and resources, not action and resource according to your interface PolicyStatementProps
This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: