Here I am sharing code snippets comes out of troubleshooting or common use case
Boto3 : NextToken in List items
functions_list = []
response = lambda_client.list_functions()while True:
functions_list.extend(response.get(‘Functions’))
if response.get(‘NextMarker’):
response = lambda_client.list_functions(Marker=response.get(‘NextMarker’))
else:
break