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

com.pulumi.azurenative.storagecache.kotlin.AmlFilesystemArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.storagecache.kotlin

import com.pulumi.azurenative.storagecache.AmlFilesystemArgs.builder
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemEncryptionSettingsArgs
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemEncryptionSettingsArgsBuilder
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemHsmArgs
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemHsmArgsBuilder
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemIdentityArgs
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemIdentityArgsBuilder
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemMaintenanceWindowArgs
import com.pulumi.azurenative.storagecache.kotlin.inputs.AmlFilesystemMaintenanceWindowArgsBuilder
import com.pulumi.azurenative.storagecache.kotlin.inputs.SkuNameArgs
import com.pulumi.azurenative.storagecache.kotlin.inputs.SkuNameArgsBuilder
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.Double
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 AML file system instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md
 * Azure REST API version: 2023-05-01.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:storagecache:AmlFilesystem fs1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}
 * ```
 * @property amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
 * @property encryptionSettings Specifies encryption settings of the AML file system.
 * @property filesystemSubnet Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space.
 * @property hsm Hydration and archive settings and status
 * @property identity The managed identity used by the AML file system, if configured.
 * @property location The geo-location where the resource lives
 * @property maintenanceWindow Start time of a 30-minute weekly maintenance window.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property sku SKU for the resource.
 * @property storageCapacityTiB The size of the AML file system, in TiB. This might be rounded up.
 * @property tags Resource tags.
 * @property zones Availability zones for resources. This field should only contain a single element in the array.
 */
public data class AmlFilesystemArgs(
    public val amlFilesystemName: Output? = null,
    public val encryptionSettings: Output? = null,
    public val filesystemSubnet: Output? = null,
    public val hsm: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val maintenanceWindow: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val storageCapacityTiB: Output? = null,
    public val tags: Output>? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storagecache.AmlFilesystemArgs =
        com.pulumi.azurenative.storagecache.AmlFilesystemArgs.builder()
            .amlFilesystemName(amlFilesystemName?.applyValue({ args0 -> args0 }))
            .encryptionSettings(
                encryptionSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .filesystemSubnet(filesystemSubnet?.applyValue({ args0 -> args0 }))
            .hsm(hsm?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .maintenanceWindow(maintenanceWindow?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageCapacityTiB(storageCapacityTiB?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AmlFilesystemArgs].
 */
@PulumiTagMarker
public class AmlFilesystemArgsBuilder internal constructor() {
    private var amlFilesystemName: Output? = null

    private var encryptionSettings: Output? = null

    private var filesystemSubnet: Output? = null

    private var hsm: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var maintenanceWindow: Output? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var storageCapacityTiB: Output? = null

    private var tags: Output>? = null

    private var zones: Output>? = null

    /**
     * @param value Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
     */
    @JvmName("addlplcoiemrpqtk")
    public suspend fun amlFilesystemName(`value`: Output) {
        this.amlFilesystemName = value
    }

    /**
     * @param value Specifies encryption settings of the AML file system.
     */
    @JvmName("ruvsryatllnounaj")
    public suspend fun encryptionSettings(`value`: Output) {
        this.encryptionSettings = value
    }

    /**
     * @param value Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space.
     */
    @JvmName("qcshhdwginxdmgei")
    public suspend fun filesystemSubnet(`value`: Output) {
        this.filesystemSubnet = value
    }

    /**
     * @param value Hydration and archive settings and status
     */
    @JvmName("aecqflxbjqggkkgj")
    public suspend fun hsm(`value`: Output) {
        this.hsm = value
    }

    /**
     * @param value The managed identity used by the AML file system, if configured.
     */
    @JvmName("ufqjrpghopryadpx")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

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

    /**
     * @param value Start time of a 30-minute weekly maintenance window.
     */
    @JvmName("ytrqmtoawwavcahi")
    public suspend fun maintenanceWindow(`value`: Output) {
        this.maintenanceWindow = value
    }

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

    /**
     * @param value SKU for the resource.
     */
    @JvmName("vpghqqpcqifrujhr")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value The size of the AML file system, in TiB. This might be rounded up.
     */
    @JvmName("ltfmswyuirsngbtp")
    public suspend fun storageCapacityTiB(`value`: Output) {
        this.storageCapacityTiB = value
    }

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

    /**
     * @param value Availability zones for resources. This field should only contain a single element in the array.
     */
    @JvmName("aegsdlorxxitfdjx")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values Availability zones for resources. This field should only contain a single element in the array.
     */
    @JvmName("ycjkvinbsiqpdvlh")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
     */
    @JvmName("addtdfvlugwntukh")
    public suspend fun amlFilesystemName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amlFilesystemName = mapped
    }

    /**
     * @param value Specifies encryption settings of the AML file system.
     */
    @JvmName("cuoigatleenikjxj")
    public suspend fun encryptionSettings(`value`: AmlFilesystemEncryptionSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionSettings = mapped
    }

    /**
     * @param argument Specifies encryption settings of the AML file system.
     */
    @JvmName("gnpwyewddaupkwiy")
    public suspend fun encryptionSettings(argument: suspend AmlFilesystemEncryptionSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = AmlFilesystemEncryptionSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryptionSettings = mapped
    }

    /**
     * @param value Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space.
     */
    @JvmName("wjnskppbtvvsljcv")
    public suspend fun filesystemSubnet(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filesystemSubnet = mapped
    }

    /**
     * @param value Hydration and archive settings and status
     */
    @JvmName("ueppnbigiggdcyoy")
    public suspend fun hsm(`value`: AmlFilesystemHsmArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hsm = mapped
    }

    /**
     * @param argument Hydration and archive settings and status
     */
    @JvmName("wxhdhjlbvdwyhmof")
    public suspend fun hsm(argument: suspend AmlFilesystemHsmArgsBuilder.() -> Unit) {
        val toBeMapped = AmlFilesystemHsmArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.hsm = mapped
    }

    /**
     * @param value The managed identity used by the AML file system, if configured.
     */
    @JvmName("dibxfwapuyxfhvyw")
    public suspend fun identity(`value`: AmlFilesystemIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The managed identity used by the AML file system, if configured.
     */
    @JvmName("ktdxqwvouhvqovox")
    public suspend fun identity(argument: suspend AmlFilesystemIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = AmlFilesystemIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

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

    /**
     * @param value Start time of a 30-minute weekly maintenance window.
     */
    @JvmName("otrjbnnbduhshwdd")
    public suspend fun maintenanceWindow(`value`: AmlFilesystemMaintenanceWindowArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceWindow = mapped
    }

    /**
     * @param argument Start time of a 30-minute weekly maintenance window.
     */
    @JvmName("ojfijptxrarajxjv")
    public suspend fun maintenanceWindow(argument: suspend AmlFilesystemMaintenanceWindowArgsBuilder.() -> Unit) {
        val toBeMapped = AmlFilesystemMaintenanceWindowArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.maintenanceWindow = mapped
    }

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

    /**
     * @param value SKU for the resource.
     */
    @JvmName("yvmbdmoitelaitov")
    public suspend fun sku(`value`: SkuNameArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument SKU for the resource.
     */
    @JvmName("abylbpdksviopcrr")
    public suspend fun sku(argument: suspend SkuNameArgsBuilder.() -> Unit) {
        val toBeMapped = SkuNameArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

    /**
     * @param value The size of the AML file system, in TiB. This might be rounded up.
     */
    @JvmName("pjuereeddxlitytf")
    public suspend fun storageCapacityTiB(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageCapacityTiB = mapped
    }

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

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

    /**
     * @param value Availability zones for resources. This field should only contain a single element in the array.
     */
    @JvmName("cbvyotxahxexxykd")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values Availability zones for resources. This field should only contain a single element in the array.
     */
    @JvmName("emsosgtoprmuypht")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): AmlFilesystemArgs = AmlFilesystemArgs(
        amlFilesystemName = amlFilesystemName,
        encryptionSettings = encryptionSettings,
        filesystemSubnet = filesystemSubnet,
        hsm = hsm,
        identity = identity,
        location = location,
        maintenanceWindow = maintenanceWindow,
        resourceGroupName = resourceGroupName,
        sku = sku,
        storageCapacityTiB = storageCapacityTiB,
        tags = tags,
        zones = zones,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy