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

com.pulumi.azurenative.labservices.LabPlan 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.labservices;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.labservices.LabPlanArgs;
import com.pulumi.azurenative.labservices.outputs.AutoShutdownProfileResponse;
import com.pulumi.azurenative.labservices.outputs.ConnectionProfileResponse;
import com.pulumi.azurenative.labservices.outputs.IdentityResponse;
import com.pulumi.azurenative.labservices.outputs.LabPlanNetworkProfileResponse;
import com.pulumi.azurenative.labservices.outputs.SupportInfoResponse;
import com.pulumi.azurenative.labservices.outputs.SystemDataResponse;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Lab Plans act as a permission container for creating labs via labs.azure.com. Additionally, they can provide a set of default configurations that will apply at the time of creating a lab, but these defaults can still be overwritten.
 * Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2021-10-01-preview.
 * 
 * Other available API versions: 2023-06-07.
 * 
 * ## Example Usage
 * ### putLabPlan
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.labservices.LabPlan;
 * import com.pulumi.azurenative.labservices.LabPlanArgs;
 * import com.pulumi.azurenative.labservices.inputs.AutoShutdownProfileArgs;
 * import com.pulumi.azurenative.labservices.inputs.ConnectionProfileArgs;
 * import com.pulumi.azurenative.labservices.inputs.LabPlanNetworkProfileArgs;
 * import com.pulumi.azurenative.labservices.inputs.SupportInfoArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var labPlan = new LabPlan("labPlan", LabPlanArgs.builder()
 *             .defaultAutoShutdownProfile(AutoShutdownProfileArgs.builder()
 *                 .disconnectDelay("PT5M")
 *                 .idleDelay("PT5M")
 *                 .noConnectDelay("PT5M")
 *                 .shutdownOnDisconnect("Enabled")
 *                 .shutdownOnIdle("UserAbsence")
 *                 .shutdownWhenNotConnected("Enabled")
 *                 .build())
 *             .defaultConnectionProfile(ConnectionProfileArgs.builder()
 *                 .clientRdpAccess("Public")
 *                 .clientSshAccess("Public")
 *                 .webRdpAccess("None")
 *                 .webSshAccess("None")
 *                 .build())
 *             .defaultNetworkProfile(LabPlanNetworkProfileArgs.builder()
 *                 .subnetId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default")
 *                 .build())
 *             .labPlanName("testlabplan")
 *             .location("westus")
 *             .resourceGroupName("testrg123")
 *             .sharedGalleryId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Compute/galleries/testsig")
 *             .supportInfo(SupportInfoArgs.builder()
 *                 .email("help}{@literal @}{@code contoso.com")
 *                 .instructions("Contact support for help.")
 *                 .phone("+1-202-555-0123")
 *                 .url("help.contoso.com")
 *                 .build())
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:labservices:LabPlan testlabplan /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labPlans/{labPlanName} * ``` * */ @ResourceType(type="azure-native:labservices:LabPlan") public class LabPlan extends com.pulumi.resources.CustomResource { /** * The allowed regions for the lab creator to use when creating labs using this lab plan. * */ @Export(name="allowedRegions", refs={List.class,String.class}, tree="[0,1]") private Output> allowedRegions; /** * @return The allowed regions for the lab creator to use when creating labs using this lab plan. * */ public Output>> allowedRegions() { return Codegen.optional(this.allowedRegions); } /** * The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile. * */ @Export(name="defaultAutoShutdownProfile", refs={AutoShutdownProfileResponse.class}, tree="[0]") private Output defaultAutoShutdownProfile; /** * @return The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile. * */ public Output> defaultAutoShutdownProfile() { return Codegen.optional(this.defaultAutoShutdownProfile); } /** * The default lab connection profile. This can be changed on a lab resource and only provides a default profile. * */ @Export(name="defaultConnectionProfile", refs={ConnectionProfileResponse.class}, tree="[0]") private Output defaultConnectionProfile; /** * @return The default lab connection profile. This can be changed on a lab resource and only provides a default profile. * */ public Output> defaultConnectionProfile() { return Codegen.optional(this.defaultConnectionProfile); } /** * The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed when there are existing labs associated with this lab plan. * */ @Export(name="defaultNetworkProfile", refs={LabPlanNetworkProfileResponse.class}, tree="[0]") private Output defaultNetworkProfile; /** * @return The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed when there are existing labs associated with this lab plan. * */ public Output> defaultNetworkProfile() { return Codegen.optional(this.defaultNetworkProfile); } /** * Managed Identity Information * */ @Export(name="identity", refs={IdentityResponse.class}, tree="[0]") private Output identity; /** * @return Managed Identity Information * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Base Url of the lms instance this lab plan can link lab rosters against. * */ @Export(name="linkedLmsInstance", refs={String.class}, tree="[0]") private Output linkedLmsInstance; /** * @return Base Url of the lms instance this lab plan can link lab rosters against. * */ public Output> linkedLmsInstance() { return Codegen.optional(this.linkedLmsInstance); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Current provisioning state of the lab plan. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Current provisioning state of the lab plan. * */ public Output provisioningState() { return this.provisioningState; } /** * Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine image it will be persisted in this gallery. Shared images from the gallery can be made available to use when creating new labs. * */ @Export(name="sharedGalleryId", refs={String.class}, tree="[0]") private Output sharedGalleryId; /** * @return Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine image it will be persisted in this gallery. Shared images from the gallery can be made available to use when creating new labs. * */ public Output> sharedGalleryId() { return Codegen.optional(this.sharedGalleryId); } /** * Support contact information and instructions for users of the lab plan. This information is displayed to lab owners and virtual machine users for all labs in the lab plan. * */ @Export(name="supportInfo", refs={SupportInfoResponse.class}, tree="[0]") private Output supportInfo; /** * @return Support contact information and instructions for users of the lab plan. This information is displayed to lab owners and virtual machine users for all labs in the lab plan. * */ public Output> supportInfo() { return Codegen.optional(this.supportInfo); } /** * Metadata pertaining to creation and last modification of the lab plan. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the lab plan. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public LabPlan(java.lang.String name) { this(name, LabPlanArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public LabPlan(java.lang.String name, LabPlanArgs 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 LabPlan(java.lang.String name, LabPlanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:labservices:LabPlan", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private LabPlan(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:labservices:LabPlan", name, null, makeResourceOptions(options, id), false); } private static LabPlanArgs makeArgs(LabPlanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? LabPlanArgs.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:labservices/v20211001preview:LabPlan").build()), Output.of(Alias.builder().type("azure-native:labservices/v20211115preview:LabPlan").build()), Output.of(Alias.builder().type("azure-native:labservices/v20220801:LabPlan").build()), Output.of(Alias.builder().type("azure-native:labservices/v20230607:LabPlan").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 LabPlan get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new LabPlan(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy