import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Custom commands are features provided by Cloud Assistant to meet your personalized O&M needs. If the preset public commands do not meet your requirements, you can create custom commands and batch execute your custom commands on instances using O&M tasks. * * ## Import * * ```sh * $ pulumi import volcenginecc:ecs/command:Command example "command_id" * ``` */ 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, 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; /** * Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB. */ readonly commandContent: pulumi.Output; /** * Custom command ID. */ readonly commandId: pulumi.Output; /** * Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded. */ readonly contentEncoding: pulumi.Output; /** * Creation time. */ readonly createdTime: pulumi.Output; /** * Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters. */ readonly description: pulumi.Output; /** * Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters. */ readonly enableParameter: pulumi.Output; /** * Number of times the command has been invoked. */ readonly invocationTimes: pulumi.Output; /** * Command name. Character length: 1~32. No restriction on special characters. */ readonly name: pulumi.Output; readonly parameterDefinitions: pulumi.Output; /** * Project to which the resource belongs. Each resource can belong to only one project. */ readonly projectName: pulumi.Output; /** * Command provider. */ readonly providerName: pulumi.Output; readonly tags: pulumi.Output; /** * Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60. */ readonly timeout: pulumi.Output; /** * Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script. */ readonly type: pulumi.Output; /** * Update time. */ readonly updatedTime: pulumi.Output; /** * Username for executing the command. */ readonly username: pulumi.Output; /** * Directory where the created command runs on ECS instances. */ readonly workingDir: pulumi.Output; /** * 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 { /** * Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB. */ commandContent?: pulumi.Input; /** * Custom command ID. */ commandId?: pulumi.Input; /** * Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded. */ contentEncoding?: pulumi.Input; /** * Creation time. */ createdTime?: pulumi.Input; /** * Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters. */ description?: pulumi.Input; /** * Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters. */ enableParameter?: pulumi.Input; /** * Number of times the command has been invoked. */ invocationTimes?: pulumi.Input; /** * Command name. Character length: 1~32. No restriction on special characters. */ name?: pulumi.Input; parameterDefinitions?: pulumi.Input[]>; /** * Project to which the resource belongs. Each resource can belong to only one project. */ projectName?: pulumi.Input; /** * Command provider. */ providerName?: pulumi.Input; tags?: pulumi.Input[]>; /** * Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60. */ timeout?: pulumi.Input; /** * Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script. */ type?: pulumi.Input; /** * Update time. */ updatedTime?: pulumi.Input; /** * Username for executing the command. */ username?: pulumi.Input; /** * Directory where the created command runs on ECS instances. */ workingDir?: pulumi.Input; } /** * The set of arguments for constructing a Command resource. */ export interface CommandArgs { /** * Command content. Enter the command content according to the ContentEncoding parameter. Command content must not exceed 16 KB. */ commandContent: pulumi.Input; /** * Whether the command content is processed with Base64 encoding. Base64 (default): Processed with Base64 encoding. PlainText: Not encoded. */ contentEncoding?: pulumi.Input; /** * Command description. Defaults to an empty string. Character length: 0~256. No restriction on special characters. */ description?: pulumi.Input; /** * Whether the created command uses custom parameters. false: Default, does not use custom parameters. true: Uses custom parameters. */ enableParameter?: pulumi.Input; /** * Command name. Character length: 1~32. No restriction on special characters. */ name: pulumi.Input; parameterDefinitions?: pulumi.Input[]>; /** * Project to which the resource belongs. Each resource can belong to only one project. */ projectName?: pulumi.Input; tags?: pulumi.Input[]>; /** * Maximum timeout for executing the created command on ECS instances, in seconds. Value range: 30~86400. Default: 60. */ timeout?: pulumi.Input; /** * Command type. Shell: Creates a Shell script for Linux instances. Python: Creates a Python script. Bat: Creates a Bat script. PowerShell: Creates a PowerShell script. */ type: pulumi.Input; /** * Username for executing the command. */ username?: pulumi.Input; /** * Directory where the created command runs on ECS instances. */ workingDir?: pulumi.Input; }