EnvironmentArgs

data class EnvironmentArgs constructor(val environmentName: Output<String>? = null, val kind: Output<Either<String, EnvironmentKind>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EnvironmentArgs>

An environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. API Version: 2020-05-15.

Example Usage

EnvironmentsCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var environment = new AzureNative.TimeSeriesInsights.Environment("environment", new()
{
EnvironmentName = "env1",
Kind = "Gen1",
Location = "West US",
ResourceGroupName = "rg1",
Sku = new AzureNative.TimeSeriesInsights.Inputs.SkuArgs
{
Capacity = 1,
Name = "S1",
},
});
});
package main
import (
timeseriesinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/timeseriesinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := timeseriesinsights.NewEnvironment(ctx, "environment", &timeseriesinsights.EnvironmentArgs{
EnvironmentName: pulumi.String("env1"),
Kind: pulumi.String("Gen1"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rg1"),
Sku: &timeseriesinsights.SkuArgs{
Capacity: pulumi.Int(1),
Name: pulumi.String("S1"),
},
})
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.Environment;
import com.pulumi.azurenative.timeseriesinsights.EnvironmentArgs;
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 environment = new Environment("environment", EnvironmentArgs.builder()
.environmentName("env1")
.kind("Gen1")
.location("West US")
.resourceGroupName("rg1")
.sku(Map.ofEntries(
Map.entry("capacity", 1),
Map.entry("name", "S1")
))
.build());
}
}

Import

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

$ pulumi import azure-native:timeseriesinsights:Environment env1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1

Constructors

Link copied to clipboard
fun EnvironmentArgs(environmentName: Output<String>? = null, kind: Output<Either<String, EnvironmentKind>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

Name of the environment

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

The kind of the environment.

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

The location of the resource.

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
val tags: Output<Map<String, String>>? = null

Key-value pairs of additional properties for the resource.