ServiceTopic

class ServiceTopic : KotlinCustomResource

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>

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val loggingEnabled: Output<Boolean>?

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

Link copied to clipboard
val maxMessageSize: Output<Int>

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

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.

Link copied to clipboard
val urn: Output<String>