All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.azurenative.network.kotlin.PrivateZoneArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin
import com.pulumi.azurenative.network.PrivateZoneArgs.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
/**
* Describes a Private DNS zone.
* Azure REST API version: 2020-06-01. Prior API version in Azure Native 1.x: 2020-06-01.
* Other available API versions: 2024-06-01.
* ## Example Usage
* ### PUT Private DNS Zone
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateZone = new AzureNative.Network.PrivateZone("privateZone", new()
* {
* Location = "Global",
* PrivateZoneName = "privatezone1.com",
* ResourceGroupName = "resourceGroup1",
* Tags =
* {
* { "key1", "value1" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := network.NewPrivateZone(ctx, "privateZone", &network.PrivateZoneArgs{
* Location: pulumi.String("Global"),
* PrivateZoneName: pulumi.String("privatezone1.com"),
* ResourceGroupName: pulumi.String("resourceGroup1"),
* Tags: pulumi.StringMap{
* "key1": pulumi.String("value1"),
* },
* })
* 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.network.PrivateZone;
* import com.pulumi.azurenative.network.PrivateZoneArgs;
* 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 privateZone = new PrivateZone("privateZone", PrivateZoneArgs.builder()
* .location("Global")
* .privateZoneName("privatezone1.com")
* .resourceGroupName("resourceGroup1")
* .tags(Map.of("key1", "value1"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:network:PrivateZone privatezone1.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}
* ```
* @property location The Azure Region where the resource lives
* @property privateZoneName The name of the Private DNS zone (without a terminating dot).
* @property resourceGroupName The name of the resource group.
* @property tags Resource tags.
*/
public data class PrivateZoneArgs(
public val location: Output? = null,
public val privateZoneName: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.PrivateZoneArgs =
com.pulumi.azurenative.network.PrivateZoneArgs.builder()
.location(location?.applyValue({ args0 -> args0 }))
.privateZoneName(privateZoneName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [PrivateZoneArgs].
*/
@PulumiTagMarker
public class PrivateZoneArgsBuilder internal constructor() {
private var location: Output? = null
private var privateZoneName: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The Azure Region where the resource lives
*/
@JvmName("ojvriphicpjpccsi")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the Private DNS zone (without a terminating dot).
*/
@JvmName("unpgmgkuadxboktt")
public suspend fun privateZoneName(`value`: Output) {
this.privateZoneName = value
}
/**
* @param value The name of the resource group.
*/
@JvmName("tfcaqayxkmepgsen")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("jmghpescutsqbtoq")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The Azure Region where the resource lives
*/
@JvmName("phydmomwanignhpf")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name of the Private DNS zone (without a terminating dot).
*/
@JvmName("osowtbcjojfwkeut")
public suspend fun privateZoneName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateZoneName = mapped
}
/**
* @param value The name of the resource group.
*/
@JvmName("otmtaoxhsnpdytff")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("ycciassofnbxdxje")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("rtlionoanwuskrra")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): PrivateZoneArgs = PrivateZoneArgs(
location = location,
privateZoneName = privateZoneName,
resourceGroupName = resourceGroupName,
tags = tags,
)
}