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

com.pulumi.azurenative.netapp.VolumeGroup Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.netapp;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.netapp.VolumeGroupArgs;
import com.pulumi.azurenative.netapp.outputs.VolumeGroupMetaDataResponse;
import com.pulumi.azurenative.netapp.outputs.VolumeGroupVolumePropertiesResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Volume group resource for create
 * Azure REST API version: 2022-11-01. Prior API version in Azure Native 1.x: 2021-10-01.
 * 
 * Other available API versions: 2021-10-01, 2022-11-01-preview, 2023-05-01, 2023-05-01-preview, 2023-07-01, 2023-07-01-preview, 2023-11-01, 2023-11-01-preview, 2024-01-01, 2024-03-01, 2024-03-01-preview.
 * 
 * ## Example Usage
 * ### VolumeGroups_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.netapp.VolumeGroup;
 * import com.pulumi.azurenative.netapp.VolumeGroupArgs;
 * import com.pulumi.azurenative.netapp.inputs.VolumeGroupMetaDataArgs;
 * import com.pulumi.azurenative.netapp.inputs.VolumeGroupVolumePropertiesArgs;
 * 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 volumeGroup = new VolumeGroup("volumeGroup", VolumeGroupArgs.builder()
 *             .accountName("account1")
 *             .groupMetaData(VolumeGroupMetaDataArgs.builder()
 *                 .applicationIdentifier("DEV")
 *                 .applicationType("SAP-HANA")
 *                 .deploymentSpecId("20542149-bfca-5618-1879-9863dc6767f1")
 *                 .groupDescription("Volume group")
 *                 .build())
 *             .location("westus")
 *             .resourceGroupName("myRG")
 *             .volumeGroupName("group1")
 *             .volumes(            
 *                 VolumeGroupVolumePropertiesArgs.builder()
 *                     .capacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
 *                     .creationToken("test-data-mnt00001")
 *                     .name("test-data-mnt00001")
 *                     .proximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
 *                     .serviceLevel("Premium")
 *                     .subnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
 *                     .throughputMibps(10)
 *                     .usageThreshold(107374182400)
 *                     .volumeSpecName("data")
 *                     .build(),
 *                 VolumeGroupVolumePropertiesArgs.builder()
 *                     .capacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
 *                     .creationToken("test-log-mnt00001")
 *                     .name("test-log-mnt00001")
 *                     .proximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
 *                     .serviceLevel("Premium")
 *                     .subnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
 *                     .throughputMibps(10)
 *                     .usageThreshold(107374182400)
 *                     .volumeSpecName("log")
 *                     .build(),
 *                 VolumeGroupVolumePropertiesArgs.builder()
 *                     .capacityPoolResourceId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1")
 *                     .creationToken("test-shared")
 *                     .name("test-shared")
 *                     .proximityPlacementGroup("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
 *                     .serviceLevel("Premium")
 *                     .subnetId("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3")
 *                     .throughputMibps(10)
 *                     .usageThreshold(107374182400)
 *                     .volumeSpecName("shared")
 *                     .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:netapp:VolumeGroup group1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName} * ``` * */ @ResourceType(type="azure-native:netapp:VolumeGroup") public class VolumeGroup extends com.pulumi.resources.CustomResource { /** * Volume group details * */ @Export(name="groupMetaData", refs={VolumeGroupMetaDataResponse.class}, tree="[0]") private Output groupMetaData; /** * @return Volume group details * */ public Output> groupMetaData() { return Codegen.optional(this.groupMetaData); } /** * Resource location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location * */ public Output> location() { return Codegen.optional(this.location); } /** * Resource name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name * */ public Output name() { return this.name; } /** * Azure lifecycle management * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Azure lifecycle management * */ public Output provisioningState() { return this.provisioningState; } /** * Resource type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type * */ public Output type() { return this.type; } /** * List of volumes from group * */ @Export(name="volumes", refs={List.class,VolumeGroupVolumePropertiesResponse.class}, tree="[0,1]") private Output> volumes; /** * @return List of volumes from group * */ public Output>> volumes() { return Codegen.optional(this.volumes); } /** * * @param name The _unique_ name of the resulting resource. */ public VolumeGroup(java.lang.String name) { this(name, VolumeGroupArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public VolumeGroup(java.lang.String name, VolumeGroupArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public VolumeGroup(java.lang.String name, VolumeGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:netapp:VolumeGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private VolumeGroup(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:netapp:VolumeGroup", name, null, makeResourceOptions(options, id), false); } private static VolumeGroupArgs makeArgs(VolumeGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? VolumeGroupArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:netapp/v20210801:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20211001:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220101:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220301:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220501:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20220901:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20221101:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20221101preview:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20230501:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20230501preview:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20230701:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20230701preview:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20231101:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20231101preview:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20240101:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20240301:VolumeGroup").build()), Output.of(Alias.builder().type("azure-native:netapp/v20240301preview:VolumeGroup").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static VolumeGroup get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new VolumeGroup(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy