"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Component = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An Application Insights component definition.
 *
 * Uses Azure REST API version 2020-02-02.
 *
 * Other available API versions: 2015-05-01, 2018-05-01-preview, 2020-02-02-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native applicationinsights [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class Component extends pulumi.CustomResource {
    /**
     * Get an existing Component 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new Component(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Component.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === Component.__pulumiType;
    }
    /**
     * Create a Component resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.applicationType === undefined && !opts.urn) {
                throw new Error("Missing required property 'applicationType'");
            }
            if (args?.kind === undefined && !opts.urn) {
                throw new Error("Missing required property 'kind'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["applicationType"] = (args?.applicationType) ?? "web";
            resourceInputs["disableIpMasking"] = args?.disableIpMasking;
            resourceInputs["disableLocalAuth"] = args?.disableLocalAuth;
            resourceInputs["flowType"] = (args?.flowType) ?? "Bluefield";
            resourceInputs["forceCustomerStorageForProfiler"] = args?.forceCustomerStorageForProfiler;
            resourceInputs["hockeyAppId"] = args?.hockeyAppId;
            resourceInputs["immediatePurgeDataOn30Days"] = args?.immediatePurgeDataOn30Days;
            resourceInputs["ingestionMode"] = (args?.ingestionMode) ?? "LogAnalytics";
            resourceInputs["kind"] = args?.kind;
            resourceInputs["location"] = args?.location;
            resourceInputs["publicNetworkAccessForIngestion"] = args?.publicNetworkAccessForIngestion;
            resourceInputs["publicNetworkAccessForQuery"] = args?.publicNetworkAccessForQuery;
            resourceInputs["requestSource"] = (args?.requestSource) ?? "rest";
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["resourceName"] = args?.resourceName;
            resourceInputs["retentionInDays"] = args?.retentionInDays;
            resourceInputs["samplingPercentage"] = args?.samplingPercentage;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["workspaceResourceId"] = args?.workspaceResourceId;
            resourceInputs["appId"] = undefined /*out*/;
            resourceInputs["applicationId"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["connectionString"] = undefined /*out*/;
            resourceInputs["creationDate"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["hockeyAppToken"] = undefined /*out*/;
            resourceInputs["instrumentationKey"] = undefined /*out*/;
            resourceInputs["laMigrationDate"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["privateLinkScopedResources"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["tenantId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["appId"] = undefined /*out*/;
            resourceInputs["applicationId"] = undefined /*out*/;
            resourceInputs["applicationType"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["connectionString"] = undefined /*out*/;
            resourceInputs["creationDate"] = undefined /*out*/;
            resourceInputs["disableIpMasking"] = undefined /*out*/;
            resourceInputs["disableLocalAuth"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["flowType"] = undefined /*out*/;
            resourceInputs["forceCustomerStorageForProfiler"] = undefined /*out*/;
            resourceInputs["hockeyAppId"] = undefined /*out*/;
            resourceInputs["hockeyAppToken"] = undefined /*out*/;
            resourceInputs["immediatePurgeDataOn30Days"] = undefined /*out*/;
            resourceInputs["ingestionMode"] = undefined /*out*/;
            resourceInputs["instrumentationKey"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["laMigrationDate"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["privateLinkScopedResources"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["publicNetworkAccessForIngestion"] = undefined /*out*/;
            resourceInputs["publicNetworkAccessForQuery"] = undefined /*out*/;
            resourceInputs["requestSource"] = undefined /*out*/;
            resourceInputs["retentionInDays"] = undefined /*out*/;
            resourceInputs["samplingPercentage"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["tenantId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["workspaceResourceId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:applicationinsights/v20150501:Component" }, { type: "azure-native:applicationinsights/v20180501preview:Component" }, { type: "azure-native:applicationinsights/v20200202:Component" }, { type: "azure-native:applicationinsights/v20200202preview:Component" }, { type: "azure-native:insights/v20200202:Component" }, { type: "azure-native:insights/v20200202preview:Component" }, { type: "azure-native:insights:Component" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(Component.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Component = Component;
/** @internal */
Component.__pulumiType = 'azure-native:applicationinsights:Component';
//# sourceMappingURL=data:application/json;base64, 