com.pulumi.azurenative.operationalinsights.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.TableArgs;
import com.pulumi.azurenative.operationalinsights.outputs.RestoredLogsResponse;
import com.pulumi.azurenative.operationalinsights.outputs.ResultStatisticsResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SchemaResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SearchResultsResponse;
import com.pulumi.azurenative.operationalinsights.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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Workspace data table definition.
* Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-12-01-preview.
*
* ## Example Usage
* ### TablesUpsert
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.operationalinsights.Table;
* import com.pulumi.azurenative.operationalinsights.TableArgs;
* import com.pulumi.azurenative.operationalinsights.inputs.SchemaArgs;
* 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 table = new Table("table", TableArgs.builder()
* .resourceGroupName("oiautorest6685")
* .retentionInDays(45)
* .schema(SchemaArgs.builder()
* .columns(ColumnArgs.builder()
* .name("MyNewColumn")
* .type("guid")
* .build())
* .name("AzureNetworkFlow")
* .build())
* .tableName("AzureNetworkFlow")
* .totalRetentionInDays(70)
* .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:Table AzureNetworkFlow /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}
* ```
*
*/
@ResourceType(type="azure-native:operationalinsights:Table")
public class Table extends com.pulumi.resources.CustomResource {
/**
* The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
*
*/
@Export(name="archiveRetentionInDays", refs={Integer.class}, tree="[0]")
private Output archiveRetentionInDays;
/**
* @return The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
*
*/
public Output archiveRetentionInDays() {
return this.archiveRetentionInDays;
}
/**
* The timestamp that table plan was last modified (UTC).
*
*/
@Export(name="lastPlanModifiedDate", refs={String.class}, tree="[0]")
private Output lastPlanModifiedDate;
/**
* @return The timestamp that table plan was last modified (UTC).
*
*/
public Output lastPlanModifiedDate() {
return this.lastPlanModifiedDate;
}
/**
* 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;
}
/**
* Instruct the system how to handle and charge the logs ingested to this table.
*
*/
@Export(name="plan", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> plan;
/**
* @return Instruct the system how to handle and charge the logs ingested to this table.
*
*/
public Output> plan() {
return Codegen.optional(this.plan);
}
/**
* Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Parameters of the restore operation that initiated this table.
*
*/
@Export(name="restoredLogs", refs={RestoredLogsResponse.class}, tree="[0]")
private Output* @Nullable */ RestoredLogsResponse> restoredLogs;
/**
* @return Parameters of the restore operation that initiated this table.
*
*/
public Output> restoredLogs() {
return Codegen.optional(this.restoredLogs);
}
/**
* Search job execution statistics.
*
*/
@Export(name="resultStatistics", refs={ResultStatisticsResponse.class}, tree="[0]")
private Output resultStatistics;
/**
* @return Search job execution statistics.
*
*/
public Output resultStatistics() {
return this.resultStatistics;
}
/**
* The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
*
*/
@Export(name="retentionInDays", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> retentionInDays;
/**
* @return The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
*
*/
public Output> retentionInDays() {
return Codegen.optional(this.retentionInDays);
}
/**
* True - Value originates from workspace retention in days, False - Customer specific.
*
*/
@Export(name="retentionInDaysAsDefault", refs={Boolean.class}, tree="[0]")
private Output retentionInDaysAsDefault;
/**
* @return True - Value originates from workspace retention in days, False - Customer specific.
*
*/
public Output retentionInDaysAsDefault() {
return this.retentionInDaysAsDefault;
}
/**
* Table schema.
*
*/
@Export(name="schema", refs={SchemaResponse.class}, tree="[0]")
private Output* @Nullable */ SchemaResponse> schema;
/**
* @return Table schema.
*
*/
public Output> schema() {
return Codegen.optional(this.schema);
}
/**
* Parameters of the search job that initiated this table.
*
*/
@Export(name="searchResults", refs={SearchResultsResponse.class}, tree="[0]")
private Output* @Nullable */ SearchResultsResponse> searchResults;
/**
* @return Parameters of the search job that initiated this table.
*
*/
public Output> searchResults() {
return Codegen.optional(this.searchResults);
}
/**
* 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;
}
/**
* The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
*
*/
@Export(name="totalRetentionInDays", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> totalRetentionInDays;
/**
* @return The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
*
*/
public Output> totalRetentionInDays() {
return Codegen.optional(this.totalRetentionInDays);
}
/**
* True - Value originates from retention in days, False - Customer specific.
*
*/
@Export(name="totalRetentionInDaysAsDefault", refs={Boolean.class}, tree="[0]")
private Output totalRetentionInDaysAsDefault;
/**
* @return True - Value originates from retention in days, False - Customer specific.
*
*/
public Output totalRetentionInDaysAsDefault() {
return this.totalRetentionInDaysAsDefault;
}
/**
* 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 Table(java.lang.String name) {
this(name, TableArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Table(java.lang.String name, TableArgs 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 Table(java.lang.String name, TableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:operationalinsights:Table", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Table(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:operationalinsights:Table", name, null, makeResourceOptions(options, id), false);
}
private static TableArgs makeArgs(TableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? TableArgs.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/v20211201preview:Table").build()),
Output.of(Alias.builder().type("azure-native:operationalinsights/v20221001:Table").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 Table get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Table(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy