Gen1EnvironmentArgs

data class Gen1EnvironmentArgs(val dataRetentionTime: Output<String>? = null, val environmentName: Output<String>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val partitionKeyProperties: Output<List<TimeSeriesIdPropertyArgs>>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val storageLimitExceededBehavior: Output<Either<String, StorageLimitExceededBehavior>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<Gen1EnvironmentArgs>

An environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. Gen1 environments have data retention limits. Uses Azure REST API version 2020-05-15. In version 2.x of the Azure Native provider, it used API version 2020-05-15.

Example Usage

EnvironmentsCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var gen1Environment = new AzureNative.TimeSeriesInsights.Gen1Environment("gen1Environment", new()
{
DataRetentionTime = "P31D",
EnvironmentName = "env1",
Kind = "Gen1",
Location = "West US",
PartitionKeyProperties = new[]
{
new AzureNative.TimeSeriesInsights.Inputs.TimeSeriesIdPropertyArgs
{
Name = "DeviceId1",
Type = AzureNative.TimeSeriesInsights.PropertyType.String,
},
},
ResourceGroupName = "rg1",
Sku = new AzureNative.TimeSeriesInsights.Inputs.SkuArgs
{
Capacity = 1,
Name = AzureNative.TimeSeriesInsights.SkuName.S1,
},
});
});
package main
import (
timeseriesinsights "github.com/pulumi/pulumi-azure-native-sdk/timeseriesinsights/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := timeseriesinsights.NewGen1Environment(ctx, "gen1Environment", &timeseriesinsights.Gen1EnvironmentArgs{
DataRetentionTime: pulumi.String("P31D"),
EnvironmentName: pulumi.String("env1"),
Kind: pulumi.String("Gen1"),
Location: pulumi.String("West US"),
PartitionKeyProperties: timeseriesinsights.TimeSeriesIdPropertyArray{
&timeseriesinsights.TimeSeriesIdPropertyArgs{
Name: pulumi.String("DeviceId1"),
Type: pulumi.String(timeseriesinsights.PropertyTypeString),
},
},
ResourceGroupName: pulumi.String("rg1"),
Sku: &timeseriesinsights.SkuArgs{
Capacity: pulumi.Int(1),
Name: pulumi.String(timeseriesinsights.SkuNameS1),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.timeseriesinsights.Gen1Environment;
import com.pulumi.azurenative.timeseriesinsights.Gen1EnvironmentArgs;
import com.pulumi.azurenative.timeseriesinsights.inputs.TimeSeriesIdPropertyArgs;
import com.pulumi.azurenative.timeseriesinsights.inputs.SkuArgs;
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 gen1Environment = new Gen1Environment("gen1Environment", Gen1EnvironmentArgs.builder()
.dataRetentionTime("P31D")
.environmentName("env1")
.kind("Gen1")
.location("West US")
.partitionKeyProperties(TimeSeriesIdPropertyArgs.builder()
.name("DeviceId1")
.type("String")
.build())
.resourceGroupName("rg1")
.sku(SkuArgs.builder()
.capacity(1)
.name("S1")
.build())
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:timeseriesinsights:Gen1Environment env1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}

Constructors

Link copied to clipboard
constructor(dataRetentionTime: Output<String>? = null, environmentName: Output<String>? = null, kind: Output<String>? = null, location: Output<String>? = null, partitionKeyProperties: Output<List<TimeSeriesIdPropertyArgs>>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, storageLimitExceededBehavior: Output<Either<String, StorageLimitExceededBehavior>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dataRetentionTime: Output<String>? = null

ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.

Link copied to clipboard
val environmentName: Output<String>? = null

Name of the environment

Link copied to clipboard
val kind: Output<String>? = null

The kind of the environment. Expected value is 'Gen1'.

Link copied to clipboard
val location: Output<String>? = null

The location of the resource.

Link copied to clipboard

The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of an Azure Resource group.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

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.

Link copied to clipboard

The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of additional properties for the resource.

Functions

Link copied to clipboard
open override fun toJava(): Gen1EnvironmentArgs