Interface PubsubSubscriptionConfig
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,com.hashicorp.cdktf.TerraformMetaArguments
- All Known Implementing Classes:
PubsubSubscriptionConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-31T03:59:22.479Z") @Stability(Stable) public interface PubsubSubscriptionConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPubsubSubscriptionConfig.BuilderA builder forPubsubSubscriptionConfigstatic classPubsubSubscriptionConfig.Jsii$ProxyAn implementation forPubsubSubscriptionConfig
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PubsubSubscriptionConfig.Builderbuilder()default NumbergetAckDeadlineSeconds()This value is the maximum time after a subscriber receives a message before the subscriber should acknowledge the message.default PubsubSubscriptionBigqueryConfiggetBigqueryConfig()bigquery_config block.default PubsubSubscriptionCloudStorageConfiggetCloudStorageConfig()cloud_storage_config block.default PubsubSubscriptionDeadLetterPolicygetDeadLetterPolicy()dead_letter_policy block.default ObjectgetEnableExactlyOnceDelivery()If 'true', Pub/Sub provides the following guarantees for the delivery of a message with a given value of messageId on this Subscriptions': - The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgement deadline expires.default ObjectgetEnableMessageOrdering()If 'true', messages published with the same orderingKey in PubsubMessage will be delivered to the subscribers in the order in which they are received by the Pub/Sub system.default PubsubSubscriptionExpirationPolicygetExpirationPolicy()expiration_policy block.default StringgetFilter()The subscription only delivers the messages that match the filter.default StringgetId()Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#id PubsubSubscription#id}.default Map<String,String>getLabels()A set of key/value label pairs to assign to this Subscription.default StringgetMessageRetentionDuration()How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published.StringgetName()Name of the subscription.default StringgetProject()Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#project PubsubSubscription#project}.default PubsubSubscriptionPushConfiggetPushConfig()push_config block.default ObjectgetRetainAckedMessages()Indicates whether to retain acknowledged messages.default PubsubSubscriptionRetryPolicygetRetryPolicy()retry_policy block.default PubsubSubscriptionTimeoutsgetTimeouts()timeouts block.StringgetTopic()A reference to a Topic resource, of the form projects/{project}/topics/{{name}} (as in the id property of a google_pubsub_topic), or just a topic name if the topic is in the same project as the subscription.
-
-
-
Method Detail
-
getName
@Stability(Stable) @NotNull String getName()
Name of the subscription.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#name PubsubSubscription#name}
-
getTopic
@Stability(Stable) @NotNull String getTopic()
A reference to a Topic resource, of the form projects/{project}/topics/{{name}} (as in the id property of a google_pubsub_topic), or just a topic name if the topic is in the same project as the subscription.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#topic PubsubSubscription#topic}
-
getAckDeadlineSeconds
@Stability(Stable) @Nullable default Number getAckDeadlineSeconds()
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#ack_deadline_seconds PubsubSubscription#ack_deadline_seconds}
-
getBigqueryConfig
@Stability(Stable) @Nullable default PubsubSubscriptionBigqueryConfig getBigqueryConfig()
bigquery_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#bigquery_config PubsubSubscription#bigquery_config}
-
getCloudStorageConfig
@Stability(Stable) @Nullable default PubsubSubscriptionCloudStorageConfig getCloudStorageConfig()
cloud_storage_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#cloud_storage_config PubsubSubscription#cloud_storage_config}
-
getDeadLetterPolicy
@Stability(Stable) @Nullable default PubsubSubscriptionDeadLetterPolicy getDeadLetterPolicy()
dead_letter_policy block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#dead_letter_policy PubsubSubscription#dead_letter_policy}
-
getEnableExactlyOnceDelivery
@Stability(Stable) @Nullable default Object getEnableExactlyOnceDelivery()
If 'true', Pub/Sub provides the following guarantees for the delivery of a message with a given value of messageId on this Subscriptions': - The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgement deadline expires.* An acknowledged message will not be resent to a subscriber. Note that subscribers may still receive multiple copies of a message when 'enable_exactly_once_delivery' is true if the message was published multiple times by a publisher client. These copies are considered distinct by Pub/Sub and have distinct messageId values Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#enable_exactly_once_delivery PubsubSubscription#enable_exactly_once_delivery}
-
getEnableMessageOrdering
@Stability(Stable) @Nullable default Object getEnableMessageOrdering()
If 'true', messages published with the same orderingKey in PubsubMessage will be delivered to the subscribers in the order in which they are received by the Pub/Sub system.Otherwise, they may be delivered in any order. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#enable_message_ordering PubsubSubscription#enable_message_ordering}
-
getExpirationPolicy
@Stability(Stable) @Nullable default PubsubSubscriptionExpirationPolicy getExpirationPolicy()
expiration_policy block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#expiration_policy PubsubSubscription#expiration_policy}
-
getFilter
@Stability(Stable) @Nullable default String getFilter()
The subscription only delivers the messages that match the filter.Pub/Sub automatically acknowledges the messages that don't match the filter. You can filter messages by their attributes. The maximum length of a filter is 256 bytes. After creating the subscription, you can't modify the filter. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#filter PubsubSubscription#filter}
-
getId
@Stability(Stable) @Nullable default String getId()
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#id PubsubSubscription#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
-
getLabels
@Stability(Stable) @Nullable default Map<String,String> getLabels()
A set of key/value label pairs to assign to this Subscription.**Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#labels PubsubSubscription#labels}
-
getMessageRetentionDuration
@Stability(Stable) @Nullable default String getMessageRetentionDuration()
How long to retain unacknowledged messages in the subscription's backlog, from the moment a message is published.If retain_acked_messages 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"'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#message_retention_duration PubsubSubscription#message_retention_duration}
-
getProject
@Stability(Stable) @Nullable default String getProject()
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#project PubsubSubscription#project}.
-
getPushConfig
@Stability(Stable) @Nullable default PubsubSubscriptionPushConfig getPushConfig()
push_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#push_config PubsubSubscription#push_config}
-
getRetainAckedMessages
@Stability(Stable) @Nullable default Object getRetainAckedMessages()
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#retain_acked_messages PubsubSubscription#retain_acked_messages}
-
getRetryPolicy
@Stability(Stable) @Nullable default PubsubSubscriptionRetryPolicy getRetryPolicy()
retry_policy block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#retry_policy PubsubSubscription#retry_policy}
-
getTimeouts
@Stability(Stable) @Nullable default PubsubSubscriptionTimeouts getTimeouts()
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_subscription#timeouts PubsubSubscription#timeouts}
-
builder
@Stability(Stable) static PubsubSubscriptionConfig.Builder builder()
- Returns:
- a
PubsubSubscriptionConfig.BuilderofPubsubSubscriptionConfig
-
-