
Publish
Publish
yaml
type: "io.kestra.plugin.gcp.pubsub.Publish"Examples
yaml
id: gcp_pubsub_publish
namespace: company.team
tasks:
- id: publish
type: io.kestra.plugin.gcp.pubsub.Publish
topic: topic-test
from:
- data: "{{ 'base64-encoded-string-1' | base64encode }}"
attributes:
testAttribute: KestraTest
- messageId: '1234'
- orderingKey: 'foo'
- data: "{{ 'base64-encoded-string-2' | base64encode }}"
- attributes:
testAttribute: KestraTest
Properties
from*Requiredstringarray
Definitions
io.kestra.plugin.gcp.pubsub.model.Message
attributesobject
dataobject
messageIdstring
orderingKeystring
topic*Requiredstring
impersonatedServiceAccountstring
projectIdstring
scopesarray
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]serdeTypestring
Default
STRINGPossible Values
STRINGJSONserviceAccountstring
Outputs
messagesCountinteger
Metrics
recordscounter
Unit
records