All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.streamanalytics.kotlin.OutputServicebusTopicArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.streamanalytics.kotlin

import com.pulumi.azure.streamanalytics.OutputServicebusTopicArgs.builder
import com.pulumi.azure.streamanalytics.kotlin.inputs.OutputServicebusTopicSerializationArgs
import com.pulumi.azure.streamanalytics.kotlin.inputs.OutputServicebusTopicSerializationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Stream Analytics Output to a ServiceBus Topic.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "rg-example",
 *     location: "West Europe",
 * });
 * const example = azure.streamanalytics.getJobOutput({
 *     name: "example-job",
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * const exampleNamespace = new azure.servicebus.Namespace("example", {
 *     name: "example-namespace",
 *     location: exampleResourceGroup.location,
 *     resourceGroupName: exampleResourceGroup.name,
 *     sku: "Standard",
 * });
 * const exampleTopic = new azure.servicebus.Topic("example", {
 *     name: "example-topic",
 *     namespaceId: exampleNamespace.id,
 *     enablePartitioning: true,
 * });
 * const exampleOutputServicebusTopic = new azure.streamanalytics.OutputServicebusTopic("example", {
 *     name: "service-bus-topic-output",
 *     streamAnalyticsJobName: example.apply(example => example.name),
 *     resourceGroupName: example.apply(example => example.resourceGroupName),
 *     topicName: exampleTopic.name,
 *     servicebusNamespace: exampleNamespace.name,
 *     sharedAccessPolicyKey: exampleNamespace.defaultPrimaryKey,
 *     sharedAccessPolicyName: "RootManageSharedAccessKey",
 *     propertyColumns: [
 *         "col1",
 *         "col2",
 *     ],
 *     serialization: {
 *         type: "Csv",
 *         format: "Array",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example_resource_group = azure.core.ResourceGroup("example",
 *     name="rg-example",
 *     location="West Europe")
 * example = azure.streamanalytics.get_job_output(name="example-job",
 *     resource_group_name=example_resource_group.name)
 * example_namespace = azure.servicebus.Namespace("example",
 *     name="example-namespace",
 *     location=example_resource_group.location,
 *     resource_group_name=example_resource_group.name,
 *     sku="Standard")
 * example_topic = azure.servicebus.Topic("example",
 *     name="example-topic",
 *     namespace_id=example_namespace.id,
 *     enable_partitioning=True)
 * example_output_servicebus_topic = azure.streamanalytics.OutputServicebusTopic("example",
 *     name="service-bus-topic-output",
 *     stream_analytics_job_name=example.name,
 *     resource_group_name=example.resource_group_name,
 *     topic_name=example_topic.name,
 *     servicebus_namespace=example_namespace.name,
 *     shared_access_policy_key=example_namespace.default_primary_key,
 *     shared_access_policy_name="RootManageSharedAccessKey",
 *     property_columns=[
 *         "col1",
 *         "col2",
 *     ],
 *     serialization={
 *         "type": "Csv",
 *         "format": "Array",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "rg-example",
 *         Location = "West Europe",
 *     });
 *     var example = Azure.StreamAnalytics.GetJob.Invoke(new()
 *     {
 *         Name = "example-job",
 *         ResourceGroupName = exampleResourceGroup.Name,
 *     });
 *     var exampleNamespace = new Azure.ServiceBus.Namespace("example", new()
 *     {
 *         Name = "example-namespace",
 *         Location = exampleResourceGroup.Location,
 *         ResourceGroupName = exampleResourceGroup.Name,
 *         Sku = "Standard",
 *     });
 *     var exampleTopic = new Azure.ServiceBus.Topic("example", new()
 *     {
 *         Name = "example-topic",
 *         NamespaceId = exampleNamespace.Id,
 *         EnablePartitioning = true,
 *     });
 *     var exampleOutputServicebusTopic = new Azure.StreamAnalytics.OutputServicebusTopic("example", new()
 *     {
 *         Name = "service-bus-topic-output",
 *         StreamAnalyticsJobName = example.Apply(getJobResult => getJobResult.Name),
 *         ResourceGroupName = example.Apply(getJobResult => getJobResult.ResourceGroupName),
 *         TopicName = exampleTopic.Name,
 *         ServicebusNamespace = exampleNamespace.Name,
 *         SharedAccessPolicyKey = exampleNamespace.DefaultPrimaryKey,
 *         SharedAccessPolicyName = "RootManageSharedAccessKey",
 *         PropertyColumns = new[]
 *         {
 *             "col1",
 *             "col2",
 *         },
 *         Serialization = new Azure.StreamAnalytics.Inputs.OutputServicebusTopicSerializationArgs
 *         {
 *             Type = "Csv",
 *             Format = "Array",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/servicebus"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/streamanalytics"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("rg-example"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example := streamanalytics.LookupJobOutput(ctx, streamanalytics.GetJobOutputArgs{
 * 			Name:              pulumi.String("example-job"),
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 		}, nil)
 * 		exampleNamespace, err := servicebus.NewNamespace(ctx, "example", &servicebus.NamespaceArgs{
 * 			Name:              pulumi.String("example-namespace"),
 * 			Location:          exampleResourceGroup.Location,
 * 			ResourceGroupName: exampleResourceGroup.Name,
 * 			Sku:               pulumi.String("Standard"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleTopic, err := servicebus.NewTopic(ctx, "example", &servicebus.TopicArgs{
 * 			Name:               pulumi.String("example-topic"),
 * 			NamespaceId:        exampleNamespace.ID(),
 * 			EnablePartitioning: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = streamanalytics.NewOutputServicebusTopic(ctx, "example", &streamanalytics.OutputServicebusTopicArgs{
 * 			Name: pulumi.String("service-bus-topic-output"),
 * 			StreamAnalyticsJobName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
 * 				return &example.Name, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			ResourceGroupName: pulumi.String(example.ApplyT(func(example streamanalytics.GetJobResult) (*string, error) {
 * 				return &example.ResourceGroupName, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			TopicName:              exampleTopic.Name,
 * 			ServicebusNamespace:    exampleNamespace.Name,
 * 			SharedAccessPolicyKey:  exampleNamespace.DefaultPrimaryKey,
 * 			SharedAccessPolicyName: pulumi.String("RootManageSharedAccessKey"),
 * 			PropertyColumns: pulumi.StringArray{
 * 				pulumi.String("col1"),
 * 				pulumi.String("col2"),
 * 			},
 * 			Serialization: &streamanalytics.OutputServicebusTopicSerializationArgs{
 * 				Type:   pulumi.String("Csv"),
 * 				Format: pulumi.String("Array"),
 * 			},
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.streamanalytics.StreamanalyticsFunctions;
 * import com.pulumi.azure.streamanalytics.inputs.GetJobArgs;
 * 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 com.pulumi.azure.streamanalytics.OutputServicebusTopic;
 * import com.pulumi.azure.streamanalytics.OutputServicebusTopicArgs;
 * import com.pulumi.azure.streamanalytics.inputs.OutputServicebusTopicSerializationArgs;
 * 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()
 *             .name("rg-example")
 *             .location("West Europe")
 *             .build());
 *         final var example = StreamanalyticsFunctions.getJob(GetJobArgs.builder()
 *             .name("example-job")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .build());
 *         var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
 *             .name("example-namespace")
 *             .location(exampleResourceGroup.location())
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .sku("Standard")
 *             .build());
 *         var exampleTopic = new Topic("exampleTopic", TopicArgs.builder()
 *             .name("example-topic")
 *             .namespaceId(exampleNamespace.id())
 *             .enablePartitioning(true)
 *             .build());
 *         var exampleOutputServicebusTopic = new OutputServicebusTopic("exampleOutputServicebusTopic", OutputServicebusTopicArgs.builder()
 *             .name("service-bus-topic-output")
 *             .streamAnalyticsJobName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.name())))
 *             .resourceGroupName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.resourceGroupName())))
 *             .topicName(exampleTopic.name())
 *             .servicebusNamespace(exampleNamespace.name())
 *             .sharedAccessPolicyKey(exampleNamespace.defaultPrimaryKey())
 *             .sharedAccessPolicyName("RootManageSharedAccessKey")
 *             .propertyColumns(
 *                 "col1",
 *                 "col2")
 *             .serialization(OutputServicebusTopicSerializationArgs.builder()
 *                 .type("Csv")
 *                 .format("Array")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleResourceGroup:
 *     type: azure:core:ResourceGroup
 *     name: example
 *     properties:
 *       name: rg-example
 *       location: West Europe
 *   exampleNamespace:
 *     type: azure:servicebus:Namespace
 *     name: example
 *     properties:
 *       name: example-namespace
 *       location: ${exampleResourceGroup.location}
 *       resourceGroupName: ${exampleResourceGroup.name}
 *       sku: Standard
 *   exampleTopic:
 *     type: azure:servicebus:Topic
 *     name: example
 *     properties:
 *       name: example-topic
 *       namespaceId: ${exampleNamespace.id}
 *       enablePartitioning: true
 *   exampleOutputServicebusTopic:
 *     type: azure:streamanalytics:OutputServicebusTopic
 *     name: example
 *     properties:
 *       name: service-bus-topic-output
 *       streamAnalyticsJobName: ${example.name}
 *       resourceGroupName: ${example.resourceGroupName}
 *       topicName: ${exampleTopic.name}
 *       servicebusNamespace: ${exampleNamespace.name}
 *       sharedAccessPolicyKey: ${exampleNamespace.defaultPrimaryKey}
 *       sharedAccessPolicyName: RootManageSharedAccessKey
 *       propertyColumns:
 *         - col1
 *         - col2
 *       serialization:
 *         type: Csv
 *         format: Array
 * variables:
 *   example:
 *     fn::invoke:
 *       Function: azure:streamanalytics:getJob
 *       Arguments:
 *         name: example-job
 *         resourceGroupName: ${exampleResourceGroup.name}
 * ```
 * 
 * ## Import
 * Stream Analytics Output ServiceBus Topic's can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:streamanalytics/outputServicebusTopic:OutputServicebusTopic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1
 * ```
 * @property authenticationMode The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`.
 * @property name The name of the Stream Output. Changing this forces a new resource to be created.
 * @property propertyColumns A list of property columns to add to the Service Bus Topic output.
 * @property resourceGroupName The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
 * @property serialization A `serialization` block as defined below.
 * @property servicebusNamespace The namespace that is associated with the desired Event Hub, Service Bus Topic, Service Bus Topic, etc.
 * @property sharedAccessPolicyKey The shared access policy key for the specified shared access policy. Required if `authentication_mode` is `ConnectionString`.
 * @property sharedAccessPolicyName The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required if `authentication_mode` is `ConnectionString`.
 * @property streamAnalyticsJobName The name of the Stream Analytics Job. Changing this forces a new resource to be created.
 * @property systemPropertyColumns A key-value pair of system property columns that will be attached to the outgoing messages for the Service Bus Topic Output.
 * > **NOTE:** The acceptable keys are `ContentType`, `CorrelationId`, `Label`, `MessageId`, `PartitionKey`, `ReplyTo`, `ReplyToSessionId`, `ScheduledEnqueueTimeUtc`, `SessionId`, `TimeToLive` and `To`.
 * @property topicName The name of the Service Bus Topic.
 */
public data class OutputServicebusTopicArgs(
    public val authenticationMode: Output? = null,
    public val name: Output? = null,
    public val propertyColumns: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val serialization: Output? = null,
    public val servicebusNamespace: Output? = null,
    public val sharedAccessPolicyKey: Output? = null,
    public val sharedAccessPolicyName: Output? = null,
    public val streamAnalyticsJobName: Output? = null,
    public val systemPropertyColumns: Output>? = null,
    public val topicName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.streamanalytics.OutputServicebusTopicArgs =
        com.pulumi.azure.streamanalytics.OutputServicebusTopicArgs.builder()
            .authenticationMode(authenticationMode?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .propertyColumns(propertyColumns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serialization(serialization?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .servicebusNamespace(servicebusNamespace?.applyValue({ args0 -> args0 }))
            .sharedAccessPolicyKey(sharedAccessPolicyKey?.applyValue({ args0 -> args0 }))
            .sharedAccessPolicyName(sharedAccessPolicyName?.applyValue({ args0 -> args0 }))
            .streamAnalyticsJobName(streamAnalyticsJobName?.applyValue({ args0 -> args0 }))
            .systemPropertyColumns(
                systemPropertyColumns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .topicName(topicName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OutputServicebusTopicArgs].
 */
@PulumiTagMarker
public class OutputServicebusTopicArgsBuilder internal constructor() {
    private var authenticationMode: Output? = null

    private var name: Output? = null

    private var propertyColumns: Output>? = null

    private var resourceGroupName: Output? = null

    private var serialization: Output? = null

    private var servicebusNamespace: Output? = null

    private var sharedAccessPolicyKey: Output? = null

    private var sharedAccessPolicyName: Output? = null

    private var streamAnalyticsJobName: Output? = null

    private var systemPropertyColumns: Output>? = null

    private var topicName: Output? = null

    /**
     * @param value The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`.
     */
    @JvmName("tvrvjjtlneimoybs")
    public suspend fun authenticationMode(`value`: Output) {
        this.authenticationMode = value
    }

    /**
     * @param value The name of the Stream Output. Changing this forces a new resource to be created.
     */
    @JvmName("lgbidiwyuggaxhyi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of property columns to add to the Service Bus Topic output.
     */
    @JvmName("xvqpbkocdmtfrnwd")
    public suspend fun propertyColumns(`value`: Output>) {
        this.propertyColumns = value
    }

    @JvmName("trskdenoyxsmafak")
    public suspend fun propertyColumns(vararg values: Output) {
        this.propertyColumns = Output.all(values.asList())
    }

    /**
     * @param values A list of property columns to add to the Service Bus Topic output.
     */
    @JvmName("jyernugcdyliuebe")
    public suspend fun propertyColumns(values: List>) {
        this.propertyColumns = Output.all(values)
    }

    /**
     * @param value The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
     */
    @JvmName("huyfnsxqsmvfhmjl")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `serialization` block as defined below.
     */
    @JvmName("jbihpudjjoiqmyal")
    public suspend fun serialization(`value`: Output) {
        this.serialization = value
    }

    /**
     * @param value The namespace that is associated with the desired Event Hub, Service Bus Topic, Service Bus Topic, etc.
     */
    @JvmName("wblupxwiailxbeec")
    public suspend fun servicebusNamespace(`value`: Output) {
        this.servicebusNamespace = value
    }

    /**
     * @param value The shared access policy key for the specified shared access policy. Required if `authentication_mode` is `ConnectionString`.
     */
    @JvmName("ygbrtqlnfkiqvovj")
    public suspend fun sharedAccessPolicyKey(`value`: Output) {
        this.sharedAccessPolicyKey = value
    }

    /**
     * @param value The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required if `authentication_mode` is `ConnectionString`.
     */
    @JvmName("kllfxvfrurufuluo")
    public suspend fun sharedAccessPolicyName(`value`: Output) {
        this.sharedAccessPolicyName = value
    }

    /**
     * @param value The name of the Stream Analytics Job. Changing this forces a new resource to be created.
     */
    @JvmName("svpptpeiydasoamr")
    public suspend fun streamAnalyticsJobName(`value`: Output) {
        this.streamAnalyticsJobName = value
    }

    /**
     * @param value A key-value pair of system property columns that will be attached to the outgoing messages for the Service Bus Topic Output.
     * > **NOTE:** The acceptable keys are `ContentType`, `CorrelationId`, `Label`, `MessageId`, `PartitionKey`, `ReplyTo`, `ReplyToSessionId`, `ScheduledEnqueueTimeUtc`, `SessionId`, `TimeToLive` and `To`.
     */
    @JvmName("jmenlaafoahsmpeo")
    public suspend fun systemPropertyColumns(`value`: Output>) {
        this.systemPropertyColumns = value
    }

    /**
     * @param value The name of the Service Bus Topic.
     */
    @JvmName("cikidiseigwbsjcm")
    public suspend fun topicName(`value`: Output) {
        this.topicName = value
    }

    /**
     * @param value The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`.
     */
    @JvmName("cfpaiufkubotjstx")
    public suspend fun authenticationMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationMode = mapped
    }

    /**
     * @param value The name of the Stream Output. Changing this forces a new resource to be created.
     */
    @JvmName("fwshpwvundcceunw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of property columns to add to the Service Bus Topic output.
     */
    @JvmName("ubynvfciqyojiqbm")
    public suspend fun propertyColumns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertyColumns = mapped
    }

    /**
     * @param values A list of property columns to add to the Service Bus Topic output.
     */
    @JvmName("tisitsayrcyrsaim")
    public suspend fun propertyColumns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.propertyColumns = mapped
    }

    /**
     * @param value The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.
     */
    @JvmName("lwfiougcqmilypab")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `serialization` block as defined below.
     */
    @JvmName("iauhudnqkdbecttr")
    public suspend fun serialization(`value`: OutputServicebusTopicSerializationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serialization = mapped
    }

    /**
     * @param argument A `serialization` block as defined below.
     */
    @JvmName("yuyshglutgygkjoc")
    public suspend fun serialization(argument: suspend OutputServicebusTopicSerializationArgsBuilder.() -> Unit) {
        val toBeMapped = OutputServicebusTopicSerializationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serialization = mapped
    }

    /**
     * @param value The namespace that is associated with the desired Event Hub, Service Bus Topic, Service Bus Topic, etc.
     */
    @JvmName("nvwiwxfbhclynsqs")
    public suspend fun servicebusNamespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicebusNamespace = mapped
    }

    /**
     * @param value The shared access policy key for the specified shared access policy. Required if `authentication_mode` is `ConnectionString`.
     */
    @JvmName("yvnybybkxoaogyor")
    public suspend fun sharedAccessPolicyKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedAccessPolicyKey = mapped
    }

    /**
     * @param value The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required if `authentication_mode` is `ConnectionString`.
     */
    @JvmName("fbwwpchygexherxg")
    public suspend fun sharedAccessPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedAccessPolicyName = mapped
    }

    /**
     * @param value The name of the Stream Analytics Job. Changing this forces a new resource to be created.
     */
    @JvmName("fgyqvauvrxtkvpux")
    public suspend fun streamAnalyticsJobName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamAnalyticsJobName = mapped
    }

    /**
     * @param value A key-value pair of system property columns that will be attached to the outgoing messages for the Service Bus Topic Output.
     * > **NOTE:** The acceptable keys are `ContentType`, `CorrelationId`, `Label`, `MessageId`, `PartitionKey`, `ReplyTo`, `ReplyToSessionId`, `ScheduledEnqueueTimeUtc`, `SessionId`, `TimeToLive` and `To`.
     */
    @JvmName("qdvbrivjfqutluyu")
    public suspend fun systemPropertyColumns(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemPropertyColumns = mapped
    }

    /**
     * @param values A key-value pair of system property columns that will be attached to the outgoing messages for the Service Bus Topic Output.
     * > **NOTE:** The acceptable keys are `ContentType`, `CorrelationId`, `Label`, `MessageId`, `PartitionKey`, `ReplyTo`, `ReplyToSessionId`, `ScheduledEnqueueTimeUtc`, `SessionId`, `TimeToLive` and `To`.
     */
    @JvmName("uybqfewupjrmkhbd")
    public fun systemPropertyColumns(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.systemPropertyColumns = mapped
    }

    /**
     * @param value The name of the Service Bus Topic.
     */
    @JvmName("vyxhyatmppqnpyqb")
    public suspend fun topicName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topicName = mapped
    }

    internal fun build(): OutputServicebusTopicArgs = OutputServicebusTopicArgs(
        authenticationMode = authenticationMode,
        name = name,
        propertyColumns = propertyColumns,
        resourceGroupName = resourceGroupName,
        serialization = serialization,
        servicebusNamespace = servicebusNamespace,
        sharedAccessPolicyKey = sharedAccessPolicyKey,
        sharedAccessPolicyName = sharedAccessPolicyName,
        streamAnalyticsJobName = streamAnalyticsJobName,
        systemPropertyColumns = systemPropertyColumns,
        topicName = topicName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy