topics_create: Creates a pub/sub topic

View source: R/topics.R

topics_createR Documentation

Creates a pub/sub topic

Description

Creates a pub/sub topic

Usage

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 March 7, 2023, 6:38 p.m.