JobTemplateArgs

data class JobTemplateArgs(val arrayRequest: Output<String>? = null, val clockTime: Output<String>? = null, val commandLine: Output<String>? = null, val gpu: Output<Int>? = null, val jobTemplateName: Output<String>? = null, val mem: Output<String>? = null, val node: Output<Int>? = null, val packagePath: Output<String>? = null, val priority: Output<Int>? = null, val queue: Output<String>? = null, val reRunable: Output<Boolean>? = null, val runasUser: Output<String>? = null, val stderrRedirectPath: Output<String>? = null, val stdoutRedirectPath: Output<String>? = null, val task: Output<Int>? = null, val thread: Output<Int>? = null, val variables: Output<String>? = null) : ConvertibleToJava<JobTemplateArgs>

Provides a Ehpc Job Template resource. For information about Ehpc Job Template and how to use it, see What is Job Template.

NOTE: Available since v1.133.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.ehpc.JobTemplate("default", {
jobTemplateName: "example_value",
commandLine: "./LammpsTest/lammps.pbs",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ehpc.JobTemplate("default",
job_template_name="example_value",
command_line="./LammpsTest/lammps.pbs")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Ehpc.JobTemplate("default", new()
{
JobTemplateName = "example_value",
CommandLine = "./LammpsTest/lammps.pbs",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ehpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ehpc.NewJobTemplate(ctx, "default", &ehpc.JobTemplateArgs{
JobTemplateName: pulumi.String("example_value"),
CommandLine: pulumi.String("./LammpsTest/lammps.pbs"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ehpc.JobTemplate;
import com.pulumi.alicloud.ehpc.JobTemplateArgs;
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 default_ = new JobTemplate("default", JobTemplateArgs.builder()
.jobTemplateName("example_value")
.commandLine("./LammpsTest/lammps.pbs")
.build());
}
}
resources:
default:
type: alicloud:ehpc:JobTemplate
properties:
jobTemplateName: example_value
commandLine: ./LammpsTest/lammps.pbs

Import

Ehpc Job Template can be imported using the id, e.g.

$ pulumi import alicloud:ehpc/jobTemplate:JobTemplate example <id>

Constructors

Link copied to clipboard
constructor(arrayRequest: Output<String>? = null, clockTime: Output<String>? = null, commandLine: Output<String>? = null, gpu: Output<Int>? = null, jobTemplateName: Output<String>? = null, mem: Output<String>? = null, node: Output<Int>? = null, packagePath: Output<String>? = null, priority: Output<Int>? = null, queue: Output<String>? = null, reRunable: Output<Boolean>? = null, runasUser: Output<String>? = null, stderrRedirectPath: Output<String>? = null, stdoutRedirectPath: Output<String>? = null, task: Output<Int>? = null, thread: Output<Int>? = null, variables: Output<String>? = null)

Properties

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

Queue Jobs, Is of the Form: 1-10:2.

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

Job Maximum Run Time.

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

Job Commands.

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

A Single Compute Node Using the GPU Number.Possible Values: 1~20000.

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

A Job Template Name.

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

A Single Compute Node Maximum Memory.

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

Submit a Task Is Required for Computing the Number of Data Nodes to Be. Possible Values: 1~5000 .

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

Job Commands the Directory.

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

The Job Priority.

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

The Job Queue.

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

If the Job Is Support for the Re-Run.

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

The name of the user who performed the job.

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

Error Output Path.

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

Standard Output Path and.

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

A Single Compute Node Required Number of Tasks. Possible Values: 1~20000 .

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

A Single Task and the Number of Required Threads.

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

The Job of the Environment Variable.

Functions

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