"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.RelationshipLink = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The relationship link resource format.
 *
 * Uses Azure REST API version 2017-04-26. In version 2.x of the Azure Native provider, it used API version 2017-04-26.
 */
class RelationshipLink extends pulumi.CustomResource {
    /**
     * Get an existing RelationshipLink 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 RelationshipLink(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of RelationshipLink.  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'] === RelationshipLink.__pulumiType;
    }
    /**
     * Create a RelationshipLink 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 || args.hubName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'hubName'");
            }
            if ((!args || args.interactionType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'interactionType'");
            }
            if ((!args || args.profilePropertyReferences === undefined) && !opts.urn) {
                throw new Error("Missing required property 'profilePropertyReferences'");
            }
            if ((!args || args.relatedProfilePropertyReferences === undefined) && !opts.urn) {
                throw new Error("Missing required property 'relatedProfilePropertyReferences'");
            }
            if ((!args || args.relationshipName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'relationshipName'");
            }
            if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["description"] = args ? args.description : undefined;
            resourceInputs["displayName"] = args ? args.displayName : undefined;
            resourceInputs["hubName"] = args ? args.hubName : undefined;
            resourceInputs["interactionType"] = args ? args.interactionType : undefined;
            resourceInputs["mappings"] = args ? args.mappings : undefined;
            resourceInputs["profilePropertyReferences"] = args ? args.profilePropertyReferences : undefined;
            resourceInputs["relatedProfilePropertyReferences"] = args ? args.relatedProfilePropertyReferences : undefined;
            resourceInputs["relationshipLinkName"] = args ? args.relationshipLinkName : undefined;
            resourceInputs["relationshipName"] = args ? args.relationshipName : undefined;
            resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["linkName"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["relationshipGuidId"] = undefined /*out*/;
            resourceInputs["tenantId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["interactionType"] = undefined /*out*/;
            resourceInputs["linkName"] = undefined /*out*/;
            resourceInputs["mappings"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["profilePropertyReferences"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["relatedProfilePropertyReferences"] = undefined /*out*/;
            resourceInputs["relationshipGuidId"] = undefined /*out*/;
            resourceInputs["relationshipName"] = undefined /*out*/;
            resourceInputs["tenantId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:customerinsights/v20170101:RelationshipLink" }, { type: "azure-native:customerinsights/v20170426:RelationshipLink" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(RelationshipLink.__pulumiType, name, resourceInputs, opts);
    }
}
exports.RelationshipLink = RelationshipLink;
/** @internal */
RelationshipLink.__pulumiType = 'azure-native:customerinsights:RelationshipLink';
//# sourceMappingURL=data:application/json;base64, 