Execution

class Execution : KotlinCustomResource

Provides a OOS Execution resource. For information about Alicloud OOS Execution and how to use it, see What is Resource Alicloud OOS Execution.

NOTE: Available in 1.93.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oos.Template;
import com.pulumi.alicloud.oos.TemplateArgs;
import com.pulumi.alicloud.oos.Execution;
import com.pulumi.alicloud.oos.ExecutionArgs;
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 Template("default", TemplateArgs.builder()
.content("""
{
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
""")
.templateName("test-name")
.versionName("test")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "acceptance Test")
))
.build());
var example = new Execution("example", ExecutionArgs.builder()
.templateName(default_.templateName())
.description("From TF Test")
.parameters("""
{"Status":"Running"}
""")
.build());
}
}

Import

OOS Execution can be imported using the id, e.g.

$ pulumi import alicloud:oos/execution:Execution example exec-ef6xxxx

Properties

Link copied to clipboard
val counters: Output<String>

The counters of OOS Execution.

Link copied to clipboard
val createDate: Output<String>

The time when the execution was created.

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

The description of OOS Execution.

Link copied to clipboard
val endDate: Output<String>

The time when the execution was ended.

Link copied to clipboard
val executedBy: Output<String>

The user who execute the template.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isParent: Output<Boolean>

Whether to include subtasks.

Link copied to clipboard
val loopMode: Output<String>?

The loop mode of OOS Execution.

Link copied to clipboard
val mode: Output<String>?

The mode of OOS Execution. Valid: Automatic, Debug. Default to Automatic.

Link copied to clipboard
val outputs: Output<String>

The outputs of OOS Execution.

Link copied to clipboard
val parameters: Output<String>?

The parameters required by the template. Default to {}.

Link copied to clipboard

The id of parent execution.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ramRole: Output<String>

The role that executes the current template.

Link copied to clipboard
val safetyCheck: Output<String>?

The mode of safety check.

Link copied to clipboard
val startDate: Output<String>

The time when the execution was started.

Link copied to clipboard
val status: Output<String>

The status of OOS Execution.

Link copied to clipboard
val statusMessage: Output<String>

The message of status.

Link copied to clipboard
val templateContent: Output<String>?

The content of template. When the user selects an existing template to create and execute a task, it is not necessary to pass in this field.

Link copied to clipboard
val templateId: Output<String>

The id of template.

Link copied to clipboard
val templateName: Output<String>

The name of execution template.

Link copied to clipboard
val templateVersion: Output<String>

The version of execution template.

Link copied to clipboard
val updateDate: Output<String>

The time when the execution was updated.

Link copied to clipboard
val urn: Output<String>