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

com.pulumi.azure.hpc.kotlin.CacheArgs.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.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hpc.kotlin

import com.pulumi.azure.hpc.CacheArgs.builder
import com.pulumi.azure.hpc.kotlin.inputs.CacheDefaultAccessPolicyArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheDefaultAccessPolicyArgsBuilder
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryActiveDirectoryArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryActiveDirectoryArgsBuilder
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryFlatFileArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryFlatFileArgsBuilder
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryLdapArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheDirectoryLdapArgsBuilder
import com.pulumi.azure.hpc.kotlin.inputs.CacheDnsArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheDnsArgsBuilder
import com.pulumi.azure.hpc.kotlin.inputs.CacheIdentityArgs
import com.pulumi.azure.hpc.kotlin.inputs.CacheIdentityArgsBuilder
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 HPC Cache.
 * > **Note:** By request of the service team the provider no longer automatically registering the `Microsoft.StorageCache` Resource Provider for this resource. To register it you can run `az provider register --namespace 'Microsoft.StorageCache'`.
 * ## Example Usage
 * 
 * ```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: "examplevn",
 *     addressSpaces: ["10.0.0.0/16"],
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const exampleSubnet = new azure.network.Subnet("example", {
 *     name: "examplesubnet",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.1.0/24"],
 * });
 * const exampleCache = new azure.hpc.Cache("example", {
 *     name: "examplehpccache",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     cacheSizeInGb: 3072,
 *     subnetId: exampleSubnet.id,
 *     skuName: "Standard_2G",
 * });
 * ```
 * ```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="examplevn",
 *     address_spaces=["10.0.0.0/16"],
 *     location=example.location,
 *     resource_group_name=example.name)
 * example_subnet = azure.network.Subnet("example",
 *     name="examplesubnet",
 *     resource_group_name=example.name,
 *     virtual_network_name=example_virtual_network.name,
 *     address_prefixes=["10.0.1.0/24"])
 * example_cache = azure.hpc.Cache("example",
 *     name="examplehpccache",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     cache_size_in_gb=3072,
 *     subnet_id=example_subnet.id,
 *     sku_name="Standard_2G")
 * ```
 * ```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 = "examplevn",
 *         AddressSpaces = new[]
 *         {
 *             "10.0.0.0/16",
 *         },
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *     });
 *     var exampleSubnet = new Azure.Network.Subnet("example", new()
 *     {
 *         Name = "examplesubnet",
 *         ResourceGroupName = example.Name,
 *         VirtualNetworkName = exampleVirtualNetwork.Name,
 *         AddressPrefixes = new[]
 *         {
 *             "10.0.1.0/24",
 *         },
 *     });
 *     var exampleCache = new Azure.Hpc.Cache("example", new()
 *     {
 *         Name = "examplehpccache",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         CacheSizeInGb = 3072,
 *         SubnetId = exampleSubnet.Id,
 *         SkuName = "Standard_2G",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/hpc"
 * 	"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("examplevn"),
 * 			AddressSpaces: pulumi.StringArray{
 * 				pulumi.String("10.0.0.0/16"),
 * 			},
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
 * 			Name:               pulumi.String("examplesubnet"),
 * 			ResourceGroupName:  example.Name,
 * 			VirtualNetworkName: exampleVirtualNetwork.Name,
 * 			AddressPrefixes: pulumi.StringArray{
 * 				pulumi.String("10.0.1.0/24"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = hpc.NewCache(ctx, "example", &hpc.CacheArgs{
 * 			Name:              pulumi.String("examplehpccache"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			CacheSizeInGb:     pulumi.Int(3072),
 * 			SubnetId:          exampleSubnet.ID(),
 * 			SkuName:           pulumi.String("Standard_2G"),
 * 		})
 * 		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.hpc.Cache;
 * import com.pulumi.azure.hpc.CacheArgs;
 * 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("examplevn")
 *             .addressSpaces("10.0.0.0/16")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 *         var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
 *             .name("examplesubnet")
 *             .resourceGroupName(example.name())
 *             .virtualNetworkName(exampleVirtualNetwork.name())
 *             .addressPrefixes("10.0.1.0/24")
 *             .build());
 *         var exampleCache = new Cache("exampleCache", CacheArgs.builder()
 *             .name("examplehpccache")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .cacheSizeInGb(3072)
 *             .subnetId(exampleSubnet.id())
 *             .skuName("Standard_2G")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleVirtualNetwork:
 *     type: azure:network:VirtualNetwork
 *     name: example
 *     properties:
 *       name: examplevn
 *       addressSpaces:
 *         - 10.0.0.0/16
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *   exampleSubnet:
 *     type: azure:network:Subnet
 *     name: example
 *     properties:
 *       name: examplesubnet
 *       resourceGroupName: ${example.name}
 *       virtualNetworkName: ${exampleVirtualNetwork.name}
 *       addressPrefixes:
 *         - 10.0.1.0/24
 *   exampleCache:
 *     type: azure:hpc:Cache
 *     name: example
 *     properties:
 *       name: examplehpccache
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       cacheSizeInGb: 3072
 *       subnetId: ${exampleSubnet.id}
 *       skuName: Standard_2G
 * ```
 * 
 * ## Import
 * HPC Caches can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:hpc/cache:Cache example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.StorageCache/caches/cacheName
 * ```
 * @property automaticallyRotateKeyToLatestEnabled Specifies whether the HPC Cache automatically rotates Encryption Key to the latest version.
 * @property cacheSizeInGb The size of the HPC Cache, in GB. Possible values are `3072`, `6144`, `12288`, `21623`, `24576`, `43246`, `49152` and `86491`. Changing this forces a new resource to be created.
 * > **NOTE:** The `21623`, `43246` and `86491` sizes are restricted to read only resources.
 * @property defaultAccessPolicy A `default_access_policy` block as defined below.
 * @property directoryActiveDirectory A `directory_active_directory` block as defined below.
 * @property directoryFlatFile A `directory_flat_file` block as defined below.
 * @property directoryLdap A `directory_ldap` block as defined below.
 * > **Note:** Only one of `directory_active_directory`, `directory_flat_file` and `directory_ldap` can be set.
 * @property dns A `dns` block as defined below.
 * @property identity An `identity` block as defined below. Changing this forces a new resource to be created.
 * @property keyVaultKeyId The ID of the Key Vault Key which should be used to encrypt the data in this HPC Cache.
 * @property location Specifies the supported Azure Region where the HPC Cache should be created. Changing this forces a new resource to be created.
 * @property mtu The IPv4 maximum transmission unit configured for the subnet of the HPC Cache. Possible values range from 576 - 1500. Defaults to `1500`.
 * @property name The name of the HPC Cache. Changing this forces a new resource to be created.
 * @property ntpServer The NTP server IP Address or FQDN for the HPC Cache. Defaults to `time.windows.com`.
 * @property resourceGroupName The name of the Resource Group in which to create the HPC Cache. Changing this forces a new resource to be created.
 * @property skuName The SKU of HPC Cache to use. Possible values are (ReadWrite) - `Standard_2G`, `Standard_4G` `Standard_8G` or (ReadOnly) - `Standard_L4_5G`, `Standard_L9G`, and `Standard_L16G`. Changing this forces a new resource to be created.
 * > **NOTE:** The read-only SKUs have restricted cache sizes. `Standard_L4_5G` must be set to `21623`. `Standard_L9G` to `43246` and `Standard_L16G` to `86491`.
 * @property subnetId The ID of the Subnet for the HPC Cache. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the HPC Cache.
 */
public data class CacheArgs(
    public val automaticallyRotateKeyToLatestEnabled: Output? = null,
    public val cacheSizeInGb: Output? = null,
    public val defaultAccessPolicy: Output? = null,
    public val directoryActiveDirectory: Output? = null,
    public val directoryFlatFile: Output? = null,
    public val directoryLdap: Output? = null,
    public val dns: Output? = null,
    public val identity: Output? = null,
    public val keyVaultKeyId: Output? = null,
    public val location: Output? = null,
    public val mtu: Output? = null,
    public val name: Output? = null,
    public val ntpServer: Output? = null,
    public val resourceGroupName: Output? = null,
    public val skuName: Output? = null,
    public val subnetId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hpc.CacheArgs = com.pulumi.azure.hpc.CacheArgs.builder()
        .automaticallyRotateKeyToLatestEnabled(
            automaticallyRotateKeyToLatestEnabled?.applyValue({ args0 ->
                args0
            }),
        )
        .cacheSizeInGb(cacheSizeInGb?.applyValue({ args0 -> args0 }))
        .defaultAccessPolicy(
            defaultAccessPolicy?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .directoryActiveDirectory(
            directoryActiveDirectory?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .directoryFlatFile(directoryFlatFile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .directoryLdap(directoryLdap?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .dns(dns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .keyVaultKeyId(keyVaultKeyId?.applyValue({ args0 -> args0 }))
        .location(location?.applyValue({ args0 -> args0 }))
        .mtu(mtu?.applyValue({ args0 -> args0 }))
        .name(name?.applyValue({ args0 -> args0 }))
        .ntpServer(ntpServer?.applyValue({ args0 -> args0 }))
        .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
        .skuName(skuName?.applyValue({ args0 -> args0 }))
        .subnetId(subnetId?.applyValue({ args0 -> args0 }))
        .tags(
            tags?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
        ).build()
}

/**
 * Builder for [CacheArgs].
 */
@PulumiTagMarker
public class CacheArgsBuilder internal constructor() {
    private var automaticallyRotateKeyToLatestEnabled: Output? = null

    private var cacheSizeInGb: Output? = null

    private var defaultAccessPolicy: Output? = null

    private var directoryActiveDirectory: Output? = null

    private var directoryFlatFile: Output? = null

    private var directoryLdap: Output? = null

    private var dns: Output? = null

    private var identity: Output? = null

    private var keyVaultKeyId: Output? = null

    private var location: Output? = null

    private var mtu: Output? = null

    private var name: Output? = null

    private var ntpServer: Output? = null

    private var resourceGroupName: Output? = null

    private var skuName: Output? = null

    private var subnetId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies whether the HPC Cache automatically rotates Encryption Key to the latest version.
     */
    @JvmName("rgdltrwxaegxlkri")
    public suspend fun automaticallyRotateKeyToLatestEnabled(`value`: Output) {
        this.automaticallyRotateKeyToLatestEnabled = value
    }

    /**
     * @param value The size of the HPC Cache, in GB. Possible values are `3072`, `6144`, `12288`, `21623`, `24576`, `43246`, `49152` and `86491`. Changing this forces a new resource to be created.
     * > **NOTE:** The `21623`, `43246` and `86491` sizes are restricted to read only resources.
     */
    @JvmName("orsygjmbcfgprsts")
    public suspend fun cacheSizeInGb(`value`: Output) {
        this.cacheSizeInGb = value
    }

    /**
     * @param value A `default_access_policy` block as defined below.
     */
    @JvmName("dryteyonyxxjpsdc")
    public suspend fun defaultAccessPolicy(`value`: Output) {
        this.defaultAccessPolicy = value
    }

    /**
     * @param value A `directory_active_directory` block as defined below.
     */
    @JvmName("sxmhfhgcltvtxupj")
    public suspend fun directoryActiveDirectory(`value`: Output) {
        this.directoryActiveDirectory = value
    }

    /**
     * @param value A `directory_flat_file` block as defined below.
     */
    @JvmName("xkvkcpavxjavuvsr")
    public suspend fun directoryFlatFile(`value`: Output) {
        this.directoryFlatFile = value
    }

    /**
     * @param value A `directory_ldap` block as defined below.
     * > **Note:** Only one of `directory_active_directory`, `directory_flat_file` and `directory_ldap` can be set.
     */
    @JvmName("qenscocamdxdfila")
    public suspend fun directoryLdap(`value`: Output) {
        this.directoryLdap = value
    }

    /**
     * @param value A `dns` block as defined below.
     */
    @JvmName("qxnjowgvgfgttgkc")
    public suspend fun dns(`value`: Output) {
        this.dns = value
    }

    /**
     * @param value An `identity` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("mywkwcdlyeftqkkn")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The ID of the Key Vault Key which should be used to encrypt the data in this HPC Cache.
     */
    @JvmName("shkedcqjgdbyldnt")
    public suspend fun keyVaultKeyId(`value`: Output) {
        this.keyVaultKeyId = value
    }

    /**
     * @param value Specifies the supported Azure Region where the HPC Cache should be created. Changing this forces a new resource to be created.
     */
    @JvmName("cyhhoqchhgsrqcrr")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The IPv4 maximum transmission unit configured for the subnet of the HPC Cache. Possible values range from 576 - 1500. Defaults to `1500`.
     */
    @JvmName("ckerwvulosntjolo")
    public suspend fun mtu(`value`: Output) {
        this.mtu = value
    }

    /**
     * @param value The name of the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("killctfdklasfxce")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The NTP server IP Address or FQDN for the HPC Cache. Defaults to `time.windows.com`.
     */
    @JvmName("ccnibcuikdinbmva")
    public suspend fun ntpServer(`value`: Output) {
        this.ntpServer = value
    }

    /**
     * @param value The name of the Resource Group in which to create the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("onnuswblmdlwwtmh")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The SKU of HPC Cache to use. Possible values are (ReadWrite) - `Standard_2G`, `Standard_4G` `Standard_8G` or (ReadOnly) - `Standard_L4_5G`, `Standard_L9G`, and `Standard_L16G`. Changing this forces a new resource to be created.
     * > **NOTE:** The read-only SKUs have restricted cache sizes. `Standard_L4_5G` must be set to `21623`. `Standard_L9G` to `43246` and `Standard_L16G` to `86491`.
     */
    @JvmName("knxtmawepawdwqdd")
    public suspend fun skuName(`value`: Output) {
        this.skuName = value
    }

    /**
     * @param value The ID of the Subnet for the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("pjkmcshmnwrlgoxh")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value A mapping of tags to assign to the HPC Cache.
     */
    @JvmName("lusxnoymhgaxfmei")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies whether the HPC Cache automatically rotates Encryption Key to the latest version.
     */
    @JvmName("cmvdtetwsouvyhyh")
    public suspend fun automaticallyRotateKeyToLatestEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticallyRotateKeyToLatestEnabled = mapped
    }

    /**
     * @param value The size of the HPC Cache, in GB. Possible values are `3072`, `6144`, `12288`, `21623`, `24576`, `43246`, `49152` and `86491`. Changing this forces a new resource to be created.
     * > **NOTE:** The `21623`, `43246` and `86491` sizes are restricted to read only resources.
     */
    @JvmName("iatxpxpfxhhghiju")
    public suspend fun cacheSizeInGb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheSizeInGb = mapped
    }

    /**
     * @param value A `default_access_policy` block as defined below.
     */
    @JvmName("txjvwidlskovdrvc")
    public suspend fun defaultAccessPolicy(`value`: CacheDefaultAccessPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultAccessPolicy = mapped
    }

    /**
     * @param argument A `default_access_policy` block as defined below.
     */
    @JvmName("smvicfleeyqmdfvq")
    public suspend fun defaultAccessPolicy(argument: suspend CacheDefaultAccessPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = CacheDefaultAccessPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultAccessPolicy = mapped
    }

    /**
     * @param value A `directory_active_directory` block as defined below.
     */
    @JvmName("hoybrnlmvlijgpxl")
    public suspend fun directoryActiveDirectory(`value`: CacheDirectoryActiveDirectoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directoryActiveDirectory = mapped
    }

    /**
     * @param argument A `directory_active_directory` block as defined below.
     */
    @JvmName("fyminxwveaaahfus")
    public suspend fun directoryActiveDirectory(argument: suspend CacheDirectoryActiveDirectoryArgsBuilder.() -> Unit) {
        val toBeMapped = CacheDirectoryActiveDirectoryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.directoryActiveDirectory = mapped
    }

    /**
     * @param value A `directory_flat_file` block as defined below.
     */
    @JvmName("hasfaqeboclvaumm")
    public suspend fun directoryFlatFile(`value`: CacheDirectoryFlatFileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directoryFlatFile = mapped
    }

    /**
     * @param argument A `directory_flat_file` block as defined below.
     */
    @JvmName("rysvyomemobjmmxk")
    public suspend fun directoryFlatFile(argument: suspend CacheDirectoryFlatFileArgsBuilder.() -> Unit) {
        val toBeMapped = CacheDirectoryFlatFileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.directoryFlatFile = mapped
    }

    /**
     * @param value A `directory_ldap` block as defined below.
     * > **Note:** Only one of `directory_active_directory`, `directory_flat_file` and `directory_ldap` can be set.
     */
    @JvmName("todplgedbcaihqvs")
    public suspend fun directoryLdap(`value`: CacheDirectoryLdapArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directoryLdap = mapped
    }

    /**
     * @param argument A `directory_ldap` block as defined below.
     * > **Note:** Only one of `directory_active_directory`, `directory_flat_file` and `directory_ldap` can be set.
     */
    @JvmName("xuhyjxgtcgdnrmmn")
    public suspend fun directoryLdap(argument: suspend CacheDirectoryLdapArgsBuilder.() -> Unit) {
        val toBeMapped = CacheDirectoryLdapArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.directoryLdap = mapped
    }

    /**
     * @param value A `dns` block as defined below.
     */
    @JvmName("ljadyutytolvqcno")
    public suspend fun dns(`value`: CacheDnsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dns = mapped
    }

    /**
     * @param argument A `dns` block as defined below.
     */
    @JvmName("utclgivffmcwehet")
    public suspend fun dns(argument: suspend CacheDnsArgsBuilder.() -> Unit) {
        val toBeMapped = CacheDnsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dns = mapped
    }

    /**
     * @param value An `identity` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("lwpekrdllbvwyimx")
    public suspend fun identity(`value`: CacheIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("natvbsimejskikdv")
    public suspend fun identity(argument: suspend CacheIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = CacheIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The ID of the Key Vault Key which should be used to encrypt the data in this HPC Cache.
     */
    @JvmName("orcetuwesydrmyli")
    public suspend fun keyVaultKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultKeyId = mapped
    }

    /**
     * @param value Specifies the supported Azure Region where the HPC Cache should be created. Changing this forces a new resource to be created.
     */
    @JvmName("ntfjuifwxvjoorhw")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The IPv4 maximum transmission unit configured for the subnet of the HPC Cache. Possible values range from 576 - 1500. Defaults to `1500`.
     */
    @JvmName("phkirxeokympukap")
    public suspend fun mtu(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mtu = mapped
    }

    /**
     * @param value The name of the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("wxcruhemdsmrjwjg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The NTP server IP Address or FQDN for the HPC Cache. Defaults to `time.windows.com`.
     */
    @JvmName("xuknuqxbqlrlmgne")
    public suspend fun ntpServer(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ntpServer = mapped
    }

    /**
     * @param value The name of the Resource Group in which to create the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("xhdpycuifqgljrod")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The SKU of HPC Cache to use. Possible values are (ReadWrite) - `Standard_2G`, `Standard_4G` `Standard_8G` or (ReadOnly) - `Standard_L4_5G`, `Standard_L9G`, and `Standard_L16G`. Changing this forces a new resource to be created.
     * > **NOTE:** The read-only SKUs have restricted cache sizes. `Standard_L4_5G` must be set to `21623`. `Standard_L9G` to `43246` and `Standard_L16G` to `86491`.
     */
    @JvmName("oussnlbfntsophmc")
    public suspend fun skuName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuName = mapped
    }

    /**
     * @param value The ID of the Subnet for the HPC Cache. Changing this forces a new resource to be created.
     */
    @JvmName("kbmcgdnnvavhrluu")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value A mapping of tags to assign to the HPC Cache.
     */
    @JvmName("dixusiotsxkltams")
    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 HPC Cache.
     */
    @JvmName("wrgpvnfiwhaniewy")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CacheArgs = CacheArgs(
        automaticallyRotateKeyToLatestEnabled = automaticallyRotateKeyToLatestEnabled,
        cacheSizeInGb = cacheSizeInGb,
        defaultAccessPolicy = defaultAccessPolicy,
        directoryActiveDirectory = directoryActiveDirectory,
        directoryFlatFile = directoryFlatFile,
        directoryLdap = directoryLdap,
        dns = dns,
        identity = identity,
        keyVaultKeyId = keyVaultKeyId,
        location = location,
        mtu = mtu,
        name = name,
        ntpServer = ntpServer,
        resourceGroupName = resourceGroupName,
        skuName = skuName,
        subnetId = subnetId,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy