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

com.pulumi.azure.netapp.kotlin.PoolArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.netapp.kotlin

import com.pulumi.azure.netapp.PoolArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Pool within a NetApp Account.
 * ## NetApp Pool 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 exampleAccount = new azure.netapp.Account("example", {
 *     name: "example-netappaccount",
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const examplePool = new azure.netapp.Pool("example", {
 *     name: "example-netapppool",
 *     accountName: exampleAccount.name,
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     serviceLevel: "Premium",
 *     sizeInTb: 4,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_account = azure.netapp.Account("example",
 *     name="example-netappaccount",
 *     location=example.location,
 *     resource_group_name=example.name)
 * example_pool = azure.netapp.Pool("example",
 *     name="example-netapppool",
 *     account_name=example_account.name,
 *     location=example.location,
 *     resource_group_name=example.name,
 *     service_level="Premium",
 *     size_in_tb=4)
 * ```
 * ```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 exampleAccount = new Azure.NetApp.Account("example", new()
 *     {
 *         Name = "example-netappaccount",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *     });
 *     var examplePool = new Azure.NetApp.Pool("example", new()
 *     {
 *         Name = "example-netapppool",
 *         AccountName = exampleAccount.Name,
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         ServiceLevel = "Premium",
 *         SizeInTb = 4,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/netapp"
 * 	"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
 * 		}
 * 		exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
 * 			Name:              pulumi.String("example-netappaccount"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = netapp.NewPool(ctx, "example", &netapp.PoolArgs{
 * 			Name:              pulumi.String("example-netapppool"),
 * 			AccountName:       exampleAccount.Name,
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			ServiceLevel:      pulumi.String("Premium"),
 * 			SizeInTb:          pulumi.Int(4),
 * 		})
 * 		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.netapp.Account;
 * import com.pulumi.azure.netapp.AccountArgs;
 * import com.pulumi.azure.netapp.Pool;
 * import com.pulumi.azure.netapp.PoolArgs;
 * 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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("example-netappaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 *         var examplePool = new Pool("examplePool", PoolArgs.builder()
 *             .name("example-netapppool")
 *             .accountName(exampleAccount.name())
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .serviceLevel("Premium")
 *             .sizeInTb(4)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:netapp:Account
 *     name: example
 *     properties:
 *       name: example-netappaccount
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *   examplePool:
 *     type: azure:netapp:Pool
 *     name: example
 *     properties:
 *       name: example-netapppool
 *       accountName: ${exampleAccount.name}
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       serviceLevel: Premium
 *       sizeInTb: 4
 * ```
 * 
 * ## Import
 * NetApp Pool can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:netapp/pool:Pool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1
 * ```
 * @property accountName The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
 * @property encryptionType The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property name The name of the NetApp Pool. Changing this forces a new resource to be created.
 * @property qosType QoS Type of the pool. Valid values include `Auto` or `Manual`.
 * @property resourceGroupName The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
 * @property serviceLevel The service level of the file system. Valid values include `Premium`, `Standard`, and `Ultra`. Changing this forces a new resource to be created.
 * @property sizeInTb Provisioned size of the pool in TB. Value must be between `2` and `2048`.
 * > **NOTE** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information.
 * > **NOTE** The maximum `size_in_tb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`.
 * @property tags A mapping of tags to assign to the resource.
 */
public data class PoolArgs(
    public val accountName: Output? = null,
    public val encryptionType: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val qosType: Output? = null,
    public val resourceGroupName: Output? = null,
    public val serviceLevel: Output? = null,
    public val sizeInTb: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.PoolArgs =
        com.pulumi.azure.netapp.PoolArgs.builder()
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .encryptionType(encryptionType?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .qosType(qosType?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serviceLevel(serviceLevel?.applyValue({ args0 -> args0 }))
            .sizeInTb(sizeInTb?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [PoolArgs].
 */
@PulumiTagMarker
public class PoolArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var encryptionType: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var qosType: Output? = null

    private var resourceGroupName: Output? = null

    private var serviceLevel: Output? = null

    private var sizeInTb: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
     */
    @JvmName("btmrkdfxkbcumtiu")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created.
     */
    @JvmName("ivcufpasxcyhvbgb")
    public suspend fun encryptionType(`value`: Output) {
        this.encryptionType = value
    }

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

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

    /**
     * @param value QoS Type of the pool. Valid values include `Auto` or `Manual`.
     */
    @JvmName("sdqjwogqgersruxx")
    public suspend fun qosType(`value`: Output) {
        this.qosType = value
    }

    /**
     * @param value The name of the resource group where the NetApp Pool should be created. Changing this forces a new resource to be created.
     */
    @JvmName("whltfthjlynsgfok")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The service level of the file system. Valid values include `Premium`, `Standard`, and `Ultra`. Changing this forces a new resource to be created.
     */
    @JvmName("jsmnmdkjyqkwglol")
    public suspend fun serviceLevel(`value`: Output) {
        this.serviceLevel = value
    }

    /**
     * @param value Provisioned size of the pool in TB. Value must be between `2` and `2048`.
     * > **NOTE** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information.
     * > **NOTE** The maximum `size_in_tb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`.
     */
    @JvmName("pwgrqssjmmyhsfdh")
    public suspend fun sizeInTb(`value`: Output) {
        this.sizeInTb = value
    }

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

    /**
     * @param value The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
     */
    @JvmName("ykbsviesntrxhtmm")
    public suspend fun accountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value The encryption type of the pool. Valid values include `Single`, and `Double`. Defaults to `Single`. Changing this forces a new resource to be created.
     */
    @JvmName("qvehglfaemmivenf")
    public suspend fun encryptionType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionType = mapped
    }

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

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

    /**
     * @param value QoS Type of the pool. Valid values include `Auto` or `Manual`.
     */
    @JvmName("afkqekyycahklrin")
    public suspend fun qosType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qosType = mapped
    }

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

    /**
     * @param value The service level of the file system. Valid values include `Premium`, `Standard`, and `Ultra`. Changing this forces a new resource to be created.
     */
    @JvmName("ganbugwbvjriatod")
    public suspend fun serviceLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceLevel = mapped
    }

    /**
     * @param value Provisioned size of the pool in TB. Value must be between `2` and `2048`.
     * > **NOTE** `2` TB capacity pool sizing is currently in preview. You can only take advantage of the `2` TB minimum if all the volumes in the capacity pool are using `Standard` network features. If any volume is using `Basic` network features, the minimum size is `4` TB. Please see the product [documentation](https://learn.microsoft.com/azure/azure-netapp-files/azure-netapp-files-set-up-capacity-pool) for more information.
     * > **NOTE** The maximum `size_in_tb` is goverened by regional quotas. You may request additional capacity from Azure, currently up to `2048`.
     */
    @JvmName("egtbteiljtmfjtmv")
    public suspend fun sizeInTb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sizeInTb = mapped
    }

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

    internal fun build(): PoolArgs = PoolArgs(
        accountName = accountName,
        encryptionType = encryptionType,
        location = location,
        name = name,
        qosType = qosType,
        resourceGroupName = resourceGroupName,
        serviceLevel = serviceLevel,
        sizeInTb = sizeInTb,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy