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

com.pulumi.azure.appinsights.kotlin.InsightsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appinsights.kotlin

import com.pulumi.azure.appinsights.InsightsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Application Insights component.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "tf-test",
 *     location: "West Europe",
 * });
 * const exampleInsights = new azure.appinsights.Insights("example", {
 *     name: "tf-test-appinsights",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     applicationType: "web",
 * });
 * export const instrumentationKey = exampleInsights.instrumentationKey;
 * export const appId = exampleInsights.appId;
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="tf-test",
 *     location="West Europe")
 * example_insights = azure.appinsights.Insights("example",
 *     name="tf-test-appinsights",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     application_type="web")
 * pulumi.export("instrumentationKey", example_insights.instrumentation_key)
 * pulumi.export("appId", example_insights.app_id)
 * ```
 * ```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 = "tf-test",
 *         Location = "West Europe",
 *     });
 *     var exampleInsights = new Azure.AppInsights.Insights("example", new()
 *     {
 *         Name = "tf-test-appinsights",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         ApplicationType = "web",
 *     });
 *     return new Dictionary
 *     {
 *         ["instrumentationKey"] = exampleInsights.InstrumentationKey,
 *         ["appId"] = exampleInsights.AppId,
 *     };
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"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("tf-test"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
 * 			Name:              pulumi.String("tf-test-appinsights"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			ApplicationType:   pulumi.String("web"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		ctx.Export("instrumentationKey", exampleInsights.InstrumentationKey)
 * 		ctx.Export("appId", exampleInsights.AppId)
 * 		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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * 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("tf-test")
 *             .location("West Europe")
 *             .build());
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("tf-test-appinsights")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 *         ctx.export("instrumentationKey", exampleInsights.instrumentationKey());
 *         ctx.export("appId", exampleInsights.appId());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: tf-test
 *       location: West Europe
 *   exampleInsights:
 *     type: azure:appinsights:Insights
 *     name: example
 *     properties:
 *       name: tf-test-appinsights
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       applicationType: web
 * outputs:
 *   instrumentationKey: ${exampleInsights.instrumentationKey}
 *   appId: ${exampleInsights.appId}
 * ```
 * 
 * ### Workspace Mode
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "tf-test",
 *     location: "West Europe",
 * });
 * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
 *     name: "workspace-test",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: "PerGB2018",
 *     retentionInDays: 30,
 * });
 * const exampleInsights = new azure.appinsights.Insights("example", {
 *     name: "tf-test-appinsights",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     workspaceId: exampleAnalyticsWorkspace.id,
 *     applicationType: "web",
 * });
 * export const instrumentationKey = exampleInsights.instrumentationKey;
 * export const appId = exampleInsights.appId;
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="tf-test",
 *     location="West Europe")
 * example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
 *     name="workspace-test",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku="PerGB2018",
 *     retention_in_days=30)
 * example_insights = azure.appinsights.Insights("example",
 *     name="tf-test-appinsights",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     workspace_id=example_analytics_workspace.id,
 *     application_type="web")
 * pulumi.export("instrumentationKey", example_insights.instrumentation_key)
 * pulumi.export("appId", example_insights.app_id)
 * ```
 * ```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 = "tf-test",
 *         Location = "West Europe",
 *     });
 *     var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
 *     {
 *         Name = "workspace-test",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Sku = "PerGB2018",
 *         RetentionInDays = 30,
 *     });
 *     var exampleInsights = new Azure.AppInsights.Insights("example", new()
 *     {
 *         Name = "tf-test-appinsights",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         WorkspaceId = exampleAnalyticsWorkspace.Id,
 *         ApplicationType = "web",
 *     });
 *     return new Dictionary
 *     {
 *         ["instrumentationKey"] = exampleInsights.InstrumentationKey,
 *         ["appId"] = exampleInsights.AppId,
 *     };
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
 * 	"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("tf-test"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
 * 			Name:              pulumi.String("workspace-test"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Sku:               pulumi.String("PerGB2018"),
 * 			RetentionInDays:   pulumi.Int(30),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
 * 			Name:              pulumi.String("tf-test-appinsights"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			WorkspaceId:       exampleAnalyticsWorkspace.ID(),
 * 			ApplicationType:   pulumi.String("web"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		ctx.Export("instrumentationKey", exampleInsights.InstrumentationKey)
 * 		ctx.Export("appId", exampleInsights.AppId)
 * 		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.operationalinsights.AnalyticsWorkspace;
 * import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
 * import com.pulumi.azure.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * 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("tf-test")
 *             .location("West Europe")
 *             .build());
 *         var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
 *             .name("workspace-test")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku("PerGB2018")
 *             .retentionInDays(30)
 *             .build());
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("tf-test-appinsights")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .workspaceId(exampleAnalyticsWorkspace.id())
 *             .applicationType("web")
 *             .build());
 *         ctx.export("instrumentationKey", exampleInsights.instrumentationKey());
 *         ctx.export("appId", exampleInsights.appId());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: tf-test
 *       location: West Europe
 *   exampleAnalyticsWorkspace:
 *     type: azure:operationalinsights:AnalyticsWorkspace
 *     name: example
 *     properties:
 *       name: workspace-test
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       sku: PerGB2018
 *       retentionInDays: 30
 *   exampleInsights:
 *     type: azure:appinsights:Insights
 *     name: example
 *     properties:
 *       name: tf-test-appinsights
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       workspaceId: ${exampleAnalyticsWorkspace.id}
 *       applicationType: web
 * outputs:
 *   instrumentationKey: ${exampleInsights.instrumentationKey}
 *   appId: ${exampleInsights.appId}
 * ```
 * 
 * ## Import
 * Application Insights instances can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appinsights/insights:Insights instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/instance1
 * ```
 * @property applicationType Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
 * @property dailyDataCapInGb Specifies the Application Insights component daily data volume cap in GB.
 * @property dailyDataCapNotificationsDisabled Specifies if a notification email will be send when the daily data volume cap is met.
 * @property disableIpMasking By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
 * @property forceCustomerStorageForProfiler Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
 * @property internetIngestionEnabled Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
 * @property internetQueryEnabled Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
 * @property localAuthenticationDisabled Disable Non-Azure AD based Auth. Defaults to `false`.
 * @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 Application Insights component. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
 * @property retentionInDays Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
 * @property samplingPercentage Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
 * @property tags A mapping of tags to assign to the resource.
 * @property workspaceId Specifies the id of a log analytics workspace resource.
 * > **NOTE:** This can not be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process)
 */
public data class InsightsArgs(
    public val applicationType: Output? = null,
    public val dailyDataCapInGb: Output? = null,
    public val dailyDataCapNotificationsDisabled: Output? = null,
    public val disableIpMasking: Output? = null,
    public val forceCustomerStorageForProfiler: Output? = null,
    public val internetIngestionEnabled: Output? = null,
    public val internetQueryEnabled: Output? = null,
    public val localAuthenticationDisabled: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val retentionInDays: Output? = null,
    public val samplingPercentage: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appinsights.InsightsArgs =
        com.pulumi.azure.appinsights.InsightsArgs.builder()
            .applicationType(applicationType?.applyValue({ args0 -> args0 }))
            .dailyDataCapInGb(dailyDataCapInGb?.applyValue({ args0 -> args0 }))
            .dailyDataCapNotificationsDisabled(
                dailyDataCapNotificationsDisabled?.applyValue({ args0 ->
                    args0
                }),
            )
            .disableIpMasking(disableIpMasking?.applyValue({ args0 -> args0 }))
            .forceCustomerStorageForProfiler(forceCustomerStorageForProfiler?.applyValue({ args0 -> args0 }))
            .internetIngestionEnabled(internetIngestionEnabled?.applyValue({ args0 -> args0 }))
            .internetQueryEnabled(internetQueryEnabled?.applyValue({ args0 -> args0 }))
            .localAuthenticationDisabled(localAuthenticationDisabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .retentionInDays(retentionInDays?.applyValue({ args0 -> args0 }))
            .samplingPercentage(samplingPercentage?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InsightsArgs].
 */
@PulumiTagMarker
public class InsightsArgsBuilder internal constructor() {
    private var applicationType: Output? = null

    private var dailyDataCapInGb: Output? = null

    private var dailyDataCapNotificationsDisabled: Output? = null

    private var disableIpMasking: Output? = null

    private var forceCustomerStorageForProfiler: Output? = null

    private var internetIngestionEnabled: Output? = null

    private var internetQueryEnabled: Output? = null

    private var localAuthenticationDisabled: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var retentionInDays: Output? = null

    private var samplingPercentage: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

    /**
     * @param value Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
     */
    @JvmName("heyjhmwckcidiuuw")
    public suspend fun applicationType(`value`: Output) {
        this.applicationType = value
    }

    /**
     * @param value Specifies the Application Insights component daily data volume cap in GB.
     */
    @JvmName("nrcdgkdypfccnmhu")
    public suspend fun dailyDataCapInGb(`value`: Output) {
        this.dailyDataCapInGb = value
    }

    /**
     * @param value Specifies if a notification email will be send when the daily data volume cap is met.
     */
    @JvmName("xrqcdjotfhsaeett")
    public suspend fun dailyDataCapNotificationsDisabled(`value`: Output) {
        this.dailyDataCapNotificationsDisabled = value
    }

    /**
     * @param value By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
     */
    @JvmName("fuwlyixwnwtinmtw")
    public suspend fun disableIpMasking(`value`: Output) {
        this.disableIpMasking = value
    }

    /**
     * @param value Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
     */
    @JvmName("lxfdkjbnpxurhjag")
    public suspend fun forceCustomerStorageForProfiler(`value`: Output) {
        this.forceCustomerStorageForProfiler = value
    }

    /**
     * @param value Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
     */
    @JvmName("hjlocsfpjytkohpe")
    public suspend fun internetIngestionEnabled(`value`: Output) {
        this.internetIngestionEnabled = value
    }

    /**
     * @param value Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
     */
    @JvmName("cygabelewamwuuhw")
    public suspend fun internetQueryEnabled(`value`: Output) {
        this.internetQueryEnabled = value
    }

    /**
     * @param value Disable Non-Azure AD based Auth. Defaults to `false`.
     */
    @JvmName("qkcscveqrninrhax")
    public suspend fun localAuthenticationDisabled(`value`: Output) {
        this.localAuthenticationDisabled = value
    }

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

    /**
     * @param value Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
     */
    @JvmName("mypkidiwoswynxqd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
     */
    @JvmName("aaumsjwtlisvjfsa")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
     */
    @JvmName("awvyrvnltbbeaeth")
    public suspend fun retentionInDays(`value`: Output) {
        this.retentionInDays = value
    }

    /**
     * @param value Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
     */
    @JvmName("xdynhvnrbmuupnig")
    public suspend fun samplingPercentage(`value`: Output) {
        this.samplingPercentage = value
    }

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

    /**
     * @param value Specifies the id of a log analytics workspace resource.
     * > **NOTE:** This can not be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process)
     */
    @JvmName("fuucwkhfyiwhprgo")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

    /**
     * @param value Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
     */
    @JvmName("snfcvjiqjmymxulh")
    public suspend fun applicationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationType = mapped
    }

    /**
     * @param value Specifies the Application Insights component daily data volume cap in GB.
     */
    @JvmName("yoinchqgmrkvwexe")
    public suspend fun dailyDataCapInGb(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dailyDataCapInGb = mapped
    }

    /**
     * @param value Specifies if a notification email will be send when the daily data volume cap is met.
     */
    @JvmName("oocqukuuujlwjskr")
    public suspend fun dailyDataCapNotificationsDisabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dailyDataCapNotificationsDisabled = mapped
    }

    /**
     * @param value By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
     */
    @JvmName("yrrowygeltbmlbxk")
    public suspend fun disableIpMasking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableIpMasking = mapped
    }

    /**
     * @param value Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
     */
    @JvmName("rrnphgtcwrlldihq")
    public suspend fun forceCustomerStorageForProfiler(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceCustomerStorageForProfiler = mapped
    }

    /**
     * @param value Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
     */
    @JvmName("fptqicskdmepefav")
    public suspend fun internetIngestionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internetIngestionEnabled = mapped
    }

    /**
     * @param value Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
     */
    @JvmName("mkafkjwnauwqrgou")
    public suspend fun internetQueryEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internetQueryEnabled = mapped
    }

    /**
     * @param value Disable Non-Azure AD based Auth. Defaults to `false`.
     */
    @JvmName("kwrqwelgnhufekrx")
    public suspend fun localAuthenticationDisabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localAuthenticationDisabled = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("uqejuodvgyvuiyaf")
    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 Application Insights component. Changing this forces a new resource to be created.
     */
    @JvmName("cfcvpjygbyreyxdf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
     */
    @JvmName("qlbipibibeuacctr")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
     */
    @JvmName("widtpgneiqelsphx")
    public suspend fun retentionInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionInDays = mapped
    }

    /**
     * @param value Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
     */
    @JvmName("lwcdqivihuedbjle")
    public suspend fun samplingPercentage(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samplingPercentage = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("yommexdqjuiyevtt")
    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("khycdrvforqhilgy")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the id of a log analytics workspace resource.
     * > **NOTE:** This can not be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process)
     */
    @JvmName("oufcxgxgkbolvtkg")
    public suspend fun workspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceId = mapped
    }

    internal fun build(): InsightsArgs = InsightsArgs(
        applicationType = applicationType,
        dailyDataCapInGb = dailyDataCapInGb,
        dailyDataCapNotificationsDisabled = dailyDataCapNotificationsDisabled,
        disableIpMasking = disableIpMasking,
        forceCustomerStorageForProfiler = forceCustomerStorageForProfiler,
        internetIngestionEnabled = internetIngestionEnabled,
        internetQueryEnabled = internetQueryEnabled,
        localAuthenticationDisabled = localAuthenticationDisabled,
        location = location,
        name = name,
        resourceGroupName = resourceGroupName,
        retentionInDays = retentionInDays,
        samplingPercentage = samplingPercentage,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy