"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.DatabaseAccountSqlDatabase = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An Azure Cosmos DB SQL database.
 *
 * Uses Azure REST API version 2016-03-31.
 *
 * Other available API versions: 2015-04-01, 2015-04-08, 2015-11-06, 2016-03-19. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cosmosdb [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class DatabaseAccountSqlDatabase extends pulumi.CustomResource {
    /**
     * Get an existing DatabaseAccountSqlDatabase 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 DatabaseAccountSqlDatabase(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of DatabaseAccountSqlDatabase.  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'] === DatabaseAccountSqlDatabase.__pulumiType;
    }
    /**
     * Create a DatabaseAccountSqlDatabase 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 || args.accountName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'accountName'");
            }
            if ((!args || args.options === undefined) && !opts.urn) {
                throw new Error("Missing required property 'options'");
            }
            if ((!args || args.resource === undefined) && !opts.urn) {
                throw new Error("Missing required property 'resource'");
            }
            if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["accountName"] = args ? args.accountName : undefined;
            resourceInputs["databaseName"] = args ? args.databaseName : undefined;
            resourceInputs["options"] = args ? args.options : undefined;
            resourceInputs["resource"] = args ? args.resource : undefined;
            resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["colls"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["rid"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["ts"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["users"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["colls"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["rid"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["ts"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["users"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:cosmosdb/v20150401:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20150408:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20151106:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20160319:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20160331:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20190801:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20191212:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20200301:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20200401:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20200601preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20200901:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210115:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210301preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210315:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210401preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210415:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210515:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210615:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20210701preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20211015:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20211015preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20211115preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20220215preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20220515:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20220515preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20220815:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20220815preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20221115:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20221115preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230301preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230315:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230315preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230415:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230915:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20230915preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20231115:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20231115preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20240215preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20240515:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20240515preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20240815:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20240901preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20241115:DatabaseAccountSqlDatabase" }, { type: "azure-native:cosmosdb/v20241201preview:DatabaseAccountSqlDatabase" }, { type: "azure-native:documentdb/v20230315preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20230415:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20230915:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20230915preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20231115:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20231115preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20240215preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20240515:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20240515preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20240815:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20240901preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20241115:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb/v20241201preview:SqlResourceSqlDatabase" }, { type: "azure-native:documentdb:SqlResourceSqlDatabase" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(DatabaseAccountSqlDatabase.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DatabaseAccountSqlDatabase = DatabaseAccountSqlDatabase;
/** @internal */
DatabaseAccountSqlDatabase.__pulumiType = 'azure-native:cosmosdb:DatabaseAccountSqlDatabase';
//# sourceMappingURL=data:application/json;base64, 