Get list of all Subnets from all AWS VPC

Hi Is it possible to iterate within a data provider to retrieve the complete subnet IDs in all VPCs on a AWS account? Basically I am trying to work out the subnet from a user-provided IP and find the correct subnet ID and VPC based on the user inputted IP . I have managed to get all the VPCs defined within a region, but I am having difficulties on iteration within them for the subnet list