"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.CloudExadataInfrastructure = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Cloud Exadata Infrastructure resource in Oracle Cloud Infrastructure Database service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/CloudExadataInfrastructure
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database
 *
 * Creates a cloud Exadata infrastructure resource. This resource is used to create either an [Exadata Cloud Service](https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaoverview.htm) instance or an Autonomous AI Database on dedicated Exadata infrastructure.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testCloudExadataInfrastructure = new oci.database.CloudExadataInfrastructure("test_cloud_exadata_infrastructure", {
 *     availabilityDomain: cloudExadataInfrastructureAvailabilityDomain,
 *     compartmentId: compartmentId,
 *     displayName: cloudExadataInfrastructureDisplayName,
 *     shape: cloudExadataInfrastructureShape,
 *     clusterPlacementGroupId: cloudExadataInfrastructureClusterPlacementGroupId,
 *     computeCount: Number(cloudExadataInfrastructureComputeCount),
 *     customerContacts: [{
 *         email: cloudExadataInfrastructureCustomerContactsEmail,
 *     }],
 *     databaseServerType: cloudExadataInfrastructureDatabaseServerType,
 *     definedTags: cloudExadataInfrastructureDefinedTags,
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     maintenanceWindow: {
 *         customActionTimeoutInMins: Number(cloudExadataInfrastructureMaintenanceWindowCustomActionTimeoutInMins),
 *         daysOfWeeks: [{
 *             name: cloudExadataInfrastructureMaintenanceWindowDaysOfWeekName,
 *         }],
 *         hoursOfDays: cloudExadataInfrastructureMaintenanceWindowHoursOfDay,
 *         isCustomActionTimeoutEnabled: cloudExadataInfrastructureMaintenanceWindowIsCustomActionTimeoutEnabled === "true",
 *         isMonthlyPatchingEnabled: cloudExadataInfrastructureMaintenanceWindowIsMonthlyPatchingEnabled === "true",
 *         leadTimeInWeeks: Number(cloudExadataInfrastructureMaintenanceWindowLeadTimeInWeeks),
 *         months: [{
 *             name: cloudExadataInfrastructureMaintenanceWindowMonthsName,
 *         }],
 *         patchingMode: cloudExadataInfrastructureMaintenanceWindowPatchingMode,
 *         preference: cloudExadataInfrastructureMaintenanceWindowPreference,
 *         weeksOfMonths: cloudExadataInfrastructureMaintenanceWindowWeeksOfMonth,
 *     },
 *     storageCount: Number(cloudExadataInfrastructureStorageCount),
 *     storageServerType: cloudExadataInfrastructureStorageServerType,
 *     subscriptionId: tenantSubscriptionId,
 * });
 * ```
 *
 * ## Import
 *
 * CloudExadataInfrastructures can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Database/cloudExadataInfrastructure:CloudExadataInfrastructure test_cloud_exadata_infrastructure "id"
 * ```
 */
class CloudExadataInfrastructure extends pulumi.CustomResource {
    /**
     * Get an existing CloudExadataInfrastructure 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 CloudExadataInfrastructure(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Database/cloudExadataInfrastructure:CloudExadataInfrastructure';
    /**
     * Returns true if the given object is an instance of CloudExadataInfrastructure.  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'] === CloudExadataInfrastructure.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["activatedStorageCount"] = state?.activatedStorageCount;
            resourceInputs["additionalStorageCount"] = state?.additionalStorageCount;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["availableStorageSizeInGbs"] = state?.availableStorageSizeInGbs;
            resourceInputs["clusterPlacementGroupId"] = state?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["computeCount"] = state?.computeCount;
            resourceInputs["computeModel"] = state?.computeModel;
            resourceInputs["cpuCount"] = state?.cpuCount;
            resourceInputs["customerContacts"] = state?.customerContacts;
            resourceInputs["dataStorageSizeInTbs"] = state?.dataStorageSizeInTbs;
            resourceInputs["databaseServerType"] = state?.databaseServerType;
            resourceInputs["dbNodeStorageSizeInGbs"] = state?.dbNodeStorageSizeInGbs;
            resourceInputs["dbServerVersion"] = state?.dbServerVersion;
            resourceInputs["definedFileSystemConfigurations"] = state?.definedFileSystemConfigurations;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["exascaleConfigs"] = state?.exascaleConfigs;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["isSchedulingPolicyAssociated"] = state?.isSchedulingPolicyAssociated;
            resourceInputs["lastMaintenanceRunId"] = state?.lastMaintenanceRunId;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["maintenanceWindow"] = state?.maintenanceWindow;
            resourceInputs["maxCpuCount"] = state?.maxCpuCount;
            resourceInputs["maxDataStorageInTbs"] = state?.maxDataStorageInTbs;
            resourceInputs["maxDbNodeStorageInGbs"] = state?.maxDbNodeStorageInGbs;
            resourceInputs["maxMemoryInGbs"] = state?.maxMemoryInGbs;
            resourceInputs["memorySizeInGbs"] = state?.memorySizeInGbs;
            resourceInputs["monthlyDbServerVersion"] = state?.monthlyDbServerVersion;
            resourceInputs["monthlyStorageServerVersion"] = state?.monthlyStorageServerVersion;
            resourceInputs["nextMaintenanceRunId"] = state?.nextMaintenanceRunId;
            resourceInputs["shape"] = state?.shape;
            resourceInputs["state"] = state?.state;
            resourceInputs["storageCount"] = state?.storageCount;
            resourceInputs["storageServerType"] = state?.storageServerType;
            resourceInputs["storageServerVersion"] = state?.storageServerVersion;
            resourceInputs["subscriptionId"] = state?.subscriptionId;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["totalStorageSizeInGbs"] = state?.totalStorageSizeInGbs;
        }
        else {
            const args = argsOrState;
            if (args?.availabilityDomain === undefined && !opts.urn) {
                throw new Error("Missing required property 'availabilityDomain'");
            }
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.shape === undefined && !opts.urn) {
                throw new Error("Missing required property 'shape'");
            }
            resourceInputs["availabilityDomain"] = args?.availabilityDomain;
            resourceInputs["clusterPlacementGroupId"] = args?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["computeCount"] = args?.computeCount;
            resourceInputs["customerContacts"] = args?.customerContacts;
            resourceInputs["databaseServerType"] = args?.databaseServerType;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["maintenanceWindow"] = args?.maintenanceWindow;
            resourceInputs["shape"] = args?.shape;
            resourceInputs["storageCount"] = args?.storageCount;
            resourceInputs["storageServerType"] = args?.storageServerType;
            resourceInputs["subscriptionId"] = args?.subscriptionId;
            resourceInputs["activatedStorageCount"] = undefined /*out*/;
            resourceInputs["additionalStorageCount"] = undefined /*out*/;
            resourceInputs["availableStorageSizeInGbs"] = undefined /*out*/;
            resourceInputs["computeModel"] = undefined /*out*/;
            resourceInputs["cpuCount"] = undefined /*out*/;
            resourceInputs["dataStorageSizeInTbs"] = undefined /*out*/;
            resourceInputs["dbNodeStorageSizeInGbs"] = undefined /*out*/;
            resourceInputs["dbServerVersion"] = undefined /*out*/;
            resourceInputs["definedFileSystemConfigurations"] = undefined /*out*/;
            resourceInputs["exascaleConfigs"] = undefined /*out*/;
            resourceInputs["isSchedulingPolicyAssociated"] = undefined /*out*/;
            resourceInputs["lastMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["maxCpuCount"] = undefined /*out*/;
            resourceInputs["maxDataStorageInTbs"] = undefined /*out*/;
            resourceInputs["maxDbNodeStorageInGbs"] = undefined /*out*/;
            resourceInputs["maxMemoryInGbs"] = undefined /*out*/;
            resourceInputs["memorySizeInGbs"] = undefined /*out*/;
            resourceInputs["monthlyDbServerVersion"] = undefined /*out*/;
            resourceInputs["monthlyStorageServerVersion"] = undefined /*out*/;
            resourceInputs["nextMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["storageServerVersion"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["totalStorageSizeInGbs"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(CloudExadataInfrastructure.__pulumiType, name, resourceInputs, opts);
    }
}
exports.CloudExadataInfrastructure = CloudExadataInfrastructure;
//# sourceMappingURL=cloudExadataInfrastructure.js.map