TimeSeriesInsightsReferenceDataSet

class TimeSeriesInsightsReferenceDataSet : KotlinCustomResource

Manages an Azure IoT Time Series Insights Reference Data Set.

Example Usage

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",
}],
});
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=[{
"name": "keyProperty1",
"type": "String",
}])
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",
},
},
});
});
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
})
}
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());
}
}
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.

$ pulumi import azure:iot/timeSeriesInsightsReferenceDataSet:TimeSeriesInsightsReferenceDataSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/example/referenceDataSets/example

Properties

Link copied to clipboard

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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A key_property block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val location: Output<String>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard

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.

Link copied to clipboard
val urn: Output<String>