Subscription: Builds a Subscription Object

View source: R/objects.R

SubscriptionR Documentation

Builds a Subscription Object

Description

Builds a Subscription Object

Usage

Subscription(
  dead_letter_policy = NULL,
  msg_retention_duration = NULL,
  labels = NULL,
  retry_policy = NULL,
  push_config = NULL,
  ack_deadline = NULL,
  expiration_policy = NULL,
  filter = NULL,
  detached = NULL,
  retain_acked_msgs = NULL,
  topic = NULL,
  name = NULL,
  enable_msg_ordering = NULL,
  topic_msg_retention = NULL
)

Arguments

dead_letter_policy

DeadLetterPolicy A policy that specifies the conditions for dead lettering messages in this subscription

msg_retention_duration

character How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published

labels

list See Creating and managing labels

retry_policy

RetryPolicy A policy that specifies how Pub/Sub retries message delivery for this subscription

push_config

PushConfig If push delivery is used with this subscription, this field is used to configure it

ack_deadline

character The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message

expiration_policy

ExpirationPolicy A policy that specifies the conditions for this subscription's expiration

filter

character An expression written in the Pub/Sub filter language

detached

logical Indicates whether the subscription is detached from its topic

retain_acked_msgs

logical Indicates whether to retain acknowledged messages

topic

character, Topic A Topic object or topic name

name

character A name for the subscription

enable_msg_ordering

logical If true, messages published with the same ordering_key in PubsubMessage will be delivered to the subscribers in the order in which they are received by the Pub/Sub system

topic_msg_retention

character minimum duration for which a message is retained after it is published to the subscription's topic

Value

Subscription object

See Also

Other Object functions: DeadLetterPolicy(), DlqPolicy(), ExpirationPolicy(), MessageStoragePolicy(), PubsubMessage(), PushConfig(), RetryPolicy(), SchemaSettings(), Schema(), Snapshot(), Topic()


googlePubsubR documentation built on March 7, 2023, 6:38 p.m.