S3 Poller
In this article
Overview
You can use this Snap to check the list of files in a given directory (including subdirectories as an option) periodically and produce output documents if the file names match a given filter.
Snap Type
The S3 Poller Snap is a Read-type Snap.
Prerequisites
A valid account with the required permissions.
Support for Ultra Pipelines
Does not support Ultra Pipelines.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document
|
|
| An optional document to evaluate expressions in the Directory and/or File filter properties. Note that each input document will trigger the execution of the Snap. |
Output | Document
|
|
| A full path in each document as a value for a key "path". If multiple files match the filter, the same number of documents will be provided in the output view after each interval. [
{
"bucket" : "yourbucket",
"objectKey" : "tmp/test1.json",
"path" : "s3:///yourbucket/tmp/test1.json",
"lastModified" : "2025-02-27T03:23:00.000Z"
},
{
"bucket" : "yourbucket",
"objectKey" : "tmp/test2.json",
"path" : "s3:///yourbucket/tmp/test2.json",
"lastModified" : "2025-02-27T03:22:57.000Z"
}
] |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
Snap Settings
Expression : JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
SnapGPT : Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
Suggestion : Populates a list of values dynamically based on your Account configuration.
Upload : Uploads files. Learn more.
Learn more about the icons in the Snap Settings dialog.
Field Name | Field Type | Description | |
Label*
Default Value: S3 Poller | String | Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |
Bucket*
Default Value: N/A | String/Expression/Sugestion | Specify or select an S3 bucket. | |
Directory
Default Value: N/A | String/Expression/Sugestion | Enter a directory as a prefix of an S3 object key ending with ‘/'. It should not start with '/’. Leave it empty if you are polling the bucket root.
| |
Include subdirectories
Default state: Deselected | Checkbox/Expression | Select this checkbox to list all matching files in the specified directory and all subdirectories.
| |
Filter (glob)
Default Value: N/A
| String/Expression | Specify a GLOB pattern filter to match the file names in the directory. The Snap applies this filter to file names only, without including the directory path. | |
Polling interval (seconds)*
Default value: 30 | Integer/Expression | Specify the time gap between each poll request (in seconds).
| |
Polling timeout*
Default value: 30 | Integer/Expression | Specify the maximum time for which the Snap continues to poll. If the Polling timeout is set to:
| |
Polling-timeout unit
Default value: MINUTES | Dropdown list | Specify a time unit for polling timeout.
| |
Advanced properties |
| ||
Maximum retries
Default value: 3 | Integer/Expression | Enter the maximum number of retries the Snap performs when it fails to list a directory. | |
Only output on change
Default value: Selected | Checkbox/Expression | Select this checkbox, to output documents for matching files only when it starts up or when the file changes. Deselect this checkbox to output documents for matching files in every interval. | |
Exit on first matches
Default state: Deselected | Checkbox/Expression | Select this checkbox to enable the Snap to exit after the interval when one or more matches are found for the first time. | |
Snap execution Default Value: Validate & Execute
| Dropdown list | Select one of the following three modes in which the Snap executes:
|
Snap Pack History
Related Content
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2025 SnapLogic, Inc.