topics_create: Creates a pub/sub topic

Description Usage Arguments Value See Also

View source: R/topics.R

Description

Creates a pub/sub topic

Usage

1
2
3
4
5
6
7
8
9
topics_create(
  name,
  labels = NULL,
  kms_key_name = NULL,
  satisfies_pzs = NULL,
  message_storage_policy = NULL,
  schema_settings = NULL,
  message_retention_duration = NULL
)

Arguments

name

character, Topic Required, topic name or instance of a topic object

labels

list Key-value pairs for topic labels

kms_key_name

character The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.

satisfies_pzs

logical Reserved for future use.

message_storage_policy

MessageStorePolicy An instance of a MessageStorePolicy object Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored

schema_settings

SchemaSettings An instance of a SchemaSettings object

message_retention_duration

numeric Indicates the minimum duration (in seconds) to retain a message after it is published to the topic

Value

A Topic object representing the freshly created topic

See Also

Other Topic functions: topics_delete(), topics_exists(), topics_get(), topics_list_subscriptions(), topics_list(), topics_patch(), topics_publish()


googlePubsubR documentation built on Jan. 17, 2022, 1:06 a.m.