ScriptArgs

data class ScriptArgs(val path: Output<String>? = null, val text: Output<String>? = null) : ConvertibleToJava<ScriptArgs>

Script runnable.

Constructors

Link copied to clipboard
constructor(path: Output<String>? = null, text: Output<String>? = null)

Properties

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

Script file path on the host VM. To specify an interpreter, please add a #!(also known as shebang line) as the first line of the file.(For example, to execute the script using bash, #!/bin/bash should be the first line of the file. To execute the script usingPython3, #!/usr/bin/env python3 should be the first line of the file.) Otherwise, the file will by default be excuted by /bin/sh.

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

Shell script text. To specify an interpreter, please add a #!\n at the beginning of the text.(For example, to execute the script using bash, #!/bin/bash\n should be added. To execute the script usingPython3, #!/usr/bin/env python3\n should be added.) Otherwise, the script will by default be excuted by /bin/sh.

Functions

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