Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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