Topic

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

Import

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

$ pulumi import alicloud:mns/topic:Topic topic topicName

Properties

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

Is logging enabled? true or false. Default value to false.

Link copied to clipboard
val maximumMessageSize: Output<Int>?

This indicates the maximum length, in bytes, of any message body sent to the topic. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536.

Link copied to clipboard
val name: 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 256 characters.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>