Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

s3.bucket objects filter top 10

import boto3
client = boto3.client('s3')
paginator = client.get_paginator('list_objects')
for result in paginator.paginate(Bucket='edsu-test-bucket', Delimiter='/'):
    for prefix in result.get('CommonPrefixes'):
        print(prefix.get('Prefix'))
Source by github.com #
 
PREVIOUS NEXT
Tagged: #objects #filter #top
ADD COMMENT
Topic
Name
1+4 =