InvocationArgs

data class InvocationArgs(val commandContent: Output<String>? = null, val commandId: Output<String>? = null, val contentEncoding: Output<String>? = null, val description: Output<String>? = null, val enableParameter: Output<Boolean>? = null, val frequency: Output<String>? = null, val launcher: Output<String>? = null, val name: Output<String>? = null, val nodeIdLists: Output<List<String>>? = null, val parameters: Output<Map<String, String>>? = null, val repeatMode: Output<String>? = null, val terminationMode: Output<String>? = null, val timeout: Output<Int>? = null, val username: Output<String>? = null, val workingDir: Output<String>? = null) : ConvertibleToJava<InvocationArgs>

Import

Eflo Invocation can be imported using the id, e.g.

$ pulumi import alicloud:eflo/invocation:Invocation example <id>

Constructors

Link copied to clipboard
constructor(commandContent: Output<String>? = null, commandId: Output<String>? = null, contentEncoding: Output<String>? = null, description: Output<String>? = null, enableParameter: Output<Boolean>? = null, frequency: Output<String>? = null, launcher: Output<String>? = null, name: Output<String>? = null, nodeIdLists: Output<List<String>>? = null, parameters: Output<Map<String, String>>? = null, repeatMode: Output<String>? = null, terminationMode: Output<String>? = null, timeout: Output<Int>? = null, username: Output<String>? = null, workingDir: Output<String>? = null)

Properties

Link copied to clipboard
val commandContent: Output<String>? = null

The command content. You need to pay attention:

Link copied to clipboard
val commandId: Output<String>? = null

Command ID

Link copied to clipboard
val contentEncoding: Output<String>? = null

The encoding of the script content. Value range:

Link copied to clipboard
val description: Output<String>? = null

The command description.

Link copied to clipboard
val enableParameter: Output<Boolean>? = null

Whether custom parameters are included in the command. Default value: false.

Link copied to clipboard
val frequency: Output<String>? = null

The execution time of the scheduled execution command. Currently, three scheduled execution methods are supported: fixed interval execution (based on Rate expression), only once at a specified time, and timed execution based on clock (based on Cron expression).

Link copied to clipboard
val launcher: Output<String>? = null

The bootstrapper for script execution. The length cannot exceed 1KB.

Link copied to clipboard
val name: Output<String>? = null

The command name.

Link copied to clipboard
val nodeIdLists: Output<List<String>>? = null

A list of nodes.

Link copied to clipboard
val parameters: Output<Map<String, String>>? = null

When the command contains custom parameters, the key-value pair of the custom parameters passed in when the command is executed. For example, if the command content is 'echo {{name}}', the key-value pair'{"name":"Jack"}'can be passed through the 'Parameter' parameter'. The custom parameter will automatically replace the variable value 'name' to get a new command that actually executes 'echo Jack '. The number of custom parameters ranges from 0 to 10, and you need to pay attention:

Link copied to clipboard
val repeatMode: Output<String>? = null

Sets the way the command is executed. Value range:

Link copied to clipboard
val terminationMode: Output<String>? = null

The mode when the task is stopped (manually stopped or execution time-out interrupted). Possible values: Process: Stops the current script Process. ProcessTree: Stops the current process tree (the script process and the collection of all child processes it created)

Link copied to clipboard
val timeout: Output<Int>? = null

The timeout period for command execution. Unit: seconds. A timeout occurs when a command cannot be run due to a process, a missing module, or a missing cloud assistant Agent. After the timeout, the command process is forcibly terminated. Default value: 60.

Link copied to clipboard
val username: Output<String>? = null

The name of the user who executed the command in the instance. The length must not exceed 255 characters. The instance of the Linux system. By default, the root user runs commands.

Link copied to clipboard
val workingDir: Output<String>? = null

You can customize the command execution path. The default path is as follows: Linux instance: the execution path is in the/home directory of the root user by default.

Functions

Link copied to clipboard
open override fun toJava(): InvocationArgs