TopicSubscription

class TopicSubscription : KotlinCustomResource

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

Properties

Link copied to clipboard
val endpoint: Output<String>

The endpoint has three format. Available values format:

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

The length should be shorter than 16.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

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>?

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topicName: Output<String>

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.

Link copied to clipboard
val urn: Output<String>