Code Snippets

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SaurabhG

I am an enthusiastic learner. Always want to challenge my last learning & keep hunting for new learning. about.me/saurabh.gangrade