"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.OutboundConnector = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Outbound Connector resource in Oracle Cloud Infrastructure File Storage service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/filestorage/latest/OutboundConnector
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/
 *
 * Creates a new outbound connector in the specified compartment.
 * You can associate an outbound connector with a mount target only when
 * they exist in the same availability domain.
 *
 * For information about access control and compartments, see
 * [Overview of the IAM
 * Service](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm).
 *
 * For information about availability domains, see [Regions and
 * Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm).
 * To get a list of availability domains, use the
 * `ListAvailabilityDomains` operation in the Identity and Access
 * Management Service API.
 *
 * All Oracle Cloud Infrastructure Services resources, including
 * outbound connectors, get an Oracle-assigned, unique ID called an
 * Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)).
 * When you create a resource, you can find its OCID in the response.
 * You can also retrieve a resource's OCID by using a List API operation on that resource
 * type, or by viewing the resource in the Console.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testOutboundConnector = new oci.filestorage.OutboundConnector("test_outbound_connector", {
 *     availabilityDomain: outboundConnectorAvailabilityDomain,
 *     bindDistinguishedName: outboundConnectorBindDistinguishedName,
 *     compartmentId: compartmentId,
 *     connectorType: outboundConnectorConnectorType,
 *     endpoints: [{
 *         hostname: outboundConnectorEndpointsHostname,
 *         port: outboundConnectorEndpointsPort,
 *     }],
 *     definedTags: {
 *         "Operations.CostCenter": "42",
 *     },
 *     displayName: outboundConnectorDisplayName,
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     locks: [{
 *         type: outboundConnectorLocksType,
 *         message: outboundConnectorLocksMessage,
 *         relatedResourceId: testResource.id,
 *         timeCreated: outboundConnectorLocksTimeCreated,
 *     }],
 *     passwordSecretId: testSecret.id,
 *     passwordSecretVersion: Number(outboundConnectorPasswordSecretVersion),
 *     trustedCertificateSecretId: testSecret.id,
 *     trustedCertificateSecretVersion: Number(outboundConnectorTrustedCertificateSecretVersion),
 * });
 * ```
 *
 * ## Import
 *
 * OutboundConnectors can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:FileStorage/outboundConnector:OutboundConnector test_outbound_connector "id"
 * ```
 */
class OutboundConnector extends pulumi.CustomResource {
    /**
     * Get an existing OutboundConnector 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 OutboundConnector(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:FileStorage/outboundConnector:OutboundConnector';
    /**
     * Returns true if the given object is an instance of OutboundConnector.  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'] === OutboundConnector.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["bindDistinguishedName"] = state?.bindDistinguishedName;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["connectorType"] = state?.connectorType;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["endpoints"] = state?.endpoints;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["isLockOverride"] = state?.isLockOverride;
            resourceInputs["locks"] = state?.locks;
            resourceInputs["passwordSecretId"] = state?.passwordSecretId;
            resourceInputs["passwordSecretVersion"] = state?.passwordSecretVersion;
            resourceInputs["state"] = state?.state;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["trustedCertificateSecretId"] = state?.trustedCertificateSecretId;
            resourceInputs["trustedCertificateSecretVersion"] = state?.trustedCertificateSecretVersion;
        }
        else {
            const args = argsOrState;
            if (args?.availabilityDomain === undefined && !opts.urn) {
                throw new Error("Missing required property 'availabilityDomain'");
            }
            if (args?.bindDistinguishedName === undefined && !opts.urn) {
                throw new Error("Missing required property 'bindDistinguishedName'");
            }
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.connectorType === undefined && !opts.urn) {
                throw new Error("Missing required property 'connectorType'");
            }
            if (args?.endpoints === undefined && !opts.urn) {
                throw new Error("Missing required property 'endpoints'");
            }
            resourceInputs["availabilityDomain"] = args?.availabilityDomain;
            resourceInputs["bindDistinguishedName"] = args?.bindDistinguishedName;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["connectorType"] = args?.connectorType;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["endpoints"] = args?.endpoints;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["isLockOverride"] = args?.isLockOverride;
            resourceInputs["locks"] = args?.locks;
            resourceInputs["passwordSecretId"] = args?.passwordSecretId;
            resourceInputs["passwordSecretVersion"] = args?.passwordSecretVersion;
            resourceInputs["trustedCertificateSecretId"] = args?.trustedCertificateSecretId;
            resourceInputs["trustedCertificateSecretVersion"] = args?.trustedCertificateSecretVersion;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(OutboundConnector.__pulumiType, name, resourceInputs, opts);
    }
}
exports.OutboundConnector = OutboundConnector;
//# sourceMappingURL=outboundConnector.js.map