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.compute.kotlin.BastionHostArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin
import com.pulumi.azure.compute.BastionHostArgs.builder
import com.pulumi.azure.compute.kotlin.inputs.BastionHostIpConfigurationArgs
import com.pulumi.azure.compute.kotlin.inputs.BastionHostIpConfigurationArgsBuilder
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.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Bastion Host.
* ## Example Usage
* This example deploys an Azure Bastion Host Instance to a target virtual network.
*
* ```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: "examplevnet",
* addressSpaces: ["192.168.1.0/24"],
* location: example.location,
* resourceGroupName: example.name,
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "AzureBastionSubnet",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["192.168.1.224/27"],
* });
* const examplePublicIp = new azure.network.PublicIp("example", {
* name: "examplepip",
* location: example.location,
* resourceGroupName: example.name,
* allocationMethod: "Static",
* sku: "Standard",
* });
* const exampleBastionHost = new azure.compute.BastionHost("example", {
* name: "examplebastion",
* location: example.location,
* resourceGroupName: example.name,
* ipConfiguration: {
* name: "configuration",
* subnetId: exampleSubnet.id,
* publicIpAddressId: examplePublicIp.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="examplevnet",
* address_spaces=["192.168.1.0/24"],
* location=example.location,
* resource_group_name=example.name)
* example_subnet = azure.network.Subnet("example",
* name="AzureBastionSubnet",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["192.168.1.224/27"])
* example_public_ip = azure.network.PublicIp("example",
* name="examplepip",
* location=example.location,
* resource_group_name=example.name,
* allocation_method="Static",
* sku="Standard")
* example_bastion_host = azure.compute.BastionHost("example",
* name="examplebastion",
* location=example.location,
* resource_group_name=example.name,
* ip_configuration={
* "name": "configuration",
* "subnet_id": example_subnet.id,
* "public_ip_address_id": example_public_ip.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 = "examplevnet",
* AddressSpaces = new[]
* {
* "192.168.1.0/24",
* },
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "AzureBastionSubnet",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "192.168.1.224/27",
* },
* });
* var examplePublicIp = new Azure.Network.PublicIp("example", new()
* {
* Name = "examplepip",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AllocationMethod = "Static",
* Sku = "Standard",
* });
* var exampleBastionHost = new Azure.Compute.BastionHost("example", new()
* {
* Name = "examplebastion",
* Location = example.Location,
* ResourceGroupName = example.Name,
* IpConfiguration = new Azure.Compute.Inputs.BastionHostIpConfigurationArgs
* {
* Name = "configuration",
* SubnetId = exampleSubnet.Id,
* PublicIpAddressId = examplePublicIp.Id,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "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("examplevnet"),
* AddressSpaces: pulumi.StringArray{
* pulumi.String("192.168.1.0/24"),
* },
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("AzureBastionSubnet"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("192.168.1.224/27"),
* },
* })
* if err != nil {
* return err
* }
* examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
* Name: pulumi.String("examplepip"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AllocationMethod: pulumi.String("Static"),
* Sku: pulumi.String("Standard"),
* })
* if err != nil {
* return err
* }
* _, err = compute.NewBastionHost(ctx, "example", &compute.BastionHostArgs{
* Name: pulumi.String("examplebastion"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* IpConfiguration: &compute.BastionHostIpConfigurationArgs{
* Name: pulumi.String("configuration"),
* SubnetId: exampleSubnet.ID(),
* PublicIpAddressId: examplePublicIp.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.network.PublicIp;
* import com.pulumi.azure.network.PublicIpArgs;
* import com.pulumi.azure.compute.BastionHost;
* import com.pulumi.azure.compute.BastionHostArgs;
* import com.pulumi.azure.compute.inputs.BastionHostIpConfigurationArgs;
* 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("examplevnet")
* .addressSpaces("192.168.1.0/24")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("AzureBastionSubnet")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("192.168.1.224/27")
* .build());
* var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
* .name("examplepip")
* .location(example.location())
* .resourceGroupName(example.name())
* .allocationMethod("Static")
* .sku("Standard")
* .build());
* var exampleBastionHost = new BastionHost("exampleBastionHost", BastionHostArgs.builder()
* .name("examplebastion")
* .location(example.location())
* .resourceGroupName(example.name())
* .ipConfiguration(BastionHostIpConfigurationArgs.builder()
* .name("configuration")
* .subnetId(exampleSubnet.id())
* .publicIpAddressId(examplePublicIp.id())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: examplevnet
* addressSpaces:
* - 192.168.1.0/24
* location: ${example.location}
* resourceGroupName: ${example.name}
* exampleSubnet:
* type: azure:network:Subnet
* name: example
* properties:
* name: AzureBastionSubnet
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 192.168.1.224/27
* examplePublicIp:
* type: azure:network:PublicIp
* name: example
* properties:
* name: examplepip
* location: ${example.location}
* resourceGroupName: ${example.name}
* allocationMethod: Static
* sku: Standard
* exampleBastionHost:
* type: azure:compute:BastionHost
* name: example
* properties:
* name: examplebastion
* location: ${example.location}
* resourceGroupName: ${example.name}
* ipConfiguration:
* name: configuration
* subnetId: ${exampleSubnet.id}
* publicIpAddressId: ${examplePublicIp.id}
* ```
*
* ## Import
* Bastion Hosts can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:compute/bastionHost:BastionHost example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/bastionHosts/instance1
* ```
* @property copyPasteEnabled Is Copy/Paste feature enabled for the Bastion Host. Defaults to `true`.
* @property fileCopyEnabled Is File Copy feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `file_copy_enabled` is only supported when `sku` is `Standard`.
* @property ipConfiguration A `ip_configuration` block as defined below. Changing this forces a new resource to be created.
* @property ipConnectEnabled Is IP Connect feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `ip_connect_enabled` is only supported when `sku` is `Standard`.
* @property kerberosEnabled Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `kerberos_enabled` is only supported when `sku` is `Standard`.
* @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
* @property name Specifies the name of the Bastion Host. Changing this forces a new resource to be created.
* @property resourceGroupName The name of the resource group in which to create the Bastion Host. Changing this forces a new resource to be created.
* @property scaleUnits The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.
* > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.
* @property shareableLinkEnabled Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.
* @property sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.
* > **Note** Downgrading the SKU will force a new resource to be created.
* @property tags A mapping of tags to assign to the resource.
* @property tunnelingEnabled Is Tunneling feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard`.
* @property virtualNetworkId The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.
*/
public data class BastionHostArgs(
public val copyPasteEnabled: Output? = null,
public val fileCopyEnabled: Output? = null,
public val ipConfiguration: Output? = null,
public val ipConnectEnabled: Output? = null,
public val kerberosEnabled: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val scaleUnits: Output? = null,
public val shareableLinkEnabled: Output? = null,
public val sku: Output? = null,
public val tags: Output>? = null,
public val tunnelingEnabled: Output? = null,
public val virtualNetworkId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.BastionHostArgs =
com.pulumi.azure.compute.BastionHostArgs.builder()
.copyPasteEnabled(copyPasteEnabled?.applyValue({ args0 -> args0 }))
.fileCopyEnabled(fileCopyEnabled?.applyValue({ args0 -> args0 }))
.ipConfiguration(ipConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ipConnectEnabled(ipConnectEnabled?.applyValue({ args0 -> args0 }))
.kerberosEnabled(kerberosEnabled?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.scaleUnits(scaleUnits?.applyValue({ args0 -> args0 }))
.shareableLinkEnabled(shareableLinkEnabled?.applyValue({ args0 -> args0 }))
.sku(sku?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.tunnelingEnabled(tunnelingEnabled?.applyValue({ args0 -> args0 }))
.virtualNetworkId(virtualNetworkId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BastionHostArgs].
*/
@PulumiTagMarker
public class BastionHostArgsBuilder internal constructor() {
private var copyPasteEnabled: Output? = null
private var fileCopyEnabled: Output? = null
private var ipConfiguration: Output? = null
private var ipConnectEnabled: Output? = null
private var kerberosEnabled: Output? = null
private var location: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var scaleUnits: Output? = null
private var shareableLinkEnabled: Output? = null
private var sku: Output? = null
private var tags: Output>? = null
private var tunnelingEnabled: Output? = null
private var virtualNetworkId: Output? = null
/**
* @param value Is Copy/Paste feature enabled for the Bastion Host. Defaults to `true`.
*/
@JvmName("imgjklpbdxidphen")
public suspend fun copyPasteEnabled(`value`: Output) {
this.copyPasteEnabled = value
}
/**
* @param value Is File Copy feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `file_copy_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("nfbgcuctxbxxesca")
public suspend fun fileCopyEnabled(`value`: Output) {
this.fileCopyEnabled = value
}
/**
* @param value A `ip_configuration` block as defined below. Changing this forces a new resource to be created.
*/
@JvmName("vuetfloskkeogpyp")
public suspend fun ipConfiguration(`value`: Output) {
this.ipConfiguration = value
}
/**
* @param value Is IP Connect feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `ip_connect_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("qoqjqlpwufndxwec")
public suspend fun ipConnectEnabled(`value`: Output) {
this.ipConnectEnabled = value
}
/**
* @param value Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `kerberos_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("fquabbnaggmxjaun")
public suspend fun kerberosEnabled(`value`: Output) {
this.kerberosEnabled = value
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
*/
@JvmName("apfwbhciqipdlele")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Specifies the name of the Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("bkxkkcnfhamwdpoi")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group in which to create the Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("gkewfvuyouokhiiy")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.
* > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.
*/
@JvmName("wrbtqrkhxeblqtto")
public suspend fun scaleUnits(`value`: Output) {
this.scaleUnits = value
}
/**
* @param value Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("dgwgnqqoyxauprsi")
public suspend fun shareableLinkEnabled(`value`: Output) {
this.shareableLinkEnabled = value
}
/**
* @param value The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.
* > **Note** Downgrading the SKU will force a new resource to be created.
*/
@JvmName("mdkslbxsdljqpppr")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("uaxoxpahkokvsqsk")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Is Tunneling feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("jmtkqkptxgpxxwue")
public suspend fun tunnelingEnabled(`value`: Output) {
this.tunnelingEnabled = value
}
/**
* @param value The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("nxiclsgkegxqfacu")
public suspend fun virtualNetworkId(`value`: Output) {
this.virtualNetworkId = value
}
/**
* @param value Is Copy/Paste feature enabled for the Bastion Host. Defaults to `true`.
*/
@JvmName("paphjcmtwkxvdwsf")
public suspend fun copyPasteEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.copyPasteEnabled = mapped
}
/**
* @param value Is File Copy feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `file_copy_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("hpyfsxjaffsqcyec")
public suspend fun fileCopyEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileCopyEnabled = mapped
}
/**
* @param value A `ip_configuration` block as defined below. Changing this forces a new resource to be created.
*/
@JvmName("dlxiplpdfdmbqqgg")
public suspend fun ipConfiguration(`value`: BastionHostIpConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipConfiguration = mapped
}
/**
* @param argument A `ip_configuration` block as defined below. Changing this forces a new resource to be created.
*/
@JvmName("xwflehomscslsmge")
public suspend fun ipConfiguration(argument: suspend BastionHostIpConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = BastionHostIpConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.ipConfiguration = mapped
}
/**
* @param value Is IP Connect feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `ip_connect_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("qxygotvqxdvnbbru")
public suspend fun ipConnectEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipConnectEnabled = mapped
}
/**
* @param value Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `kerberos_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("fxtkgvcbbguocioq")
public suspend fun kerberosEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kerberosEnabled = mapped
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
*/
@JvmName("daxgtmapyqmbvnji")
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 the Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("qdoyercgsuhceqwc")
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 Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("swubvpynqchblhwn")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.
* > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.
*/
@JvmName("agrnxdwqeotfkvfx")
public suspend fun scaleUnits(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scaleUnits = mapped
}
/**
* @param value Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("cbudkoyhncqoccoo")
public suspend fun shareableLinkEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.shareableLinkEnabled = mapped
}
/**
* @param value The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.
* > **Note** Downgrading the SKU will force a new resource to be created.
*/
@JvmName("yuvpmcckcspihgjx")
public suspend fun sku(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("mhrvjkadgftrxnwp")
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 to assign to the resource.
*/
@JvmName("fhxtevigldkvxvbg")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Is Tunneling feature enabled for the Bastion Host. Defaults to `false`.
* > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard`.
*/
@JvmName("vyuqeviguodvbowt")
public suspend fun tunnelingEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tunnelingEnabled = mapped
}
/**
* @param value The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.
*/
@JvmName("vchhyypgwhryvvho")
public suspend fun virtualNetworkId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkId = mapped
}
internal fun build(): BastionHostArgs = BastionHostArgs(
copyPasteEnabled = copyPasteEnabled,
fileCopyEnabled = fileCopyEnabled,
ipConfiguration = ipConfiguration,
ipConnectEnabled = ipConnectEnabled,
kerberosEnabled = kerberosEnabled,
location = location,
name = name,
resourceGroupName = resourceGroupName,
scaleUnits = scaleUnits,
shareableLinkEnabled = shareableLinkEnabled,
sku = sku,
tags = tags,
tunnelingEnabled = tunnelingEnabled,
virtualNetworkId = virtualNetworkId,
)
}