Class SubscriptionArgs
Inherited Members
Namespace: Pulumi.Gcp.PubSub
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class SubscriptionArgs : ResourceArgs
Constructors
View SourceSubscriptionArgs()
Declaration
public SubscriptionArgs()
Properties
View SourceAckDeadlineSeconds
This value is the maximum time after a subscriber receives a message before the subscriber should acknowledge the message. After message delivery but before the ack deadline expires and before the message is acknowledged, it is an outstanding message and will not be delivered again during that time (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call subscriptions.modifyAckDeadline with the corresponding ackId if using pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used. For push delivery, this value is also used to set the request timeout for the call to the push endpoint. If the subscriber never acknowledges the message, the Pub/Sub system will eventually redeliver the message.
Declaration
public Input<int> AckDeadlineSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
DeadLetterPolicy
A policy that specifies the conditions for dead lettering messages in this subscription. If dead_letter_policy is not set, dead lettering is disabled. The Cloud Pub/Sub service account associated with this subscriptions's parent project (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have permission to Acknowledge() messages on this subscription. Structure is documented below.
Declaration
public Input<SubscriptionDeadLetterPolicyArgs> DeadLetterPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<SubscriptionDeadLetterPolicyArgs> |
ExpirationPolicy
A policy that specifies the conditions for this subscription's expiration. A subscription is considered active as long as any connected subscriber is successfully consuming messages from the subscription or is issuing operations on the subscription. If expirationPolicy is not set, a default policy with ttl of 31 days will be used. If it is set but ttl is "", the resource never expires. The minimum allowed value for expirationPolicy.ttl is 1 day. Structure is documented below.
Declaration
public Input<SubscriptionExpirationPolicyArgs> ExpirationPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<SubscriptionExpirationPolicyArgs> |
Labels
A set of key/value label pairs to assign to this Subscription.
Declaration
public InputMap<string> Labels { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |
MessageRetentionDuration
How long to retain unacknowledged messages in the subscription's
backlog, from the moment a message is published. If
retainAckedMessages is true, then this also configures the retention
of acknowledged messages, and thus configures how far back in time a
subscriptions.seek can be done. Defaults to 7 days. Cannot be more
than 7 days ("604800s") or less than 10 minutes ("600s").
A duration in seconds with up to nine fractional digits, terminated
by 's'. Example: "600.5s".
Declaration
public Input<string> MessageRetentionDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
Name of the subscription.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PushConfig
If push delivery is used with this subscription, this field is used to configure it. An empty pushConfig signifies that the subscriber will pull and ack messages using API methods. Structure is documented below.
Declaration
public Input<SubscriptionPushConfigArgs> PushConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<SubscriptionPushConfigArgs> |
RetainAckedMessages
Indicates whether to retain acknowledged messages. If true, then
messages are not expunged from the subscription's backlog, even if
they are acknowledged, until they fall out of the
messageRetentionDuration window.
Declaration
public Input<bool> RetainAckedMessages { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Topic
A reference to a Topic resource.
Declaration
public Input<string> Topic { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |