Closed aesterline closed 5 months ago
It looks like a statement action can be both, a string, or a slice, we need to handle both correctly. Feel free to open a PR to fix it. I would probably use an enum, but I'm open to other suggestions:
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html
We probably need to do the same for Resource
.
And it looks like the Condition
is completely missing 😞 https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.
When deserializing the authorizer response described in APIGateway example lambda authorizer output I get the following error:
Example Test
The examples in https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html#api-gateway-calling-api-permissions seems to show
Action
as aVec<String>
. I'm not sure which version is correct or if we should be able to deserialize both variants. I do have a custom authorizer I am trying to integrate with currently that returns the singleString
variant. Is it possible to change the current serde definition to allow parsing both versions?