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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.timeseriesinsights.Gen2EnvironmentArgs;
import com.pulumi.azurenative.timeseriesinsights.outputs.EnvironmentStatusResponse;
import com.pulumi.azurenative.timeseriesinsights.outputs.Gen2StorageConfigurationOutputResponse;
import com.pulumi.azurenative.timeseriesinsights.outputs.SkuResponse;
import com.pulumi.azurenative.timeseriesinsights.outputs.TimeSeriesIdPropertyResponse;
import com.pulumi.azurenative.timeseriesinsights.outputs.WarmStoreConfigurationPropertiesResponse;
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;

/**
 * An environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. Gen2 environments do not have set data retention limits.
 * Azure REST API version: 2020-05-15. Prior API version in Azure Native 1.x: 2020-05-15.
 * 
 * ## Example Usage
 * ### EnvironmentsCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.timeseriesinsights.Gen2Environment;
 * import com.pulumi.azurenative.timeseriesinsights.Gen2EnvironmentArgs;
 * 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 gen2Environment = new Gen2Environment("gen2Environment", Gen2EnvironmentArgs.builder()
 *             .environmentName("env1")
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:timeseriesinsights:Gen2Environment env1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName} * ``` * */ @ResourceType(type="azure-native:timeseriesinsights:Gen2Environment") public class Gen2Environment extends com.pulumi.resources.CustomResource { /** * The time the resource was created. * */ @Export(name="creationTime", refs={String.class}, tree="[0]") private Output creationTime; /** * @return The time the resource was created. * */ public Output creationTime() { return this.creationTime; } /** * The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment. * */ @Export(name="dataAccessFqdn", refs={String.class}, tree="[0]") private Output dataAccessFqdn; /** * @return The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment. * */ public Output dataAccessFqdn() { return this.dataAccessFqdn; } /** * An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment. * */ @Export(name="dataAccessId", refs={String.class}, tree="[0]") private Output dataAccessId; /** * @return An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment. * */ public Output dataAccessId() { return this.dataAccessId; } /** * The kind of the environment. * Expected value is 'Gen2'. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The kind of the environment. * Expected value is 'Gen2'. * */ public Output kind() { return this.kind; } /** * Resource location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location * */ public Output location() { return this.location; } /** * Resource name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name * */ public Output name() { return this.name; } /** * Provisioning state of the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate. * */ public Output sku() { return this.sku; } /** * An object that represents the status of the environment, and its internal state in the Time Series Insights service. * */ @Export(name="status", refs={EnvironmentStatusResponse.class}, tree="[0]") private Output status; /** * @return An object that represents the status of the environment, and its internal state in the Time Series Insights service. * */ public Output status() { return this.status; } /** * The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data. * */ @Export(name="storageConfiguration", refs={Gen2StorageConfigurationOutputResponse.class}, tree="[0]") private Output storageConfiguration; /** * @return The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data. * */ public Output storageConfiguration() { return this.storageConfiguration; } /** * 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 list of event properties which will be used to define the environment's time series id. * */ @Export(name="timeSeriesIdProperties", refs={List.class,TimeSeriesIdPropertyResponse.class}, tree="[0,1]") private Output> timeSeriesIdProperties; /** * @return The list of event properties which will be used to define the environment's time series id. * */ public Output> timeSeriesIdProperties() { return this.timeSeriesIdProperties; } /** * Resource type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type * */ public Output type() { return this.type; } /** * The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query. * */ @Export(name="warmStoreConfiguration", refs={WarmStoreConfigurationPropertiesResponse.class}, tree="[0]") private Output warmStoreConfiguration; /** * @return The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query. * */ public Output> warmStoreConfiguration() { return Codegen.optional(this.warmStoreConfiguration); } /** * * @param name The _unique_ name of the resulting resource. */ public Gen2Environment(java.lang.String name) { this(name, Gen2EnvironmentArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Gen2Environment(java.lang.String name, Gen2EnvironmentArgs 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 Gen2Environment(java.lang.String name, Gen2EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:timeseriesinsights:Gen2Environment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Gen2Environment(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:timeseriesinsights:Gen2Environment", name, null, makeResourceOptions(options, id), false); } private static Gen2EnvironmentArgs makeArgs(Gen2EnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } var builder = args == null ? Gen2EnvironmentArgs.builder() : Gen2EnvironmentArgs.builder(args); return builder .kind("Gen2") .build(); } 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:timeseriesinsights/v20170228preview:Gen2Environment").build()), Output.of(Alias.builder().type("azure-native:timeseriesinsights/v20171115:Gen2Environment").build()), Output.of(Alias.builder().type("azure-native:timeseriesinsights/v20180815preview:Gen2Environment").build()), Output.of(Alias.builder().type("azure-native:timeseriesinsights/v20200515:Gen2Environment").build()), Output.of(Alias.builder().type("azure-native:timeseriesinsights/v20210331preview:Gen2Environment").build()), Output.of(Alias.builder().type("azure-native:timeseriesinsights/v20210630preview:Gen2Environment").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 Gen2Environment get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Gen2Environment(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy