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

com.pulumi.azurenative.desktopvirtualization.Workspace 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.desktopvirtualization;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.desktopvirtualization.WorkspaceArgs;
import com.pulumi.azurenative.desktopvirtualization.outputs.ResourceModelWithAllowedPropertySetResponseIdentity;
import com.pulumi.azurenative.desktopvirtualization.outputs.ResourceModelWithAllowedPropertySetResponsePlan;
import com.pulumi.azurenative.desktopvirtualization.outputs.ResourceModelWithAllowedPropertySetResponseSku;
import com.pulumi.azurenative.desktopvirtualization.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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Represents a Workspace definition.
 * Azure REST API version: 2022-09-09. Prior API version in Azure Native 1.x: 2021-02-01-preview.
 * 
 * Other available API versions: 2020-11-10-preview, 2022-10-14-preview, 2023-07-07-preview, 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-03, 2024-04-08-preview, 2024-08-08-preview.
 * 
 * ## Example Usage
 * ### Workspace_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.desktopvirtualization.Workspace;
 * import com.pulumi.azurenative.desktopvirtualization.WorkspaceArgs;
 * 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 workspace = new Workspace("workspace", WorkspaceArgs.builder()
 *             .description("des1")
 *             .friendlyName("friendly")
 *             .location("centralus")
 *             .resourceGroupName("resourceGroup1")
 *             .tags(Map.ofEntries(
 *                 Map.entry("tag1", "value1"),
 *                 Map.entry("tag2", "value2")
 *             ))
 *             .workspaceName("workspace1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:desktopvirtualization:Workspace workspace1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName} * ``` * */ @ResourceType(type="azure-native:desktopvirtualization:Workspace") public class Workspace extends com.pulumi.resources.CustomResource { /** * List of applicationGroup resource Ids. * */ @Export(name="applicationGroupReferences", refs={List.class,String.class}, tree="[0,1]") private Output> applicationGroupReferences; /** * @return List of applicationGroup resource Ids. * */ public Output>> applicationGroupReferences() { return Codegen.optional(this.applicationGroupReferences); } /** * Is cloud pc resource. * */ @Export(name="cloudPcResource", refs={Boolean.class}, tree="[0]") private Output cloudPcResource; /** * @return Is cloud pc resource. * */ public Output cloudPcResource() { return this.cloudPcResource; } /** * Description of Workspace. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Description of Workspace. * */ public Output> description() { return Codegen.optional(this.description); } /** * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. * */ public Output etag() { return this.etag; } /** * Friendly name of Workspace. * */ @Export(name="friendlyName", refs={String.class}, tree="[0]") private Output friendlyName; /** * @return Friendly name of Workspace. * */ public Output> friendlyName() { return Codegen.optional(this.friendlyName); } @Export(name="identity", refs={ResourceModelWithAllowedPropertySetResponseIdentity.class}, tree="[0]") private Output identity; public Output> identity() { return Codegen.optional(this.identity); } /** * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. * */ public Output> kind() { return Codegen.optional(this.kind); } /** * 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 Codegen.optional(this.location); } /** * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. * */ @Export(name="managedBy", refs={String.class}, tree="[0]") private Output managedBy; /** * @return The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. * */ public Output> managedBy() { return Codegen.optional(this.managedBy); } /** * 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; } /** * ObjectId of Workspace. (internal use) * */ @Export(name="objectId", refs={String.class}, tree="[0]") private Output objectId; /** * @return ObjectId of Workspace. (internal use) * */ public Output objectId() { return this.objectId; } @Export(name="plan", refs={ResourceModelWithAllowedPropertySetResponsePlan.class}, tree="[0]") private Output plan; public Output> plan() { return Codegen.optional(this.plan); } @Export(name="sku", refs={ResourceModelWithAllowedPropertySetResponseSku.class}, tree="[0]") private Output sku; public Output> sku() { return Codegen.optional(this.sku); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ 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 Workspace(java.lang.String name) { this(name, WorkspaceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Workspace(java.lang.String name, WorkspaceArgs 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 Workspace(java.lang.String name, WorkspaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:Workspace", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Workspace(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:desktopvirtualization:Workspace", name, null, makeResourceOptions(options, id), false); } private static WorkspaceArgs makeArgs(WorkspaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? WorkspaceArgs.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:desktopvirtualization/v20190123preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20190924preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20191210preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20200921preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201019preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201102preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20201110preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210114preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210201preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210309preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210401preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210712:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20210903preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220210preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220401preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20220909:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20221014preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230707preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20230905:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231004preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20231101preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240116preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240306preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240403:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240408preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:desktopvirtualization/v20240808preview:Workspace").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 Workspace get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Workspace(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy