FetchS3Object 2025.10.9.21

Bundle

org.apache.nifi | nifi-aws-nar

Description

Retrieves the contents of an S3 Object and writes it to the content of a FlowFile

Tags

AWS, Amazon, Fetch, Get, S3

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
AWS Credentials Provider serviceThe Controller Service that is used to obtain AWS credentials provider
BucketThe S3 Bucket to interact with
Communications TimeoutThe amount of time to wait in order to establish a connection to AWS or receive data from AWS before timing out.
Custom Signer Class NameFully qualified class name of the custom signer class. The signer must implement com.amazonaws.auth. Signer interface.
Custom Signer Module LocationComma-separated list of paths to files and/or directories which contain the custom signer’s JAR file and its dependencies (if any).
Encryption ServiceSpecifies the Encryption Service Controller used to configure requests. PutS3Object: For backward compatibility, this value is ignored when ‘Server Side Encryption’ is set. FetchS3Object: Only needs to be configured in case of Server-side Customer Key, Client-side KMS and Client-side Customer Key encryptions.
Endpoint Override URLEndpoint URL to use instead of the AWS default including scheme, host, port, and path. The AWS libraries select an endpoint URL based on the AWS region, but this property overrides the selected endpoint URL, allowing use with other S3-compatible endpoints.
Object KeyThe S3 Object Key to use. This is analogous to a filename for traditional file systems.
Range LengthThe number of bytes to download from the object, starting from the Range Start. An empty value or a value that extends beyond the end of the object will read to the end of the object.
Range StartThe byte position at which to start reading from the object. An empty value or a value of zero will start reading at the beginning of the object.
RegionThe AWS Region to connect to.
Requester PaysIf true, indicates that the requester consents to pay any charges associated with retrieving objects from the S3 bucket. This sets the ‘x-amz-request-payer’ header to ‘requester’.
SSL Context ServiceSpecifies an optional SSL Context Service that, if provided, will be used to create connections
Signer OverrideThe AWS S3 library uses Signature Version 4 by default but this property allows you to specify the Version 2 signer to support older S3-compatible services or even to plug in your own custom signer implementation.
VersionThe Version of the Object to download
proxy-configuration-serviceSpecifies the Proxy Configuration Controller Service to proxy network requests.

Relationships

NameDescription
failureIf the Processor is unable to process a given FlowFile, it will be routed to this Relationship.
successFlowFiles are routed to this Relationship after they have been successfully processed.

Writes attributes

NameDescription
s3.urlThe URL that can be used to access the S3 object
s3.bucketThe name of the S3 bucket
pathThe path of the file
absolute.pathThe path of the file
filenameThe name of the file
hash.valueThe MD5 sum of the file
hash.algorithmMD5
mime.typeIf S3 provides the content type/MIME type, this attribute will hold that file
s3.etagThe ETag that can be used to see if the file has changed
s3.exceptionThe class name of the exception thrown during processor execution
s3.additionalDetailsThe S3 supplied detail from the failed operation
s3.statusCodeThe HTTP error code (if available) from the failed operation
s3.errorCodeThe S3 moniker of the failed operation
s3.errorMessageThe S3 exception message from the failed operation
s3.expirationTimeIf the file has an expiration date, this attribute will be set, containing the milliseconds since epoch in UTC time
s3.expirationTimeRuleIdThe ID of the rule that dictates this object’s expiration time
s3.sseAlgorithmThe server side encryption algorithm of the object
s3.versionThe version of the S3 object
s3.encryptionStrategyThe name of the encryption strategy that was used to store the S3 object (if it is encrypted)

Use cases

Fetch a specific file from S3

Use Cases Involving Other Components

Retrieve all files in an S3 bucket
Retrieve only files from S3 that meet some specified criteria
Retrieve new files as they arrive in an S3 bucket

See also