Service Topic
Provides a Message Notification Service Topic resource. For information about Message Notification Service Topic and how to use it, see What is Topic.
NOTE: Available since v1.188.0.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.message.ServiceTopic;
import com.pulumi.alicloud.message.ServiceTopicArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var default_ = new ServiceTopic("default", ServiceTopicArgs.builder()
.topicName(name)
.maxMessageSize(12357)
.loggingEnabled(true)
.build());
}
}
Content copied to clipboard
Import
Message Notification Service Topic can be imported using the id or topic_name, e.g.
$ pulumi import alicloud:message/serviceTopic:ServiceTopic example <topic_name>
Content copied to clipboard