"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.ReadOnlyFollowingDatabase = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Class representing a read only following database.
 *
 * Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29.
 */
class ReadOnlyFollowingDatabase extends pulumi.CustomResource {
    /**
     * Get an existing ReadOnlyFollowingDatabase 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 ReadOnlyFollowingDatabase(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ReadOnlyFollowingDatabase.  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'] === ReadOnlyFollowingDatabase.__pulumiType;
    }
    /**
     * Create a ReadOnlyFollowingDatabase 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?.clusterName === undefined && !opts.urn) {
                throw new Error("Missing required property 'clusterName'");
            }
            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["callerRole"] = args?.callerRole;
            resourceInputs["clusterName"] = args?.clusterName;
            resourceInputs["databaseName"] = args?.databaseName;
            resourceInputs["hotCachePeriod"] = args?.hotCachePeriod;
            resourceInputs["kind"] = "ReadOnlyFollowing";
            resourceInputs["location"] = args?.location;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["attachedDatabaseConfigurationName"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["databaseShareOrigin"] = undefined /*out*/;
            resourceInputs["leaderClusterResourceId"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["originalDatabaseName"] = undefined /*out*/;
            resourceInputs["principalsModificationKind"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["softDeletePeriod"] = undefined /*out*/;
            resourceInputs["statistics"] = undefined /*out*/;
            resourceInputs["suspensionDetails"] = undefined /*out*/;
            resourceInputs["tableLevelSharingProperties"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["attachedDatabaseConfigurationName"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["databaseShareOrigin"] = undefined /*out*/;
            resourceInputs["hotCachePeriod"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["leaderClusterResourceId"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["originalDatabaseName"] = undefined /*out*/;
            resourceInputs["principalsModificationKind"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["softDeletePeriod"] = undefined /*out*/;
            resourceInputs["statistics"] = undefined /*out*/;
            resourceInputs["suspensionDetails"] = undefined /*out*/;
            resourceInputs["tableLevelSharingProperties"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:kusto/v20170907privatepreview:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20180907preview:Database" }, { type: "azure-native:kusto/v20180907preview:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20190121:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20190515:Database" }, { type: "azure-native:kusto/v20190515:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20190907:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20190907:ReadWriteDatabase" }, { type: "azure-native:kusto/v20191109:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20191109:ReadWriteDatabase" }, { type: "azure-native:kusto/v20200215:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20200614:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20200918:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20210101:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20210827:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20220201:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20220707:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20221111:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20221229:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20221229:ReadWriteDatabase" }, { type: "azure-native:kusto/v20230502:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20230502:ReadWriteDatabase" }, { type: "azure-native:kusto/v20230815:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20230815:ReadWriteDatabase" }, { type: "azure-native:kusto/v20240413:ReadOnlyFollowingDatabase" }, { type: "azure-native:kusto/v20240413:ReadWriteDatabase" }, { type: "azure-native:kusto:ReadWriteDatabase" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ReadOnlyFollowingDatabase.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ReadOnlyFollowingDatabase = ReadOnlyFollowingDatabase;
/** @internal */
ReadOnlyFollowingDatabase.__pulumiType = 'azure-native:kusto:ReadOnlyFollowingDatabase';
//# sourceMappingURL=data:application/json;base64, 