Topic Args
data class TopicArgs(val autoDeleteOnIdle: Output<String>? = null, val defaultMessageTimeToLive: Output<String>? = null, val duplicateDetectionHistoryTimeWindow: Output<String>? = null, val enableBatchedOperations: Output<Boolean>? = null, val enableExpress: Output<Boolean>? = null, val enablePartitioning: Output<Boolean>? = null, val maxSizeInMegabytes: Output<Int>? = null, val namespaceName: Output<String>? = null, val requiresDuplicateDetection: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val status: Output<EntityStatus>? = null, val supportOrdering: Output<Boolean>? = null, val topicName: Output<String>? = null) : ConvertibleToJava<TopicArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun TopicArgs(autoDeleteOnIdle: Output<String>? = null, defaultMessageTimeToLive: Output<String>? = null, duplicateDetectionHistoryTimeWindow: Output<String>? = null, enableBatchedOperations: Output<Boolean>? = null, enableExpress: Output<Boolean>? = null, enablePartitioning: Output<Boolean>? = null, maxSizeInMegabytes: Output<Int>? = null, namespaceName: Output<String>? = null, requiresDuplicateDetection: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, status: Output<EntityStatus>? = null, supportOrdering: Output<Boolean>? = null, topicName: Output<String>? = null)