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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.operationalinsights.WorkspaceArgs;
import com.pulumi.azurenative.operationalinsights.outputs.IdentityResponse;
import com.pulumi.azurenative.operationalinsights.outputs.PrivateLinkScopedResourceResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SystemDataResponse;
import com.pulumi.azurenative.operationalinsights.outputs.WorkspaceCappingResponse;
import com.pulumi.azurenative.operationalinsights.outputs.WorkspaceFeaturesResponse;
import com.pulumi.azurenative.operationalinsights.outputs.WorkspaceSkuResponse;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The top level Workspace resource container.
 * Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2020-10-01.
 * 
 * Other available API versions: 2015-11-01-preview, 2020-08-01, 2020-10-01, 2021-06-01, 2021-12-01-preview, 2023-09-01.
 * 
 * ## Example Usage
 * ### WorkspacesCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.operationalinsights.Workspace;
 * import com.pulumi.azurenative.operationalinsights.WorkspaceArgs;
 * import com.pulumi.azurenative.operationalinsights.inputs.WorkspaceSkuArgs;
 * 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()
 *             .location("australiasoutheast")
 *             .resourceGroupName("oiautorest6685")
 *             .retentionInDays(30)
 *             .sku(WorkspaceSkuArgs.builder()
 *                 .name("PerGB2018")
 *                 .build())
 *             .tags(Map.of("tag1", "val1"))
 *             .workspaceName("oiautorest6685")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:operationalinsights:Workspace AzTest2170 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName} * ``` * */ @ResourceType(type="azure-native:operationalinsights:Workspace") public class Workspace extends com.pulumi.resources.CustomResource { /** * Workspace creation date. * */ @Export(name="createdDate", refs={String.class}, tree="[0]") private Output createdDate; /** * @return Workspace creation date. * */ public Output createdDate() { return this.createdDate; } /** * This is a read-only property. Represents the ID associated with the workspace. * */ @Export(name="customerId", refs={String.class}, tree="[0]") private Output customerId; /** * @return This is a read-only property. Represents the ID associated with the workspace. * */ public Output customerId() { return this.customerId; } /** * The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. * */ @Export(name="defaultDataCollectionRuleResourceId", refs={String.class}, tree="[0]") private Output defaultDataCollectionRuleResourceId; /** * @return The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. * */ public Output> defaultDataCollectionRuleResourceId() { return Codegen.optional(this.defaultDataCollectionRuleResourceId); } /** * The etag of the workspace. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The etag of the workspace. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * Workspace features. * */ @Export(name="features", refs={WorkspaceFeaturesResponse.class}, tree="[0]") private Output features; /** * @return Workspace features. * */ public Output> features() { return Codegen.optional(this.features); } /** * Indicates whether customer managed storage is mandatory for query management. * */ @Export(name="forceCmkForQuery", refs={Boolean.class}, tree="[0]") private Output forceCmkForQuery; /** * @return Indicates whether customer managed storage is mandatory for query management. * */ public Output> forceCmkForQuery() { return Codegen.optional(this.forceCmkForQuery); } /** * The identity of the resource. * */ @Export(name="identity", refs={IdentityResponse.class}, tree="[0]") private Output identity; /** * @return The identity of the resource. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * 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; } /** * Workspace modification date. * */ @Export(name="modifiedDate", refs={String.class}, tree="[0]") private Output modifiedDate; /** * @return Workspace modification date. * */ public Output modifiedDate() { return this.modifiedDate; } /** * 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; } /** * List of linked private link scope resources. * */ @Export(name="privateLinkScopedResources", refs={List.class,PrivateLinkScopedResourceResponse.class}, tree="[0,1]") private Output> privateLinkScopedResources; /** * @return List of linked private link scope resources. * */ public Output> privateLinkScopedResources() { return this.privateLinkScopedResources; } /** * The provisioning state of the workspace. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the workspace. * */ public Output provisioningState() { return this.provisioningState; } /** * The network access type for accessing Log Analytics ingestion. * */ @Export(name="publicNetworkAccessForIngestion", refs={String.class}, tree="[0]") private Output publicNetworkAccessForIngestion; /** * @return The network access type for accessing Log Analytics ingestion. * */ public Output> publicNetworkAccessForIngestion() { return Codegen.optional(this.publicNetworkAccessForIngestion); } /** * The network access type for accessing Log Analytics query. * */ @Export(name="publicNetworkAccessForQuery", refs={String.class}, tree="[0]") private Output publicNetworkAccessForQuery; /** * @return The network access type for accessing Log Analytics query. * */ public Output> publicNetworkAccessForQuery() { return Codegen.optional(this.publicNetworkAccessForQuery); } /** * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. * */ @Export(name="retentionInDays", refs={Integer.class}, tree="[0]") private Output retentionInDays; /** * @return The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. * */ public Output> retentionInDays() { return Codegen.optional(this.retentionInDays); } /** * The SKU of the workspace. * */ @Export(name="sku", refs={WorkspaceSkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU of the workspace. * */ 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; } /** * The daily volume cap for ingestion. * */ @Export(name="workspaceCapping", refs={WorkspaceCappingResponse.class}, tree="[0]") private Output workspaceCapping; /** * @return The daily volume cap for ingestion. * */ public Output> workspaceCapping() { return Codegen.optional(this.workspaceCapping); } /** * * @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:operationalinsights: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:operationalinsights: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:operationalinsights/v20151101preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20200301preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20200801:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20201001:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20210601:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20211201preview:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20221001:Workspace").build()), Output.of(Alias.builder().type("azure-native:operationalinsights/v20230901: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