UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

88 lines 4.47 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Command = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to manage ecs command * ## Import * * EcsCommand can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:ecs/command:Command default cmd-ychkepkhtim0tr3bcsw1 * ``` */ class Command extends pulumi.CustomResource { /** * Get an existing Command 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Command(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Command. 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'] === Command.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["commandContent"] = state ? state.commandContent : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["enableParameter"] = state ? state.enableParameter : undefined; resourceInputs["invocationTimes"] = state ? state.invocationTimes : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["parameterDefinitions"] = state ? state.parameterDefinitions : undefined; resourceInputs["projectName"] = state ? state.projectName : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["timeout"] = state ? state.timeout : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["workingDir"] = state ? state.workingDir : undefined; } else { const args = argsOrState; if ((!args || args.commandContent === undefined) && !opts.urn) { throw new Error("Missing required property 'commandContent'"); } resourceInputs["commandContent"] = args ? args.commandContent : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["enableParameter"] = args ? args.enableParameter : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["parameterDefinitions"] = args ? args.parameterDefinitions : undefined; resourceInputs["projectName"] = args ? args.projectName : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["timeout"] = args ? args.timeout : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["workingDir"] = args ? args.workingDir : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["invocationTimes"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Command.__pulumiType, name, resourceInputs, opts); } } exports.Command = Command; /** @internal */ Command.__pulumiType = 'volcengine:ecs/command:Command'; //# sourceMappingURL=command.js.map