"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.Deployment = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Deployment resource in Oracle Cloud Infrastructure Golden Gate service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/goldengate/latest/Deployment
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/goldengate
 *
 * Creates a new Deployment.
 *
 * ## Import
 *
 * Deployments can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:GoldenGate/deployment:Deployment test_deployment "id"
 * ```
 */
class Deployment extends pulumi.CustomResource {
    /**
     * Get an existing Deployment 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 Deployment(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:GoldenGate/deployment:Deployment';
    /**
     * Returns true if the given object is an instance of Deployment.  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'] === Deployment.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["backupSchedule"] = state?.backupSchedule;
            resourceInputs["byolCpuCoreCountLimit"] = state?.byolCpuCoreCountLimit;
            resourceInputs["category"] = state?.category;
            resourceInputs["clusterPlacementGroupId"] = state?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["cpuCoreCount"] = state?.cpuCoreCount;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["deploymentBackupId"] = state?.deploymentBackupId;
            resourceInputs["deploymentDiagnosticDatas"] = state?.deploymentDiagnosticDatas;
            resourceInputs["deploymentRole"] = state?.deploymentRole;
            resourceInputs["deploymentType"] = state?.deploymentType;
            resourceInputs["deploymentUrl"] = state?.deploymentUrl;
            resourceInputs["description"] = state?.description;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["environmentType"] = state?.environmentType;
            resourceInputs["faultDomain"] = state?.faultDomain;
            resourceInputs["fqdn"] = state?.fqdn;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["ingressIps"] = state?.ingressIps;
            resourceInputs["isAutoScalingEnabled"] = state?.isAutoScalingEnabled;
            resourceInputs["isByolCpuCoreCountLimitEnabled"] = state?.isByolCpuCoreCountLimitEnabled;
            resourceInputs["isHealthy"] = state?.isHealthy;
            resourceInputs["isLatestVersion"] = state?.isLatestVersion;
            resourceInputs["isLockOverride"] = state?.isLockOverride;
            resourceInputs["isPublic"] = state?.isPublic;
            resourceInputs["isStorageUtilizationLimitExceeded"] = state?.isStorageUtilizationLimitExceeded;
            resourceInputs["licenseModel"] = state?.licenseModel;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["lifecycleSubState"] = state?.lifecycleSubState;
            resourceInputs["loadBalancerId"] = state?.loadBalancerId;
            resourceInputs["loadBalancerSubnetId"] = state?.loadBalancerSubnetId;
            resourceInputs["locks"] = state?.locks;
            resourceInputs["maintenanceConfiguration"] = state?.maintenanceConfiguration;
            resourceInputs["maintenanceWindow"] = state?.maintenanceWindow;
            resourceInputs["nextMaintenanceActionType"] = state?.nextMaintenanceActionType;
            resourceInputs["nextMaintenanceDescription"] = state?.nextMaintenanceDescription;
            resourceInputs["nsgIds"] = state?.nsgIds;
            resourceInputs["oggData"] = state?.oggData;
            resourceInputs["placements"] = state?.placements;
            resourceInputs["privateIpAddress"] = state?.privateIpAddress;
            resourceInputs["publicIpAddress"] = state?.publicIpAddress;
            resourceInputs["securityAttributes"] = state?.securityAttributes;
            resourceInputs["sourceDeploymentId"] = state?.sourceDeploymentId;
            resourceInputs["state"] = state?.state;
            resourceInputs["storageUtilizationInBytes"] = state?.storageUtilizationInBytes;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["subscriptionId"] = state?.subscriptionId;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeLastBackupScheduled"] = state?.timeLastBackupScheduled;
            resourceInputs["timeNextBackupScheduled"] = state?.timeNextBackupScheduled;
            resourceInputs["timeOfNextMaintenance"] = state?.timeOfNextMaintenance;
            resourceInputs["timeOggVersionSupportedUntil"] = state?.timeOggVersionSupportedUntil;
            resourceInputs["timeRoleChanged"] = state?.timeRoleChanged;
            resourceInputs["timeUpdated"] = state?.timeUpdated;
        }
        else {
            const args = argsOrState;
            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["availabilityDomain"] = args?.availabilityDomain;
            resourceInputs["backupSchedule"] = args?.backupSchedule;
            resourceInputs["byolCpuCoreCountLimit"] = args?.byolCpuCoreCountLimit;
            resourceInputs["clusterPlacementGroupId"] = args?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["cpuCoreCount"] = args?.cpuCoreCount;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["deploymentBackupId"] = args?.deploymentBackupId;
            resourceInputs["deploymentType"] = args?.deploymentType;
            resourceInputs["description"] = args?.description;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["environmentType"] = args?.environmentType;
            resourceInputs["faultDomain"] = args?.faultDomain;
            resourceInputs["fqdn"] = args?.fqdn;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["isAutoScalingEnabled"] = args?.isAutoScalingEnabled;
            resourceInputs["isByolCpuCoreCountLimitEnabled"] = args?.isByolCpuCoreCountLimitEnabled;
            resourceInputs["isLockOverride"] = args?.isLockOverride;
            resourceInputs["isPublic"] = args?.isPublic;
            resourceInputs["licenseModel"] = args?.licenseModel;
            resourceInputs["loadBalancerSubnetId"] = args?.loadBalancerSubnetId;
            resourceInputs["locks"] = args?.locks;
            resourceInputs["maintenanceConfiguration"] = args?.maintenanceConfiguration;
            resourceInputs["maintenanceWindow"] = args?.maintenanceWindow;
            resourceInputs["nsgIds"] = args?.nsgIds;
            resourceInputs["oggData"] = args?.oggData;
            resourceInputs["placements"] = args?.placements;
            resourceInputs["securityAttributes"] = args?.securityAttributes;
            resourceInputs["sourceDeploymentId"] = args?.sourceDeploymentId;
            resourceInputs["state"] = args?.state;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["subscriptionId"] = args?.subscriptionId;
            resourceInputs["category"] = undefined /*out*/;
            resourceInputs["deploymentDiagnosticDatas"] = undefined /*out*/;
            resourceInputs["deploymentRole"] = undefined /*out*/;
            resourceInputs["deploymentUrl"] = undefined /*out*/;
            resourceInputs["ingressIps"] = undefined /*out*/;
            resourceInputs["isHealthy"] = undefined /*out*/;
            resourceInputs["isLatestVersion"] = undefined /*out*/;
            resourceInputs["isStorageUtilizationLimitExceeded"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["lifecycleSubState"] = undefined /*out*/;
            resourceInputs["loadBalancerId"] = undefined /*out*/;
            resourceInputs["nextMaintenanceActionType"] = undefined /*out*/;
            resourceInputs["nextMaintenanceDescription"] = undefined /*out*/;
            resourceInputs["privateIpAddress"] = undefined /*out*/;
            resourceInputs["publicIpAddress"] = undefined /*out*/;
            resourceInputs["storageUtilizationInBytes"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeLastBackupScheduled"] = undefined /*out*/;
            resourceInputs["timeNextBackupScheduled"] = undefined /*out*/;
            resourceInputs["timeOfNextMaintenance"] = undefined /*out*/;
            resourceInputs["timeOggVersionSupportedUntil"] = undefined /*out*/;
            resourceInputs["timeRoleChanged"] = undefined /*out*/;
            resourceInputs["timeUpdated"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Deployment.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Deployment = Deployment;
//# sourceMappingURL=deployment.js.map