google::subscription¶
Add a subscription.
Example¶
google::subscription subscription-pull-example
name: "subscription-pull-example"
topic: $(google::topic topic-example-for-subscription)
ack-deadline-seconds: 15
enable-message-ordering: false
filter: ""
retain-acked-messages: false
expiration-policy
ttl
seconds: 2678400
nanos: 0
end
end
message-retention
seconds: 525780
nanos: 0
end
retry-policy
maximum-backoff
seconds: 600
nanos: 0
end
minimum-backoff
seconds: 600
nanos: 0
end
end
labels: {
name: "subscription-pull-example"
}
end
Attributes¶
Attribute | Description |
---|---|
name | The name of the subscription. |
topic | The topic from which this subscription is receiving messages. (Required) |
ack-deadline-seconds | The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. Valid values are between 10 to 600 . |
dead-letter-policy subresource | The policy that specifies the conditions for dead lettering messages in this subscription.
|
detached | When set to true , the subscription is detached from its topic. Once detached cannot be re attached. |
enable-message-ordering | When set to true , messages published with the same ordering key in a message will be delivered to the subscribers in the order in which they are received by the Pub/Sub system. |
expiration-policy subresource | The policy that specifies the conditions for this subscription’s expiration.
|
filter | The expression written in the Pub/Sub filter language. |
labels map | The set of labels for the subscription. |
message-retention subresource | The configuration for how long to retain unacknowledged messages in the subscription’s backlog, from the moment a message is published.
|
push-config subresource | The push delivery configuration for the subscription.
|
retain-acked-messages | When set to true , the acknowledged messages are retained. |
retry-policy subresource | The policy that specifies how Pub/Sub retries message delivery for this subscription.
|
Outputs¶
Attribute | Description |
---|---|
reference-name | The full name of the subscription path including the project path. |