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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin
import com.pulumi.azurenative.network.ZoneArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ZoneType
import com.pulumi.azurenative.network.kotlin.inputs.SubResourceArgs
import com.pulumi.azurenative.network.kotlin.inputs.SubResourceArgsBuilder
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
/**
* Describes a DNS zone.
* Azure REST API version: 2018-05-01. Prior API version in Azure Native 1.x: 2018-05-01.
* Other available API versions: 2015-05-04-preview, 2016-04-01, 2023-07-01-preview.
* ## Example Usage
* ### Create zone
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var zone = new AzureNative.Network.Zone("zone", new()
* {
* Location = "Global",
* ResourceGroupName = "rg1",
* Tags =
* {
* { "key1", "value1" },
* },
* ZoneName = "zone1",
* });
* });
* ```
* ```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.NewZone(ctx, "zone", &network.ZoneArgs{
* Location: pulumi.String("Global"),
* ResourceGroupName: pulumi.String("rg1"),
* Tags: pulumi.StringMap{
* "key1": pulumi.String("value1"),
* },
* ZoneName: pulumi.String("zone1"),
* })
* 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.Zone;
* import com.pulumi.azurenative.network.ZoneArgs;
* 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 zone = new Zone("zone", ZoneArgs.builder()
* .location("Global")
* .resourceGroupName("rg1")
* .tags(Map.of("key1", "value1"))
* .zoneName("zone1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:network:Zone zone1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
* ```
* @property location Resource location.
* @property registrationVirtualNetworks A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
* @property resolutionVirtualNetworks A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
* @property resourceGroupName The name of the resource group.
* @property tags Resource tags.
* @property zoneName The name of the DNS zone (without a terminating dot).
* @property zoneType The type of this DNS zone (Public or Private).
*/
public data class ZoneArgs(
public val location: Output? = null,
public val registrationVirtualNetworks: Output>? = null,
public val resolutionVirtualNetworks: Output>? = null,
public val resourceGroupName: Output? = null,
public val tags: Output