I have the same scenario of this link
Create AWS_API_GATEWAY_RESOURCES in a loop
but the for op in ops : op.http_method is not working
> error is : Can’t access attributes on a primitive-typed value (string).
looks the op is print only value of dict. not as key : value