I am trying to use the new native provider in type...
# aws
b
I am trying to use the new native provider in typescript and getting an error for unknown field statement. I am just trying to create an IAM role here:
Copy code
const lambdaRole = new aws_native.iam.Role(`${resourcePrefix}-myrole`, {
    assumeRolePolicyDocument: { 
        version: '2012-10-17',
        statement: [{
                effect: 'Allow',
                principal: {
                    service: '<http://lambda.amazonaws.com|lambda.amazonaws.com>'
                },
                action: [
                    'sts:AssumeRole'
                ]
        }]
    },
    path: '/'
});