Hi@akhtar,
You can create a session for an S3 bucket. After that, you need to create your own customized code. You can take help from the below example.
from boto3.session import Session
ACCESS_KEY='your_access_key'
SECRET_KEY='your_secret_key'
session = Session(aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY)
s3 = session.resource('s3')
your_bucket = s3.Bucket('your_bucket'
for s3_file in your_bucket.objects.all():
print(s3_file.key)