IRole vs Role types
See original GitHub issueI’m having trouble understanding how I would import a role that has already been created, and use that role when creating a lambda function. The Role.import
returns a type IRole, which is not assignable to the props when creating a Lambda function.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
AWS CDK - interface IRole
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.) ...
Read more >awslabs/aws-cdk - Gitter
Role is the construct for creating a new resource. IRole is the interface. Importing one will give you an IRole with all the...
Read more >IRole Interface (Microsoft.AspNet.Identity)
Defines the set of data needed to persist role information. Namespace: Microsoft.AspNet.Identity Assembly: Microsoft.AspNet.Identity.
Read more >Interface IRole | Discord.Net Documentation
Represents a generic role object to be given to a guild user. ... This field is mutually exclusive with Icon, either icon is...
Read more >IRole - SAP Help Portal
This interface provides read and write access to attributes and properties of instances of type IRole. IRole extends IPrincipalSet and defines additional role...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like this problem has returned. I had the exact same issue, and the “as any” fix seems to work. My error is:
Type 'Role' is not assignable to type 'IRole'.
using cdk 1.89.0 (build df7253c)
Same problem
Pylint sends a warning that ‘Role’ is not assignable to ‘IRole’