I have a CommaDelimitedList and need to put it into a policy JSON property as JSONArray:
Parameters:
ApiAllowedIps:
Type: CommaDelimitedList
RestApi:
Type: AWS::ApiGateway::RestApi
Properties:
...
Policy: !Sub |
{
...
"Condition": {
"NotIpAddress": {
"aws:SourceIp": [${ApiAllowedIps}]
}
}
}
I tried many combinations but without success.