def get_identitypool_id(identitypools, name):
    """
    Get identity pool id based on the name provided.
    """
    for identitypool in identitypools:
        if identitypool["Name"] == name:
            return identitypool["Id"]