"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.SimulationApplication = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * This schema is for testing purpose only.
 *
 * ## Example Usage
 * ### Example
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws_native from "@pulumi/aws-native";
 *
 * const basicSimulationApplication = new aws_native.robomaker.SimulationApplication("basicSimulationApplication", {
 *     name: "MySimulationApplication",
 *     environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest",
 *     robotSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationRobotSoftwareSuiteName.General,
 *     },
 *     simulationSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationSimulationSoftwareSuiteName.SimulationRuntime,
 *     },
 *     tags: {
 *         name: "BasicSimulationApplication",
 *         type: "CFN",
 *     },
 * });
 * export const simulationApplication = "BasicSimulationApplication";
 *
 * ```
 * ### Example
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws_native from "@pulumi/aws-native";
 *
 * const basicSimulationApplication = new aws_native.robomaker.SimulationApplication("basicSimulationApplication", {
 *     name: "MySimulationApplication",
 *     environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest",
 *     robotSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationRobotSoftwareSuiteName.General,
 *     },
 *     simulationSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationSimulationSoftwareSuiteName.SimulationRuntime,
 *     },
 *     tags: {
 *         name: "BasicSimulationApplication",
 *         type: "CFN",
 *     },
 * });
 * export const simulationApplication = basicSimulationApplication.id;
 *
 * ```
 * ### Example
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws_native from "@pulumi/aws-native";
 *
 * const basicSimulationApplication = new aws_native.robomaker.SimulationApplication("basicSimulationApplication", {
 *     name: "MySimulationApplication",
 *     environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest",
 *     robotSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationRobotSoftwareSuiteName.General,
 *     },
 *     simulationSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationSimulationSoftwareSuiteName.SimulationRuntime,
 *     },
 * });
 * const basicSimulationApplicationVersion = new aws_native.robomaker.SimulationApplicationVersion("basicSimulationApplicationVersion", {
 *     application: basicSimulationApplication.arn,
 *     currentRevisionId: basicSimulationApplication.currentRevisionId,
 * });
 * export const simulationApplicationVersion = "BasicSimulationApplicationVersion";
 *
 * ```
 * ### Example
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws_native from "@pulumi/aws-native";
 *
 * const basicSimulationApplication = new aws_native.robomaker.SimulationApplication("basicSimulationApplication", {
 *     name: "MySimulationApplication",
 *     environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest",
 *     robotSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationRobotSoftwareSuiteName.General,
 *     },
 *     simulationSoftwareSuite: {
 *         name: aws_native.robomaker.SimulationApplicationSimulationSoftwareSuiteName.SimulationRuntime,
 *     },
 * });
 * const basicSimulationApplicationVersion = new aws_native.robomaker.SimulationApplicationVersion("basicSimulationApplicationVersion", {
 *     application: basicSimulationApplication.arn,
 *     currentRevisionId: basicSimulationApplication.currentRevisionId,
 * });
 * export const simulationApplicationVersion = basicSimulationApplicationVersion.id;
 *
 * ```
 */
class SimulationApplication extends pulumi.CustomResource {
    /**
     * Get an existing SimulationApplication 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 SimulationApplication(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of SimulationApplication.  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'] === SimulationApplication.__pulumiType;
    }
    /**
     * Create a SimulationApplication 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?.robotSoftwareSuite === undefined && !opts.urn) {
                throw new Error("Missing required property 'robotSoftwareSuite'");
            }
            if (args?.simulationSoftwareSuite === undefined && !opts.urn) {
                throw new Error("Missing required property 'simulationSoftwareSuite'");
            }
            resourceInputs["currentRevisionId"] = args?.currentRevisionId;
            resourceInputs["environment"] = args?.environment;
            resourceInputs["name"] = args?.name;
            resourceInputs["renderingEngine"] = args?.renderingEngine;
            resourceInputs["robotSoftwareSuite"] = args?.robotSoftwareSuite;
            resourceInputs["simulationSoftwareSuite"] = args?.simulationSoftwareSuite;
            resourceInputs["sources"] = args?.sources;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["arn"] = undefined /*out*/;
        }
        else {
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["currentRevisionId"] = undefined /*out*/;
            resourceInputs["environment"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["renderingEngine"] = undefined /*out*/;
            resourceInputs["robotSoftwareSuite"] = undefined /*out*/;
            resourceInputs["simulationSoftwareSuite"] = undefined /*out*/;
            resourceInputs["sources"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["name"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(SimulationApplication.__pulumiType, name, resourceInputs, opts);
    }
}
exports.SimulationApplication = SimulationApplication;
/** @internal */
SimulationApplication.__pulumiType = 'aws-native:robomaker:SimulationApplication';
//# sourceMappingURL=simulationApplication.js.map