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.avs.kotlin
import com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs.builder
import com.pulumi.azurenative.avs.kotlin.enums.DnsServiceLogLevelEnum
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* NSX DNS Service
* Azure REST API version: 2022-05-01. Prior API version in Azure Native 1.x: 2020-07-17-preview.
* Other available API versions: 2023-03-01, 2023-09-01.
* ## Example Usage
* ### WorkloadNetworks_CreateDnsService
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workloadNetworkDnsService = new AzureNative.AVS.WorkloadNetworkDnsService("workloadNetworkDnsService", new()
* {
* DefaultDnsZone = "defaultDnsZone1",
* DisplayName = "dnsService1",
* DnsServiceId = "dnsService1",
* DnsServiceIp = "5.5.5.5",
* FqdnZones = new[]
* {
* "fqdnZone1",
* },
* LogLevel = AzureNative.AVS.DnsServiceLogLevelEnum.INFO,
* PrivateCloudName = "cloud1",
* ResourceGroupName = "group1",
* Revision = 1,
* });
* });
* ```
* ```go
* package main
* import (
* avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := avs.NewWorkloadNetworkDnsService(ctx, "workloadNetworkDnsService", &avs.WorkloadNetworkDnsServiceArgs{
* DefaultDnsZone: pulumi.String("defaultDnsZone1"),
* DisplayName: pulumi.String("dnsService1"),
* DnsServiceId: pulumi.String("dnsService1"),
* DnsServiceIp: pulumi.String("5.5.5.5"),
* FqdnZones: pulumi.StringArray{
* pulumi.String("fqdnZone1"),
* },
* LogLevel: pulumi.String(avs.DnsServiceLogLevelEnumINFO),
* PrivateCloudName: pulumi.String("cloud1"),
* ResourceGroupName: pulumi.String("group1"),
* Revision: pulumi.Float64(1),
* })
* 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.avs.WorkloadNetworkDnsService;
* import com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs;
* 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 workloadNetworkDnsService = new WorkloadNetworkDnsService("workloadNetworkDnsService", WorkloadNetworkDnsServiceArgs.builder()
* .defaultDnsZone("defaultDnsZone1")
* .displayName("dnsService1")
* .dnsServiceId("dnsService1")
* .dnsServiceIp("5.5.5.5")
* .fqdnZones("fqdnZone1")
* .logLevel("INFO")
* .privateCloudName("cloud1")
* .resourceGroupName("group1")
* .revision(1)
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:avs:WorkloadNetworkDnsService dnsService1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}
* ```
* @property defaultDnsZone Default DNS zone of the DNS Service.
* @property displayName Display name of the DNS Service.
* @property dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
* @property dnsServiceIp DNS service IP of the DNS Service.
* @property fqdnZones FQDN zones of the DNS Service.
* @property logLevel DNS Service log level.
* @property privateCloudName Name of the private cloud
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property revision NSX revision number.
*/
public data class WorkloadNetworkDnsServiceArgs(
public val defaultDnsZone: Output? = null,
public val displayName: Output? = null,
public val dnsServiceId: Output? = null,
public val dnsServiceIp: Output? = null,
public val fqdnZones: Output>? = null,
public val logLevel: Output>? = null,
public val privateCloudName: Output? = null,
public val resourceGroupName: Output? = null,
public val revision: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs =
com.pulumi.azurenative.avs.WorkloadNetworkDnsServiceArgs.builder()
.defaultDnsZone(defaultDnsZone?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.dnsServiceId(dnsServiceId?.applyValue({ args0 -> args0 }))
.dnsServiceIp(dnsServiceIp?.applyValue({ args0 -> args0 }))
.fqdnZones(fqdnZones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.logLevel(
logLevel?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.privateCloudName(privateCloudName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.revision(revision?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkloadNetworkDnsServiceArgs].
*/
@PulumiTagMarker
public class WorkloadNetworkDnsServiceArgsBuilder internal constructor() {
private var defaultDnsZone: Output? = null
private var displayName: Output? = null
private var dnsServiceId: Output? = null
private var dnsServiceIp: Output? = null
private var fqdnZones: Output>? = null
private var logLevel: Output>? = null
private var privateCloudName: Output? = null
private var resourceGroupName: Output? = null
private var revision: Output? = null
/**
* @param value Default DNS zone of the DNS Service.
*/
@JvmName("qbpijybsfilsaaou")
public suspend fun defaultDnsZone(`value`: Output) {
this.defaultDnsZone = value
}
/**
* @param value Display name of the DNS Service.
*/
@JvmName("fbpijnjqlyblbtjv")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value NSX DNS Service identifier. Generally the same as the DNS Service's display name
*/
@JvmName("feaskhyqkbpteoxb")
public suspend fun dnsServiceId(`value`: Output) {
this.dnsServiceId = value
}
/**
* @param value DNS service IP of the DNS Service.
*/
@JvmName("fpornwfdsyttwdap")
public suspend fun dnsServiceIp(`value`: Output) {
this.dnsServiceIp = value
}
/**
* @param value FQDN zones of the DNS Service.
*/
@JvmName("wexuoetfkenwdyws")
public suspend fun fqdnZones(`value`: Output>) {
this.fqdnZones = value
}
@JvmName("gwnkdujynejoxlpn")
public suspend fun fqdnZones(vararg values: Output) {
this.fqdnZones = Output.all(values.asList())
}
/**
* @param values FQDN zones of the DNS Service.
*/
@JvmName("kqwssxbgyjaxqjvf")
public suspend fun fqdnZones(values: List