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

com.pulumi.azure.powerbi.kotlin.EmbeddedArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.powerbi.kotlin

import com.pulumi.azure.powerbi.EmbeddedArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a PowerBI Embedded.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleEmbedded = new azure.powerbi.Embedded("example", {
 *     name: "examplepowerbi",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "A1",
 *     administrators: ["azsdktest@microsoft.com"],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_embedded = azure.powerbi.Embedded("example",
 *     name="examplepowerbi",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku_name="A1",
 *     administrators=["azsdktest@microsoft.com"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleEmbedded = new Azure.PowerBI.Embedded("example", new()
 *     {
 *         Name = "examplepowerbi",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         SkuName = "A1",
 *         Administrators = new[]
 *         {
 *             "[email protected]",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/powerbi"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = powerbi.NewEmbedded(ctx, "example", &powerbi.EmbeddedArgs{
 * 			Name:              pulumi.String("examplepowerbi"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			SkuName:           pulumi.String("A1"),
 * 			Administrators: pulumi.StringArray{
 * 				pulumi.String("[email protected]"),
 * 			},
 * 		})
 * 		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.powerbi.Embedded;
 * import com.pulumi.azure.powerbi.EmbeddedArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleEmbedded = new Embedded("exampleEmbedded", EmbeddedArgs.builder()
 *             .name("examplepowerbi")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .skuName("A1")
 *             .administrators("[email protected]")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleEmbedded:
 *     type: azure:powerbi:Embedded
 *     name: example
 *     properties:
 *       name: examplepowerbi
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       skuName: A1
 *       administrators:
 *         - [email protected]
 * ```
 * 
 * ## Import
 * PowerBI Embedded can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:powerbi/embedded:Embedded example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.PowerBIDedicated/capacities/capacity1
 * ```
 * @property administrators A set of administrator user identities, which manages the Power BI Embedded and must be a member user or a service principal in your AAD tenant.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property mode Sets the PowerBI Embedded's mode. Possible values include: `Gen1`, `Gen2`. Defaults to `Gen1`. Changing this forces a new resource to be created.
 * @property name The name of the PowerBI Embedded. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the Resource Group where the PowerBI Embedded should be created. Changing this forces a new resource to be created.
 * @property skuName Sets the PowerBI Embedded's pricing level's SKU. Possible values include: `A1`, `A2`, `A3`, `A4`, `A5`, `A6`.
 * @property tags A mapping of tags to assign to the resource.
 */
public data class EmbeddedArgs(
    public val administrators: Output>? = null,
    public val location: Output? = null,
    public val mode: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val skuName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.powerbi.EmbeddedArgs =
        com.pulumi.azure.powerbi.EmbeddedArgs.builder()
            .administrators(administrators?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .skuName(skuName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [EmbeddedArgs].
 */
@PulumiTagMarker
public class EmbeddedArgsBuilder internal constructor() {
    private var administrators: Output>? = null

    private var location: Output? = null

    private var mode: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var skuName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A set of administrator user identities, which manages the Power BI Embedded and must be a member user or a service principal in your AAD tenant.
     */
    @JvmName("mdjojhprkvqqejfe")
    public suspend fun administrators(`value`: Output>) {
        this.administrators = value
    }

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

    /**
     * @param values A set of administrator user identities, which manages the Power BI Embedded and must be a member user or a service principal in your AAD tenant.
     */
    @JvmName("lihpqjdybeoehbnl")
    public suspend fun administrators(values: List>) {
        this.administrators = Output.all(values)
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("vaqvylipibyxpquq")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Sets the PowerBI Embedded's mode. Possible values include: `Gen1`, `Gen2`. Defaults to `Gen1`. Changing this forces a new resource to be created.
     */
    @JvmName("lcmwisnobpcfkvoa")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

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

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

    /**
     * @param value Sets the PowerBI Embedded's pricing level's SKU. Possible values include: `A1`, `A2`, `A3`, `A4`, `A5`, `A6`.
     */
    @JvmName("nfwdmeqnanuqsogd")
    public suspend fun skuName(`value`: Output) {
        this.skuName = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("qahvxhgtmnhxlikp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A set of administrator user identities, which manages the Power BI Embedded and must be a member user or a service principal in your AAD tenant.
     */
    @JvmName("fbujdglrspibiwtd")
    public suspend fun administrators(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.administrators = mapped
    }

    /**
     * @param values A set of administrator user identities, which manages the Power BI Embedded and must be a member user or a service principal in your AAD tenant.
     */
    @JvmName("wmuadvhldrgacgya")
    public suspend fun administrators(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.administrators = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("ffspefhmjsvyqnbx")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Sets the PowerBI Embedded's mode. Possible values include: `Gen1`, `Gen2`. Defaults to `Gen1`. Changing this forces a new resource to be created.
     */
    @JvmName("uxdnflirwlyxwmyc")
    public suspend fun mode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

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

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

    /**
     * @param value Sets the PowerBI Embedded's pricing level's SKU. Possible values include: `A1`, `A2`, `A3`, `A4`, `A5`, `A6`.
     */
    @JvmName("vlfnaaqtuhaoxgih")
    public suspend fun skuName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("txwndufbmlhrfaoh")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("evppjdnwsoelxqnm")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EmbeddedArgs = EmbeddedArgs(
        administrators = administrators,
        location = location,
        mode = mode,
        name = name,
        resourceGroupName = resourceGroupName,
        skuName = skuName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy