"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.AutonomousContainerDatabaseAddStandby = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Autonomous Container Database Add Standby resource in Oracle Cloud Infrastructure Database service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/AutonomousContainerDatabaseAddStandby
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database
 *
 * Add a standby Autonomous Container Database. For more information about Autonomous Data Guard,see
 * [Protect Critical Databases from Failures and Disasters Using Autonomous Data Guard](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbau/GUID-C57B9A6E-7471-4CDC-8F10-B8386538E31C).
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testAutonomousContainerDatabaseAddStandby = new oci.database.AutonomousContainerDatabaseAddStandby("test_autonomous_container_database_add_standby", {
 *     autonomousContainerDatabaseId: testAutonomousContainerDatabase.id,
 *     fastStartFailOverLagLimitInSeconds: Number(autonomousContainerDatabaseAddStandbyFastStartFailOverLagLimitInSeconds),
 *     isAutomaticFailoverEnabled: autonomousContainerDatabaseAddStandbyIsAutomaticFailoverEnabled === "true",
 *     peerAutonomousContainerDatabaseBackupConfig: {
 *         backupDestinationDetails: [{
 *             type: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsType,
 *             backupRetentionPolicyOnTerminate: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsBackupRetentionPolicyOnTerminate,
 *             dbrsPolicyId: testPolicy.id,
 *             id: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsId,
 *             internetProxy: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsInternetProxy,
 *             isRemote: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsIsRemote,
 *             isRetentionLockEnabled: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsIsRetentionLockEnabled === "true",
 *             remoteRegion: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsRemoteRegion,
 *             vpcPassword: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsVpcPassword,
 *             vpcUser: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigBackupDestinationDetailsVpcUser,
 *         }],
 *         recoveryWindowInDays: Number(autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseBackupConfigRecoveryWindowInDays),
 *     },
 *     peerAutonomousContainerDatabaseCompartmentId: testCompartment.id,
 *     peerAutonomousContainerDatabaseDisplayName: autonomousContainerDatabaseAddStandbyPeerAutonomousContainerDatabaseDisplayName,
 *     peerAutonomousVmClusterId: testAutonomousVmCluster.id,
 *     peerCloudAutonomousVmClusterId: testCloudAutonomousVmCluster.id,
 *     peerDbUniqueName: autonomousContainerDatabaseAddStandbyPeerDbUniqueName,
 *     protectionMode: autonomousContainerDatabaseAddStandbyProtectionMode,
 *     standbyMaintenanceBufferInDays: Number(autonomousContainerDatabaseAddStandbyStandbyMaintenanceBufferInDays),
 * });
 * ```
 *
 * ## Import
 *
 * AutonomousContainerDatabaseAddStandby can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Database/autonomousContainerDatabaseAddStandby:AutonomousContainerDatabaseAddStandby test_autonomous_container_database_add_standby "id"
 * ```
 */
class AutonomousContainerDatabaseAddStandby extends pulumi.CustomResource {
    /**
     * Get an existing AutonomousContainerDatabaseAddStandby 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 AutonomousContainerDatabaseAddStandby(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Database/autonomousContainerDatabaseAddStandby:AutonomousContainerDatabaseAddStandby';
    /**
     * Returns true if the given object is an instance of AutonomousContainerDatabaseAddStandby.  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'] === AutonomousContainerDatabaseAddStandby.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["autonomousContainerDatabaseId"] = state?.autonomousContainerDatabaseId;
            resourceInputs["autonomousExadataInfrastructureId"] = state?.autonomousExadataInfrastructureId;
            resourceInputs["autonomousVmClusterId"] = state?.autonomousVmClusterId;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["availableCpus"] = state?.availableCpus;
            resourceInputs["backupConfigs"] = state?.backupConfigs;
            resourceInputs["cloudAutonomousVmClusterId"] = state?.cloudAutonomousVmClusterId;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["computeModel"] = state?.computeModel;
            resourceInputs["dataguardGroupMembers"] = state?.dataguardGroupMembers;
            resourceInputs["dataguards"] = state?.dataguards;
            resourceInputs["dbName"] = state?.dbName;
            resourceInputs["dbSplitThreshold"] = state?.dbSplitThreshold;
            resourceInputs["dbUniqueName"] = state?.dbUniqueName;
            resourceInputs["dbVersion"] = state?.dbVersion;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["distributionAffinity"] = state?.distributionAffinity;
            resourceInputs["dstFileVersion"] = state?.dstFileVersion;
            resourceInputs["encryptionKeyLocationDetails"] = state?.encryptionKeyLocationDetails;
            resourceInputs["fastStartFailOverLagLimitInSeconds"] = state?.fastStartFailOverLagLimitInSeconds;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["infrastructureType"] = state?.infrastructureType;
            resourceInputs["isAutomaticFailoverEnabled"] = state?.isAutomaticFailoverEnabled;
            resourceInputs["isDataGuardEnabled"] = state?.isDataGuardEnabled;
            resourceInputs["isDstFileUpdateEnabled"] = state?.isDstFileUpdateEnabled;
            resourceInputs["isMultipleStandby"] = state?.isMultipleStandby;
            resourceInputs["keyHistoryEntries"] = state?.keyHistoryEntries;
            resourceInputs["keyStoreId"] = state?.keyStoreId;
            resourceInputs["keyStoreWalletName"] = state?.keyStoreWalletName;
            resourceInputs["kmsKeyId"] = state?.kmsKeyId;
            resourceInputs["kmsKeyVersionId"] = state?.kmsKeyVersionId;
            resourceInputs["largestProvisionableAutonomousDatabaseInCpus"] = state?.largestProvisionableAutonomousDatabaseInCpus;
            resourceInputs["lastMaintenanceRunId"] = state?.lastMaintenanceRunId;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["listOneOffPatches"] = state?.listOneOffPatches;
            resourceInputs["maintenanceWindows"] = state?.maintenanceWindows;
            resourceInputs["memoryPerComputeUnitInGbs"] = state?.memoryPerComputeUnitInGbs;
            resourceInputs["memoryPerOracleComputeUnitInGbs"] = state?.memoryPerOracleComputeUnitInGbs;
            resourceInputs["netServicesArchitecture"] = state?.netServicesArchitecture;
            resourceInputs["nextMaintenanceRunId"] = state?.nextMaintenanceRunId;
            resourceInputs["okvEndPointGroupName"] = state?.okvEndPointGroupName;
            resourceInputs["patchId"] = state?.patchId;
            resourceInputs["patchModel"] = state?.patchModel;
            resourceInputs["peerAutonomousContainerDatabaseBackupConfig"] = state?.peerAutonomousContainerDatabaseBackupConfig;
            resourceInputs["peerAutonomousContainerDatabaseCompartmentId"] = state?.peerAutonomousContainerDatabaseCompartmentId;
            resourceInputs["peerAutonomousContainerDatabaseDisplayName"] = state?.peerAutonomousContainerDatabaseDisplayName;
            resourceInputs["peerAutonomousVmClusterId"] = state?.peerAutonomousVmClusterId;
            resourceInputs["peerCloudAutonomousVmClusterId"] = state?.peerCloudAutonomousVmClusterId;
            resourceInputs["peerDbUniqueName"] = state?.peerDbUniqueName;
            resourceInputs["protectionMode"] = state?.protectionMode;
            resourceInputs["provisionableCpuses"] = state?.provisionableCpuses;
            resourceInputs["provisionedCpus"] = state?.provisionedCpus;
            resourceInputs["reclaimableCpus"] = state?.reclaimableCpus;
            resourceInputs["reservedCpus"] = state?.reservedCpus;
            resourceInputs["role"] = state?.role;
            resourceInputs["serviceLevelAgreementType"] = state?.serviceLevelAgreementType;
            resourceInputs["standbyMaintenanceBufferInDays"] = state?.standbyMaintenanceBufferInDays;
            resourceInputs["state"] = state?.state;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeOfLastBackup"] = state?.timeOfLastBackup;
            resourceInputs["timeSnapshotStandbyRevert"] = state?.timeSnapshotStandbyRevert;
            resourceInputs["totalCpus"] = state?.totalCpus;
            resourceInputs["vaultId"] = state?.vaultId;
            resourceInputs["versionPreference"] = state?.versionPreference;
            resourceInputs["vmFailoverReservation"] = state?.vmFailoverReservation;
        }
        else {
            const args = argsOrState;
            if (args?.autonomousContainerDatabaseId === undefined && !opts.urn) {
                throw new Error("Missing required property 'autonomousContainerDatabaseId'");
            }
            resourceInputs["autonomousContainerDatabaseId"] = args?.autonomousContainerDatabaseId;
            resourceInputs["fastStartFailOverLagLimitInSeconds"] = args?.fastStartFailOverLagLimitInSeconds;
            resourceInputs["isAutomaticFailoverEnabled"] = args?.isAutomaticFailoverEnabled;
            resourceInputs["peerAutonomousContainerDatabaseBackupConfig"] = args?.peerAutonomousContainerDatabaseBackupConfig;
            resourceInputs["peerAutonomousContainerDatabaseCompartmentId"] = args?.peerAutonomousContainerDatabaseCompartmentId;
            resourceInputs["peerAutonomousContainerDatabaseDisplayName"] = args?.peerAutonomousContainerDatabaseDisplayName;
            resourceInputs["peerAutonomousVmClusterId"] = args?.peerAutonomousVmClusterId;
            resourceInputs["peerCloudAutonomousVmClusterId"] = args?.peerCloudAutonomousVmClusterId;
            resourceInputs["peerDbUniqueName"] = args?.peerDbUniqueName;
            resourceInputs["protectionMode"] = args?.protectionMode;
            resourceInputs["standbyMaintenanceBufferInDays"] = args?.standbyMaintenanceBufferInDays;
            resourceInputs["autonomousExadataInfrastructureId"] = undefined /*out*/;
            resourceInputs["autonomousVmClusterId"] = undefined /*out*/;
            resourceInputs["availabilityDomain"] = undefined /*out*/;
            resourceInputs["availableCpus"] = undefined /*out*/;
            resourceInputs["backupConfigs"] = undefined /*out*/;
            resourceInputs["cloudAutonomousVmClusterId"] = undefined /*out*/;
            resourceInputs["compartmentId"] = undefined /*out*/;
            resourceInputs["computeModel"] = undefined /*out*/;
            resourceInputs["dataguardGroupMembers"] = undefined /*out*/;
            resourceInputs["dataguards"] = undefined /*out*/;
            resourceInputs["dbName"] = undefined /*out*/;
            resourceInputs["dbSplitThreshold"] = undefined /*out*/;
            resourceInputs["dbUniqueName"] = undefined /*out*/;
            resourceInputs["dbVersion"] = undefined /*out*/;
            resourceInputs["definedTags"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["distributionAffinity"] = undefined /*out*/;
            resourceInputs["dstFileVersion"] = undefined /*out*/;
            resourceInputs["encryptionKeyLocationDetails"] = undefined /*out*/;
            resourceInputs["freeformTags"] = undefined /*out*/;
            resourceInputs["infrastructureType"] = undefined /*out*/;
            resourceInputs["isDataGuardEnabled"] = undefined /*out*/;
            resourceInputs["isDstFileUpdateEnabled"] = undefined /*out*/;
            resourceInputs["isMultipleStandby"] = undefined /*out*/;
            resourceInputs["keyHistoryEntries"] = undefined /*out*/;
            resourceInputs["keyStoreId"] = undefined /*out*/;
            resourceInputs["keyStoreWalletName"] = undefined /*out*/;
            resourceInputs["kmsKeyId"] = undefined /*out*/;
            resourceInputs["kmsKeyVersionId"] = undefined /*out*/;
            resourceInputs["largestProvisionableAutonomousDatabaseInCpus"] = undefined /*out*/;
            resourceInputs["lastMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["listOneOffPatches"] = undefined /*out*/;
            resourceInputs["maintenanceWindows"] = undefined /*out*/;
            resourceInputs["memoryPerComputeUnitInGbs"] = undefined /*out*/;
            resourceInputs["memoryPerOracleComputeUnitInGbs"] = undefined /*out*/;
            resourceInputs["netServicesArchitecture"] = undefined /*out*/;
            resourceInputs["nextMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["okvEndPointGroupName"] = undefined /*out*/;
            resourceInputs["patchId"] = undefined /*out*/;
            resourceInputs["patchModel"] = undefined /*out*/;
            resourceInputs["provisionableCpuses"] = undefined /*out*/;
            resourceInputs["provisionedCpus"] = undefined /*out*/;
            resourceInputs["reclaimableCpus"] = undefined /*out*/;
            resourceInputs["reservedCpus"] = undefined /*out*/;
            resourceInputs["role"] = undefined /*out*/;
            resourceInputs["serviceLevelAgreementType"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeOfLastBackup"] = undefined /*out*/;
            resourceInputs["timeSnapshotStandbyRevert"] = undefined /*out*/;
            resourceInputs["totalCpus"] = undefined /*out*/;
            resourceInputs["vaultId"] = undefined /*out*/;
            resourceInputs["versionPreference"] = undefined /*out*/;
            resourceInputs["vmFailoverReservation"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(AutonomousContainerDatabaseAddStandby.__pulumiType, name, resourceInputs, opts);
    }
}
exports.AutonomousContainerDatabaseAddStandby = AutonomousContainerDatabaseAddStandby;
//# sourceMappingURL=autonomousContainerDatabaseAddStandby.js.map