GCSFileResourceService

Description:

Provides a Google Compute Storage (GCS) file resource for other components.

Tags:

file, resource, gcs

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
BucketBucket${gcs.bucket}Bucket of the object.
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
NameName${filename}Name of the object.
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
GCP Credentials Provider Servicegcp-credentials-provider-serviceController Service API:
GCPCredentialsService
Implementation: GCPCredentialsControllerService
The Controller Service used to obtain Google Cloud Platform credentials.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Example Use Cases:

Use Case:

Fetch a specific file from GCS. The service provides higher performance compared to fetch processors when the data should be moved between different storages without any transformation.

Configuration:

"Bucket" = "${gcs.bucket}"

"Name" = "${filename}"

The "GCP Credentials Provider Service" property should specify an instance of the GCPCredentialsService in order to provide credentials for accessing the bucket.



System Resource Considerations:

None specified.

See Also:

FetchGCSObject