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

com.pulumi.azurenative.autonomousdevelopmentplatform.kotlin.DataPoolArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.autonomousdevelopmentplatform.kotlin

import com.pulumi.azurenative.autonomousdevelopmentplatform.DataPoolArgs.builder
import com.pulumi.azurenative.autonomousdevelopmentplatform.kotlin.inputs.DataPoolLocationArgs
import com.pulumi.azurenative.autonomousdevelopmentplatform.kotlin.inputs.DataPoolLocationArgsBuilder
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

/**
 * ADP Data Pool
 * Azure REST API version: 2021-11-01-preview. Prior API version in Azure Native 1.x: 2021-02-01-preview.
 * ## Example Usage
 * ### Put Data Pool
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var dataPool = new AzureNative.AutonomousDevelopmentPlatform.DataPool("dataPool", new()
 *     {
 *         AccountName = "sampleacct",
 *         DataPoolName = "sampledp",
 *         Locations = new[]
 *         {
 *             new AzureNative.AutonomousDevelopmentPlatform.Inputs.DataPoolLocationArgs
 *             {
 *                 Encryption = new AzureNative.AutonomousDevelopmentPlatform.Inputs.DataPoolEncryptionArgs
 *                 {
 *                     KeyName = "key1",
 *                     KeyVaultUri = "https://vaulturi",
 *                     KeyVersion = "123",
 *                     UserAssignedIdentity = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
 *                 },
 *                 Name = "westus",
 *             },
 *         },
 *         ResourceGroupName = "adpClient",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	autonomousdevelopmentplatform "github.com/pulumi/pulumi-azure-native-sdk/autonomousdevelopmentplatform/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := autonomousdevelopmentplatform.NewDataPool(ctx, "dataPool", &autonomousdevelopmentplatform.DataPoolArgs{
 * 			AccountName:  pulumi.String("sampleacct"),
 * 			DataPoolName: pulumi.String("sampledp"),
 * 			Locations: autonomousdevelopmentplatform.DataPoolLocationArray{
 * 				&autonomousdevelopmentplatform.DataPoolLocationArgs{
 * 					Encryption: &autonomousdevelopmentplatform.DataPoolEncryptionArgs{
 * 						KeyName:              pulumi.String("key1"),
 * 						KeyVaultUri:          pulumi.String("https://vaulturi"),
 * 						KeyVersion:           pulumi.String("123"),
 * 						UserAssignedIdentity: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"),
 * 					},
 * 					Name: pulumi.String("westus"),
 * 				},
 * 			},
 * 			ResourceGroupName: pulumi.String("adpClient"),
 * 		})
 * 		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.autonomousdevelopmentplatform.DataPool;
 * import com.pulumi.azurenative.autonomousdevelopmentplatform.DataPoolArgs;
 * import com.pulumi.azurenative.autonomousdevelopmentplatform.inputs.DataPoolLocationArgs;
 * import com.pulumi.azurenative.autonomousdevelopmentplatform.inputs.DataPoolEncryptionArgs;
 * 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 dataPool = new DataPool("dataPool", DataPoolArgs.builder()
 *             .accountName("sampleacct")
 *             .dataPoolName("sampledp")
 *             .locations(DataPoolLocationArgs.builder()
 *                 .encryption(DataPoolEncryptionArgs.builder()
 *                     .keyName("key1")
 *                     .keyVaultUri("https://vaulturi")
 *                     .keyVersion("123")
 *                     .userAssignedIdentity("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
 *                     .build())
 *                 .name("westus")
 *                 .build())
 *             .resourceGroupName("adpClient")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:autonomousdevelopmentplatform:DataPool dp1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AutonomousDevelopmentPlatform/accounts/{accountName}/dataPools/{dataPoolName}
 * ```
 * @property accountName The name of the ADP account
 * @property dataPoolName The name of the Data Pool
 * @property locations Gets or sets the collection of locations where Data Pool resources should be created
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags
 */
public data class DataPoolArgs(
    public val accountName: Output? = null,
    public val dataPoolName: Output? = null,
    public val locations: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.autonomousdevelopmentplatform.DataPoolArgs =
        com.pulumi.azurenative.autonomousdevelopmentplatform.DataPoolArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .dataPoolName(dataPoolName?.applyValue({ args0 -> args0 }))
            .locations(
                locations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DataPoolArgs].
 */
@PulumiTagMarker
public class DataPoolArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var dataPoolName: Output? = null

    private var locations: Output>? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the ADP account
     */
    @JvmName("rxyfuyoaqhyjwwnd")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The name of the Data Pool
     */
    @JvmName("noitdbxgbpdbrbsb")
    public suspend fun dataPoolName(`value`: Output) {
        this.dataPoolName = value
    }

    /**
     * @param value Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("ndmhwxfyintmqtdk")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

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

    /**
     * @param values Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("ddylopdxabiuhviy")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("kokieslrxtntksun")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Resource tags
     */
    @JvmName("halxjvuararxalrf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

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

    /**
     * @param value Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("accvwdkaxcpgvxld")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param argument Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("rafcyrfqxseptqwv")
    public suspend fun locations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataPoolLocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param argument Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("wxwtnflfidxnkanh")
    public suspend fun locations(vararg argument: suspend DataPoolLocationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataPoolLocationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param argument Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("obvlrnbaqnhueddg")
    public suspend fun locations(argument: suspend DataPoolLocationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DataPoolLocationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.locations = mapped
    }

    /**
     * @param values Gets or sets the collection of locations where Data Pool resources should be created
     */
    @JvmName("fctfnhmqiraouvhc")
    public suspend fun locations(vararg values: DataPoolLocationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ykaidqdpcthjjlgk")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Resource tags
     */
    @JvmName("sanfbrpiyyhunegi")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags
     */
    @JvmName("gigiyavhpwkhavlx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DataPoolArgs = DataPoolArgs(
        accountName = accountName,
        dataPoolName = dataPoolName,
        locations = locations,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy