"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExadataInfrastructure = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a Cloud Exadata Infrastructure.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleExadataInfrastructure = new azure.oracle.ExadataInfrastructure("example", {
 *     name: "example-exadata-infra",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     zones: ["1"],
 *     displayName: "example-exadata-infra",
 *     storageCount: 3,
 *     computeCount: 2,
 *     shape: "Exadata.X11M",
 *     databaseServerType: "X11M",
 *     storageServerType: "X11M-HC",
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Oracle.Database` - 2025-09-01
 *
 * ## Import
 *
 * Cloud Exadata Infrastructures can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:oracle/exadataInfrastructure:ExadataInfrastructure example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup/providers/Oracle.Database/cloudExadataInfrastructures/cloudExadataInfrastructures1
 * ```
 */
class ExadataInfrastructure extends pulumi.CustomResource {
    /**
     * Get an existing ExadataInfrastructure 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new ExadataInfrastructure(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:oracle/exadataInfrastructure:ExadataInfrastructure';
    /**
     * Returns true if the given object is an instance of ExadataInfrastructure.  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'] === ExadataInfrastructure.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["computeCount"] = state?.computeCount;
            resourceInputs["customerContacts"] = state?.customerContacts;
            resourceInputs["databaseServerType"] = state?.databaseServerType;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["location"] = state?.location;
            resourceInputs["maintenanceWindows"] = state?.maintenanceWindows;
            resourceInputs["name"] = state?.name;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["shape"] = state?.shape;
            resourceInputs["storageCount"] = state?.storageCount;
            resourceInputs["storageServerType"] = state?.storageServerType;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["zones"] = state?.zones;
        }
        else {
            const args = argsOrState;
            if (args?.computeCount === undefined && !opts.urn) {
                throw new Error("Missing required property 'computeCount'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.shape === undefined && !opts.urn) {
                throw new Error("Missing required property 'shape'");
            }
            if (args?.storageCount === undefined && !opts.urn) {
                throw new Error("Missing required property 'storageCount'");
            }
            if (args?.zones === undefined && !opts.urn) {
                throw new Error("Missing required property 'zones'");
            }
            resourceInputs["computeCount"] = args?.computeCount;
            resourceInputs["customerContacts"] = args?.customerContacts;
            resourceInputs["databaseServerType"] = args?.databaseServerType;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["location"] = args?.location;
            resourceInputs["maintenanceWindows"] = args?.maintenanceWindows;
            resourceInputs["name"] = args?.name;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["shape"] = args?.shape;
            resourceInputs["storageCount"] = args?.storageCount;
            resourceInputs["storageServerType"] = args?.storageServerType;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["zones"] = args?.zones;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(ExadataInfrastructure.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ExadataInfrastructure = ExadataInfrastructure;
//# sourceMappingURL=exadataInfrastructure.js.map