"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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connector = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Resource Type definition for AWS::Transfer::Connector
 */
class Connector extends pulumi.CustomResource {
    /**
     * Get an existing Connector 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new Connector(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Connector.  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'] === Connector.__pulumiType;
    }
    /**
     * Create a Connector resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.accessRole === undefined && !opts.urn) {
                throw new Error("Missing required property 'accessRole'");
            }
            resourceInputs["accessRole"] = args?.accessRole;
            resourceInputs["as2Config"] = args?.as2Config;
            resourceInputs["egressConfig"] = args?.egressConfig;
            resourceInputs["egressType"] = args?.egressType;
            resourceInputs["ipAddressType"] = args?.ipAddressType;
            resourceInputs["loggingRole"] = args?.loggingRole;
            resourceInputs["securityPolicyName"] = args?.securityPolicyName;
            resourceInputs["sftpConfig"] = args?.sftpConfig;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["url"] = args?.url;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["connectorId"] = undefined /*out*/;
            resourceInputs["errorMessage"] = undefined /*out*/;
            resourceInputs["serviceManagedEgressIpAddresses"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
        }
        else {
            resourceInputs["accessRole"] = undefined /*out*/;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["as2Config"] = undefined /*out*/;
            resourceInputs["connectorId"] = undefined /*out*/;
            resourceInputs["egressConfig"] = undefined /*out*/;
            resourceInputs["egressType"] = undefined /*out*/;
            resourceInputs["errorMessage"] = undefined /*out*/;
            resourceInputs["ipAddressType"] = undefined /*out*/;
            resourceInputs["loggingRole"] = undefined /*out*/;
            resourceInputs["securityPolicyName"] = undefined /*out*/;
            resourceInputs["serviceManagedEgressIpAddresses"] = undefined /*out*/;
            resourceInputs["sftpConfig"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["url"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Connector.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Connector = Connector;
/** @internal */
Connector.__pulumiType = 'aws-native:transfer:Connector';
//# sourceMappingURL=connector.js.map