Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicebus.kotlin
import com.pulumi.azurenative.servicebus.TopicArgs.builder
import com.pulumi.azurenative.servicebus.kotlin.enums.EntityStatus
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Description of topic resource.
* Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
* Other available API versions: 2015-08-01, 2022-10-01-preview, 2023-01-01-preview.
* ## Example Usage
* ### TopicCreate
* ```csharp
* 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",
* });
* });
* ```
* ```go
* package main
* import (
* servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
* "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
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:servicebus:Topic sdk-Topics-5488 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}
* ```
* @property autoDeleteOnIdle ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
* @property defaultMessageTimeToLive 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.
* @property duplicateDetectionHistoryTimeWindow ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
* @property enableBatchedOperations Value that indicates whether server-side batched operations are enabled.
* @property enableExpress Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.
* @property enablePartitioning Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
* @property maxMessageSizeInKilobytes Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024.
* @property maxSizeInMegabytes Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.
* @property namespaceName The namespace name
* @property requiresDuplicateDetection Value indicating if this topic requires duplicate detection.
* @property resourceGroupName Name of the Resource group within the Azure subscription.
* @property status Enumerates the possible values for the status of a messaging entity.
* @property supportOrdering Value that indicates whether the topic supports ordering.
* @property topicName The topic name.
*/
public data class TopicArgs(
public val autoDeleteOnIdle: Output? = null,
public val defaultMessageTimeToLive: Output? = null,
public val duplicateDetectionHistoryTimeWindow: Output? = null,
public val enableBatchedOperations: Output? = null,
public val enableExpress: Output? = null,
public val enablePartitioning: Output? = null,
public val maxMessageSizeInKilobytes: Output? = null,
public val maxSizeInMegabytes: Output? = null,
public val namespaceName: Output? = null,
public val requiresDuplicateDetection: Output? = null,
public val resourceGroupName: Output? = null,
public val status: Output? = null,
public val supportOrdering: Output? = null,
public val topicName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicebus.TopicArgs =
com.pulumi.azurenative.servicebus.TopicArgs.builder()
.autoDeleteOnIdle(autoDeleteOnIdle?.applyValue({ args0 -> args0 }))
.defaultMessageTimeToLive(defaultMessageTimeToLive?.applyValue({ args0 -> args0 }))
.duplicateDetectionHistoryTimeWindow(
duplicateDetectionHistoryTimeWindow?.applyValue({ args0 ->
args0
}),
)
.enableBatchedOperations(enableBatchedOperations?.applyValue({ args0 -> args0 }))
.enableExpress(enableExpress?.applyValue({ args0 -> args0 }))
.enablePartitioning(enablePartitioning?.applyValue({ args0 -> args0 }))
.maxMessageSizeInKilobytes(maxMessageSizeInKilobytes?.applyValue({ args0 -> args0 }))
.maxSizeInMegabytes(maxSizeInMegabytes?.applyValue({ args0 -> args0 }))
.namespaceName(namespaceName?.applyValue({ args0 -> args0 }))
.requiresDuplicateDetection(requiresDuplicateDetection?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.supportOrdering(supportOrdering?.applyValue({ args0 -> args0 }))
.topicName(topicName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicArgs].
*/
@PulumiTagMarker
public class TopicArgsBuilder internal constructor() {
private var autoDeleteOnIdle: Output? = null
private var defaultMessageTimeToLive: Output? = null
private var duplicateDetectionHistoryTimeWindow: Output? = null
private var enableBatchedOperations: Output? = null
private var enableExpress: Output? = null
private var enablePartitioning: Output? = null
private var maxMessageSizeInKilobytes: Output? = null
private var maxSizeInMegabytes: Output? = null
private var namespaceName: Output? = null
private var requiresDuplicateDetection: Output? = null
private var resourceGroupName: Output? = null
private var status: Output? = null
private var supportOrdering: Output? = null
private var topicName: Output? = null
/**
* @param value ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
*/
@JvmName("fptwpiqmgipdftao")
public suspend fun autoDeleteOnIdle(`value`: Output) {
this.autoDeleteOnIdle = value
}
/**
* @param value 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.
*/
@JvmName("jcaxvmsikaqinims")
public suspend fun defaultMessageTimeToLive(`value`: Output) {
this.defaultMessageTimeToLive = value
}
/**
* @param value ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
*/
@JvmName("dllkbxcpkrgakovr")
public suspend fun duplicateDetectionHistoryTimeWindow(`value`: Output) {
this.duplicateDetectionHistoryTimeWindow = value
}
/**
* @param value Value that indicates whether server-side batched operations are enabled.
*/
@JvmName("spdqomakdybfxqai")
public suspend fun enableBatchedOperations(`value`: Output) {
this.enableBatchedOperations = value
}
/**
* @param value Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.
*/
@JvmName("jejbjnjsdvcilncv")
public suspend fun enableExpress(`value`: Output) {
this.enableExpress = value
}
/**
* @param value Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
*/
@JvmName("gcmohumxygswppru")
public suspend fun enablePartitioning(`value`: Output) {
this.enablePartitioning = value
}
/**
* @param value Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024.
*/
@JvmName("ymejhvurkuucdelm")
public suspend fun maxMessageSizeInKilobytes(`value`: Output) {
this.maxMessageSizeInKilobytes = value
}
/**
* @param value Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.
*/
@JvmName("oqnecswjacnrpnwx")
public suspend fun maxSizeInMegabytes(`value`: Output) {
this.maxSizeInMegabytes = value
}
/**
* @param value The namespace name
*/
@JvmName("hmvjoaanmrqumspb")
public suspend fun namespaceName(`value`: Output) {
this.namespaceName = value
}
/**
* @param value Value indicating if this topic requires duplicate detection.
*/
@JvmName("vkxaxkxbawticocw")
public suspend fun requiresDuplicateDetection(`value`: Output) {
this.requiresDuplicateDetection = value
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("njyvxwafjgagbxnf")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Enumerates the possible values for the status of a messaging entity.
*/
@JvmName("soujwqsilcbqtrly")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value Value that indicates whether the topic supports ordering.
*/
@JvmName("wendoxahroyprscp")
public suspend fun supportOrdering(`value`: Output) {
this.supportOrdering = value
}
/**
* @param value The topic name.
*/
@JvmName("sydaeeufwddfrabj")
public suspend fun topicName(`value`: Output) {
this.topicName = value
}
/**
* @param value ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
*/
@JvmName("csiqsmbnqjgskpqm")
public suspend fun autoDeleteOnIdle(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoDeleteOnIdle = mapped
}
/**
* @param value 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.
*/
@JvmName("wxaxlhtnnytsdyed")
public suspend fun defaultMessageTimeToLive(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultMessageTimeToLive = mapped
}
/**
* @param value ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
*/
@JvmName("knprpngjajvnrqrb")
public suspend fun duplicateDetectionHistoryTimeWindow(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.duplicateDetectionHistoryTimeWindow = mapped
}
/**
* @param value Value that indicates whether server-side batched operations are enabled.
*/
@JvmName("rvdjnxuwbhopupvw")
public suspend fun enableBatchedOperations(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableBatchedOperations = mapped
}
/**
* @param value Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.
*/
@JvmName("cfybpjjyqtwlhmqn")
public suspend fun enableExpress(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableExpress = mapped
}
/**
* @param value Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
*/
@JvmName("puueoiehehywmabx")
public suspend fun enablePartitioning(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enablePartitioning = mapped
}
/**
* @param value Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024.
*/
@JvmName("ypdgbimgishltuyx")
public suspend fun maxMessageSizeInKilobytes(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxMessageSizeInKilobytes = mapped
}
/**
* @param value Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.
*/
@JvmName("ecygifkkkmbiuevp")
public suspend fun maxSizeInMegabytes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxSizeInMegabytes = mapped
}
/**
* @param value The namespace name
*/
@JvmName("flgblfafnpfxrwyk")
public suspend fun namespaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespaceName = mapped
}
/**
* @param value Value indicating if this topic requires duplicate detection.
*/
@JvmName("syhprxjqkcjekrng")
public suspend fun requiresDuplicateDetection(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requiresDuplicateDetection = mapped
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("poqhynxtnvmvfqvk")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Enumerates the possible values for the status of a messaging entity.
*/
@JvmName("thvidiynwlpbhypi")
public suspend fun status(`value`: EntityStatus?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Value that indicates whether the topic supports ordering.
*/
@JvmName("fhkjvsqmryrouyda")
public suspend fun supportOrdering(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.supportOrdering = mapped
}
/**
* @param value The topic name.
*/
@JvmName("iarlejsoycubpocc")
public suspend fun topicName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.topicName = mapped
}
internal fun build(): TopicArgs = TopicArgs(
autoDeleteOnIdle = autoDeleteOnIdle,
defaultMessageTimeToLive = defaultMessageTimeToLive,
duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindow,
enableBatchedOperations = enableBatchedOperations,
enableExpress = enableExpress,
enablePartitioning = enablePartitioning,
maxMessageSizeInKilobytes = maxMessageSizeInKilobytes,
maxSizeInMegabytes = maxSizeInMegabytes,
namespaceName = namespaceName,
requiresDuplicateDetection = requiresDuplicateDetection,
resourceGroupName = resourceGroupName,
status = status,
supportOrdering = supportOrdering,
topicName = topicName,
)
}