com.pulumi.azurenative.insights.Component Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.insights;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.insights.ComponentArgs;
import com.pulumi.azurenative.insights.outputs.PrivateLinkScopedResourceResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* 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
*
*
* {@code
* 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
*
*
* {@code
* 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}
* ```
*
*/
@ResourceType(type="azure-native:insights:Component")
public class Component extends com.pulumi.resources.CustomResource {
/**
* Application Insights Unique ID for your Application.
*
*/
@Export(name="appId", refs={String.class}, tree="[0]")
private Output appId;
/**
* @return Application Insights Unique ID for your Application.
*
*/
public Output appId() {
return this.appId;
}
/**
* The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
*
*/
@Export(name="applicationId", refs={String.class}, tree="[0]")
private Output applicationId;
/**
* @return The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
*
*/
public Output applicationId() {
return this.applicationId;
}
/**
* Type of application being monitored.
*
*/
@Export(name="applicationType", refs={String.class}, tree="[0]")
private Output applicationType;
/**
* @return Type of application being monitored.
*
*/
public Output applicationType() {
return this.applicationType;
}
/**
* Application Insights component connection string.
*
*/
@Export(name="connectionString", refs={String.class}, tree="[0]")
private Output connectionString;
/**
* @return Application Insights component connection string.
*
*/
public Output connectionString() {
return this.connectionString;
}
/**
* Creation Date for the Application Insights component, in ISO 8601 format.
*
*/
@Export(name="creationDate", refs={String.class}, tree="[0]")
private Output creationDate;
/**
* @return Creation Date for the Application Insights component, in ISO 8601 format.
*
*/
public Output creationDate() {
return this.creationDate;
}
/**
* Disable IP masking.
*
*/
@Export(name="disableIpMasking", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> disableIpMasking;
/**
* @return Disable IP masking.
*
*/
public Output> disableIpMasking() {
return Codegen.optional(this.disableIpMasking);
}
/**
* Disable Non-AAD based Auth.
*
*/
@Export(name="disableLocalAuth", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> disableLocalAuth;
/**
* @return Disable Non-AAD based Auth.
*
*/
public Output> disableLocalAuth() {
return Codegen.optional(this.disableLocalAuth);
}
/**
* Resource etag
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> etag;
/**
* @return Resource etag
*
*/
public Output> etag() {
return Codegen.optional(this.etag);
}
/**
* 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.
*
*/
@Export(name="flowType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> flowType;
/**
* @return 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.
*
*/
public Output> flowType() {
return Codegen.optional(this.flowType);
}
/**
* Force users to create their own storage account for profiler and debugger.
*
*/
@Export(name="forceCustomerStorageForProfiler", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> forceCustomerStorageForProfiler;
/**
* @return Force users to create their own storage account for profiler and debugger.
*
*/
public Output> forceCustomerStorageForProfiler() {
return Codegen.optional(this.forceCustomerStorageForProfiler);
}
/**
* The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
*
*/
@Export(name="hockeyAppId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> hockeyAppId;
/**
* @return The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
*
*/
public Output> hockeyAppId() {
return Codegen.optional(this.hockeyAppId);
}
/**
* Token used to authenticate communications with between Application Insights and HockeyApp.
*
*/
@Export(name="hockeyAppToken", refs={String.class}, tree="[0]")
private Output hockeyAppToken;
/**
* @return Token used to authenticate communications with between Application Insights and HockeyApp.
*
*/
public Output hockeyAppToken() {
return this.hockeyAppToken;
}
/**
* Purge data immediately after 30 days.
*
*/
@Export(name="immediatePurgeDataOn30Days", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> immediatePurgeDataOn30Days;
/**
* @return Purge data immediately after 30 days.
*
*/
public Output> immediatePurgeDataOn30Days() {
return Codegen.optional(this.immediatePurgeDataOn30Days);
}
/**
* Indicates the flow of the ingestion.
*
*/
@Export(name="ingestionMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> ingestionMode;
/**
* @return Indicates the flow of the ingestion.
*
*/
public Output> ingestionMode() {
return Codegen.optional(this.ingestionMode);
}
/**
* Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component.
*
*/
@Export(name="instrumentationKey", refs={String.class}, tree="[0]")
private Output instrumentationKey;
/**
* @return Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component.
*
*/
public Output instrumentationKey() {
return this.instrumentationKey;
}
/**
* 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.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output kind;
/**
* @return 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.
*
*/
public Output kind() {
return this.kind;
}
/**
* The date which the component got migrated to LA, in ISO 8601 format.
*
*/
@Export(name="laMigrationDate", refs={String.class}, tree="[0]")
private Output laMigrationDate;
/**
* @return The date which the component got migrated to LA, in ISO 8601 format.
*
*/
public Output laMigrationDate() {
return this.laMigrationDate;
}
/**
* Resource location
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Resource location
*
*/
public Output location() {
return this.location;
}
/**
* Azure resource name
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Azure resource name
*
*/
public Output name() {
return this.name;
}
/**
* List of linked private link scope resources.
*
*/
@Export(name="privateLinkScopedResources", refs={List.class,PrivateLinkScopedResourceResponse.class}, tree="[0,1]")
private Output> privateLinkScopedResources;
/**
* @return List of linked private link scope resources.
*
*/
public Output> privateLinkScopedResources() {
return this.privateLinkScopedResources;
}
/**
* Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* The network access type for accessing Application Insights ingestion.
*
*/
@Export(name="publicNetworkAccessForIngestion", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccessForIngestion;
/**
* @return The network access type for accessing Application Insights ingestion.
*
*/
public Output> publicNetworkAccessForIngestion() {
return Codegen.optional(this.publicNetworkAccessForIngestion);
}
/**
* The network access type for accessing Application Insights query.
*
*/
@Export(name="publicNetworkAccessForQuery", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccessForQuery;
/**
* @return The network access type for accessing Application Insights query.
*
*/
public Output> publicNetworkAccessForQuery() {
return Codegen.optional(this.publicNetworkAccessForQuery);
}
/**
* Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
*
*/
@Export(name="requestSource", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> requestSource;
/**
* @return Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.
*
*/
public Output> requestSource() {
return Codegen.optional(this.requestSource);
}
/**
* Retention period in days.
*
*/
@Export(name="retentionInDays", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> retentionInDays;
/**
* @return Retention period in days.
*
*/
public Output> retentionInDays() {
return Codegen.optional(this.retentionInDays);
}
/**
* Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
*
*/
@Export(name="samplingPercentage", refs={Double.class}, tree="[0]")
private Output* @Nullable */ Double> samplingPercentage;
/**
* @return Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
*
*/
public Output> samplingPercentage() {
return Codegen.optional(this.samplingPercentage);
}
/**
* Resource tags
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Azure Tenant Id.
*
*/
@Export(name="tenantId", refs={String.class}, tree="[0]")
private Output tenantId;
/**
* @return Azure Tenant Id.
*
*/
public Output tenantId() {
return this.tenantId;
}
/**
* Azure resource type
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Azure resource type
*
*/
public Output type() {
return this.type;
}
/**
* 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.
*
*/
@Export(name="workspaceResourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> workspaceResourceId;
/**
* @return 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 Output> workspaceResourceId() {
return Codegen.optional(this.workspaceResourceId);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Component(java.lang.String name) {
this(name, ComponentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Component(java.lang.String name, ComponentArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Component(java.lang.String name, ComponentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:Component", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Component(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:Component", name, null, makeResourceOptions(options, id), false);
}
private static ComponentArgs makeArgs(ComponentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ComponentArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:insights/v20150501:Component").build()),
Output.of(Alias.builder().type("azure-native:insights/v20180501preview:Component").build()),
Output.of(Alias.builder().type("azure-native:insights/v20200202:Component").build()),
Output.of(Alias.builder().type("azure-native:insights/v20200202preview:Component").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Component get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Component(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy