Topic Args
Description of topic resource. API Version: 2017-04-01.
Example Usage
TopicCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var topic = new AzureNative.ServiceBus.Topic("topic", new()
{
EnableExpress = true,
NamespaceName = "sdk-Namespace-1617",
ResourceGroupName = "ArunMonocle",
TopicName = "sdk-Topics-5488",
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewTopic(ctx, "topic", &servicebus.TopicArgs{
EnableExpress: pulumi.Bool(true),
NamespaceName: pulumi.String("sdk-Namespace-1617"),
ResourceGroupName: pulumi.String("ArunMonocle"),
TopicName: pulumi.String("sdk-Topics-5488"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.servicebus.Topic;
import com.pulumi.azurenative.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 topic = new Topic("topic", TopicArgs.builder()
.enableExpress(true)
.namespaceName("sdk-Namespace-1617")
.resourceGroupName("ArunMonocle")
.topicName("sdk-Topics-5488")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicebus:Topic sdk-Topics-5488 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-Topics-5488
Constructors
Properties
ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Value that indicates whether server-side batched operations are enabled.
Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.
Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.
The namespace name
Value indicating if this topic requires duplicate detection.
Name of the Resource group within the Azure subscription.
Enumerates the possible values for the status of a messaging entity.
Value that indicates whether the topic supports ordering.