TopicSubscriptionArgs

data class TopicSubscriptionArgs(val endpoint: Output<String>? = null, val filterTag: Output<String>? = null, val name: Output<String>? = null, val notifyContentFormat: Output<String>? = null, val notifyStrategy: Output<String>? = null, val topicName: Output<String>? = null) : ConvertibleToJava<TopicSubscriptionArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.mns.Topic;
import com.pulumi.alicloud.mns.TopicArgs;
import com.pulumi.alicloud.mns.TopicSubscription;
import com.pulumi.alicloud.mns.TopicSubscriptionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var topic = new Topic("topic", TopicArgs.builder()
.loggingEnabled(false)
.maximumMessageSize(65536)
.build());
var subscription = new TopicSubscription("subscription", TopicSubscriptionArgs.builder()
.endpoint("http://www.xxx.com/xxx")
.filterTag("test")
.notifyContentFormat("XML")
.notifyStrategy("BACKOFF_RETRY")
.topicName("tf-example-mnstopic")
.build());
}
}

Import

MNS Topic subscription can be imported using the id, e.g.

$ pulumi import alicloud:mns/topicSubscription:TopicSubscription subscription tf-example-mnstopic:tf-example-mnstopic-sub

Constructors

Link copied to clipboard
fun TopicSubscriptionArgs(endpoint: Output<String>? = null, filterTag: Output<String>? = null, name: Output<String>? = null, notifyContentFormat: Output<String>? = null, notifyStrategy: Output<String>? = null, topicName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TopicSubscriptionArgs

Properties

Link copied to clipboard
val endpoint: Output<String>? = null

The endpoint has three format. Available values format:

Link copied to clipboard
val filterTag: Output<String>? = null

The length should be shorter than 16.

Link copied to clipboard
val name: Output<String>? = null

Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.

Link copied to clipboard
val notifyContentFormat: Output<String>? = null

The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: SIMPLIFIED, XML and JSON. Default to SIMPLIFIED.

Link copied to clipboard
val notifyStrategy: Output<String>? = null

The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. The Valid values: EXPONENTIAL_DECAY_RETRY and BACKOFF_RETRY. Default value to BACKOFF_RETRY .

Link copied to clipboard
val topicName: Output<String>? = null

The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.