The inputPolicyStatements and outputPolicyStatements fields are typed as [iam.PolicyStatement] rather than iam.PolicyStatement[]. As a result, only one policy statement can be added to the array.
To replicate:
Create a new TextractGenericAsyncSfnTask, and instantiate the inputPolicyStatements field with > 1 policy statement.
Looking at the code, it seems like multiple statements were intended to be supported.
The
inputPolicyStatements
andoutputPolicyStatements
fields are typed as[iam.PolicyStatement]
rather thaniam.PolicyStatement[]
. As a result, only one policy statement can be added to the array.To replicate:
TextractGenericAsyncSfnTask
, and instantiate theinputPolicyStatements
field with > 1 policy statement.Looking at the code, it seems like multiple statements were intended to be supported.