ServiceTopicArgs

data class ServiceTopicArgs(val loggingEnabled: Output<Boolean>? = null, val maxMessageSize: Output<Int>? = null, val topicName: Output<String>? = null) : ConvertibleToJava<ServiceTopicArgs>

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());
}
}

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>

Constructors

Link copied to clipboard
fun ServiceTopicArgs(loggingEnabled: Output<Boolean>? = null, maxMessageSize: Output<Int>? = null, topicName: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val loggingEnabled: Output<Boolean>? = null

Specifies whether to enable the log management feature. Default value: false. Valid values:

Link copied to clipboard
val maxMessageSize: Output<Int>? = null

The maximum size of a message body that can be sent to the topic. Unit: bytes. Valid values: 1024-65536. Default value: 65536.

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

Two topics on a single account in the same region cannot have the same 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 255 characters.