sendToGooglePubSub

Processor that acts as a Google Cloud Pub/Sub producer to publish messages to a Pub/Sub topic.

The server will use the given topic to publish messages and the given authenticationConfigKey to extract the credentials needed (such as clientId, clientEmail, privateKeyPkcs8, etc.) to establish connection to Google Cloud Pub/Sub.

Properties

Name Summary

forwardProperty()

Adds a name to a list to convert into Pub/Sub message attributes.

topic

The name of the Pub/Sub topic to publish messages to. Use the simple name, not the fully qualified one.

authenticationConfigKey

A secret key that the server uses to look up the credentials needed to perform the authentication.

name

Optional, descriptive name for the processor.

id

Required identifier of the processor, unique across all processors within the flow. Must be between 3 and 30 characters long; contain only lower and uppercase alphabetical characters (a-z and A-Z), numbers, dashes ("-"), and underscores ("_"); and start with an alphabetical character. In other words, it adheres to the regex pattern [a-zA-Z][a-zA-Z0-9_-]{2,29}.

exchangeProperties

Optional set of custom properties in a simple jdk-format, that are added to the message exchange properties before processing the incoming payload. Any existing properties with the same name will be replaced by properties defined here.

retainPayloadOnFailure

Whether the incoming payload is available for error processing on failure. Defaults to false.

Sub-builders

Name Summary

externalSystemDetails

Strategy for describing the external system integration. Optional.

circuitBreakerStrategy

Strategy for configuring the processor’s circuit breaker. Optional.

messageLoggingStrategy

Strategy for describing how a processor’s message is logged on the server.

payloadArchivingStrategy

Strategy for archiving payloads.

inboundTransformationStrategy

Strategy that customizes the conversion of an incoming payload by a processor (e.g., string to object). Should be used when the processor’s default conversion logic cannot be used.

Details

Authentication

The authenticationConfigKey property supports secrets of type GoogleServiceAccountCredentials. The corresponding service account must at least have the 'roles/pubsub.publisher' role to be able to send messages.

See the Secret Types documentation for formatting details.