"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.Application = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Definition of AWS::RefactorSpaces::Application Resource Type
 */
class Application extends pulumi.CustomResource {
    /**
     * Get an existing Application 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 Application(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Application.  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'] === Application.__pulumiType;
    }
    /**
     * Create a Application 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?.environmentIdentifier === undefined && !opts.urn) {
                throw new Error("Missing required property 'environmentIdentifier'");
            }
            if (args?.proxyType === undefined && !opts.urn) {
                throw new Error("Missing required property 'proxyType'");
            }
            if (args?.vpcId === undefined && !opts.urn) {
                throw new Error("Missing required property 'vpcId'");
            }
            resourceInputs["apiGatewayProxy"] = args?.apiGatewayProxy;
            resourceInputs["environmentIdentifier"] = args?.environmentIdentifier;
            resourceInputs["name"] = args?.name;
            resourceInputs["proxyType"] = args?.proxyType;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["vpcId"] = args?.vpcId;
            resourceInputs["apiGatewayId"] = undefined /*out*/;
            resourceInputs["applicationIdentifier"] = undefined /*out*/;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["nlbArn"] = undefined /*out*/;
            resourceInputs["nlbName"] = undefined /*out*/;
            resourceInputs["proxyUrl"] = undefined /*out*/;
            resourceInputs["stageName"] = undefined /*out*/;
            resourceInputs["vpcLinkId"] = undefined /*out*/;
        }
        else {
            resourceInputs["apiGatewayId"] = undefined /*out*/;
            resourceInputs["apiGatewayProxy"] = undefined /*out*/;
            resourceInputs["applicationIdentifier"] = undefined /*out*/;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["environmentIdentifier"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["nlbArn"] = undefined /*out*/;
            resourceInputs["nlbName"] = undefined /*out*/;
            resourceInputs["proxyType"] = undefined /*out*/;
            resourceInputs["proxyUrl"] = undefined /*out*/;
            resourceInputs["stageName"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["vpcId"] = undefined /*out*/;
            resourceInputs["vpcLinkId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["apiGatewayProxy", "environmentIdentifier", "name", "proxyType", "vpcId"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(Application.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Application = Application;
/** @internal */
Application.__pulumiType = 'aws-native:refactorspaces:Application';
//# sourceMappingURL=application.js.map