com.pulumi.azure.iot.kotlin.TimeSeriesInsightsReferenceDataSetArgs.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.TimeSeriesInsightsReferenceDataSetArgs.builder
import com.pulumi.azure.iot.kotlin.inputs.TimeSeriesInsightsReferenceDataSetKeyPropertyArgs
import com.pulumi.azure.iot.kotlin.inputs.TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder
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 Reference Data Set.
* ## 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 exampleTimeSeriesInsightsStandardEnvironment = new azure.iot.TimeSeriesInsightsStandardEnvironment("example", {
* name: "example",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "S1_1",
* dataRetentionTime: "P30D",
* });
* const exampleTimeSeriesInsightsReferenceDataSet = new azure.iot.TimeSeriesInsightsReferenceDataSet("example", {
* name: "example",
* timeSeriesInsightsEnvironmentId: exampleTimeSeriesInsightsStandardEnvironment.id,
* location: example.location,
* keyProperties: [{
* name: "keyProperty1",
* type: "String",
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_time_series_insights_standard_environment = azure.iot.TimeSeriesInsightsStandardEnvironment("example",
* name="example",
* location=example.location,
* resource_group_name=example.name,
* sku_name="S1_1",
* data_retention_time="P30D")
* example_time_series_insights_reference_data_set = azure.iot.TimeSeriesInsightsReferenceDataSet("example",
* name="example",
* time_series_insights_environment_id=example_time_series_insights_standard_environment.id,
* location=example.location,
* key_properties=[azure.iot.TimeSeriesInsightsReferenceDataSetKeyPropertyArgs(
* name="keyProperty1",
* type="String",
* )])
* ```
* ```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 exampleTimeSeriesInsightsStandardEnvironment = new Azure.Iot.TimeSeriesInsightsStandardEnvironment("example", new()
* {
* Name = "example",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "S1_1",
* DataRetentionTime = "P30D",
* });
* var exampleTimeSeriesInsightsReferenceDataSet = new Azure.Iot.TimeSeriesInsightsReferenceDataSet("example", new()
* {
* Name = "example",
* TimeSeriesInsightsEnvironmentId = exampleTimeSeriesInsightsStandardEnvironment.Id,
* Location = example.Location,
* KeyProperties = new[]
* {
* new Azure.Iot.Inputs.TimeSeriesInsightsReferenceDataSetKeyPropertyArgs
* {
* Name = "keyProperty1",
* Type = "String",
* },
* },
* });
* });
* ```
* ```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/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
* }
* exampleTimeSeriesInsightsStandardEnvironment, err := iot.NewTimeSeriesInsightsStandardEnvironment(ctx, "example", &iot.TimeSeriesInsightsStandardEnvironmentArgs{
* Name: pulumi.String("example"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* SkuName: pulumi.String("S1_1"),
* DataRetentionTime: pulumi.String("P30D"),
* })
* if err != nil {
* return err
* }
* _, err = iot.NewTimeSeriesInsightsReferenceDataSet(ctx, "example", &iot.TimeSeriesInsightsReferenceDataSetArgs{
* Name: pulumi.String("example"),
* TimeSeriesInsightsEnvironmentId: exampleTimeSeriesInsightsStandardEnvironment.ID(),
* Location: example.Location,
* KeyProperties: iot.TimeSeriesInsightsReferenceDataSetKeyPropertyArray{
* &iot.TimeSeriesInsightsReferenceDataSetKeyPropertyArgs{
* Name: pulumi.String("keyProperty1"),
* Type: pulumi.String("String"),
* },
* },
* })
* 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.iot.TimeSeriesInsightsStandardEnvironment;
* import com.pulumi.azure.iot.TimeSeriesInsightsStandardEnvironmentArgs;
* import com.pulumi.azure.iot.TimeSeriesInsightsReferenceDataSet;
* import com.pulumi.azure.iot.TimeSeriesInsightsReferenceDataSetArgs;
* import com.pulumi.azure.iot.inputs.TimeSeriesInsightsReferenceDataSetKeyPropertyArgs;
* 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 exampleTimeSeriesInsightsStandardEnvironment = new TimeSeriesInsightsStandardEnvironment("exampleTimeSeriesInsightsStandardEnvironment", TimeSeriesInsightsStandardEnvironmentArgs.builder()
* .name("example")
* .location(example.location())
* .resourceGroupName(example.name())
* .skuName("S1_1")
* .dataRetentionTime("P30D")
* .build());
* var exampleTimeSeriesInsightsReferenceDataSet = new TimeSeriesInsightsReferenceDataSet("exampleTimeSeriesInsightsReferenceDataSet", TimeSeriesInsightsReferenceDataSetArgs.builder()
* .name("example")
* .timeSeriesInsightsEnvironmentId(exampleTimeSeriesInsightsStandardEnvironment.id())
* .location(example.location())
* .keyProperties(TimeSeriesInsightsReferenceDataSetKeyPropertyArgs.builder()
* .name("keyProperty1")
* .type("String")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleTimeSeriesInsightsStandardEnvironment:
* type: azure:iot:TimeSeriesInsightsStandardEnvironment
* name: example
* properties:
* name: example
* location: ${example.location}
* resourceGroupName: ${example.name}
* skuName: S1_1
* dataRetentionTime: P30D
* exampleTimeSeriesInsightsReferenceDataSet:
* type: azure:iot:TimeSeriesInsightsReferenceDataSet
* name: example
* properties:
* name: example
* timeSeriesInsightsEnvironmentId: ${exampleTimeSeriesInsightsStandardEnvironment.id}
* location: ${example.location}
* keyProperties:
* - name: keyProperty1
* type: String
* ```
*
* ## Import
* Azure IoT Time Series Insights Reference Data Set can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:iot/timeSeriesInsightsReferenceDataSet:TimeSeriesInsightsReferenceDataSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/example/referenceDataSets/example
* ```
* @property dataStringComparisonBehavior The comparison behavior that will be used to compare keys. Valid values include `Ordinal` and `OrdinalIgnoreCase`. Defaults to `Ordinal`. Changing this forces a new resource to be created.
* @property keyProperties A `key_property` block as defined below. 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 Reference Data Set. Changing this forces a new resource to be created. Must be globally unique.
* @property tags A mapping of tags to assign to the resource.
* @property timeSeriesInsightsEnvironmentId The resource ID of the Azure IoT Time Series Insights Environment in which to create the Azure IoT Time Series Insights Reference Data Set. Changing this forces a new resource to be created.
*/
public data class TimeSeriesInsightsReferenceDataSetArgs(
public val dataStringComparisonBehavior: Output? = null,
public val keyProperties: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy