expirationPolicy property

ExpirationPolicy? expirationPolicy
getter/setter pair

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 expiration_policy is not set, a default policy with ttl of 31 days will be used. The minimum allowed value for expiration_policy.ttl is 1 day. If expiration_policy is set, but expiration_policy.ttl is not set, the subscription never expires.

Optional.

Implementation

ExpirationPolicy? expirationPolicy;