Code Snippets

SaurabhG
Oct 4, 2022

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

--

--

SaurabhG

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