google functions sink Google Functions Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send data to Google Functions.

Configuration Options

The following table summarizes the configuration options available for the google-functions-sink Kamelet:

Property Name Description Type Default Example

functionName

Function Name

Required The Function name.

string

projectId

Project Id

Required The Google Cloud Functions Project ID.

string

region

Region

Required The region where Google Cloud Functions has been deployed.

string

serviceAccountKey

Service Account Key

Required The path to the service account key file that provides credentials for the Google Cloud Functions platform. You must encode this value in base64.

binary

Dependencies

At runtime, the google-functions-sink Kamelet relies upon the presence of the following dependencies:

  • camel:kamelet

  • camel:google-functions

  • camel:jackson

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:google-functions-sink"

You can now run it directly through the following command

camel run route.yaml