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

com.pulumi.azure.streamanalytics.kotlin.OutputPowerbiArgs.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.streamanalytics.kotlin

import com.pulumi.azure.streamanalytics.OutputPowerbiArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Manages a Stream Analytics Output powerBI.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = azure.core.getResourceGroup({
 *     name: "example-resources",
 * });
 * const exampleGetJob = example.then(example => azure.streamanalytics.getJob({
 *     name: "example-job",
 *     resourceGroupName: example.name,
 * }));
 * const exampleOutputPowerbi = new azure.streamanalytics.OutputPowerbi("example", {
 *     name: "output-to-powerbi",
 *     streamAnalyticsJobId: exampleGetJob.then(exampleGetJob => exampleGetJob.id),
 *     dataset: "example-dataset",
 *     table: "example-table",
 *     groupId: "00000000-0000-0000-0000-000000000000",
 *     groupName: "some-group-name",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.get_resource_group(name="example-resources")
 * example_get_job = azure.streamanalytics.get_job(name="example-job",
 *     resource_group_name=example.name)
 * example_output_powerbi = azure.streamanalytics.OutputPowerbi("example",
 *     name="output-to-powerbi",
 *     stream_analytics_job_id=example_get_job.id,
 *     dataset="example-dataset",
 *     table="example-table",
 *     group_id="00000000-0000-0000-0000-000000000000",
 *     group_name="some-group-name")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = Azure.Core.GetResourceGroup.Invoke(new()
 *     {
 *         Name = "example-resources",
 *     });
 *     var exampleGetJob = Azure.StreamAnalytics.GetJob.Invoke(new()
 *     {
 *         Name = "example-job",
 *         ResourceGroupName = example.Apply(getResourceGroupResult => getResourceGroupResult.Name),
 *     });
 *     var exampleOutputPowerbi = new Azure.StreamAnalytics.OutputPowerbi("example", new()
 *     {
 *         Name = "output-to-powerbi",
 *         StreamAnalyticsJobId = exampleGetJob.Apply(getJobResult => getJobResult.Id),
 *         Dataset = "example-dataset",
 *         Table = "example-table",
 *         GroupId = "00000000-0000-0000-0000-000000000000",
 *         GroupName = "some-group-name",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"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 {
 * 		example, err := core.LookupResourceGroup(ctx, &core.LookupResourceGroupArgs{
 * 			Name: "example-resources",
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleGetJob, err := streamanalytics.LookupJob(ctx, &streamanalytics.LookupJobArgs{
 * 			Name:              "example-job",
 * 			ResourceGroupName: example.Name,
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = streamanalytics.NewOutputPowerbi(ctx, "example", &streamanalytics.OutputPowerbiArgs{
 * 			Name:                 pulumi.String("output-to-powerbi"),
 * 			StreamAnalyticsJobId: pulumi.String(exampleGetJob.Id),
 * 			Dataset:              pulumi.String("example-dataset"),
 * 			Table:                pulumi.String("example-table"),
 * 			GroupId:              pulumi.String("00000000-0000-0000-0000-000000000000"),
 * 			GroupName:            pulumi.String("some-group-name"),
 * 		})
 * 		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.CoreFunctions;
 * import com.pulumi.azure.core.inputs.GetResourceGroupArgs;
 * import com.pulumi.azure.streamanalytics.StreamanalyticsFunctions;
 * import com.pulumi.azure.streamanalytics.inputs.GetJobArgs;
 * import com.pulumi.azure.streamanalytics.OutputPowerbi;
 * import com.pulumi.azure.streamanalytics.OutputPowerbiArgs;
 * 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) {
 *         final var example = CoreFunctions.getResourceGroup(GetResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .build());
 *         final var exampleGetJob = StreamanalyticsFunctions.getJob(GetJobArgs.builder()
 *             .name("example-job")
 *             .resourceGroupName(example.applyValue(getResourceGroupResult -> getResourceGroupResult.name()))
 *             .build());
 *         var exampleOutputPowerbi = new OutputPowerbi("exampleOutputPowerbi", OutputPowerbiArgs.builder()
 *             .name("output-to-powerbi")
 *             .streamAnalyticsJobId(exampleGetJob.applyValue(getJobResult -> getJobResult.id()))
 *             .dataset("example-dataset")
 *             .table("example-table")
 *             .groupId("00000000-0000-0000-0000-000000000000")
 *             .groupName("some-group-name")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   exampleOutputPowerbi:
 *     type: azure:streamanalytics:OutputPowerbi
 *     name: example
 *     properties:
 *       name: output-to-powerbi
 *       streamAnalyticsJobId: ${exampleGetJob.id}
 *       dataset: example-dataset
 *       table: example-table
 *       groupId: 00000000-0000-0000-0000-000000000000
 *       groupName: some-group-name
 * variables:
 *   example:
 *     fn::invoke:
 *       Function: azure:core:getResourceGroup
 *       Arguments:
 *         name: example-resources
 *   exampleGetJob:
 *     fn::invoke:
 *       Function: azure:streamanalytics:getJob
 *       Arguments:
 *         name: example-job
 *         resourceGroupName: ${example.name}
 * ```
 * 
 * ## Import
 * Stream Analytics Output to Power BI can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:streamanalytics/outputPowerbi:OutputPowerbi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1
 * ```
 * @property dataset The name of the Power BI dataset.
 * @property groupId The ID of the Power BI group, this must be a valid UUID.
 * @property groupName The name of the Power BI group. Use this property to help remember which specific Power BI group id was used.
 * @property name The name of the Stream Output. Changing this forces a new resource to be created.
 * @property streamAnalyticsJobId The ID of the Stream Analytics Job. Changing this forces a new resource to be created.
 * @property table The name of the Power BI table under the specified dataset.
 * @property tokenUserDisplayName The user display name of the user that was used to obtain the refresh token.
 * @property tokenUserPrincipalName The user principal name (UPN) of the user that was used to obtain the refresh token.
 */
public data class OutputPowerbiArgs(
    public val dataset: Output? = null,
    public val groupId: Output? = null,
    public val groupName: Output? = null,
    public val name: Output? = null,
    public val streamAnalyticsJobId: Output? = null,
    public val table: Output? = null,
    public val tokenUserDisplayName: Output? = null,
    public val tokenUserPrincipalName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.streamanalytics.OutputPowerbiArgs =
        com.pulumi.azure.streamanalytics.OutputPowerbiArgs.builder()
            .dataset(dataset?.applyValue({ args0 -> args0 }))
            .groupId(groupId?.applyValue({ args0 -> args0 }))
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .streamAnalyticsJobId(streamAnalyticsJobId?.applyValue({ args0 -> args0 }))
            .table(table?.applyValue({ args0 -> args0 }))
            .tokenUserDisplayName(tokenUserDisplayName?.applyValue({ args0 -> args0 }))
            .tokenUserPrincipalName(tokenUserPrincipalName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OutputPowerbiArgs].
 */
@PulumiTagMarker
public class OutputPowerbiArgsBuilder internal constructor() {
    private var dataset: Output? = null

    private var groupId: Output? = null

    private var groupName: Output? = null

    private var name: Output? = null

    private var streamAnalyticsJobId: Output? = null

    private var table: Output? = null

    private var tokenUserDisplayName: Output? = null

    private var tokenUserPrincipalName: Output? = null

    /**
     * @param value The name of the Power BI dataset.
     */
    @JvmName("xquygngkdpdhboty")
    public suspend fun dataset(`value`: Output) {
        this.dataset = value
    }

    /**
     * @param value The ID of the Power BI group, this must be a valid UUID.
     */
    @JvmName("gmmbbcssvuobvppc")
    public suspend fun groupId(`value`: Output) {
        this.groupId = value
    }

    /**
     * @param value The name of the Power BI group. Use this property to help remember which specific Power BI group id was used.
     */
    @JvmName("yfjbcdoxvsllomfi")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

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

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

    /**
     * @param value The name of the Power BI table under the specified dataset.
     */
    @JvmName("amqwxqpoohwytofl")
    public suspend fun table(`value`: Output) {
        this.table = value
    }

    /**
     * @param value The user display name of the user that was used to obtain the refresh token.
     */
    @JvmName("bkutevkaepvyqvrp")
    public suspend fun tokenUserDisplayName(`value`: Output) {
        this.tokenUserDisplayName = value
    }

    /**
     * @param value The user principal name (UPN) of the user that was used to obtain the refresh token.
     */
    @JvmName("yuqewkbxasogbuht")
    public suspend fun tokenUserPrincipalName(`value`: Output) {
        this.tokenUserPrincipalName = value
    }

    /**
     * @param value The name of the Power BI dataset.
     */
    @JvmName("eqtywemtsryrqdjw")
    public suspend fun dataset(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataset = mapped
    }

    /**
     * @param value The ID of the Power BI group, this must be a valid UUID.
     */
    @JvmName("ddvtrffpnajaxtws")
    public suspend fun groupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupId = mapped
    }

    /**
     * @param value The name of the Power BI group. Use this property to help remember which specific Power BI group id was used.
     */
    @JvmName("poaqtqdqitvwhsxv")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

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

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

    /**
     * @param value The name of the Power BI table under the specified dataset.
     */
    @JvmName("toldbvbvvssyhulo")
    public suspend fun table(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.table = mapped
    }

    /**
     * @param value The user display name of the user that was used to obtain the refresh token.
     */
    @JvmName("exiexibrcymjdrvq")
    public suspend fun tokenUserDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenUserDisplayName = mapped
    }

    /**
     * @param value The user principal name (UPN) of the user that was used to obtain the refresh token.
     */
    @JvmName("itqqkeppayalqfhn")
    public suspend fun tokenUserPrincipalName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenUserPrincipalName = mapped
    }

    internal fun build(): OutputPowerbiArgs = OutputPowerbiArgs(
        dataset = dataset,
        groupId = groupId,
        groupName = groupName,
        name = name,
        streamAnalyticsJobId = streamAnalyticsJobId,
        table = table,
        tokenUserDisplayName = tokenUserDisplayName,
        tokenUserPrincipalName = tokenUserPrincipalName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy