Component Args
data class ComponentArgs(val applicationType: Output<Either<String, ApplicationType>>? = null, val disableIpMasking: Output<Boolean>? = null, val disableLocalAuth: Output<Boolean>? = null, val flowType: Output<Either<String, FlowType>>? = null, val forceCustomerStorageForProfiler: Output<Boolean>? = null, val hockeyAppId: Output<String>? = null, val immediatePurgeDataOn30Days: Output<Boolean>? = null, val ingestionMode: Output<Either<String, IngestionMode>>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val publicNetworkAccessForIngestion: Output<Either<String, PublicNetworkAccessType>>? = null, val publicNetworkAccessForQuery: Output<Either<String, PublicNetworkAccessType>>? = null, val requestSource: Output<Either<String, RequestSource>>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val retentionInDays: Output<Int>? = null, val samplingPercentage: Output<Double>? = null, val tags: Output<Map<String, String>>? = null, val workspaceResourceId: Output<String>? = null) : ConvertibleToJava<ComponentArgs>
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
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 = "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",
});
});
Content copied to clipboard
package main
import (
"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("web"),
FlowType: pulumi.String("Bluefield"),
Kind: pulumi.String("web"),
Location: pulumi.String("South Central US"),
RequestSource: pulumi.String("rest"),
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
ComponentUpdate
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" },
},
});
});
Content copied to clipboard
package main
import (
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:Component my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun ComponentArgs(applicationType: Output<Either<String, ApplicationType>>? = null, disableIpMasking: Output<Boolean>? = null, disableLocalAuth: Output<Boolean>? = null, flowType: Output<Either<String, FlowType>>? = null, forceCustomerStorageForProfiler: Output<Boolean>? = null, hockeyAppId: Output<String>? = null, immediatePurgeDataOn30Days: Output<Boolean>? = null, ingestionMode: Output<Either<String, IngestionMode>>? = null, kind: Output<String>? = null, location: Output<String>? = null, publicNetworkAccessForIngestion: Output<Either<String, PublicNetworkAccessType>>? = null, publicNetworkAccessForQuery: Output<Either<String, PublicNetworkAccessType>>? = null, requestSource: Output<Either<String, RequestSource>>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, retentionInDays: Output<Int>? = null, samplingPercentage: Output<Double>? = null, tags: Output<Map<String, String>>? = null, workspaceResourceId: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard