All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurefleet.kotlin.FleetArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurefleet.kotlin

import com.pulumi.azurenative.azurefleet.FleetArgs.builder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.ComputeProfileArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.ComputeProfileArgsBuilder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.PlanArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.PlanArgsBuilder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.RegularPriorityProfileArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.RegularPriorityProfileArgsBuilder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.SpotPriorityProfileArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.SpotPriorityProfileArgsBuilder
import com.pulumi.azurenative.azurefleet.kotlin.inputs.VmSizeProfileArgs
import com.pulumi.azurenative.azurefleet.kotlin.inputs.VmSizeProfileArgsBuilder
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * An Compute Fleet resource
 * Azure REST API version: 2024-05-01-preview.
 * Other available API versions: 2023-11-01-preview.
 * ## Example Usage
 * ### Fleets_CreateOrUpdate_MinimumSet
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var fleet = new AzureNative.AzureFleet.Fleet("fleet", new()
 *     {
 *         ComputeProfile = new AzureNative.AzureFleet.Inputs.ComputeProfileArgs
 *         {
 *             BaseVirtualMachineProfile = new AzureNative.AzureFleet.Inputs.BaseVirtualMachineProfileArgs
 *             {
 *                 NetworkProfile = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetNetworkProfileArgs
 *                 {
 *                     NetworkApiVersion = "2022-07-01",
 *                     NetworkInterfaceConfigurations = new[]
 *                     {
 *                         new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetNetworkConfigurationArgs
 *                         {
 *                             Name = "vmNameTest",
 *                             Properties = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetNetworkConfigurationPropertiesArgs
 *                             {
 *                                 EnableAcceleratedNetworking = false,
 *                                 EnableIPForwarding = true,
 *                                 IpConfigurations = new[]
 *                                 {
 *                                     new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetIPConfigurationArgs
 *                                     {
 *                                         Name = "vmNameTest",
 *                                         Properties = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetIPConfigurationPropertiesArgs
 *                                         {
 *                                             LoadBalancerBackendAddressPools = new[]
 *                                             {
 *                                                 new AzureNative.AzureFleet.Inputs.SubResourceArgs
 *                                                 {
 *                                                     Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}",
 *                                                 },
 *                                             },
 *                                             Primary = true,
 *                                             Subnet = new AzureNative.AzureFleet.Inputs.ApiEntityReferenceArgs
 *                                             {
 *                                                 Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}",
 *                                             },
 *                                         },
 *                                     },
 *                                 },
 *                                 Primary = true,
 *                             },
 *                         },
 *                     },
 *                 },
 *                 OsProfile = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetOSProfileArgs
 *                 {
 *                     AdminPassword = "TestPassword$0",
 *                     AdminUsername = "azureuser",
 *                     ComputerNamePrefix = "prefix",
 *                     LinuxConfiguration = new AzureNative.AzureFleet.Inputs.LinuxConfigurationArgs
 *                     {
 *                         DisablePasswordAuthentication = false,
 *                     },
 *                 },
 *                 StorageProfile = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetStorageProfileArgs
 *                 {
 *                     ImageReference = new AzureNative.AzureFleet.Inputs.ImageReferenceArgs
 *                     {
 *                         Offer = "0001-com-ubuntu-server-focal",
 *                         Publisher = "canonical",
 *                         Sku = "20_04-lts-gen2",
 *                         Version = "latest",
 *                     },
 *                     OsDisk = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetOSDiskArgs
 *                     {
 *                         Caching = AzureNative.AzureFleet.CachingTypes.ReadWrite,
 *                         CreateOption = AzureNative.AzureFleet.DiskCreateOptionTypes.FromImage,
 *                         ManagedDisk = new AzureNative.AzureFleet.Inputs.VirtualMachineScaleSetManagedDiskParametersArgs
 *                         {
 *                             StorageAccountType = AzureNative.AzureFleet.StorageAccountTypes.Standard_LRS,
 *                         },
 *                         OsType = AzureNative.AzureFleet.OperatingSystemTypes.Linux,
 *                     },
 *                 },
 *             },
 *             ComputeApiVersion = "2023-09-01",
 *             PlatformFaultDomainCount = 1,
 *         },
 *         FleetName = "testFleet",
 *         Location = "eastus2euap",
 *         RegularPriorityProfile = new AzureNative.AzureFleet.Inputs.RegularPriorityProfileArgs
 *         {
 *             AllocationStrategy = AzureNative.AzureFleet.RegularPriorityAllocationStrategy.LowestPrice,
 *             Capacity = 2,
 *             MinCapacity = 1,
 *         },
 *         ResourceGroupName = "rgazurefleet",
 *         SpotPriorityProfile = new AzureNative.AzureFleet.Inputs.SpotPriorityProfileArgs
 *         {
 *             AllocationStrategy = AzureNative.AzureFleet.SpotAllocationStrategy.PriceCapacityOptimized,
 *             Capacity = 2,
 *             EvictionPolicy = AzureNative.AzureFleet.EvictionPolicy.Delete,
 *             Maintain = true,
 *             MinCapacity = 1,
 *         },
 *         Tags =
 *         {
 *             { "key", "fleets-test" },
 *         },
 *         VmSizesProfile = new[]
 *         {
 *             new AzureNative.AzureFleet.Inputs.VmSizeProfileArgs
 *             {
 *                 Name = "Standard_D2s_v3",
 *             },
 *             new AzureNative.AzureFleet.Inputs.VmSizeProfileArgs
 *             {
 *                 Name = "Standard_D4s_v3",
 *             },
 *             new AzureNative.AzureFleet.Inputs.VmSizeProfileArgs
 *             {
 *                 Name = "Standard_E2s_v3",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	azurefleet "github.com/pulumi/pulumi-azure-native-sdk/azurefleet/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := azurefleet.NewFleet(ctx, "fleet", &azurefleet.FleetArgs{
 * 			ComputeProfile: &azurefleet.ComputeProfileArgs{
 * 				BaseVirtualMachineProfile: &azurefleet.BaseVirtualMachineProfileArgs{
 * 					NetworkProfile: &azurefleet.VirtualMachineScaleSetNetworkProfileArgs{
 * 						NetworkApiVersion: pulumi.String("2022-07-01"),
 * 						NetworkInterfaceConfigurations: azurefleet.VirtualMachineScaleSetNetworkConfigurationArray{
 * 							&azurefleet.VirtualMachineScaleSetNetworkConfigurationArgs{
 * 								Name: pulumi.String("vmNameTest"),
 * 								Properties: &azurefleet.VirtualMachineScaleSetNetworkConfigurationPropertiesArgs{
 * 									EnableAcceleratedNetworking: pulumi.Bool(false),
 * 									EnableIPForwarding:          pulumi.Bool(true),
 * 									IpConfigurations: azurefleet.VirtualMachineScaleSetIPConfigurationArray{
 * 										&azurefleet.VirtualMachineScaleSetIPConfigurationArgs{
 * 											Name: pulumi.String("vmNameTest"),
 * 											Properties: &azurefleet.VirtualMachineScaleSetIPConfigurationPropertiesArgs{
 * 												LoadBalancerBackendAddressPools: azurefleet.SubResourceArray{
 * 													&azurefleet.SubResourceArgs{
 * 														Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"),
 * 													},
 * 												},
 * 												Primary: pulumi.Bool(true),
 * 												Subnet: &azurefleet.ApiEntityReferenceArgs{
 * 													Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"),
 * 												},
 * 											},
 * 										},
 * 									},
 * 									Primary: pulumi.Bool(true),
 * 								},
 * 							},
 * 						},
 * 					},
 * 					OsProfile: &azurefleet.VirtualMachineScaleSetOSProfileArgs{
 * 						AdminPassword:      pulumi.String("TestPassword$0"),
 * 						AdminUsername:      pulumi.String("azureuser"),
 * 						ComputerNamePrefix: pulumi.String("prefix"),
 * 						LinuxConfiguration: &azurefleet.LinuxConfigurationArgs{
 * 							DisablePasswordAuthentication: pulumi.Bool(false),
 * 						},
 * 					},
 * 					StorageProfile: &azurefleet.VirtualMachineScaleSetStorageProfileArgs{
 * 						ImageReference: &azurefleet.ImageReferenceArgs{
 * 							Offer:     pulumi.String("0001-com-ubuntu-server-focal"),
 * 							Publisher: pulumi.String("canonical"),
 * 							Sku:       pulumi.String("20_04-lts-gen2"),
 * 							Version:   pulumi.String("latest"),
 * 						},
 * 						OsDisk: &azurefleet.VirtualMachineScaleSetOSDiskArgs{
 * 							Caching:      pulumi.String(azurefleet.CachingTypesReadWrite),
 * 							CreateOption: pulumi.String(azurefleet.DiskCreateOptionTypesFromImage),
 * 							ManagedDisk: &azurefleet.VirtualMachineScaleSetManagedDiskParametersArgs{
 * 								StorageAccountType: pulumi.String(azurefleet.StorageAccountTypes_Standard_LRS),
 * 							},
 * 							OsType: pulumi.String(azurefleet.OperatingSystemTypesLinux),
 * 						},
 * 					},
 * 				},
 * 				ComputeApiVersion:        pulumi.String("2023-09-01"),
 * 				PlatformFaultDomainCount: pulumi.Int(1),
 * 			},
 * 			FleetName: pulumi.String("testFleet"),
 * 			Location:  pulumi.String("eastus2euap"),
 * 			RegularPriorityProfile: &azurefleet.RegularPriorityProfileArgs{
 * 				AllocationStrategy: pulumi.String(azurefleet.RegularPriorityAllocationStrategyLowestPrice),
 * 				Capacity:           pulumi.Int(2),
 * 				MinCapacity:        pulumi.Int(1),
 * 			},
 * 			ResourceGroupName: pulumi.String("rgazurefleet"),
 * 			SpotPriorityProfile: &azurefleet.SpotPriorityProfileArgs{
 * 				AllocationStrategy: pulumi.String(azurefleet.SpotAllocationStrategyPriceCapacityOptimized),
 * 				Capacity:           pulumi.Int(2),
 * 				EvictionPolicy:     pulumi.String(azurefleet.EvictionPolicyDelete),
 * 				Maintain:           pulumi.Bool(true),
 * 				MinCapacity:        pulumi.Int(1),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"key": pulumi.String("fleets-test"),
 * 			},
 * 			VmSizesProfile: azurefleet.VmSizeProfileArray{
 * 				&azurefleet.VmSizeProfileArgs{
 * 					Name: pulumi.String("Standard_D2s_v3"),
 * 				},
 * 				&azurefleet.VmSizeProfileArgs{
 * 					Name: pulumi.String("Standard_D4s_v3"),
 * 				},
 * 				&azurefleet.VmSizeProfileArgs{
 * 					Name: pulumi.String("Standard_E2s_v3"),
 * 				},
 * 			},
 * 		})
 * 		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.azurefleet.Fleet;
 * import com.pulumi.azurenative.azurefleet.FleetArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.BaseVirtualMachineProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetNetworkProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetOSProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.LinuxConfigurationArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetStorageProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.ImageReferenceArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetOSDiskArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetManagedDiskParametersArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.RegularPriorityProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.SpotPriorityProfileArgs;
 * import com.pulumi.azurenative.azurefleet.inputs.VmSizeProfileArgs;
 * 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 fleet = new Fleet("fleet", FleetArgs.builder()
 *             .computeProfile(ComputeProfileArgs.builder()
 *                 .baseVirtualMachineProfile(BaseVirtualMachineProfileArgs.builder()
 *                     .networkProfile(VirtualMachineScaleSetNetworkProfileArgs.builder()
 *                         .networkApiVersion("2022-07-01")
 *                         .networkInterfaceConfigurations(VirtualMachineScaleSetNetworkConfigurationArgs.builder()
 *                             .name("vmNameTest")
 *                             .properties(VirtualMachineScaleSetNetworkConfigurationPropertiesArgs.builder()
 *                                 .enableAcceleratedNetworking(false)
 *                                 .enableIPForwarding(true)
 *                                 .ipConfigurations(VirtualMachineScaleSetIPConfigurationArgs.builder()
 *                                     .name("vmNameTest")
 *                                     .properties(VirtualMachineScaleSetIPConfigurationPropertiesArgs.builder()
 *                                         .loadBalancerBackendAddressPools(SubResourceArgs.builder()
 *                                             .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}")
 *                                             .build())
 *                                         .primary(true)
 *                                         .subnet(ApiEntityReferenceArgs.builder()
 *                                             .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")
 *                                             .build())
 *                                         .build())
 *                                     .build())
 *                                 .primary(true)
 *                                 .build())
 *                             .build())
 *                         .build())
 *                     .osProfile(VirtualMachineScaleSetOSProfileArgs.builder()
 *                         .adminPassword("TestPassword$0")
 *                         .adminUsername("azureuser")
 *                         .computerNamePrefix("prefix")
 *                         .linuxConfiguration(LinuxConfigurationArgs.builder()
 *                             .disablePasswordAuthentication(false)
 *                             .build())
 *                         .build())
 *                     .storageProfile(VirtualMachineScaleSetStorageProfileArgs.builder()
 *                         .imageReference(ImageReferenceArgs.builder()
 *                             .offer("0001-com-ubuntu-server-focal")
 *                             .publisher("canonical")
 *                             .sku("20_04-lts-gen2")
 *                             .version("latest")
 *                             .build())
 *                         .osDisk(VirtualMachineScaleSetOSDiskArgs.builder()
 *                             .caching("ReadWrite")
 *                             .createOption("FromImage")
 *                             .managedDisk(VirtualMachineScaleSetManagedDiskParametersArgs.builder()
 *                                 .storageAccountType("Standard_LRS")
 *                                 .build())
 *                             .osType("Linux")
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .computeApiVersion("2023-09-01")
 *                 .platformFaultDomainCount(1)
 *                 .build())
 *             .fleetName("testFleet")
 *             .location("eastus2euap")
 *             .regularPriorityProfile(RegularPriorityProfileArgs.builder()
 *                 .allocationStrategy("LowestPrice")
 *                 .capacity(2)
 *                 .minCapacity(1)
 *                 .build())
 *             .resourceGroupName("rgazurefleet")
 *             .spotPriorityProfile(SpotPriorityProfileArgs.builder()
 *                 .allocationStrategy("PriceCapacityOptimized")
 *                 .capacity(2)
 *                 .evictionPolicy("Delete")
 *                 .maintain(true)
 *                 .minCapacity(1)
 *                 .build())
 *             .tags(Map.of("key", "fleets-test"))
 *             .vmSizesProfile(
 *                 VmSizeProfileArgs.builder()
 *                     .name("Standard_D2s_v3")
 *                     .build(),
 *                 VmSizeProfileArgs.builder()
 *                     .name("Standard_D4s_v3")
 *                     .build(),
 *                 VmSizeProfileArgs.builder()
 *                     .name("Standard_E2s_v3")
 *                     .build())
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:azurefleet:Fleet testFleet /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureFleet/fleets/{fleetName}
 * ```
 * @property computeProfile Compute Profile to use for running user's workloads.
 * @property fleetName The name of the Compute Fleet
 * @property identity The managed service identities assigned to this resource.
 * @property location The geo-location where the resource lives
 * @property plan Details of the resource plan.
 * @property regularPriorityProfile Configuration Options for Regular instances in Compute Fleet.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property spotPriorityProfile Configuration Options for Spot instances in Compute Fleet.
 * @property tags Resource tags.
 * @property vmSizesProfile List of VM sizes supported for Compute Fleet
 * @property zones Zones in which the Compute Fleet is available
 */
public data class FleetArgs(
    public val computeProfile: Output? = null,
    public val fleetName: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val plan: Output? = null,
    public val regularPriorityProfile: Output? = null,
    public val resourceGroupName: Output? = null,
    public val spotPriorityProfile: Output? = null,
    public val tags: Output>? = null,
    public val vmSizesProfile: Output>? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurefleet.FleetArgs =
        com.pulumi.azurenative.azurefleet.FleetArgs.builder()
            .computeProfile(computeProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fleetName(fleetName?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .plan(plan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .regularPriorityProfile(
                regularPriorityProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .spotPriorityProfile(
                spotPriorityProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .vmSizesProfile(
                vmSizesProfile?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FleetArgs].
 */
@PulumiTagMarker
public class FleetArgsBuilder internal constructor() {
    private var computeProfile: Output? = null

    private var fleetName: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var plan: Output? = null

    private var regularPriorityProfile: Output? = null

    private var resourceGroupName: Output? = null

    private var spotPriorityProfile: Output? = null

    private var tags: Output>? = null

    private var vmSizesProfile: Output>? = null

    private var zones: Output>? = null

    /**
     * @param value Compute Profile to use for running user's workloads.
     */
    @JvmName("knscgqwliwvxkovi")
    public suspend fun computeProfile(`value`: Output) {
        this.computeProfile = value
    }

    /**
     * @param value The name of the Compute Fleet
     */
    @JvmName("qrmdeeebyrmxucih")
    public suspend fun fleetName(`value`: Output) {
        this.fleetName = value
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("tpxqqybabyscathj")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("swanugyqruoapvns")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Details of the resource plan.
     */
    @JvmName("oajmloyqhxjnlpag")
    public suspend fun plan(`value`: Output) {
        this.plan = value
    }

    /**
     * @param value Configuration Options for Regular instances in Compute Fleet.
     */
    @JvmName("juigscbbpiopuqbl")
    public suspend fun regularPriorityProfile(`value`: Output) {
        this.regularPriorityProfile = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("xogqlcwnufdafdrk")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Configuration Options for Spot instances in Compute Fleet.
     */
    @JvmName("nhfambxaklliopmw")
    public suspend fun spotPriorityProfile(`value`: Output) {
        this.spotPriorityProfile = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("yaqbjfoisghwdurk")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value List of VM sizes supported for Compute Fleet
     */
    @JvmName("jxrffytsfwwrjxbn")
    public suspend fun vmSizesProfile(`value`: Output>) {
        this.vmSizesProfile = value
    }

    @JvmName("ammlchepddaqfhhx")
    public suspend fun vmSizesProfile(vararg values: Output) {
        this.vmSizesProfile = Output.all(values.asList())
    }

    /**
     * @param values List of VM sizes supported for Compute Fleet
     */
    @JvmName("ehyumlqtiptdlmnu")
    public suspend fun vmSizesProfile(values: List>) {
        this.vmSizesProfile = Output.all(values)
    }

    /**
     * @param value Zones in which the Compute Fleet is available
     */
    @JvmName("lsajsssblslwkyob")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

    @JvmName("tsfqkvjflljexoas")
    public suspend fun zones(vararg values: Output) {
        this.zones = Output.all(values.asList())
    }

    /**
     * @param values Zones in which the Compute Fleet is available
     */
    @JvmName("ohqqykrwxypnuwiy")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value Compute Profile to use for running user's workloads.
     */
    @JvmName("smutftpsoylpbjxt")
    public suspend fun computeProfile(`value`: ComputeProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computeProfile = mapped
    }

    /**
     * @param argument Compute Profile to use for running user's workloads.
     */
    @JvmName("onckngbnjwfjtcrv")
    public suspend fun computeProfile(argument: suspend ComputeProfileArgsBuilder.() -> Unit) {
        val toBeMapped = ComputeProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.computeProfile = mapped
    }

    /**
     * @param value The name of the Compute Fleet
     */
    @JvmName("scmevtfngbdbfumn")
    public suspend fun fleetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fleetName = mapped
    }

    /**
     * @param value The managed service identities assigned to this resource.
     */
    @JvmName("pphreqcnawhkefrq")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The managed service identities assigned to this resource.
     */
    @JvmName("gblvmfqujwrtfnbg")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("uyirbttnbaijqodf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Details of the resource plan.
     */
    @JvmName("luxdukhoqpoufqky")
    public suspend fun plan(`value`: PlanArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plan = mapped
    }

    /**
     * @param argument Details of the resource plan.
     */
    @JvmName("xpwgxtxpxhdkreit")
    public suspend fun plan(argument: suspend PlanArgsBuilder.() -> Unit) {
        val toBeMapped = PlanArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.plan = mapped
    }

    /**
     * @param value Configuration Options for Regular instances in Compute Fleet.
     */
    @JvmName("wjrwgnorkkinqpkl")
    public suspend fun regularPriorityProfile(`value`: RegularPriorityProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regularPriorityProfile = mapped
    }

    /**
     * @param argument Configuration Options for Regular instances in Compute Fleet.
     */
    @JvmName("medbrqsmvgmhsphd")
    public suspend fun regularPriorityProfile(argument: suspend RegularPriorityProfileArgsBuilder.() -> Unit) {
        val toBeMapped = RegularPriorityProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.regularPriorityProfile = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("aacqrkcnwfvygsyx")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Configuration Options for Spot instances in Compute Fleet.
     */
    @JvmName("iraslumduisisrhm")
    public suspend fun spotPriorityProfile(`value`: SpotPriorityProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spotPriorityProfile = mapped
    }

    /**
     * @param argument Configuration Options for Spot instances in Compute Fleet.
     */
    @JvmName("rensuqphnabfqine")
    public suspend fun spotPriorityProfile(argument: suspend SpotPriorityProfileArgsBuilder.() -> Unit) {
        val toBeMapped = SpotPriorityProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.spotPriorityProfile = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("exntlkmtctxjfkcw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("sykrmhtfubqwxqrf")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value List of VM sizes supported for Compute Fleet
     */
    @JvmName("fwtoscpoclktnwop")
    public suspend fun vmSizesProfile(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmSizesProfile = mapped
    }

    /**
     * @param argument List of VM sizes supported for Compute Fleet
     */
    @JvmName("omfyveugnmnxnvgx")
    public suspend fun vmSizesProfile(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VmSizeProfileArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vmSizesProfile = mapped
    }

    /**
     * @param argument List of VM sizes supported for Compute Fleet
     */
    @JvmName("reafenokpgdkqqdc")
    public suspend fun vmSizesProfile(vararg argument: suspend VmSizeProfileArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VmSizeProfileArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vmSizesProfile = mapped
    }

    /**
     * @param argument List of VM sizes supported for Compute Fleet
     */
    @JvmName("fppeeselaapdbhoy")
    public suspend fun vmSizesProfile(argument: suspend VmSizeProfileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(VmSizeProfileArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.vmSizesProfile = mapped
    }

    /**
     * @param values List of VM sizes supported for Compute Fleet
     */
    @JvmName("yxrivyytwvkurtjw")
    public suspend fun vmSizesProfile(vararg values: VmSizeProfileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vmSizesProfile = mapped
    }

    /**
     * @param value Zones in which the Compute Fleet is available
     */
    @JvmName("wibaajabupxrpfdl")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values Zones in which the Compute Fleet is available
     */
    @JvmName("kakqpfmixcnwnvtm")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): FleetArgs = FleetArgs(
        computeProfile = computeProfile,
        fleetName = fleetName,
        identity = identity,
        location = location,
        plan = plan,
        regularPriorityProfile = regularPriorityProfile,
        resourceGroupName = resourceGroupName,
        spotPriorityProfile = spotPriorityProfile,
        tags = tags,
        vmSizesProfile = vmSizesProfile,
        zones = zones,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy