"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.MachineRunCommand = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Describes a Run Command
 *
 * Uses Azure REST API version 2024-07-31-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-03-preview.
 *
 * Other available API versions: 2023-10-03-preview, 2024-03-31-preview, 2024-05-20-preview, 2024-09-10-preview, 2024-11-10-preview, 2025-01-13, 2025-02-19-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native hybridcompute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class MachineRunCommand extends pulumi.CustomResource {
    /**
     * Get an existing MachineRunCommand 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 MachineRunCommand(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of MachineRunCommand.  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'] === MachineRunCommand.__pulumiType;
    }
    /**
     * Create a MachineRunCommand 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?.machineName === undefined && !opts.urn) {
                throw new Error("Missing required property 'machineName'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["asyncExecution"] = (args?.asyncExecution) ?? false;
            resourceInputs["errorBlobManagedIdentity"] = args?.errorBlobManagedIdentity;
            resourceInputs["errorBlobUri"] = args?.errorBlobUri;
            resourceInputs["location"] = args?.location;
            resourceInputs["machineName"] = args?.machineName;
            resourceInputs["outputBlobManagedIdentity"] = args?.outputBlobManagedIdentity;
            resourceInputs["outputBlobUri"] = args?.outputBlobUri;
            resourceInputs["parameters"] = args?.parameters;
            resourceInputs["protectedParameters"] = args?.protectedParameters;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["runAsPassword"] = args?.runAsPassword;
            resourceInputs["runAsUser"] = args?.runAsUser;
            resourceInputs["runCommandName"] = args?.runCommandName;
            resourceInputs["source"] = args?.source;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["timeoutInSeconds"] = args?.timeoutInSeconds;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["instanceView"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["asyncExecution"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["errorBlobManagedIdentity"] = undefined /*out*/;
            resourceInputs["errorBlobUri"] = undefined /*out*/;
            resourceInputs["instanceView"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["outputBlobManagedIdentity"] = undefined /*out*/;
            resourceInputs["outputBlobUri"] = undefined /*out*/;
            resourceInputs["parameters"] = undefined /*out*/;
            resourceInputs["protectedParameters"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["runAsPassword"] = undefined /*out*/;
            resourceInputs["runAsUser"] = undefined /*out*/;
            resourceInputs["source"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["timeoutInSeconds"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:hybridcompute/v20231003preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20240331preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20240520preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20240731preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20240910preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20241110preview:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20250113:MachineRunCommand" }, { type: "azure-native:hybridcompute/v20250219preview:MachineRunCommand" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(MachineRunCommand.__pulumiType, name, resourceInputs, opts);
    }
}
exports.MachineRunCommand = MachineRunCommand;
/** @internal */
MachineRunCommand.__pulumiType = 'azure-native:hybridcompute:MachineRunCommand';
//# sourceMappingURL=data:application/json;base64, 