PubsubTargetResponse constructor

const PubsubTargetResponse({
  1. required Input<Map<String, String>> attributes,
  2. required Input<String> data,
  3. required Input<String> topicName,
})

Creates a new PubsubTargetResponse. attributes Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. data The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. topicName The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID. The topic must be in the same project as the Cloud Scheduler job.

Implementation

const PubsubTargetResponse({
  required this.attributes,
  required this.data,
  required this.topicName,
});