"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.CloudAutonomousVmCluster = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Cloud Autonomous Vm Cluster resource in Oracle Cloud Infrastructure Database service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/CloudAutonomousVmCluster
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database
 *
 * Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see [CreateAutonomousVmCluster](https://docs.cloud.oracle.com/iaas/api/#/en/database/latest/AutonomousVmCluster/CreateAutonomousVmCluster).
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testCloudAutonomousVmCluster = new oci.database.CloudAutonomousVmCluster("test_cloud_autonomous_vm_cluster", {
 *     cloudExadataInfrastructureId: testCloudExadataInfrastructure.id,
 *     compartmentId: compartmentId,
 *     displayName: cloudAutonomousVmClusterDisplayName,
 *     subnetId: testSubnet.id,
 *     autonomousDataStorageSizeInTbs: cloudAutonomousVmClusterAutonomousDataStorageSizeInTbs,
 *     clusterTimeZone: cloudAutonomousVmClusterClusterTimeZone,
 *     computeModel: cloudAutonomousVmClusterComputeModel,
 *     cpuCoreCountPerNode: Number(cloudAutonomousVmClusterCpuCoreCountPerNode),
 *     dbServers: cloudAutonomousVmClusterDbServers,
 *     definedTags: cloudAutonomousVmClusterDefinedTags,
 *     description: cloudAutonomousVmClusterDescription,
 *     distributionAlgorithm: cloudAutonomousVmClusterDistributionAlgorithm,
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     isMtlsEnabledVmCluster: cloudAutonomousVmClusterIsMtlsEnabledVmCluster === "true",
 *     licenseModel: cloudAutonomousVmClusterLicenseModel,
 *     maintenanceWindowDetails: {
 *         customActionTimeoutInMins: Number(cloudAutonomousVmClusterMaintenanceWindowDetailsCustomActionTimeoutInMins),
 *         daysOfWeeks: [{
 *             name: cloudAutonomousVmClusterMaintenanceWindowDetailsDaysOfWeekName,
 *         }],
 *         hoursOfDays: cloudAutonomousVmClusterMaintenanceWindowDetailsHoursOfDay,
 *         isCustomActionTimeoutEnabled: cloudAutonomousVmClusterMaintenanceWindowDetailsIsCustomActionTimeoutEnabled === "true",
 *         isMonthlyPatchingEnabled: cloudAutonomousVmClusterMaintenanceWindowDetailsIsMonthlyPatchingEnabled === "true",
 *         leadTimeInWeeks: Number(cloudAutonomousVmClusterMaintenanceWindowDetailsLeadTimeInWeeks),
 *         months: [{
 *             name: cloudAutonomousVmClusterMaintenanceWindowDetailsMonthsName,
 *         }],
 *         patchingMode: cloudAutonomousVmClusterMaintenanceWindowDetailsPatchingMode,
 *         preference: cloudAutonomousVmClusterMaintenanceWindowDetailsPreference,
 *         skipRus: cloudAutonomousVmClusterMaintenanceWindowDetailsSkipRu,
 *         weeksOfMonths: cloudAutonomousVmClusterMaintenanceWindowDetailsWeeksOfMonth,
 *     },
 *     memoryPerOracleComputeUnitInGbs: Number(cloudAutonomousVmClusterMemoryPerOracleComputeUnitInGbs),
 *     nsgIds: cloudAutonomousVmClusterNsgIds,
 *     opcDryRun: cloudAutonomousVmClusterOpcDryRun === "true",
 *     scanListenerPortNonTls: Number(cloudAutonomousVmClusterScanListenerPortNonTls),
 *     scanListenerPortTls: Number(cloudAutonomousVmClusterScanListenerPortTls),
 *     securityAttributes: cloudAutonomousVmClusterSecurityAttributes,
 *     sgaPercentage: cloudAutonomousVmClusterSgaPercentage,
 *     subscriptionId: testSubscription.id,
 *     totalContainerDatabases: Number(cloudAutonomousVmClusterTotalContainerDatabases),
 * });
 * ```
 *
 * ## Import
 *
 * CloudAutonomousVmClusters can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Database/cloudAutonomousVmCluster:CloudAutonomousVmCluster test_cloud_autonomous_vm_cluster "id"
 * ```
 */
class CloudAutonomousVmCluster extends pulumi.CustomResource {
    /**
     * Get an existing CloudAutonomousVmCluster 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 CloudAutonomousVmCluster(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Database/cloudAutonomousVmCluster:CloudAutonomousVmCluster';
    /**
     * Returns true if the given object is an instance of CloudAutonomousVmCluster.  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'] === CloudAutonomousVmCluster.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["autonomousDataStoragePercentage"] = state?.autonomousDataStoragePercentage;
            resourceInputs["autonomousDataStorageSizeInTbs"] = state?.autonomousDataStorageSizeInTbs;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["availableAutonomousDataStorageSizeInTbs"] = state?.availableAutonomousDataStorageSizeInTbs;
            resourceInputs["availableContainerDatabases"] = state?.availableContainerDatabases;
            resourceInputs["availableCpus"] = state?.availableCpus;
            resourceInputs["cloudExadataInfrastructureId"] = state?.cloudExadataInfrastructureId;
            resourceInputs["clusterTimeZone"] = state?.clusterTimeZone;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["computeModel"] = state?.computeModel;
            resourceInputs["cpuCoreCount"] = state?.cpuCoreCount;
            resourceInputs["cpuCoreCountPerNode"] = state?.cpuCoreCountPerNode;
            resourceInputs["cpuPercentage"] = state?.cpuPercentage;
            resourceInputs["dataStorageSizeInGb"] = state?.dataStorageSizeInGb;
            resourceInputs["dataStorageSizeInTbs"] = state?.dataStorageSizeInTbs;
            resourceInputs["dbNodeStorageSizeInGbs"] = state?.dbNodeStorageSizeInGbs;
            resourceInputs["dbServers"] = state?.dbServers;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["description"] = state?.description;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["distributionAlgorithm"] = state?.distributionAlgorithm;
            resourceInputs["domain"] = state?.domain;
            resourceInputs["exadataStorageInTbsLowestScaledValue"] = state?.exadataStorageInTbsLowestScaledValue;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["hostname"] = state?.hostname;
            resourceInputs["isMtlsEnabledVmCluster"] = state?.isMtlsEnabledVmCluster;
            resourceInputs["lastMaintenanceRunId"] = state?.lastMaintenanceRunId;
            resourceInputs["lastUpdateHistoryEntryId"] = state?.lastUpdateHistoryEntryId;
            resourceInputs["licenseModel"] = state?.licenseModel;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["maintenanceWindowDetails"] = state?.maintenanceWindowDetails;
            resourceInputs["maintenanceWindows"] = state?.maintenanceWindows;
            resourceInputs["maxAcdsLowestScaledValue"] = state?.maxAcdsLowestScaledValue;
            resourceInputs["memoryPerComputeUnitInGbs"] = state?.memoryPerComputeUnitInGbs;
            resourceInputs["memoryPerOracleComputeUnitInGbs"] = state?.memoryPerOracleComputeUnitInGbs;
            resourceInputs["memorySizeInGbs"] = state?.memorySizeInGbs;
            resourceInputs["multiCloudIdentityConnectorConfigs"] = state?.multiCloudIdentityConnectorConfigs;
            resourceInputs["nextMaintenanceRunId"] = state?.nextMaintenanceRunId;
            resourceInputs["nodeCount"] = state?.nodeCount;
            resourceInputs["nonProvisionableAutonomousContainerDatabases"] = state?.nonProvisionableAutonomousContainerDatabases;
            resourceInputs["nsgIds"] = state?.nsgIds;
            resourceInputs["ocpuCount"] = state?.ocpuCount;
            resourceInputs["ocpusLowestScaledValue"] = state?.ocpusLowestScaledValue;
            resourceInputs["opcDryRun"] = state?.opcDryRun;
            resourceInputs["provisionableAutonomousContainerDatabases"] = state?.provisionableAutonomousContainerDatabases;
            resourceInputs["provisionedAutonomousContainerDatabases"] = state?.provisionedAutonomousContainerDatabases;
            resourceInputs["provisionedCpus"] = state?.provisionedCpus;
            resourceInputs["reclaimableCpus"] = state?.reclaimableCpus;
            resourceInputs["registerPkcsTrigger"] = state?.registerPkcsTrigger;
            resourceInputs["reservedCpus"] = state?.reservedCpus;
            resourceInputs["scanListenerPortNonTls"] = state?.scanListenerPortNonTls;
            resourceInputs["scanListenerPortTls"] = state?.scanListenerPortTls;
            resourceInputs["securityAttributes"] = state?.securityAttributes;
            resourceInputs["sgaPercentage"] = state?.sgaPercentage;
            resourceInputs["shape"] = state?.shape;
            resourceInputs["state"] = state?.state;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["subscriptionId"] = state?.subscriptionId;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["tdeKeyStoreType"] = state?.tdeKeyStoreType;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeDatabaseSslCertificateExpires"] = state?.timeDatabaseSslCertificateExpires;
            resourceInputs["timeOrdsCertificateExpires"] = state?.timeOrdsCertificateExpires;
            resourceInputs["timeUpdated"] = state?.timeUpdated;
            resourceInputs["totalAutonomousDataStorageInTbs"] = state?.totalAutonomousDataStorageInTbs;
            resourceInputs["totalContainerDatabases"] = state?.totalContainerDatabases;
            resourceInputs["totalCpus"] = state?.totalCpus;
            resourceInputs["unregisterPkcsTrigger"] = state?.unregisterPkcsTrigger;
        }
        else {
            const args = argsOrState;
            if (args?.cloudExadataInfrastructureId === undefined && !opts.urn) {
                throw new Error("Missing required property 'cloudExadataInfrastructureId'");
            }
            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?.subnetId === undefined && !opts.urn) {
                throw new Error("Missing required property 'subnetId'");
            }
            resourceInputs["autonomousDataStorageSizeInTbs"] = args?.autonomousDataStorageSizeInTbs;
            resourceInputs["cloudExadataInfrastructureId"] = args?.cloudExadataInfrastructureId;
            resourceInputs["clusterTimeZone"] = args?.clusterTimeZone;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["computeModel"] = args?.computeModel;
            resourceInputs["cpuCoreCountPerNode"] = args?.cpuCoreCountPerNode;
            resourceInputs["dbServers"] = args?.dbServers;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["description"] = args?.description;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["distributionAlgorithm"] = args?.distributionAlgorithm;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["isMtlsEnabledVmCluster"] = args?.isMtlsEnabledVmCluster;
            resourceInputs["licenseModel"] = args?.licenseModel;
            resourceInputs["maintenanceWindowDetails"] = args?.maintenanceWindowDetails;
            resourceInputs["memoryPerOracleComputeUnitInGbs"] = args?.memoryPerOracleComputeUnitInGbs;
            resourceInputs["nsgIds"] = args?.nsgIds;
            resourceInputs["opcDryRun"] = args?.opcDryRun;
            resourceInputs["registerPkcsTrigger"] = args?.registerPkcsTrigger;
            resourceInputs["scanListenerPortNonTls"] = args?.scanListenerPortNonTls;
            resourceInputs["scanListenerPortTls"] = args?.scanListenerPortTls;
            resourceInputs["securityAttributes"] = args?.securityAttributes;
            resourceInputs["sgaPercentage"] = args?.sgaPercentage;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["subscriptionId"] = args?.subscriptionId;
            resourceInputs["tdeKeyStoreType"] = args?.tdeKeyStoreType;
            resourceInputs["timeUpdated"] = args?.timeUpdated;
            resourceInputs["totalContainerDatabases"] = args?.totalContainerDatabases;
            resourceInputs["unregisterPkcsTrigger"] = args?.unregisterPkcsTrigger;
            resourceInputs["autonomousDataStoragePercentage"] = undefined /*out*/;
            resourceInputs["availabilityDomain"] = undefined /*out*/;
            resourceInputs["availableAutonomousDataStorageSizeInTbs"] = undefined /*out*/;
            resourceInputs["availableContainerDatabases"] = undefined /*out*/;
            resourceInputs["availableCpus"] = undefined /*out*/;
            resourceInputs["cpuCoreCount"] = undefined /*out*/;
            resourceInputs["cpuPercentage"] = undefined /*out*/;
            resourceInputs["dataStorageSizeInGb"] = undefined /*out*/;
            resourceInputs["dataStorageSizeInTbs"] = undefined /*out*/;
            resourceInputs["dbNodeStorageSizeInGbs"] = undefined /*out*/;
            resourceInputs["domain"] = undefined /*out*/;
            resourceInputs["exadataStorageInTbsLowestScaledValue"] = undefined /*out*/;
            resourceInputs["hostname"] = undefined /*out*/;
            resourceInputs["lastMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["lastUpdateHistoryEntryId"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["maintenanceWindows"] = undefined /*out*/;
            resourceInputs["maxAcdsLowestScaledValue"] = undefined /*out*/;
            resourceInputs["memoryPerComputeUnitInGbs"] = undefined /*out*/;
            resourceInputs["memorySizeInGbs"] = undefined /*out*/;
            resourceInputs["multiCloudIdentityConnectorConfigs"] = undefined /*out*/;
            resourceInputs["nextMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["nodeCount"] = undefined /*out*/;
            resourceInputs["nonProvisionableAutonomousContainerDatabases"] = undefined /*out*/;
            resourceInputs["ocpuCount"] = undefined /*out*/;
            resourceInputs["ocpusLowestScaledValue"] = undefined /*out*/;
            resourceInputs["provisionableAutonomousContainerDatabases"] = undefined /*out*/;
            resourceInputs["provisionedAutonomousContainerDatabases"] = undefined /*out*/;
            resourceInputs["provisionedCpus"] = undefined /*out*/;
            resourceInputs["reclaimableCpus"] = undefined /*out*/;
            resourceInputs["reservedCpus"] = undefined /*out*/;
            resourceInputs["shape"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeDatabaseSslCertificateExpires"] = undefined /*out*/;
            resourceInputs["timeOrdsCertificateExpires"] = undefined /*out*/;
            resourceInputs["totalAutonomousDataStorageInTbs"] = undefined /*out*/;
            resourceInputs["totalCpus"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(CloudAutonomousVmCluster.__pulumiType, name, resourceInputs, opts);
    }
}
exports.CloudAutonomousVmCluster = CloudAutonomousVmCluster;
//# sourceMappingURL=cloudAutonomousVmCluster.js.map