Skip to main content

S3 List

The S3 List activity lists files in an Amazon S3 bucket, with options for filtering by path prefix, pattern, and sorting.

info

Ensure the IAM user or role has s3:ListBucket permission on the target bucket.

Configuring the S3 List Activity

To configure the S3 List activity, fill in the required fields in the activity panel.

Configuration

FieldRequiredDescriptionExample
NameRequiredSpecify the name for this activity.MyActivity
DescriptionOptionalSpecify the description for this activity.Reads a file from S3
ResourceOptionalDrag and drop an S3 Connection resource from the workspace.
S3 Auth ContextOptionalAuthorization context to use for connecting to S3.
Bucket NameOptionalS3 bucket name.my-data-bucket
File PathOptionalPath to the file. (mapping supported)data/reports/2024/
PatternOptionalPattern to match files (e.g., *.csv). (mapping supported)_.csv, report__.json
PrefixOptionalPrefix to filter results. (mapping supported)logs/, report-

Advanced

FieldRequiredDescriptionExample
Sort ByOptionalChoose how to sort the listed files. Options: Name, Size, Date Modified, Path.
Max ResultsOptionalMaximum number of blobs to return.100
DescendingOptionalCheck to sort results in descending order.

Input

FieldRequiredData TypeDescriptionExample
Bucket NameOptionalStringS3 bucket name.
File PathOptionalStringFile path.data/reports/2024/
PatternOptionalStringFile name pattern for filtering._.csv, report__.json
PrefixOptionalStringFilter prefix.logs/, report-
Max ResultsOptionalNumberMaximum number of results.100
Continuation TokenOptionalStringToken for paginated results.
Include DirectoriesOptionalBooleanInclude directories in results.
Include MetadataOptionalBooleanInclude metadata in results.
Include StatsOptionalBooleanInclude file statistics in results.
DescendingOptionalBooleanSort in descending order.

Output

FieldRequiredData TypeDescriptionExample
Bucket NameOptionalStringS3 bucket name.
PrefixOptionalStringFilter prefix.logs/, report-
File PathOptionalStringPath that was listeddata/reports/2024/
FilesOptionalArrayArray of file objects
Total FilesOptionalIntegerCount of files in THIS page0
Continuation TokenOptionalStringToken for next page (null if done)
MessageOptionalStringInformational message
WarningsOptionalArrayArray of warning strings
StatsOptionalObjectStatistics object (if requested)