
com.pulumi.azurenative.security.kotlin.inputs.HybridComputeSettingsPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.security.kotlin.inputs
import com.pulumi.azurenative.security.inputs.HybridComputeSettingsPropertiesArgs.builder
import com.pulumi.azurenative.security.kotlin.enums.AutoProvision
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Settings for hybrid compute management
* @property autoProvision Whether or not to automatically install Azure Arc (hybrid compute) agents on machines
* @property proxyServer For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use.
* @property region The location where the metadata of machines will be stored
* @property resourceGroupName The name of the resource group where Arc (Hybrid Compute) connectors are connected.
* @property servicePrincipal An object to access resources that are secured by an Azure AD tenant.
*/
public data class HybridComputeSettingsPropertiesArgs(
public val autoProvision: Output>,
public val proxyServer: Output? = null,
public val region: Output? = null,
public val resourceGroupName: Output? = null,
public val servicePrincipal: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.security.inputs.HybridComputeSettingsPropertiesArgs = com.pulumi.azurenative.security.inputs.HybridComputeSettingsPropertiesArgs.builder()
.autoProvision(
autoProvision.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.proxyServer(proxyServer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.region(region?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.servicePrincipal(
servicePrincipal?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [HybridComputeSettingsPropertiesArgs].
*/
@PulumiTagMarker
public class HybridComputeSettingsPropertiesArgsBuilder internal constructor() {
private var autoProvision: Output>? = null
private var proxyServer: Output? = null
private var region: Output? = null
private var resourceGroupName: Output? = null
private var servicePrincipal: Output? = null
/**
* @param value Whether or not to automatically install Azure Arc (hybrid compute) agents on machines
*/
@JvmName("yrylfudkutpnfyja")
public suspend fun autoProvision(`value`: Output>) {
this.autoProvision = value
}
/**
* @param value For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use.
*/
@JvmName("dgdmbnslybmalygn")
public suspend fun proxyServer(`value`: Output) {
this.proxyServer = value
}
/**
* @param value The location where the metadata of machines will be stored
*/
@JvmName("uqqluocyqljjmmks")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The name of the resource group where Arc (Hybrid Compute) connectors are connected.
*/
@JvmName("lcefqakgmtlwwhla")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value An object to access resources that are secured by an Azure AD tenant.
*/
@JvmName("toqkobhuawdhbtkf")
public suspend fun servicePrincipal(`value`: Output) {
this.servicePrincipal = value
}
/**
* @param value Whether or not to automatically install Azure Arc (hybrid compute) agents on machines
*/
@JvmName("mgygaihtgiamjcfq")
public suspend fun autoProvision(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.autoProvision = mapped
}
/**
* @param value Whether or not to automatically install Azure Arc (hybrid compute) agents on machines
*/
@JvmName("dwagbefndmoelufy")
public fun autoProvision(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.autoProvision = mapped
}
/**
* @param value Whether or not to automatically install Azure Arc (hybrid compute) agents on machines
*/
@JvmName("wryavjgoksuydqrv")
public fun autoProvision(`value`: AutoProvision) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.autoProvision = mapped
}
/**
* @param value For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use.
*/
@JvmName("xaefigqtoignynlb")
public suspend fun proxyServer(`value`: ProxyServerPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.proxyServer = mapped
}
/**
* @param argument For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use.
*/
@JvmName("wnnxyoxicbjsbmcp")
public suspend fun proxyServer(argument: suspend ProxyServerPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ProxyServerPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.proxyServer = mapped
}
/**
* @param value The location where the metadata of machines will be stored
*/
@JvmName("yhjosechbnjhpypn")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value The name of the resource group where Arc (Hybrid Compute) connectors are connected.
*/
@JvmName("pmlbjdhxbswynxxf")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value An object to access resources that are secured by an Azure AD tenant.
*/
@JvmName("hrwikgajgonwntan")
public suspend fun servicePrincipal(`value`: ServicePrincipalPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.servicePrincipal = mapped
}
/**
* @param argument An object to access resources that are secured by an Azure AD tenant.
*/
@JvmName("qnfymwfsgmeddyfo")
public suspend fun servicePrincipal(argument: suspend ServicePrincipalPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ServicePrincipalPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.servicePrincipal = mapped
}
internal fun build(): HybridComputeSettingsPropertiesArgs = HybridComputeSettingsPropertiesArgs(
autoProvision = autoProvision ?: throw PulumiNullFieldException("autoProvision"),
proxyServer = proxyServer,
region = region,
resourceGroupName = resourceGroupName,
servicePrincipal = servicePrincipal,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy