![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.iot.kotlin.TimeSeriesInsightsGen2EnvironmentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.iot.kotlin
import com.pulumi.azure.iot.TimeSeriesInsightsGen2EnvironmentArgs.builder
import com.pulumi.azure.iot.kotlin.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs
import com.pulumi.azure.iot.kotlin.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an Azure IoT Time Series Insights Gen2 Environment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const storage = new azure.storage.Account("storage", {
* name: "example",
* location: example.location,
* resourceGroupName: example.name,
* accountTier: "Standard",
* accountReplicationType: "LRS",
* });
* const exampleTimeSeriesInsightsGen2Environment = new azure.iot.TimeSeriesInsightsGen2Environment("example", {
* name: "example",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "L1",
* warmStoreDataRetentionTime: "P30D",
* idProperties: ["id"],
* storage: {
* name: storage.name,
* key: storage.primaryAccessKey,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* storage = azure.storage.Account("storage",
* name="example",
* location=example.location,
* resource_group_name=example.name,
* account_tier="Standard",
* account_replication_type="LRS")
* example_time_series_insights_gen2_environment = azure.iot.TimeSeriesInsightsGen2Environment("example",
* name="example",
* location=example.location,
* resource_group_name=example.name,
* sku_name="L1",
* warm_store_data_retention_time="P30D",
* id_properties=["id"],
* storage={
* "name": storage.name,
* "key": storage.primary_access_key,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var storage = new Azure.Storage.Account("storage", new()
* {
* Name = "example",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AccountTier = "Standard",
* AccountReplicationType = "LRS",
* });
* var exampleTimeSeriesInsightsGen2Environment = new Azure.Iot.TimeSeriesInsightsGen2Environment("example", new()
* {
* Name = "example",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "L1",
* WarmStoreDataRetentionTime = "P30D",
* IdProperties = new[]
* {
* "id",
* },
* Storage = new Azure.Iot.Inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs
* {
* Name = storage.Name,
* Key = storage.PrimaryAccessKey,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* storage, err := storage.NewAccount(ctx, "storage", &storage.AccountArgs{
* Name: pulumi.String("example"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AccountTier: pulumi.String("Standard"),
* AccountReplicationType: pulumi.String("LRS"),
* })
* if err != nil {
* return err
* }
* _, err = iot.NewTimeSeriesInsightsGen2Environment(ctx, "example", &iot.TimeSeriesInsightsGen2EnvironmentArgs{
* Name: pulumi.String("example"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* SkuName: pulumi.String("L1"),
* WarmStoreDataRetentionTime: pulumi.String("P30D"),
* IdProperties: pulumi.StringArray{
* pulumi.String("id"),
* },
* Storage: &iot.TimeSeriesInsightsGen2EnvironmentStorageArgs{
* Name: storage.Name,
* Key: storage.PrimaryAccessKey,
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.iot.TimeSeriesInsightsGen2Environment;
* import com.pulumi.azure.iot.TimeSeriesInsightsGen2EnvironmentArgs;
* import com.pulumi.azure.iot.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var storage = new Account("storage", AccountArgs.builder()
* .name("example")
* .location(example.location())
* .resourceGroupName(example.name())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
* var exampleTimeSeriesInsightsGen2Environment = new TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", TimeSeriesInsightsGen2EnvironmentArgs.builder()
* .name("example")
* .location(example.location())
* .resourceGroupName(example.name())
* .skuName("L1")
* .warmStoreDataRetentionTime("P30D")
* .idProperties("id")
* .storage(TimeSeriesInsightsGen2EnvironmentStorageArgs.builder()
* .name(storage.name())
* .key(storage.primaryAccessKey())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* storage:
* type: azure:storage:Account
* properties:
* name: example
* location: ${example.location}
* resourceGroupName: ${example.name}
* accountTier: Standard
* accountReplicationType: LRS
* exampleTimeSeriesInsightsGen2Environment:
* type: azure:iot:TimeSeriesInsightsGen2Environment
* name: example
* properties:
* name: example
* location: ${example.location}
* resourceGroupName: ${example.name}
* skuName: L1
* warmStoreDataRetentionTime: P30D
* idProperties:
* - id
* storage:
* name: ${storage.name}
* key: ${storage.primaryAccessKey}
* ```
*
* ## Import
* Azure IoT Time Series Insights Gen2 Environment can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:iot/timeSeriesInsightsGen2Environment:TimeSeriesInsightsGen2Environment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/example
* ```
* @property idProperties A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
* @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
* @property name Specifies the name of the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created. Must be globally unique.
* @property resourceGroupName The name of the resource group in which to create the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
* @property skuName Specifies the SKU Name for this IoT Time Series Insights Gen2 Environment. Currently it supports only `L1`. For gen2, capacity cannot be specified. Changing this forces a new resource to be created.
* @property storage A `storage` block as defined below.
* @property tags A mapping of tags to assign to the resource.
* @property warmStoreDataRetentionTime Specifies the ISO8601 timespan specifying the minimum number of days the environment's events will be available for query.
*/
public data class TimeSeriesInsightsGen2EnvironmentArgs(
public val idProperties: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val skuName: Output? = null,
public val storage: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy