Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.ComponentArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.ApplicationType
import com.pulumi.azurenative.insights.kotlin.enums.FlowType
import com.pulumi.azurenative.insights.kotlin.enums.IngestionMode
import com.pulumi.azurenative.insights.kotlin.enums.PublicNetworkAccessType
import com.pulumi.azurenative.insights.kotlin.enums.RequestSource
import com.pulumi.core.Either
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
/**
* An Application Insights component definition.
* Azure REST API version: 2020-02-02. Prior API version in Azure Native 1.x: 2015-05-01.
* Other available API versions: 2020-02-02-preview.
* ## Example Usage
* ### ComponentCreate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var component = new AzureNative.Insights.Component("component", new()
* {
* ApplicationType = AzureNative.Insights.ApplicationType.Web,
* FlowType = AzureNative.Insights.FlowType.Bluefield,
* Kind = "web",
* Location = "South Central US",
* RequestSource = AzureNative.Insights.RequestSource.Rest,
* ResourceGroupName = "my-resource-group",
* ResourceName = "my-component",
* WorkspaceResourceId = "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace",
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewComponent(ctx, "component", &insights.ComponentArgs{
* ApplicationType: pulumi.String(insights.ApplicationTypeWeb),
* FlowType: pulumi.String(insights.FlowTypeBluefield),
* Kind: pulumi.String("web"),
* Location: pulumi.String("South Central US"),
* RequestSource: pulumi.String(insights.RequestSourceRest),
* ResourceGroupName: pulumi.String("my-resource-group"),
* ResourceName: pulumi.String("my-component"),
* WorkspaceResourceId: pulumi.String("/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace"),
* })
* 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.azurenative.insights.Component;
* import com.pulumi.azurenative.insights.ComponentArgs;
* 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 component = new Component("component", ComponentArgs.builder()
* .applicationType("web")
* .flowType("Bluefield")
* .kind("web")
* .location("South Central US")
* .requestSource("rest")
* .resourceGroupName("my-resource-group")
* .resourceName("my-component")
* .workspaceResourceId("/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
* .build());
* }
* }
* ```
* ### ComponentUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var component = new AzureNative.Insights.Component("component", new()
* {
* Kind = "web",
* Location = "South Central US",
* ResourceGroupName = "my-resource-group",
* ResourceName = "my-component",
* Tags =
* {
* { "ApplicationGatewayType", "Internal-Only" },
* { "BillingEntity", "Self" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewComponent(ctx, "component", &insights.ComponentArgs{
* Kind: pulumi.String("web"),
* Location: pulumi.String("South Central US"),
* ResourceGroupName: pulumi.String("my-resource-group"),
* ResourceName: pulumi.String("my-component"),
* Tags: pulumi.StringMap{
* "ApplicationGatewayType": pulumi.String("Internal-Only"),
* "BillingEntity": pulumi.String("Self"),
* },
* })
* 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.azurenative.insights.Component;
* import com.pulumi.azurenative.insights.ComponentArgs;
* 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 component = new Component("component", ComponentArgs.builder()
* .kind("web")
* .location("South Central US")
* .resourceGroupName("my-resource-group")
* .resourceName("my-component")
* .tags(Map.ofEntries(
* Map.entry("ApplicationGatewayType", "Internal-Only"),
* Map.entry("BillingEntity", "Self")
* ))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:Component my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}
* ```
* @property applicationType Type of application being monitored.
* @property disableIpMasking Disable IP masking.
* @property disableLocalAuth Disable Non-AAD based Auth.
* @property flowType Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.
* @property forceCustomerStorageForProfiler Force users to create their own storage account for profiler and debugger.
* @property hockeyAppId The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
* @property immediatePurgeDataOn30Days Purge data immediately after 30 days.
* @property ingestionMode Indicates the flow of the ingestion.
* @property kind The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
* @property location Resource location
* @property publicNetworkAccessForIngestion The network access type for accessing Application Insights ingestion.
* @property publicNetworkAccessForQuery The network access type for accessing Application Insights query.
* @property requestSource Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property resourceName The name of the Application Insights component resource.
* @property retentionInDays Retention period in days.
* @property samplingPercentage Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
* @property tags Resource tags
* @property workspaceResourceId Resource Id of the log analytics workspace which the data will be ingested to. This property is required to create an application with this API version. Applications from older versions will not have this property.
*/
public data class ComponentArgs(
public val applicationType: Output>? = null,
public val disableIpMasking: Output? = null,
public val disableLocalAuth: Output? = null,
public val flowType: Output>? = null,
public val forceCustomerStorageForProfiler: Output? = null,
public val hockeyAppId: Output? = null,
public val immediatePurgeDataOn30Days: Output? = null,
public val ingestionMode: Output>? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val publicNetworkAccessForIngestion: Output>? =
null,
public val publicNetworkAccessForQuery: Output>? = null,
public val requestSource: Output>? = null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
public val retentionInDays: Output? = null,
public val samplingPercentage: Output? = null,
public val tags: Output