Command Args
data class CommandArgs(val commandContent: Output<String>? = null, val description: Output<String>? = null, val enableParameter: Output<Boolean>? = null, val name: Output<String>? = null, val timeout: Output<Int>? = null, val type: Output<String>? = null, val workingDir: Output<String>? = null) : ConvertibleToJava<CommandArgs>
Provides a ECS Command resource. For information about ECS Command and how to use it, see What is Command.
NOTE: Available in v1.116.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.Command;
import com.pulumi.alicloud.ecs.CommandArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Command("example", CommandArgs.builder()
.commandContent("bHMK")
.description("For Terraform Test")
.type("RunShellScript")
.workingDir("/root")
.build());
}
}
Content copied to clipboard
Import
ECS Command can be imported using the id, e.g.
$ pulumi import alicloud:ecs/command:Command example <id>
Content copied to clipboard