Topic Args
data class TopicArgs(val autoDeleteOnIdle: Output<String>? = null, val defaultMessageTtl: Output<String>? = null, val duplicateDetectionHistoryTimeWindow: Output<String>? = null, val enableBatchedOperations: Output<Boolean>? = null, val enableExpress: Output<Boolean>? = null, val enablePartitioning: Output<Boolean>? = null, val maxMessageSizeInKilobytes: Output<Int>? = null, val maxSizeInMegabytes: Output<Int>? = null, val name: Output<String>? = null, val namespaceId: Output<String>? = null, val requiresDuplicateDetection: Output<Boolean>? = null, val status: Output<String>? = null, val supportOrdering: Output<Boolean>? = null) : ConvertibleToJava<TopicArgs>
Manages a ServiceBus Topic. Note Topics can only be created in Namespaces with an SKU of standard
or higher.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.servicebus.Namespace;
import com.pulumi.azure.servicebus.NamespaceArgs;
import com.pulumi.azure.servicebus.Topic;
import com.pulumi.azure.servicebus.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Standard")
.tags(Map.of("source", "example"))
.build());
var exampleTopic = new Topic("exampleTopic", TopicArgs.builder()
.namespaceId(exampleNamespace.id())
.enablePartitioning(true)
.build());
}
}
Content copied to clipboard
Import
Service Bus Topics can be imported using the resource id
, e.g.
$ pulumi import azure:servicebus/topic:Topic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceBus/namespaces/sbns1/topics/sntopic1
Content copied to clipboard
Constructors
Link copied to clipboard
fun TopicArgs(autoDeleteOnIdle: Output<String>? = null, defaultMessageTtl: Output<String>? = null, duplicateDetectionHistoryTimeWindow: Output<String>? = null, enableBatchedOperations: Output<Boolean>? = null, enableExpress: Output<Boolean>? = null, enablePartitioning: Output<Boolean>? = null, maxMessageSizeInKilobytes: Output<Int>? = null, maxSizeInMegabytes: Output<Int>? = null, name: Output<String>? = null, namespaceId: Output<String>? = null, requiresDuplicateDetection: Output<Boolean>? = null, status: Output<String>? = null, supportOrdering: Output<Boolean>? = null)
Functions
Properties
Link copied to clipboard
Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
Link copied to clipboard
Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.