Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.devcenter.kotlin.NetworkConnectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.devcenter.kotlin
import com.pulumi.azure.devcenter.NetworkConnectionArgs.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 Dev Center Network Connection.
* ## 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 exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "example-vnet",
* addressSpaces: ["10.0.0.0/16"],
* location: example.location,
* resourceGroupName: example.name,
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "internal",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.2.0/24"],
* });
* const exampleNetworkConnection = new azure.devcenter.NetworkConnection("example", {
* name: "example-dcnc",
* resourceGroupName: example.name,
* location: example.location,
* domainJoinType: "AzureADJoin",
* subnetId: exampleSubnet.id,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="example-vnet",
* address_spaces=["10.0.0.0/16"],
* location=example.location,
* resource_group_name=example.name)
* example_subnet = azure.network.Subnet("example",
* name="internal",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.2.0/24"])
* example_network_connection = azure.devcenter.NetworkConnection("example",
* name="example-dcnc",
* resource_group_name=example.name,
* location=example.location,
* domain_join_type="AzureADJoin",
* subnet_id=example_subnet.id)
* ```
* ```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 exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "example-vnet",
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "internal",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.2.0/24",
* },
* });
* var exampleNetworkConnection = new Azure.DevCenter.NetworkConnection("example", new()
* {
* Name = "example-dcnc",
* ResourceGroupName = example.Name,
* Location = example.Location,
* DomainJoinType = "AzureADJoin",
* SubnetId = exampleSubnet.Id,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/devcenter"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
* "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
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("example-vnet"),
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("internal"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.2.0/24"),
* },
* })
* if err != nil {
* return err
* }
* _, err = devcenter.NewNetworkConnection(ctx, "example", &devcenter.NetworkConnectionArgs{
* Name: pulumi.String("example-dcnc"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* DomainJoinType: pulumi.String("AzureADJoin"),
* SubnetId: exampleSubnet.ID(),
* })
* 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.network.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azure.devcenter.NetworkConnection;
* import com.pulumi.azure.devcenter.NetworkConnectionArgs;
* 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 exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("example-vnet")
* .addressSpaces("10.0.0.0/16")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("internal")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.2.0/24")
* .build());
* var exampleNetworkConnection = new NetworkConnection("exampleNetworkConnection", NetworkConnectionArgs.builder()
* .name("example-dcnc")
* .resourceGroupName(example.name())
* .location(example.location())
* .domainJoinType("AzureADJoin")
* .subnetId(exampleSubnet.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: example-vnet
* addressSpaces:
* - 10.0.0.0/16
* location: ${example.location}
* resourceGroupName: ${example.name}
* exampleSubnet:
* type: azure:network:Subnet
* name: example
* properties:
* name: internal
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.2.0/24
* exampleNetworkConnection:
* type: azure:devcenter:NetworkConnection
* name: example
* properties:
* name: example-dcnc
* resourceGroupName: ${example.name}
* location: ${example.location}
* domainJoinType: AzureADJoin
* subnetId: ${exampleSubnet.id}
* ```
*
* ## Import
* An existing Dev Center Network Connection can be imported into Terraform using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:devcenter/networkConnection:NetworkConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevCenter/networkConnections/networkConnection1
* ```
* @property domainJoinType The Azure Active Directory Join type. Possible values are `AzureADJoin` and `HybridAzureADJoin`. Changing this forces a new resource to be created.
* @property domainName The name of the Azure Active Directory domain.
* @property domainPassword The password for the account used to join domain.
* @property domainUsername The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
* @property location The Azure Region where the Dev Center Network Connection should exist. Changing this forces a new resource to be created.
* @property name Specifies the name of this Dev Center Network Connection. Changing this forces a new resource to be created.
* @property organizationUnit The Azure Active Directory domain Organization Unit (OU).
* @property resourceGroupName Specifies the name of the Resource Group within which this Dev Center Network Connection should exist. Changing this forces a new resource to be created.
* @property subnetId The ID of the Subnet that is used to attach Virtual Machines.
* @property tags A mapping of tags which should be assigned to the Dev Center Network Connection.
*/
public data class NetworkConnectionArgs(
public val domainJoinType: Output? = null,
public val domainName: Output? = null,
public val domainPassword: Output? = null,
public val domainUsername: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val organizationUnit: Output? = null,
public val resourceGroupName: Output? = null,
public val subnetId: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.devcenter.NetworkConnectionArgs =
com.pulumi.azure.devcenter.NetworkConnectionArgs.builder()
.domainJoinType(domainJoinType?.applyValue({ args0 -> args0 }))
.domainName(domainName?.applyValue({ args0 -> args0 }))
.domainPassword(domainPassword?.applyValue({ args0 -> args0 }))
.domainUsername(domainUsername?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.organizationUnit(organizationUnit?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.subnetId(subnetId?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [NetworkConnectionArgs].
*/
@PulumiTagMarker
public class NetworkConnectionArgsBuilder internal constructor() {
private var domainJoinType: Output? = null
private var domainName: Output? = null
private var domainPassword: Output? = null
private var domainUsername: Output? = null
private var location: Output? = null
private var name: Output? = null
private var organizationUnit: Output? = null
private var resourceGroupName: Output? = null
private var subnetId: Output? = null
private var tags: Output>? = null
/**
* @param value The Azure Active Directory Join type. Possible values are `AzureADJoin` and `HybridAzureADJoin`. Changing this forces a new resource to be created.
*/
@JvmName("cveorrpgfrhmhbet")
public suspend fun domainJoinType(`value`: Output) {
this.domainJoinType = value
}
/**
* @param value The name of the Azure Active Directory domain.
*/
@JvmName("ohifvvqfsjqvffoj")
public suspend fun domainName(`value`: Output) {
this.domainName = value
}
/**
* @param value The password for the account used to join domain.
*/
@JvmName("aksstmxmjumijbor")
public suspend fun domainPassword(`value`: Output) {
this.domainPassword = value
}
/**
* @param value The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
*/
@JvmName("sndcofuwdsflgkdp")
public suspend fun domainUsername(`value`: Output) {
this.domainUsername = value
}
/**
* @param value The Azure Region where the Dev Center Network Connection should exist. Changing this forces a new resource to be created.
*/
@JvmName("plnusogylerbgbwg")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Specifies the name of this Dev Center Network Connection. Changing this forces a new resource to be created.
*/
@JvmName("hpigfckcuxmcfdwx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The Azure Active Directory domain Organization Unit (OU).
*/
@JvmName("uioafkmphuypreqw")
public suspend fun organizationUnit(`value`: Output) {
this.organizationUnit = value
}
/**
* @param value Specifies the name of the Resource Group within which this Dev Center Network Connection should exist. Changing this forces a new resource to be created.
*/
@JvmName("ttkggyktqdrqprca")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The ID of the Subnet that is used to attach Virtual Machines.
*/
@JvmName("rvwrchugbkjkgner")
public suspend fun subnetId(`value`: Output) {
this.subnetId = value
}
/**
* @param value A mapping of tags which should be assigned to the Dev Center Network Connection.
*/
@JvmName("eusfppmqfwjrrdxa")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The Azure Active Directory Join type. Possible values are `AzureADJoin` and `HybridAzureADJoin`. Changing this forces a new resource to be created.
*/
@JvmName("agatdlonlbrmdpwy")
public suspend fun domainJoinType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.domainJoinType = mapped
}
/**
* @param value The name of the Azure Active Directory domain.
*/
@JvmName("wekqbyxccnrsthsr")
public suspend fun domainName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.domainName = mapped
}
/**
* @param value The password for the account used to join domain.
*/
@JvmName("jugoaxnuodcptiek")
public suspend fun domainPassword(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.domainPassword = mapped
}
/**
* @param value The username of the Azure Active Directory account (user or service account) that has permissions to create computer objects in Active Directory.
*/
@JvmName("fdlthgnkfjdpmjqv")
public suspend fun domainUsername(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.domainUsername = mapped
}
/**
* @param value The Azure Region where the Dev Center Network Connection should exist. Changing this forces a new resource to be created.
*/
@JvmName("gattfqijvksyerwg")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Specifies the name of this Dev Center Network Connection. Changing this forces a new resource to be created.
*/
@JvmName("ddlrsrgxtrylxbga")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The Azure Active Directory domain Organization Unit (OU).
*/
@JvmName("pdbkypkvjbbnatxx")
public suspend fun organizationUnit(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.organizationUnit = mapped
}
/**
* @param value Specifies the name of the Resource Group within which this Dev Center Network Connection should exist. Changing this forces a new resource to be created.
*/
@JvmName("uorslnoytwcfrruo")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The ID of the Subnet that is used to attach Virtual Machines.
*/
@JvmName("xpolfvloevcuyock")
public suspend fun subnetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnetId = mapped
}
/**
* @param value A mapping of tags which should be assigned to the Dev Center Network Connection.
*/
@JvmName("kbylodkgwhbkvqaj")
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 Dev Center Network Connection.
*/
@JvmName("tqifmnevsbcjwexn")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): NetworkConnectionArgs = NetworkConnectionArgs(
domainJoinType = domainJoinType,
domainName = domainName,
domainPassword = domainPassword,
domainUsername = domainUsername,
location = location,
name = name,
organizationUnit = organizationUnit,
resourceGroupName = resourceGroupName,
subnetId = subnetId,
tags = tags,
)
}