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

com.pulumi.azure.synapse.kotlin.PrivateLinkHubArgs.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.synapse.kotlin

import com.pulumi.azure.synapse.PrivateLinkHubArgs.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.Map
import kotlin.jvm.JvmName

/**
 * Manages a Synapse Private Link Hub.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.synapse.PrivateLinkHub("example", {
 *     name: "example",
 *     resourceGroupName: "example-rg",
 *     location: "West Europe",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.synapse.PrivateLinkHub("example",
 *     name="example",
 *     resource_group_name="example-rg",
 *     location="West Europe")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Synapse.PrivateLinkHub("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = "example-rg",
 *         Location = "West Europe",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/synapse"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := synapse.NewPrivateLinkHub(ctx, "example", &synapse.PrivateLinkHubArgs{
 * 			Name:              pulumi.String("example"),
 * 			ResourceGroupName: pulumi.String("example-rg"),
 * 			Location:          pulumi.String("West Europe"),
 * 		})
 * 		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.synapse.PrivateLinkHub;
 * import com.pulumi.azure.synapse.PrivateLinkHubArgs;
 * 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 PrivateLinkHub("example", PrivateLinkHubArgs.builder()
 *             .name("example")
 *             .resourceGroupName("example-rg")
 *             .location("West Europe")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:synapse:PrivateLinkHub
 *     properties:
 *       name: example
 *       resourceGroupName: example-rg
 *       location: West Europe
 * ```
 * 
 * ## Import
 * Synapse Private Link Hub can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:synapse/privateLinkHub:PrivateLinkHub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1
 * ```
 * @property location Specifies the Azure location where the Synapse Private Link Hub exists. Changing this forces a new resource to be created.
 * @property name The name which should be used for this Synapse Private Link Hub. Changing this forces a new Synapse Private Link Hub to be created.
 * @property resourceGroupName The name of the resource group in which to create the Synapse Private Link Hub. Changing this forces a new resource to be created.
 * @property tags A mapping of tags which should be assigned to the Synapse Private Link Hub.
 */
public data class PrivateLinkHubArgs(
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.synapse.PrivateLinkHubArgs =
        com.pulumi.azure.synapse.PrivateLinkHubArgs.builder()
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [PrivateLinkHubArgs].
 */
@PulumiTagMarker
public class PrivateLinkHubArgsBuilder internal constructor() {
    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value The name which should be used for this Synapse Private Link Hub. Changing this forces a new Synapse Private Link Hub to be created.
     */
    @JvmName("guqmhncisxicndxd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group in which to create the Synapse Private Link Hub. Changing this forces a new resource to be created.
     */
    @JvmName("vwdoetjmfammfgjg")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Synapse Private Link Hub.
     */
    @JvmName("fiuakmnsmplkljnm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param value The name which should be used for this Synapse Private Link Hub. Changing this forces a new Synapse Private Link Hub to be created.
     */
    @JvmName("hcyfkdpgnphlkkqy")
    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 in which to create the Synapse Private Link Hub. Changing this forces a new resource to be created.
     */
    @JvmName("raykjucpjyoavyli")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Synapse Private Link Hub.
     */
    @JvmName("cdweggrxcxfkhtyl")
    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 which should be assigned to the Synapse Private Link Hub.
     */
    @JvmName("bykmfkspiivaflcs")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PrivateLinkHubArgs = PrivateLinkHubArgs(
        location = location,
        name = name,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy