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.resourceconnector.kotlin.ApplianceArgs.kt Maven / Gradle / Ivy
Go to download
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.resourceconnector.kotlin
import com.pulumi.azurenative.resourceconnector.ApplianceArgs.builder
import com.pulumi.azurenative.resourceconnector.kotlin.enums.Distro
import com.pulumi.azurenative.resourceconnector.kotlin.inputs.AppliancePropertiesInfrastructureConfigArgs
import com.pulumi.azurenative.resourceconnector.kotlin.inputs.AppliancePropertiesInfrastructureConfigArgsBuilder
import com.pulumi.azurenative.resourceconnector.kotlin.inputs.IdentityArgs
import com.pulumi.azurenative.resourceconnector.kotlin.inputs.IdentityArgsBuilder
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 com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Appliances definition.
* Azure REST API version: 2022-10-27. Prior API version in Azure Native 1.x: 2021-10-31-preview.
* Other available API versions: 2021-10-31-preview.
* ## Example Usage
* ### Create/Update Appliance
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var appliance = new AzureNative.ResourceConnector.Appliance("appliance", new()
* {
* Distro = AzureNative.ResourceConnector.Distro.AKSEdge,
* InfrastructureConfig = new AzureNative.ResourceConnector.Inputs.AppliancePropertiesInfrastructureConfigArgs
* {
* Provider = AzureNative.ResourceConnector.Provider.VMWare,
* },
* Location = "West US",
* ResourceGroupName = "testresourcegroup",
* ResourceName = "appliance01",
* });
* });
* ```
* ```go
* package main
* import (
* resourceconnector "github.com/pulumi/pulumi-azure-native-sdk/resourceconnector/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := resourceconnector.NewAppliance(ctx, "appliance", &resourceconnector.ApplianceArgs{
* Distro: pulumi.String(resourceconnector.DistroAKSEdge),
* InfrastructureConfig: &resourceconnector.AppliancePropertiesInfrastructureConfigArgs{
* Provider: pulumi.String(resourceconnector.ProviderVMWare),
* },
* Location: pulumi.String("West US"),
* ResourceGroupName: pulumi.String("testresourcegroup"),
* ResourceName: pulumi.String("appliance01"),
* })
* 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.resourceconnector.Appliance;
* import com.pulumi.azurenative.resourceconnector.ApplianceArgs;
* import com.pulumi.azurenative.resourceconnector.inputs.AppliancePropertiesInfrastructureConfigArgs;
* 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 appliance = new Appliance("appliance", ApplianceArgs.builder()
* .distro("AKSEdge")
* .infrastructureConfig(AppliancePropertiesInfrastructureConfigArgs.builder()
* .provider("VMWare")
* .build())
* .location("West US")
* .resourceGroupName("testresourcegroup")
* .resourceName("appliance01")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:resourceconnector:Appliance appliance01 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}
* ```
* @property distro Represents a supported Fabric/Infra. (AKSEdge etc...).
* @property identity Identity for the resource.
* @property infrastructureConfig Contains infrastructure information about the Appliance
* @property location The geo-location where the resource lives
* @property publicKey Certificates pair used to download MSI certificate from HIS. Can only be set once.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property resourceName Appliances name.
* @property tags Resource tags.
* @property version Version of the Appliance
*/
public data class ApplianceArgs(
public val distro: Output>? = null,
public val identity: Output? = null,
public val infrastructureConfig: Output? = null,
public val location: Output? = null,
public val publicKey: Output? = null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
public val tags: Output>? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.resourceconnector.ApplianceArgs =
com.pulumi.azurenative.resourceconnector.ApplianceArgs.builder()
.distro(
distro?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.infrastructureConfig(
infrastructureConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.publicKey(publicKey?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplianceArgs].
*/
@PulumiTagMarker
public class ApplianceArgsBuilder internal constructor() {
private var distro: Output>? = null
private var identity: Output? = null
private var infrastructureConfig: Output? = null
private var location: Output? = null
private var publicKey: Output? = null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
private var tags: Output>? = null
private var version: Output? = null
/**
* @param value Represents a supported Fabric/Infra. (AKSEdge etc...).
*/
@JvmName("lbkcmhyjppdhgsda")
public suspend fun distro(`value`: Output>) {
this.distro = value
}
/**
* @param value Identity for the resource.
*/
@JvmName("ooqrmojbjtfbuojq")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value Contains infrastructure information about the Appliance
*/
@JvmName("fpeegmkdtbhuyipr")
public suspend fun infrastructureConfig(`value`: Output) {
this.infrastructureConfig = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("nkjifsiybfsfgotk")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Certificates pair used to download MSI certificate from HIS. Can only be set once.
*/
@JvmName("tasgafeknspsxymh")
public suspend fun publicKey(`value`: Output) {
this.publicKey = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("cnxhayjkddvhdvgm")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Appliances name.
*/
@JvmName("fqthsjcawrdqhqco")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value Resource tags.
*/
@JvmName("uqlhcbnalqypoqup")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Version of the Appliance
*/
@JvmName("kojulcvggkiqgoer")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Represents a supported Fabric/Infra. (AKSEdge etc...).
*/
@JvmName("cdenpceuyepipapb")
public suspend fun distro(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.distro = mapped
}
/**
* @param value Represents a supported Fabric/Infra. (AKSEdge etc...).
*/
@JvmName("aaonmwwmoxmseffw")
public fun distro(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.distro = mapped
}
/**
* @param value Represents a supported Fabric/Infra. (AKSEdge etc...).
*/
@JvmName("ctfgygjycouditrr")
public fun distro(`value`: Distro) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.distro = mapped
}
/**
* @param value Identity for the resource.
*/
@JvmName("aayalqphghvxurur")
public suspend fun identity(`value`: IdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Identity for the resource.
*/
@JvmName("yyijtbwsxkksajif")
public suspend fun identity(argument: suspend IdentityArgsBuilder.() -> Unit) {
val toBeMapped = IdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value Contains infrastructure information about the Appliance
*/
@JvmName("mnwnkqecjdcmunir")
public suspend fun infrastructureConfig(`value`: AppliancePropertiesInfrastructureConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.infrastructureConfig = mapped
}
/**
* @param argument Contains infrastructure information about the Appliance
*/
@JvmName("sjsdwuqxydkdpbyo")
public suspend fun infrastructureConfig(argument: suspend AppliancePropertiesInfrastructureConfigArgsBuilder.() -> Unit) {
val toBeMapped = AppliancePropertiesInfrastructureConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.infrastructureConfig = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("hblwxtktuucotvia")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Certificates pair used to download MSI certificate from HIS. Can only be set once.
*/
@JvmName("enitulkipjcoiskk")
public suspend fun publicKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicKey = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("oypcwowsljrohjki")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Appliances name.
*/
@JvmName("lbkvfrkeryckduiw")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("eyopuqhjbpnektfs")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("cccaclsncocftelc")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Version of the Appliance
*/
@JvmName("tsjhpcaxgvppkall")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ApplianceArgs = ApplianceArgs(
distro = distro,
identity = identity,
infrastructureConfig = infrastructureConfig,
location = location,
publicKey = publicKey,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
tags = tags,
version = version,
)
}