UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

205 lines (204 loc) 6.57 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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 * ``` */ export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: CommandState, opts?: pulumi.CustomResourceOptions): Command; /** * 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: any): obj is Command; /** * The base64 encoded content of the ecs command. */ readonly commandContent: pulumi.Output<string>; /** * The create time of the ecs command. */ readonly createdAt: pulumi.Output<string>; /** * The description of the ecs command. */ readonly description: pulumi.Output<string>; /** * Whether to enable custom parameter. Default is `false`. */ readonly enableParameter: pulumi.Output<boolean>; /** * The invocation times of the ecs command. Public commands do not display the invocation times. */ readonly invocationTimes: pulumi.Output<number>; /** * The name of the ecs command. */ readonly name: pulumi.Output<string>; /** * The custom parameter definitions of the ecs command. */ readonly parameterDefinitions: pulumi.Output<outputs.ecs.CommandParameterDefinition[] | undefined>; /** * The project name of the ecs command. */ readonly projectName: pulumi.Output<string>; /** * Tags. */ readonly tags: pulumi.Output<outputs.ecs.CommandTag[] | undefined>; /** * The timeout of the ecs command. Unit: seconds. Valid value range: 30~86400. Default is 300. */ readonly timeout: pulumi.Output<number>; /** * The type of the ecs command. Valid values: `Shell`, `Python`, `PowerShell`, `Bat`. Default is `Shell`. */ readonly type: pulumi.Output<string | undefined>; /** * The update time of the ecs command. */ readonly updatedAt: pulumi.Output<string>; /** * The username of the ecs command. */ readonly username: pulumi.Output<string>; /** * The working directory of the ecs command. */ readonly workingDir: pulumi.Output<string>; /** * Create a Command 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: string, args: CommandArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Command resources. */ export interface CommandState { /** * The base64 encoded content of the ecs command. */ commandContent?: pulumi.Input<string>; /** * The create time of the ecs command. */ createdAt?: pulumi.Input<string>; /** * The description of the ecs command. */ description?: pulumi.Input<string>; /** * Whether to enable custom parameter. Default is `false`. */ enableParameter?: pulumi.Input<boolean>; /** * The invocation times of the ecs command. Public commands do not display the invocation times. */ invocationTimes?: pulumi.Input<number>; /** * The name of the ecs command. */ name?: pulumi.Input<string>; /** * The custom parameter definitions of the ecs command. */ parameterDefinitions?: pulumi.Input<pulumi.Input<inputs.ecs.CommandParameterDefinition>[]>; /** * The project name of the ecs command. */ projectName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.ecs.CommandTag>[]>; /** * The timeout of the ecs command. Unit: seconds. Valid value range: 30~86400. Default is 300. */ timeout?: pulumi.Input<number>; /** * The type of the ecs command. Valid values: `Shell`, `Python`, `PowerShell`, `Bat`. Default is `Shell`. */ type?: pulumi.Input<string>; /** * The update time of the ecs command. */ updatedAt?: pulumi.Input<string>; /** * The username of the ecs command. */ username?: pulumi.Input<string>; /** * The working directory of the ecs command. */ workingDir?: pulumi.Input<string>; } /** * The set of arguments for constructing a Command resource. */ export interface CommandArgs { /** * The base64 encoded content of the ecs command. */ commandContent: pulumi.Input<string>; /** * The description of the ecs command. */ description?: pulumi.Input<string>; /** * Whether to enable custom parameter. Default is `false`. */ enableParameter?: pulumi.Input<boolean>; /** * The name of the ecs command. */ name?: pulumi.Input<string>; /** * The custom parameter definitions of the ecs command. */ parameterDefinitions?: pulumi.Input<pulumi.Input<inputs.ecs.CommandParameterDefinition>[]>; /** * The project name of the ecs command. */ projectName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.ecs.CommandTag>[]>; /** * The timeout of the ecs command. Unit: seconds. Valid value range: 30~86400. Default is 300. */ timeout?: pulumi.Input<number>; /** * The type of the ecs command. Valid values: `Shell`, `Python`, `PowerShell`, `Bat`. Default is `Shell`. */ type?: pulumi.Input<string>; /** * The username of the ecs command. */ username?: pulumi.Input<string>; /** * The working directory of the ecs command. */ workingDir?: pulumi.Input<string>; }