All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.iot.kotlin.TimeSeriesInsightsReferenceDataSetArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@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>? = null,
    public val timeSeriesInsightsEnvironmentId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.iot.TimeSeriesInsightsReferenceDataSetArgs =
        com.pulumi.azure.iot.TimeSeriesInsightsReferenceDataSetArgs.builder()
            .dataStringComparisonBehavior(dataStringComparisonBehavior?.applyValue({ args0 -> args0 }))
            .keyProperties(
                keyProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .timeSeriesInsightsEnvironmentId(
                timeSeriesInsightsEnvironmentId?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [TimeSeriesInsightsReferenceDataSetArgs].
 */
@PulumiTagMarker
public class TimeSeriesInsightsReferenceDataSetArgsBuilder internal constructor() {
    private var dataStringComparisonBehavior: Output? = null

    private var keyProperties: Output>? = null

    private var location: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var timeSeriesInsightsEnvironmentId: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("nglsjujhpqctohov")
    public suspend fun dataStringComparisonBehavior(`value`: Output) {
        this.dataStringComparisonBehavior = value
    }

    /**
     * @param value A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("attfjctdurmouptn")
    public suspend
    fun keyProperties(`value`: Output>) {
        this.keyProperties = value
    }

    @JvmName("mnhpdcjgopujnucx")
    public suspend fun keyProperties(
        vararg
        values: Output,
    ) {
        this.keyProperties = Output.all(values.asList())
    }

    /**
     * @param values A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("lovtmmjuincqvvuo")
    public suspend
    fun keyProperties(values: List>) {
        this.keyProperties = Output.all(values)
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("ilwxxkwovyjddent")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value 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.
     */
    @JvmName("opjbjyguoduxgegy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("jylxdbgxdxgeqsak")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value 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.
     */
    @JvmName("gbgumoemowavvucx")
    public suspend fun timeSeriesInsightsEnvironmentId(`value`: Output) {
        this.timeSeriesInsightsEnvironmentId = value
    }

    /**
     * @param value 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.
     */
    @JvmName("enidiwavjsxkmmit")
    public suspend fun dataStringComparisonBehavior(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataStringComparisonBehavior = mapped
    }

    /**
     * @param value A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("eajeywkabuvremgq")
    public suspend
    fun keyProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyProperties = mapped
    }

    /**
     * @param argument A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("nkgecuqssdwsrdin")
    public suspend
    fun keyProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param argument A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("ysudfbgfpbuqlbxh")
    public suspend fun keyProperties(
        vararg
        argument: suspend TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param argument A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("ohtpglceoxkudvjo")
    public suspend
    fun keyProperties(argument: suspend TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TimeSeriesInsightsReferenceDataSetKeyPropertyArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param values A `key_property` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("octuscwxygmxykjq")
    public suspend fun keyProperties(
        vararg
        values: TimeSeriesInsightsReferenceDataSetKeyPropertyArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyProperties = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("vustwarmuhauybjw")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("dceasbbeqlnsomor")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("uqbbjjcgcgtedrmt")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("npyjineqvgnukods")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("otxafxritmkmcvad")
    public suspend fun timeSeriesInsightsEnvironmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeSeriesInsightsEnvironmentId = mapped
    }

    internal fun build(): TimeSeriesInsightsReferenceDataSetArgs =
        TimeSeriesInsightsReferenceDataSetArgs(
            dataStringComparisonBehavior = dataStringComparisonBehavior,
            keyProperties = keyProperties,
            location = location,
            name = name,
            tags = tags,
            timeSeriesInsightsEnvironmentId = timeSeriesInsightsEnvironmentId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy