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.azurestackhci.kotlin.ArcSettingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurestackhci.kotlin
import com.pulumi.azurenative.azurestackhci.ArcSettingArgs.builder
import com.pulumi.azurenative.azurestackhci.kotlin.inputs.ArcConnectivityPropertiesArgs
import com.pulumi.azurenative.azurestackhci.kotlin.inputs.ArcConnectivityPropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* ArcSetting details.
* Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2021-01-01-preview.
* Other available API versions: 2021-09-01-preview, 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01.
* ## Example Usage
* ### Create ArcSetting
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var arcSetting = new AzureNative.AzureStackHCI.ArcSetting("arcSetting", new()
* {
* ArcSettingName = "default",
* ClusterName = "myCluster",
* ResourceGroupName = "test-rg",
* });
* });
* ```
* ```go
* package main
* import (
* azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := azurestackhci.NewArcSetting(ctx, "arcSetting", &azurestackhci.ArcSettingArgs{
* ArcSettingName: pulumi.String("default"),
* ClusterName: pulumi.String("myCluster"),
* ResourceGroupName: pulumi.String("test-rg"),
* })
* 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.azurestackhci.ArcSetting;
* import com.pulumi.azurenative.azurestackhci.ArcSettingArgs;
* 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 arcSetting = new ArcSetting("arcSetting", ArcSettingArgs.builder()
* .arcSettingName("default")
* .clusterName("myCluster")
* .resourceGroupName("test-rg")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:azurestackhci:ArcSetting myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}
* ```
* @property arcApplicationClientId App id of arc AAD identity.
* @property arcApplicationObjectId Object id of arc AAD identity.
* @property arcApplicationTenantId Tenant id of arc AAD identity.
* @property arcInstanceResourceGroup The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
* @property arcServicePrincipalObjectId Object id of arc AAD service principal.
* @property arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @property clusterName The name of the cluster.
* @property connectivityProperties contains connectivity related configuration for ARC resources
* @property resourceGroupName The name of the resource group. The name is case insensitive.
*/
public data class ArcSettingArgs(
public val arcApplicationClientId: Output? = null,
public val arcApplicationObjectId: Output? = null,
public val arcApplicationTenantId: Output? = null,
public val arcInstanceResourceGroup: Output? = null,
public val arcServicePrincipalObjectId: Output? = null,
public val arcSettingName: Output? = null,
public val clusterName: Output? = null,
public val connectivityProperties: Output>? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurestackhci.ArcSettingArgs =
com.pulumi.azurenative.azurestackhci.ArcSettingArgs.builder()
.arcApplicationClientId(arcApplicationClientId?.applyValue({ args0 -> args0 }))
.arcApplicationObjectId(arcApplicationObjectId?.applyValue({ args0 -> args0 }))
.arcApplicationTenantId(arcApplicationTenantId?.applyValue({ args0 -> args0 }))
.arcInstanceResourceGroup(arcInstanceResourceGroup?.applyValue({ args0 -> args0 }))
.arcServicePrincipalObjectId(arcServicePrincipalObjectId?.applyValue({ args0 -> args0 }))
.arcSettingName(arcSettingName?.applyValue({ args0 -> args0 }))
.clusterName(clusterName?.applyValue({ args0 -> args0 }))
.connectivityProperties(
connectivityProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ArcSettingArgs].
*/
@PulumiTagMarker
public class ArcSettingArgsBuilder internal constructor() {
private var arcApplicationClientId: Output? = null
private var arcApplicationObjectId: Output? = null
private var arcApplicationTenantId: Output? = null
private var arcInstanceResourceGroup: Output? = null
private var arcServicePrincipalObjectId: Output? = null
private var arcSettingName: Output? = null
private var clusterName: Output? = null
private var connectivityProperties: Output>? = null
private var resourceGroupName: Output? = null
/**
* @param value App id of arc AAD identity.
*/
@JvmName("eyoxrmulbjgvyhwu")
public suspend fun arcApplicationClientId(`value`: Output) {
this.arcApplicationClientId = value
}
/**
* @param value Object id of arc AAD identity.
*/
@JvmName("afetrxyacvjstmcm")
public suspend fun arcApplicationObjectId(`value`: Output) {
this.arcApplicationObjectId = value
}
/**
* @param value Tenant id of arc AAD identity.
*/
@JvmName("dbwixciebiqcinne")
public suspend fun arcApplicationTenantId(`value`: Output) {
this.arcApplicationTenantId = value
}
/**
* @param value The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
*/
@JvmName("cmeksnfgejgfsowc")
public suspend fun arcInstanceResourceGroup(`value`: Output) {
this.arcInstanceResourceGroup = value
}
/**
* @param value Object id of arc AAD service principal.
*/
@JvmName("kheoeyddogvjilim")
public suspend fun arcServicePrincipalObjectId(`value`: Output) {
this.arcServicePrincipalObjectId = value
}
/**
* @param value The name of the proxy resource holding details of HCI ArcSetting information.
*/
@JvmName("qbfgmjevyyulfuyw")
public suspend fun arcSettingName(`value`: Output) {
this.arcSettingName = value
}
/**
* @param value The name of the cluster.
*/
@JvmName("pkydriemcprwtnbj")
public suspend fun clusterName(`value`: Output) {
this.clusterName = value
}
/**
* @param value contains connectivity related configuration for ARC resources
*/
@JvmName("rduskxvtdaiubgip")
public suspend fun connectivityProperties(`value`: Output>) {
this.connectivityProperties = value
}
@JvmName("socvecwqcebnhtpp")
public suspend fun connectivityProperties(vararg values: Output) {
this.connectivityProperties = Output.all(values.asList())
}
/**
* @param values contains connectivity related configuration for ARC resources
*/
@JvmName("jibohgekqakrbiiv")
public suspend fun connectivityProperties(values: List>) {
this.connectivityProperties = Output.all(values)
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("fythvlejjsvihcpy")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value App id of arc AAD identity.
*/
@JvmName("ilmpjvwsceypoids")
public suspend fun arcApplicationClientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcApplicationClientId = mapped
}
/**
* @param value Object id of arc AAD identity.
*/
@JvmName("sakrblwouyveirdh")
public suspend fun arcApplicationObjectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcApplicationObjectId = mapped
}
/**
* @param value Tenant id of arc AAD identity.
*/
@JvmName("qjjeufkatlvdyuia")
public suspend fun arcApplicationTenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcApplicationTenantId = mapped
}
/**
* @param value The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
*/
@JvmName("uahpnaemxtkqojiw")
public suspend fun arcInstanceResourceGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcInstanceResourceGroup = mapped
}
/**
* @param value Object id of arc AAD service principal.
*/
@JvmName("jeyqlefntmkqjxow")
public suspend fun arcServicePrincipalObjectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcServicePrincipalObjectId = mapped
}
/**
* @param value The name of the proxy resource holding details of HCI ArcSetting information.
*/
@JvmName("kudxkdmkdeqqcuxw")
public suspend fun arcSettingName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arcSettingName = mapped
}
/**
* @param value The name of the cluster.
*/
@JvmName("yiehduccofykbdio")
public suspend fun clusterName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterName = mapped
}
/**
* @param value contains connectivity related configuration for ARC resources
*/
@JvmName("ayfyygsntsklttwn")
public suspend fun connectivityProperties(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectivityProperties = mapped
}
/**
* @param argument contains connectivity related configuration for ARC resources
*/
@JvmName("mgxqqhnikridmurr")
public suspend fun connectivityProperties(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ArcConnectivityPropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.connectivityProperties = mapped
}
/**
* @param argument contains connectivity related configuration for ARC resources
*/
@JvmName("vracqlxqurmfufoj")
public suspend fun connectivityProperties(vararg argument: suspend ArcConnectivityPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ArcConnectivityPropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.connectivityProperties = mapped
}
/**
* @param argument contains connectivity related configuration for ARC resources
*/
@JvmName("lefmlqurrbglnlne")
public suspend fun connectivityProperties(argument: suspend ArcConnectivityPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ArcConnectivityPropertiesArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.connectivityProperties = mapped
}
/**
* @param values contains connectivity related configuration for ARC resources
*/
@JvmName("ihrhgyuxyxffhhtc")
public suspend fun connectivityProperties(vararg values: ArcConnectivityPropertiesArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectivityProperties = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("nfqkiywpdauvbpmt")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ArcSettingArgs = ArcSettingArgs(
arcApplicationClientId = arcApplicationClientId,
arcApplicationObjectId = arcApplicationObjectId,
arcApplicationTenantId = arcApplicationTenantId,
arcInstanceResourceGroup = arcInstanceResourceGroup,
arcServicePrincipalObjectId = arcServicePrincipalObjectId,
arcSettingName = arcSettingName,
clusterName = clusterName,
connectivityProperties = connectivityProperties,
resourceGroupName = resourceGroupName,
)
}