1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. ActionTemplate
Viewing docs for Harness v0.12.0
published on Tuesday, Apr 21, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.12.0
published on Tuesday, Apr 21, 2026 by Pulumi

    Resource for managing Harness Chaos Action Templates. Action templates define reusable actions that can be used in chaos experiments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // ============================================================================
    // Harness Chaos Action Template Resource Examples
    // ============================================================================
    //
    // Action templates define reusable actions for chaos experiments.
    // These examples are based on TESTED configurations from the e2e-test suite.
    //
    // Key Points:
    // - Actions can be delay, script, or container type
    // - Runtime inputs with defaults: "<+input>.default('value')"
    // - Container actions support full Kubernetes pod configuration
    // ============================================================================
    // ----------------------------------------------------------------------------
    // Example 1: Container Action with Runtime Inputs (TESTED ✅)
    // ----------------------------------------------------------------------------
    // Most common pattern: container action with runtime inputs and defaults
    const containerWithRuntimeInputs = new harness.chaos.ActionTemplate("container_with_runtime_inputs", {
        orgId: _this.id,
        projectId: thisHarnessPlatformProject.id,
        hubIdentity: projectLevel.identity,
        identity: "container-action-template",
        name: "Container Action Template",
        description: "Container action with runtime inputs and defaults",
        type: "container",
        infrastructureType: "<+input>.default('Kubernetes')",
        tags: [
            "container",
            "kubernetes",
            "runtime-inputs",
        ],
        containerAction: {
            image: "<+input>.default('busybox:latest')",
            commands: ["<+input>.default('sh')"],
            args: "echo 'Running container action'; sleep 15",
            namespace: "<+input>.default('default')",
            nodeSelector: {
                disktype: "ssd",
                zone: "us-west-1a",
            },
            labels: {
                app: "chaos-action",
                environment: "production",
                "managed-by": "terraform",
            },
            annotations: {
                description: "Chaos container action",
                owner: "chaos-team",
            },
            envs: [
                {
                    name: "TEST_VAR",
                    value: "<+input>.default('test_value')",
                },
                {
                    name: "ANOTHER_VAR",
                    value: "<+input>.default('another_value')",
                },
            ],
            resources: {
                limits: {
                    cpu: "500m",
                    memory: "512Mi",
                },
                requests: {
                    cpu: "250m",
                    memory: "256Mi",
                },
            },
        },
        runProperties: {
            timeout: "<+input>.default('60s')",
            interval: "<+input>.default('15s')",
        },
        variables: [
            {
                name: "container_image",
                value: "<+input>",
                type: "string",
                required: true,
                description: "Container image to use (runtime input)",
            },
            {
                name: "namespace",
                value: "<+input>",
                type: "string",
                required: false,
                description: "Kubernetes namespace (runtime input)",
            },
        ],
    }, {
        dependsOn: [projectLevel],
    });
    // ----------------------------------------------------------------------------
    // Example 2: Simple Delay Action (TESTED ✅)
    // ----------------------------------------------------------------------------
    // Delay action for adding wait time in experiments
    const delayAction = new harness.chaos.ActionTemplate("delay_action", {
        orgId: _this.id,
        projectId: thisHarnessPlatformProject.id,
        hubIdentity: projectLevel.identity,
        identity: "delay-action-template",
        name: "Delay Action Template",
        description: "Simple delay action for wait time",
        type: "delay",
        infrastructureType: "Kubernetes",
        tags: [
            "delay",
            "wait",
        ],
        delayAction: {
            duration: "<+input>.default('30s')",
        },
        runProperties: {
            timeout: "60s",
        },
    }, {
        dependsOn: [projectLevel],
    });
    // ----------------------------------------------------------------------------
    // Example 3: Script Action (TESTED ✅)
    // ----------------------------------------------------------------------------
    // Custom script action for flexible operations
    const scriptAction = new harness.chaos.ActionTemplate("script_action", {
        orgId: _this.id,
        projectId: thisHarnessPlatformProject.id,
        hubIdentity: projectLevel.identity,
        identity: "script-action-template",
        name: "Script Action Template",
        description: "Custom script action for chaos operations",
        type: "script",
        infrastructureType: "<+input>.default('Kubernetes')",
        tags: [
            "script",
            "custom",
        ],
        customScriptAction: {
            script: `#!/bin/bash
    echo \\"Running custom chaos script\\"
    echo \\"Target: <+input>\\"
    sleep 10
    echo \\"Script completed\\"
    `,
            shell: "bash",
            envs: [{
                name: "TARGET",
                value: "<+input>.default('default-target')",
            }],
        },
        runProperties: {
            timeout: "<+input>.default('120s')",
            interval: "30s",
        },
        variables: [{
            name: "target_resource",
            value: "<+input>",
            type: "string",
            required: true,
            description: "Target resource for the script",
        }],
    }, {
        dependsOn: [projectLevel],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # ============================================================================
    # Harness Chaos Action Template Resource Examples
    # ============================================================================
    #
    # Action templates define reusable actions for chaos experiments.
    # These examples are based on TESTED configurations from the e2e-test suite.
    #
    # Key Points:
    # - Actions can be delay, script, or container type
    # - Runtime inputs with defaults: "<+input>.default('value')"
    # - Container actions support full Kubernetes pod configuration
    # ============================================================================
    # ----------------------------------------------------------------------------
    # Example 1: Container Action with Runtime Inputs (TESTED ✅)
    # ----------------------------------------------------------------------------
    # Most common pattern: container action with runtime inputs and defaults
    container_with_runtime_inputs = harness.chaos.ActionTemplate("container_with_runtime_inputs",
        org_id=this["id"],
        project_id=this_harness_platform_project["id"],
        hub_identity=project_level["identity"],
        identity="container-action-template",
        name="Container Action Template",
        description="Container action with runtime inputs and defaults",
        type="container",
        infrastructure_type="<+input>.default('Kubernetes')",
        tags=[
            "container",
            "kubernetes",
            "runtime-inputs",
        ],
        container_action={
            "image": "<+input>.default('busybox:latest')",
            "commands": ["<+input>.default('sh')"],
            "args": "echo 'Running container action'; sleep 15",
            "namespace": "<+input>.default('default')",
            "node_selector": {
                "disktype": "ssd",
                "zone": "us-west-1a",
            },
            "labels": {
                "app": "chaos-action",
                "environment": "production",
                "managed-by": "terraform",
            },
            "annotations": {
                "description": "Chaos container action",
                "owner": "chaos-team",
            },
            "envs": [
                {
                    "name": "TEST_VAR",
                    "value": "<+input>.default('test_value')",
                },
                {
                    "name": "ANOTHER_VAR",
                    "value": "<+input>.default('another_value')",
                },
            ],
            "resources": {
                "limits": {
                    "cpu": "500m",
                    "memory": "512Mi",
                },
                "requests": {
                    "cpu": "250m",
                    "memory": "256Mi",
                },
            },
        },
        run_properties={
            "timeout": "<+input>.default('60s')",
            "interval": "<+input>.default('15s')",
        },
        variables=[
            {
                "name": "container_image",
                "value": "<+input>",
                "type": "string",
                "required": True,
                "description": "Container image to use (runtime input)",
            },
            {
                "name": "namespace",
                "value": "<+input>",
                "type": "string",
                "required": False,
                "description": "Kubernetes namespace (runtime input)",
            },
        ],
        opts = pulumi.ResourceOptions(depends_on=[project_level]))
    # ----------------------------------------------------------------------------
    # Example 2: Simple Delay Action (TESTED ✅)
    # ----------------------------------------------------------------------------
    # Delay action for adding wait time in experiments
    delay_action = harness.chaos.ActionTemplate("delay_action",
        org_id=this["id"],
        project_id=this_harness_platform_project["id"],
        hub_identity=project_level["identity"],
        identity="delay-action-template",
        name="Delay Action Template",
        description="Simple delay action for wait time",
        type="delay",
        infrastructure_type="Kubernetes",
        tags=[
            "delay",
            "wait",
        ],
        delay_action={
            "duration": "<+input>.default('30s')",
        },
        run_properties={
            "timeout": "60s",
        },
        opts = pulumi.ResourceOptions(depends_on=[project_level]))
    # ----------------------------------------------------------------------------
    # Example 3: Script Action (TESTED ✅)
    # ----------------------------------------------------------------------------
    # Custom script action for flexible operations
    script_action = harness.chaos.ActionTemplate("script_action",
        org_id=this["id"],
        project_id=this_harness_platform_project["id"],
        hub_identity=project_level["identity"],
        identity="script-action-template",
        name="Script Action Template",
        description="Custom script action for chaos operations",
        type="script",
        infrastructure_type="<+input>.default('Kubernetes')",
        tags=[
            "script",
            "custom",
        ],
        custom_script_action={
            "script": """#!/bin/bash
    echo \"Running custom chaos script\"
    echo \"Target: <+input>\"
    sleep 10
    echo \"Script completed\"
    """,
            "shell": "bash",
            "envs": [{
                "name": "TARGET",
                "value": "<+input>.default('default-target')",
            }],
        },
        run_properties={
            "timeout": "<+input>.default('120s')",
            "interval": "30s",
        },
        variables=[{
            "name": "target_resource",
            "value": "<+input>",
            "type": "string",
            "required": True,
            "description": "Target resource for the script",
        }],
        opts = pulumi.ResourceOptions(depends_on=[project_level]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ============================================================================
    		// Harness Chaos Action Template Resource Examples
    		// ============================================================================
    		//
    		// Action templates define reusable actions for chaos experiments.
    		// These examples are based on TESTED configurations from the e2e-test suite.
    		//
    		// Key Points:
    		// - Actions can be delay, script, or container type
    		// - Runtime inputs with defaults: "<+input>.default('value')"
    		// - Container actions support full Kubernetes pod configuration
    		// ============================================================================
    		// ----------------------------------------------------------------------------
    		// Example 1: Container Action with Runtime Inputs (TESTED ✅)
    		// ----------------------------------------------------------------------------
    		// Most common pattern: container action with runtime inputs and defaults
    		_, err := chaos.NewActionTemplate(ctx, "container_with_runtime_inputs", &chaos.ActionTemplateArgs{
    			OrgId:              pulumi.Any(this.Id),
    			ProjectId:          pulumi.Any(thisHarnessPlatformProject.Id),
    			HubIdentity:        pulumi.Any(projectLevel.Identity),
    			Identity:           pulumi.String("container-action-template"),
    			Name:               pulumi.String("Container Action Template"),
    			Description:        pulumi.String("Container action with runtime inputs and defaults"),
    			Type:               pulumi.String("container"),
    			InfrastructureType: pulumi.String("<+input>.default('Kubernetes')"),
    			Tags: pulumi.StringArray{
    				pulumi.String("container"),
    				pulumi.String("kubernetes"),
    				pulumi.String("runtime-inputs"),
    			},
    			ContainerAction: &chaos.ActionTemplateContainerActionArgs{
    				Image: pulumi.String("<+input>.default('busybox:latest')"),
    				Commands: pulumi.StringArray{
    					pulumi.String("<+input>.default('sh')"),
    				},
    				Args:      pulumi.String("echo 'Running container action'; sleep 15"),
    				Namespace: pulumi.String("<+input>.default('default')"),
    				NodeSelector: pulumi.StringMap{
    					"disktype": pulumi.String("ssd"),
    					"zone":     pulumi.String("us-west-1a"),
    				},
    				Labels: pulumi.StringMap{
    					"app":         pulumi.String("chaos-action"),
    					"environment": pulumi.String("production"),
    					"managed-by":  pulumi.String("terraform"),
    				},
    				Annotations: pulumi.StringMap{
    					"description": pulumi.String("Chaos container action"),
    					"owner":       pulumi.String("chaos-team"),
    				},
    				Envs: chaos.ActionTemplateContainerActionEnvArray{
    					&chaos.ActionTemplateContainerActionEnvArgs{
    						Name:  pulumi.String("TEST_VAR"),
    						Value: pulumi.String("<+input>.default('test_value')"),
    					},
    					&chaos.ActionTemplateContainerActionEnvArgs{
    						Name:  pulumi.String("ANOTHER_VAR"),
    						Value: pulumi.String("<+input>.default('another_value')"),
    					},
    				},
    				Resources: &chaos.ActionTemplateContainerActionResourcesArgs{
    					Limits: pulumi.StringMap{
    						"cpu":    pulumi.String("500m"),
    						"memory": pulumi.String("512Mi"),
    					},
    					Requests: pulumi.StringMap{
    						"cpu":    pulumi.String("250m"),
    						"memory": pulumi.String("256Mi"),
    					},
    				},
    			},
    			RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
    				Timeout:  pulumi.String("<+input>.default('60s')"),
    				Interval: pulumi.String("<+input>.default('15s')"),
    			},
    			Variables: chaos.ActionTemplateVariableArray{
    				&chaos.ActionTemplateVariableArgs{
    					Name:        pulumi.String("container_image"),
    					Value:       pulumi.String("<+input>"),
    					Type:        pulumi.String("string"),
    					Required:    pulumi.Bool(true),
    					Description: pulumi.String("Container image to use (runtime input)"),
    				},
    				&chaos.ActionTemplateVariableArgs{
    					Name:        pulumi.String("namespace"),
    					Value:       pulumi.String("<+input>"),
    					Type:        pulumi.String("string"),
    					Required:    pulumi.Bool(false),
    					Description: pulumi.String("Kubernetes namespace (runtime input)"),
    				},
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			projectLevel,
    		}))
    		if err != nil {
    			return err
    		}
    		// ----------------------------------------------------------------------------
    		// Example 2: Simple Delay Action (TESTED ✅)
    		// ----------------------------------------------------------------------------
    		// Delay action for adding wait time in experiments
    		_, err = chaos.NewActionTemplate(ctx, "delay_action", &chaos.ActionTemplateArgs{
    			OrgId:              pulumi.Any(this.Id),
    			ProjectId:          pulumi.Any(thisHarnessPlatformProject.Id),
    			HubIdentity:        pulumi.Any(projectLevel.Identity),
    			Identity:           pulumi.String("delay-action-template"),
    			Name:               pulumi.String("Delay Action Template"),
    			Description:        pulumi.String("Simple delay action for wait time"),
    			Type:               pulumi.String("delay"),
    			InfrastructureType: pulumi.String("Kubernetes"),
    			Tags: pulumi.StringArray{
    				pulumi.String("delay"),
    				pulumi.String("wait"),
    			},
    			DelayAction: &chaos.ActionTemplateDelayActionArgs{
    				Duration: pulumi.String("<+input>.default('30s')"),
    			},
    			RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
    				Timeout: pulumi.String("60s"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			projectLevel,
    		}))
    		if err != nil {
    			return err
    		}
    		// ----------------------------------------------------------------------------
    		// Example 3: Script Action (TESTED ✅)
    		// ----------------------------------------------------------------------------
    		// Custom script action for flexible operations
    		_, err = chaos.NewActionTemplate(ctx, "script_action", &chaos.ActionTemplateArgs{
    			OrgId:              pulumi.Any(this.Id),
    			ProjectId:          pulumi.Any(thisHarnessPlatformProject.Id),
    			HubIdentity:        pulumi.Any(projectLevel.Identity),
    			Identity:           pulumi.String("script-action-template"),
    			Name:               pulumi.String("Script Action Template"),
    			Description:        pulumi.String("Custom script action for chaos operations"),
    			Type:               pulumi.String("script"),
    			InfrastructureType: pulumi.String("<+input>.default('Kubernetes')"),
    			Tags: pulumi.StringArray{
    				pulumi.String("script"),
    				pulumi.String("custom"),
    			},
    			CustomScriptAction: &chaos.ActionTemplateCustomScriptActionArgs{
    				Script: `#!/bin/bash
    echo \"Running custom chaos script\"
    echo \"Target: <+input>\"
    sleep 10
    echo \"Script completed\"
    `,
    				Shell: "bash",
    				Envs: chaos.ActionTemplateCustomScriptActionEnvArray{
    					&chaos.ActionTemplateCustomScriptActionEnvArgs{
    						Name:  pulumi.String("TARGET"),
    						Value: pulumi.String("<+input>.default('default-target')"),
    					},
    				},
    			},
    			RunProperties: &chaos.ActionTemplateRunPropertiesArgs{
    				Timeout:  pulumi.String("<+input>.default('120s')"),
    				Interval: pulumi.String("30s"),
    			},
    			Variables: chaos.ActionTemplateVariableArray{
    				&chaos.ActionTemplateVariableArgs{
    					Name:        pulumi.String("target_resource"),
    					Value:       pulumi.String("<+input>"),
    					Type:        pulumi.String("string"),
    					Required:    pulumi.Bool(true),
    					Description: pulumi.String("Target resource for the script"),
    				},
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			projectLevel,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // ============================================================================
        // Harness Chaos Action Template Resource Examples
        // ============================================================================
        //
        // Action templates define reusable actions for chaos experiments.
        // These examples are based on TESTED configurations from the e2e-test suite.
        //
        // Key Points:
        // - Actions can be delay, script, or container type
        // - Runtime inputs with defaults: "<+input>.default('value')"
        // - Container actions support full Kubernetes pod configuration
        // ============================================================================
        // ----------------------------------------------------------------------------
        // Example 1: Container Action with Runtime Inputs (TESTED ✅)
        // ----------------------------------------------------------------------------
        // Most common pattern: container action with runtime inputs and defaults
        var containerWithRuntimeInputs = new Harness.Chaos.ActionTemplate("container_with_runtime_inputs", new()
        {
            OrgId = @this.Id,
            ProjectId = thisHarnessPlatformProject.Id,
            HubIdentity = projectLevel.Identity,
            Identity = "container-action-template",
            Name = "Container Action Template",
            Description = "Container action with runtime inputs and defaults",
            Type = "container",
            InfrastructureType = "<+input>.default('Kubernetes')",
            Tags = new[]
            {
                "container",
                "kubernetes",
                "runtime-inputs",
            },
            ContainerAction = new Harness.Chaos.Inputs.ActionTemplateContainerActionArgs
            {
                Image = "<+input>.default('busybox:latest')",
                Commands = new[]
                {
                    "<+input>.default('sh')",
                },
                Args = "echo 'Running container action'; sleep 15",
                Namespace = "<+input>.default('default')",
                NodeSelector = 
                {
                    { "disktype", "ssd" },
                    { "zone", "us-west-1a" },
                },
                Labels = 
                {
                    { "app", "chaos-action" },
                    { "environment", "production" },
                    { "managed-by", "terraform" },
                },
                Annotations = 
                {
                    { "description", "Chaos container action" },
                    { "owner", "chaos-team" },
                },
                Envs = new[]
                {
                    new Harness.Chaos.Inputs.ActionTemplateContainerActionEnvArgs
                    {
                        Name = "TEST_VAR",
                        Value = "<+input>.default('test_value')",
                    },
                    new Harness.Chaos.Inputs.ActionTemplateContainerActionEnvArgs
                    {
                        Name = "ANOTHER_VAR",
                        Value = "<+input>.default('another_value')",
                    },
                },
                Resources = new Harness.Chaos.Inputs.ActionTemplateContainerActionResourcesArgs
                {
                    Limits = 
                    {
                        { "cpu", "500m" },
                        { "memory", "512Mi" },
                    },
                    Requests = 
                    {
                        { "cpu", "250m" },
                        { "memory", "256Mi" },
                    },
                },
            },
            RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
            {
                Timeout = "<+input>.default('60s')",
                Interval = "<+input>.default('15s')",
            },
            Variables = new[]
            {
                new Harness.Chaos.Inputs.ActionTemplateVariableArgs
                {
                    Name = "container_image",
                    Value = "<+input>",
                    Type = "string",
                    Required = true,
                    Description = "Container image to use (runtime input)",
                },
                new Harness.Chaos.Inputs.ActionTemplateVariableArgs
                {
                    Name = "namespace",
                    Value = "<+input>",
                    Type = "string",
                    Required = false,
                    Description = "Kubernetes namespace (runtime input)",
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                projectLevel,
            },
        });
    
        // ----------------------------------------------------------------------------
        // Example 2: Simple Delay Action (TESTED ✅)
        // ----------------------------------------------------------------------------
        // Delay action for adding wait time in experiments
        var delayAction = new Harness.Chaos.ActionTemplate("delay_action", new()
        {
            OrgId = @this.Id,
            ProjectId = thisHarnessPlatformProject.Id,
            HubIdentity = projectLevel.Identity,
            Identity = "delay-action-template",
            Name = "Delay Action Template",
            Description = "Simple delay action for wait time",
            Type = "delay",
            InfrastructureType = "Kubernetes",
            Tags = new[]
            {
                "delay",
                "wait",
            },
            DelayAction = new Harness.Chaos.Inputs.ActionTemplateDelayActionArgs
            {
                Duration = "<+input>.default('30s')",
            },
            RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
            {
                Timeout = "60s",
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                projectLevel,
            },
        });
    
        // ----------------------------------------------------------------------------
        // Example 3: Script Action (TESTED ✅)
        // ----------------------------------------------------------------------------
        // Custom script action for flexible operations
        var scriptAction = new Harness.Chaos.ActionTemplate("script_action", new()
        {
            OrgId = @this.Id,
            ProjectId = thisHarnessPlatformProject.Id,
            HubIdentity = projectLevel.Identity,
            Identity = "script-action-template",
            Name = "Script Action Template",
            Description = "Custom script action for chaos operations",
            Type = "script",
            InfrastructureType = "<+input>.default('Kubernetes')",
            Tags = new[]
            {
                "script",
                "custom",
            },
            CustomScriptAction = new Harness.Chaos.Inputs.ActionTemplateCustomScriptActionArgs
            {
                Script = @"#!/bin/bash
    echo \""Running custom chaos script\""
    echo \""Target: <+input>\""
    sleep 10
    echo \""Script completed\""
    ",
                Shell = "bash",
                Envs = new[]
                {
                    new Harness.Chaos.Inputs.ActionTemplateCustomScriptActionEnvArgs
                    {
                        Name = "TARGET",
                        Value = "<+input>.default('default-target')",
                    },
                },
            },
            RunProperties = new Harness.Chaos.Inputs.ActionTemplateRunPropertiesArgs
            {
                Timeout = "<+input>.default('120s')",
                Interval = "30s",
            },
            Variables = new[]
            {
                new Harness.Chaos.Inputs.ActionTemplateVariableArgs
                {
                    Name = "target_resource",
                    Value = "<+input>",
                    Type = "string",
                    Required = true,
                    Description = "Target resource for the script",
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                projectLevel,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.chaos.ActionTemplate;
    import com.pulumi.harness.chaos.ActionTemplateArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateContainerActionArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateContainerActionResourcesArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateRunPropertiesArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateVariableArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateDelayActionArgs;
    import com.pulumi.harness.chaos.inputs.ActionTemplateCustomScriptActionArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            // ============================================================================
            // Harness Chaos Action Template Resource Examples
            // ============================================================================
            //
            // Action templates define reusable actions for chaos experiments.
            // These examples are based on TESTED configurations from the e2e-test suite.
            //
            // Key Points:
            // - Actions can be delay, script, or container type
            // - Runtime inputs with defaults: "<+input>.default('value')"
            // - Container actions support full Kubernetes pod configuration
            // ============================================================================
            // ----------------------------------------------------------------------------
            // Example 1: Container Action with Runtime Inputs (TESTED ✅)
            // ----------------------------------------------------------------------------
            // Most common pattern: container action with runtime inputs and defaults
            var containerWithRuntimeInputs = new ActionTemplate("containerWithRuntimeInputs", ActionTemplateArgs.builder()
                .orgId(this_.id())
                .projectId(thisHarnessPlatformProject.id())
                .hubIdentity(projectLevel.identity())
                .identity("container-action-template")
                .name("Container Action Template")
                .description("Container action with runtime inputs and defaults")
                .type("container")
                .infrastructureType("<+input>.default('Kubernetes')")
                .tags(            
                    "container",
                    "kubernetes",
                    "runtime-inputs")
                .containerAction(ActionTemplateContainerActionArgs.builder()
                    .image("<+input>.default('busybox:latest')")
                    .commands("<+input>.default('sh')")
                    .args("echo 'Running container action'; sleep 15")
                    .namespace("<+input>.default('default')")
                    .nodeSelector(Map.ofEntries(
                        Map.entry("disktype", "ssd"),
                        Map.entry("zone", "us-west-1a")
                    ))
                    .labels(Map.ofEntries(
                        Map.entry("app", "chaos-action"),
                        Map.entry("environment", "production"),
                        Map.entry("managed-by", "terraform")
                    ))
                    .annotations(Map.ofEntries(
                        Map.entry("description", "Chaos container action"),
                        Map.entry("owner", "chaos-team")
                    ))
                    .envs(                
                        ActionTemplateContainerActionEnvArgs.builder()
                            .name("TEST_VAR")
                            .value("<+input>.default('test_value')")
                            .build(),
                        ActionTemplateContainerActionEnvArgs.builder()
                            .name("ANOTHER_VAR")
                            .value("<+input>.default('another_value')")
                            .build())
                    .resources(ActionTemplateContainerActionResourcesArgs.builder()
                        .limits(Map.ofEntries(
                            Map.entry("cpu", "500m"),
                            Map.entry("memory", "512Mi")
                        ))
                        .requests(Map.ofEntries(
                            Map.entry("cpu", "250m"),
                            Map.entry("memory", "256Mi")
                        ))
                        .build())
                    .build())
                .runProperties(ActionTemplateRunPropertiesArgs.builder()
                    .timeout("<+input>.default('60s')")
                    .interval("<+input>.default('15s')")
                    .build())
                .variables(            
                    ActionTemplateVariableArgs.builder()
                        .name("container_image")
                        .value("<+input>")
                        .type("string")
                        .required(true)
                        .description("Container image to use (runtime input)")
                        .build(),
                    ActionTemplateVariableArgs.builder()
                        .name("namespace")
                        .value("<+input>")
                        .type("string")
                        .required(false)
                        .description("Kubernetes namespace (runtime input)")
                        .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(projectLevel)
                    .build());
    
            // ----------------------------------------------------------------------------
            // Example 2: Simple Delay Action (TESTED ✅)
            // ----------------------------------------------------------------------------
            // Delay action for adding wait time in experiments
            var delayAction = new ActionTemplate("delayAction", ActionTemplateArgs.builder()
                .orgId(this_.id())
                .projectId(thisHarnessPlatformProject.id())
                .hubIdentity(projectLevel.identity())
                .identity("delay-action-template")
                .name("Delay Action Template")
                .description("Simple delay action for wait time")
                .type("delay")
                .infrastructureType("Kubernetes")
                .tags(            
                    "delay",
                    "wait")
                .delayAction(ActionTemplateDelayActionArgs.builder()
                    .duration("<+input>.default('30s')")
                    .build())
                .runProperties(ActionTemplateRunPropertiesArgs.builder()
                    .timeout("60s")
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(projectLevel)
                    .build());
    
            // ----------------------------------------------------------------------------
            // Example 3: Script Action (TESTED ✅)
            // ----------------------------------------------------------------------------
            // Custom script action for flexible operations
            var scriptAction = new ActionTemplate("scriptAction", ActionTemplateArgs.builder()
                .orgId(this_.id())
                .projectId(thisHarnessPlatformProject.id())
                .hubIdentity(projectLevel.identity())
                .identity("script-action-template")
                .name("Script Action Template")
                .description("Custom script action for chaos operations")
                .type("script")
                .infrastructureType("<+input>.default('Kubernetes')")
                .tags(            
                    "script",
                    "custom")
                .customScriptAction(ActionTemplateCustomScriptActionArgs.builder()
                    .script("""
    #!/bin/bash
    echo \"Running custom chaos script\"
    echo \"Target: <+input>\"
    sleep 10
    echo \"Script completed\"
                    """)
                    .shell("bash")
                    .envs(ActionTemplateCustomScriptActionEnvArgs.builder()
                        .name("TARGET")
                        .value("<+input>.default('default-target')")
                        .build())
                    .build())
                .runProperties(ActionTemplateRunPropertiesArgs.builder()
                    .timeout("<+input>.default('120s')")
                    .interval("30s")
                    .build())
                .variables(ActionTemplateVariableArgs.builder()
                    .name("target_resource")
                    .value("<+input>")
                    .type("string")
                    .required(true)
                    .description("Target resource for the script")
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(projectLevel)
                    .build());
    
        }
    }
    
    resources:
      # ============================================================================
      # Harness Chaos Action Template Resource Examples
      # ============================================================================
      #
      # Action templates define reusable actions for chaos experiments.
      # These examples are based on TESTED configurations from the e2e-test suite.
      #
      # Key Points:
      # - Actions can be delay, script, or container type
      # - Runtime inputs with defaults: "<+input>.default('value')"
      # - Container actions support full Kubernetes pod configuration
      # ============================================================================
    
      # ----------------------------------------------------------------------------
      # Example 1: Container Action with Runtime Inputs (TESTED ✅)
      # ----------------------------------------------------------------------------
      # Most common pattern: container action with runtime inputs and defaults
      containerWithRuntimeInputs:
        type: harness:chaos:ActionTemplate
        name: container_with_runtime_inputs
        properties:
          orgId: ${this.id}
          projectId: ${thisHarnessPlatformProject.id}
          hubIdentity: ${projectLevel.identity}
          identity: container-action-template
          name: Container Action Template
          description: Container action with runtime inputs and defaults
          type: container
          infrastructureType: <+input>.default('Kubernetes')
          tags:
            - container
            - kubernetes
            - runtime-inputs
          containerAction:
            image: <+input>.default('busybox:latest')
            commands:
              - <+input>.default('sh')
            args: echo 'Running container action'; sleep 15
            namespace: <+input>.default('default')
            nodeSelector:
              disktype: ssd
              zone: us-west-1a
            labels:
              app: chaos-action
              environment: production
              managed-by: terraform
            annotations:
              description: Chaos container action
              owner: chaos-team
            envs:
              - name: TEST_VAR
                value: <+input>.default('test_value')
              - name: ANOTHER_VAR
                value: <+input>.default('another_value')
            resources:
              limits:
                cpu: 500m
                memory: 512Mi
              requests:
                cpu: 250m
                memory: 256Mi
          runProperties:
            timeout: <+input>.default('60s')
            interval: <+input>.default('15s')
          variables:
            - name: container_image
              value: <+input>
              type: string
              required: true
              description: Container image to use (runtime input)
            - name: namespace
              value: <+input>
              type: string
              required: false
              description: Kubernetes namespace (runtime input)
        options:
          dependsOn:
            - ${projectLevel}
      # ----------------------------------------------------------------------------
      # Example 2: Simple Delay Action (TESTED ✅)
      # ----------------------------------------------------------------------------
      # Delay action for adding wait time in experiments
      delayAction:
        type: harness:chaos:ActionTemplate
        name: delay_action
        properties:
          orgId: ${this.id}
          projectId: ${thisHarnessPlatformProject.id}
          hubIdentity: ${projectLevel.identity}
          identity: delay-action-template
          name: Delay Action Template
          description: Simple delay action for wait time
          type: delay
          infrastructureType: Kubernetes
          tags:
            - delay
            - wait
          delayAction:
            duration: <+input>.default('30s')
          runProperties:
            timeout: 60s
        options:
          dependsOn:
            - ${projectLevel}
      # ----------------------------------------------------------------------------
      # Example 3: Script Action (TESTED ✅)
      # ----------------------------------------------------------------------------
      # Custom script action for flexible operations
      scriptAction:
        type: harness:chaos:ActionTemplate
        name: script_action
        properties:
          orgId: ${this.id}
          projectId: ${thisHarnessPlatformProject.id}
          hubIdentity: ${projectLevel.identity}
          identity: script-action-template
          name: Script Action Template
          description: Custom script action for chaos operations
          type: script
          infrastructureType: <+input>.default('Kubernetes')
          tags:
            - script
            - custom
          customScriptAction:
            script: |
              #!/bin/bash
              echo \"Running custom chaos script\"
              echo \"Target: <+input>\"
              sleep 10
              echo \"Script completed\"
            shell: bash
            envs:
              - name: TARGET
                value: <+input>.default('default-target')
          runProperties:
            timeout: <+input>.default('120s')
            interval: 30s
          variables:
            - name: target_resource
              value: <+input>
              type: string
              required: true
              description: Target resource for the script
        options:
          dependsOn:
            - ${projectLevel}
    

    Create ActionTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ActionTemplate(name: string, args: ActionTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def ActionTemplate(resource_name: str,
                       args: ActionTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ActionTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       hub_identity: Optional[str] = None,
                       type: Optional[str] = None,
                       identity: Optional[str] = None,
                       infrastructure_type: Optional[str] = None,
                       description: Optional[str] = None,
                       delay_action: Optional[ActionTemplateDelayActionArgs] = None,
                       container_action: Optional[ActionTemplateContainerActionArgs] = None,
                       name: Optional[str] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None,
                       run_properties: Optional[ActionTemplateRunPropertiesArgs] = None,
                       tags: Optional[Sequence[str]] = None,
                       custom_script_action: Optional[ActionTemplateCustomScriptActionArgs] = None,
                       variables: Optional[Sequence[ActionTemplateVariableArgs]] = None)
    func NewActionTemplate(ctx *Context, name string, args ActionTemplateArgs, opts ...ResourceOption) (*ActionTemplate, error)
    public ActionTemplate(string name, ActionTemplateArgs args, CustomResourceOptions? opts = null)
    public ActionTemplate(String name, ActionTemplateArgs args)
    public ActionTemplate(String name, ActionTemplateArgs args, CustomResourceOptions options)
    
    type: harness:chaos:ActionTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ActionTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ActionTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ActionTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ActionTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ActionTemplate resource accepts the following input properties:

    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    Identity string
    Unique identifier for the action template (immutable).
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    ContainerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CustomScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    Tags List<string>
    Tags to associate with the action template.
    Variables List<ActionTemplateVariable>
    Template variables that can be used in the action.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    Identity string
    Unique identifier for the action template (immutable).
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    ContainerAction ActionTemplateContainerActionArgs
    Container action configuration. Required when type is 'container'.
    CustomScriptAction ActionTemplateCustomScriptActionArgs
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction ActionTemplateDelayActionArgs
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties ActionTemplateRunPropertiesArgs
    Run properties for the action template execution.
    Tags []string
    Tags to associate with the action template.
    Variables []ActionTemplateVariableArgs
    Template variables that can be used in the action.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    identity String
    Unique identifier for the action template (immutable).
    type String
    Type of the action template. Valid values: delay, customScript, container.
    containerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    variables List<ActionTemplateVariable>
    Template variables that can be used in the action.
    hubIdentity string
    Identity of the chaos hub this action template belongs to.
    identity string
    Unique identifier for the action template (immutable).
    type string
    Type of the action template. Valid values: delay, customScript, container.
    containerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description string
    Description of the action template.
    infrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name string
    Name of the action template.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    runProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    tags string[]
    Tags to associate with the action template.
    variables ActionTemplateVariable[]
    Template variables that can be used in the action.
    hub_identity str
    Identity of the chaos hub this action template belongs to.
    identity str
    Unique identifier for the action template (immutable).
    type str
    Type of the action template. Valid values: delay, customScript, container.
    container_action ActionTemplateContainerActionArgs
    Container action configuration. Required when type is 'container'.
    custom_script_action ActionTemplateCustomScriptActionArgs
    Custom script action configuration. Required when type is 'customScript'.
    delay_action ActionTemplateDelayActionArgs
    Delay action configuration. Required when type is 'delay'.
    description str
    Description of the action template.
    infrastructure_type str
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name str
    Name of the action template.
    org_id str
    Organization identifier.
    project_id str
    Project identifier.
    run_properties ActionTemplateRunPropertiesArgs
    Run properties for the action template execution.
    tags Sequence[str]
    Tags to associate with the action template.
    variables Sequence[ActionTemplateVariableArgs]
    Template variables that can be used in the action.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    identity String
    Unique identifier for the action template (immutable).
    type String
    Type of the action template. Valid values: delay, customScript, container.
    containerAction Property Map
    Container action configuration. Required when type is 'container'.
    customScriptAction Property Map
    Custom script action configuration. Required when type is 'customScript'.
    delayAction Property Map
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties Property Map
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    variables List<Property Map>
    Template variables that can be used in the action.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ActionTemplate resource produces the following output properties:

    AccountId string
    Account identifier.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdInternal string
    Internal ID of the action template.
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Revision int
    Revision number of the action template.
    Template string
    Template content/definition.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    AccountId string
    Account identifier.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdInternal string
    Internal ID of the action template.
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Revision int
    Revision number of the action template.
    Template string
    Template content/definition.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    accountId String
    Account identifier.
    createdAt Integer
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    id String
    The provider-assigned unique ID for this managed resource.
    idInternal String
    Internal ID of the action template.
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    revision Integer
    Revision number of the action template.
    template String
    Template content/definition.
    updatedAt Integer
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.
    accountId string
    Account identifier.
    createdAt number
    Creation timestamp (Unix epoch).
    createdBy string
    User who created the action template.
    id string
    The provider-assigned unique ID for this managed resource.
    idInternal string
    Internal ID of the action template.
    isDefault boolean
    Whether this is the default version for predefined actions.
    isEnterprise boolean
    Whether this is an enterprise action template.
    isRemoved boolean
    Whether the action template has been removed.
    revision number
    Revision number of the action template.
    template string
    Template content/definition.
    updatedAt number
    Last update timestamp (Unix epoch).
    updatedBy string
    User who last updated the action template.
    account_id str
    Account identifier.
    created_at int
    Creation timestamp (Unix epoch).
    created_by str
    User who created the action template.
    id str
    The provider-assigned unique ID for this managed resource.
    id_internal str
    Internal ID of the action template.
    is_default bool
    Whether this is the default version for predefined actions.
    is_enterprise bool
    Whether this is an enterprise action template.
    is_removed bool
    Whether the action template has been removed.
    revision int
    Revision number of the action template.
    template str
    Template content/definition.
    updated_at int
    Last update timestamp (Unix epoch).
    updated_by str
    User who last updated the action template.
    accountId String
    Account identifier.
    createdAt Number
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    id String
    The provider-assigned unique ID for this managed resource.
    idInternal String
    Internal ID of the action template.
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    revision Number
    Revision number of the action template.
    template String
    Template content/definition.
    updatedAt Number
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.

    Look up Existing ActionTemplate Resource

    Get an existing ActionTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ActionTemplateState, opts?: CustomResourceOptions): ActionTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            container_action: Optional[ActionTemplateContainerActionArgs] = None,
            created_at: Optional[int] = None,
            created_by: Optional[str] = None,
            custom_script_action: Optional[ActionTemplateCustomScriptActionArgs] = None,
            delay_action: Optional[ActionTemplateDelayActionArgs] = None,
            description: Optional[str] = None,
            hub_identity: Optional[str] = None,
            id_internal: Optional[str] = None,
            identity: Optional[str] = None,
            infrastructure_type: Optional[str] = None,
            is_default: Optional[bool] = None,
            is_enterprise: Optional[bool] = None,
            is_removed: Optional[bool] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            revision: Optional[int] = None,
            run_properties: Optional[ActionTemplateRunPropertiesArgs] = None,
            tags: Optional[Sequence[str]] = None,
            template: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[int] = None,
            updated_by: Optional[str] = None,
            variables: Optional[Sequence[ActionTemplateVariableArgs]] = None) -> ActionTemplate
    func GetActionTemplate(ctx *Context, name string, id IDInput, state *ActionTemplateState, opts ...ResourceOption) (*ActionTemplate, error)
    public static ActionTemplate Get(string name, Input<string> id, ActionTemplateState? state, CustomResourceOptions? opts = null)
    public static ActionTemplate get(String name, Output<String> id, ActionTemplateState state, CustomResourceOptions options)
    resources:  _:    type: harness:chaos:ActionTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Account identifier.
    ContainerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    CustomScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    IdInternal string
    Internal ID of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    Revision int
    Revision number of the action template.
    RunProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    Tags List<string>
    Tags to associate with the action template.
    Template string
    Template content/definition.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    Variables List<ActionTemplateVariable>
    Template variables that can be used in the action.
    AccountId string
    Account identifier.
    ContainerAction ActionTemplateContainerActionArgs
    Container action configuration. Required when type is 'container'.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    CustomScriptAction ActionTemplateCustomScriptActionArgs
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction ActionTemplateDelayActionArgs
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    IdInternal string
    Internal ID of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    Revision int
    Revision number of the action template.
    RunProperties ActionTemplateRunPropertiesArgs
    Run properties for the action template execution.
    Tags []string
    Tags to associate with the action template.
    Template string
    Template content/definition.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    Variables []ActionTemplateVariableArgs
    Template variables that can be used in the action.
    accountId String
    Account identifier.
    containerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    createdAt Integer
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    customScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    idInternal String
    Internal ID of the action template.
    identity String
    Unique identifier for the action template (immutable).
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    revision Integer
    Revision number of the action template.
    runProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    template String
    Template content/definition.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt Integer
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.
    variables List<ActionTemplateVariable>
    Template variables that can be used in the action.
    accountId string
    Account identifier.
    containerAction ActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    createdAt number
    Creation timestamp (Unix epoch).
    createdBy string
    User who created the action template.
    customScriptAction ActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction ActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description string
    Description of the action template.
    hubIdentity string
    Identity of the chaos hub this action template belongs to.
    idInternal string
    Internal ID of the action template.
    identity string
    Unique identifier for the action template (immutable).
    infrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    isDefault boolean
    Whether this is the default version for predefined actions.
    isEnterprise boolean
    Whether this is an enterprise action template.
    isRemoved boolean
    Whether the action template has been removed.
    name string
    Name of the action template.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    revision number
    Revision number of the action template.
    runProperties ActionTemplateRunProperties
    Run properties for the action template execution.
    tags string[]
    Tags to associate with the action template.
    template string
    Template content/definition.
    type string
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt number
    Last update timestamp (Unix epoch).
    updatedBy string
    User who last updated the action template.
    variables ActionTemplateVariable[]
    Template variables that can be used in the action.
    account_id str
    Account identifier.
    container_action ActionTemplateContainerActionArgs
    Container action configuration. Required when type is 'container'.
    created_at int
    Creation timestamp (Unix epoch).
    created_by str
    User who created the action template.
    custom_script_action ActionTemplateCustomScriptActionArgs
    Custom script action configuration. Required when type is 'customScript'.
    delay_action ActionTemplateDelayActionArgs
    Delay action configuration. Required when type is 'delay'.
    description str
    Description of the action template.
    hub_identity str
    Identity of the chaos hub this action template belongs to.
    id_internal str
    Internal ID of the action template.
    identity str
    Unique identifier for the action template (immutable).
    infrastructure_type str
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    is_default bool
    Whether this is the default version for predefined actions.
    is_enterprise bool
    Whether this is an enterprise action template.
    is_removed bool
    Whether the action template has been removed.
    name str
    Name of the action template.
    org_id str
    Organization identifier.
    project_id str
    Project identifier.
    revision int
    Revision number of the action template.
    run_properties ActionTemplateRunPropertiesArgs
    Run properties for the action template execution.
    tags Sequence[str]
    Tags to associate with the action template.
    template str
    Template content/definition.
    type str
    Type of the action template. Valid values: delay, customScript, container.
    updated_at int
    Last update timestamp (Unix epoch).
    updated_by str
    User who last updated the action template.
    variables Sequence[ActionTemplateVariableArgs]
    Template variables that can be used in the action.
    accountId String
    Account identifier.
    containerAction Property Map
    Container action configuration. Required when type is 'container'.
    createdAt Number
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    customScriptAction Property Map
    Custom script action configuration. Required when type is 'customScript'.
    delayAction Property Map
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    idInternal String
    Internal ID of the action template.
    identity String
    Unique identifier for the action template (immutable).
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    revision Number
    Revision number of the action template.
    runProperties Property Map
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    template String
    Template content/definition.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt Number
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.
    variables List<Property Map>
    Template variables that can be used in the action.

    Supporting Types

    ActionTemplateContainerAction, ActionTemplateContainerActionArgs

    Image string
    Container image to use (e.g., 'busybox:latest').
    Annotations Dictionary<string, string>
    Annotations to apply to the container pod.
    Args string
    Arguments to pass to the container command.
    Commands List<string>
    Command to run in the container.
    Envs List<ActionTemplateContainerActionEnv>
    Environment variables for the container.
    HostIpc bool
    Use host IPC namespace.
    HostNetwork bool
    Use host network namespace.
    HostPid bool
    Use host PID namespace.
    ImagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    ImagePullSecrets List<string>
    List of image pull secrets for private registries.
    Labels Dictionary<string, string>
    Labels to apply to the container pod.
    Namespace string
    Kubernetes namespace for the container.
    NodeSelector Dictionary<string, string>
    Node selector for pod scheduling.
    Resources ActionTemplateContainerActionResources
    Resource requirements for the container.
    ServiceAccountName string
    Kubernetes service account name.
    Tolerations List<ActionTemplateContainerActionToleration>
    Tolerations for pod scheduling on tainted nodes.
    VolumeMounts List<ActionTemplateContainerActionVolumeMount>
    Volume mounts for the container.
    Volumes List<ActionTemplateContainerActionVolume>
    Volumes to attach to the pod.
    Image string
    Container image to use (e.g., 'busybox:latest').
    Annotations map[string]string
    Annotations to apply to the container pod.
    Args string
    Arguments to pass to the container command.
    Commands []string
    Command to run in the container.
    Envs []ActionTemplateContainerActionEnv
    Environment variables for the container.
    HostIpc bool
    Use host IPC namespace.
    HostNetwork bool
    Use host network namespace.
    HostPid bool
    Use host PID namespace.
    ImagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    ImagePullSecrets []string
    List of image pull secrets for private registries.
    Labels map[string]string
    Labels to apply to the container pod.
    Namespace string
    Kubernetes namespace for the container.
    NodeSelector map[string]string
    Node selector for pod scheduling.
    Resources ActionTemplateContainerActionResources
    Resource requirements for the container.
    ServiceAccountName string
    Kubernetes service account name.
    Tolerations []ActionTemplateContainerActionToleration
    Tolerations for pod scheduling on tainted nodes.
    VolumeMounts []ActionTemplateContainerActionVolumeMount
    Volume mounts for the container.
    Volumes []ActionTemplateContainerActionVolume
    Volumes to attach to the pod.
    image String
    Container image to use (e.g., 'busybox:latest').
    annotations Map<String,String>
    Annotations to apply to the container pod.
    args String
    Arguments to pass to the container command.
    commands List<String>
    Command to run in the container.
    envs List<ActionTemplateContainerActionEnv>
    Environment variables for the container.
    hostIpc Boolean
    Use host IPC namespace.
    hostNetwork Boolean
    Use host network namespace.
    hostPid Boolean
    Use host PID namespace.
    imagePullPolicy String
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets List<String>
    List of image pull secrets for private registries.
    labels Map<String,String>
    Labels to apply to the container pod.
    namespace String
    Kubernetes namespace for the container.
    nodeSelector Map<String,String>
    Node selector for pod scheduling.
    resources ActionTemplateContainerActionResources
    Resource requirements for the container.
    serviceAccountName String
    Kubernetes service account name.
    tolerations List<ActionTemplateContainerActionToleration>
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts List<ActionTemplateContainerActionVolumeMount>
    Volume mounts for the container.
    volumes List<ActionTemplateContainerActionVolume>
    Volumes to attach to the pod.
    image string
    Container image to use (e.g., 'busybox:latest').
    annotations {[key: string]: string}
    Annotations to apply to the container pod.
    args string
    Arguments to pass to the container command.
    commands string[]
    Command to run in the container.
    envs ActionTemplateContainerActionEnv[]
    Environment variables for the container.
    hostIpc boolean
    Use host IPC namespace.
    hostNetwork boolean
    Use host network namespace.
    hostPid boolean
    Use host PID namespace.
    imagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets string[]
    List of image pull secrets for private registries.
    labels {[key: string]: string}
    Labels to apply to the container pod.
    namespace string
    Kubernetes namespace for the container.
    nodeSelector {[key: string]: string}
    Node selector for pod scheduling.
    resources ActionTemplateContainerActionResources
    Resource requirements for the container.
    serviceAccountName string
    Kubernetes service account name.
    tolerations ActionTemplateContainerActionToleration[]
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts ActionTemplateContainerActionVolumeMount[]
    Volume mounts for the container.
    volumes ActionTemplateContainerActionVolume[]
    Volumes to attach to the pod.
    image str
    Container image to use (e.g., 'busybox:latest').
    annotations Mapping[str, str]
    Annotations to apply to the container pod.
    args str
    Arguments to pass to the container command.
    commands Sequence[str]
    Command to run in the container.
    envs Sequence[ActionTemplateContainerActionEnv]
    Environment variables for the container.
    host_ipc bool
    Use host IPC namespace.
    host_network bool
    Use host network namespace.
    host_pid bool
    Use host PID namespace.
    image_pull_policy str
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    image_pull_secrets Sequence[str]
    List of image pull secrets for private registries.
    labels Mapping[str, str]
    Labels to apply to the container pod.
    namespace str
    Kubernetes namespace for the container.
    node_selector Mapping[str, str]
    Node selector for pod scheduling.
    resources ActionTemplateContainerActionResources
    Resource requirements for the container.
    service_account_name str
    Kubernetes service account name.
    tolerations Sequence[ActionTemplateContainerActionToleration]
    Tolerations for pod scheduling on tainted nodes.
    volume_mounts Sequence[ActionTemplateContainerActionVolumeMount]
    Volume mounts for the container.
    volumes Sequence[ActionTemplateContainerActionVolume]
    Volumes to attach to the pod.
    image String
    Container image to use (e.g., 'busybox:latest').
    annotations Map<String>
    Annotations to apply to the container pod.
    args String
    Arguments to pass to the container command.
    commands List<String>
    Command to run in the container.
    envs List<Property Map>
    Environment variables for the container.
    hostIpc Boolean
    Use host IPC namespace.
    hostNetwork Boolean
    Use host network namespace.
    hostPid Boolean
    Use host PID namespace.
    imagePullPolicy String
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets List<String>
    List of image pull secrets for private registries.
    labels Map<String>
    Labels to apply to the container pod.
    namespace String
    Kubernetes namespace for the container.
    nodeSelector Map<String>
    Node selector for pod scheduling.
    resources Property Map
    Resource requirements for the container.
    serviceAccountName String
    Kubernetes service account name.
    tolerations List<Property Map>
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts List<Property Map>
    Volume mounts for the container.
    volumes List<Property Map>
    Volumes to attach to the pod.

    ActionTemplateContainerActionEnv, ActionTemplateContainerActionEnvArgs

    Name string
    Environment variable name.
    Value string
    Environment variable value.
    Name string
    Environment variable name.
    Value string
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.
    name string
    Environment variable name.
    value string
    Environment variable value.
    name str
    Environment variable name.
    value str
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.

    ActionTemplateContainerActionResources, ActionTemplateContainerActionResourcesArgs

    Limits Dictionary<string, string>
    Resource limits.
    Requests Dictionary<string, string>
    Resource requests.
    Limits map[string]string
    Resource limits.
    Requests map[string]string
    Resource requests.
    limits Map<String,String>
    Resource limits.
    requests Map<String,String>
    Resource requests.
    limits {[key: string]: string}
    Resource limits.
    requests {[key: string]: string}
    Resource requests.
    limits Mapping[str, str]
    Resource limits.
    requests Mapping[str, str]
    Resource requests.
    limits Map<String>
    Resource limits.
    requests Map<String>
    Resource requests.

    ActionTemplateContainerActionToleration, ActionTemplateContainerActionTolerationArgs

    Effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    Key string
    Taint key to tolerate.
    Operator string
    Operator (Exists, Equal).
    TolerationSeconds int
    Toleration seconds for NoExecute effect.
    Value string
    Taint value to tolerate.
    Effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    Key string
    Taint key to tolerate.
    Operator string
    Operator (Exists, Equal).
    TolerationSeconds int
    Toleration seconds for NoExecute effect.
    Value string
    Taint value to tolerate.
    effect String
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key String
    Taint key to tolerate.
    operator String
    Operator (Exists, Equal).
    tolerationSeconds Integer
    Toleration seconds for NoExecute effect.
    value String
    Taint value to tolerate.
    effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key string
    Taint key to tolerate.
    operator string
    Operator (Exists, Equal).
    tolerationSeconds number
    Toleration seconds for NoExecute effect.
    value string
    Taint value to tolerate.
    effect str
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key str
    Taint key to tolerate.
    operator str
    Operator (Exists, Equal).
    toleration_seconds int
    Toleration seconds for NoExecute effect.
    value str
    Taint value to tolerate.
    effect String
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key String
    Taint key to tolerate.
    operator String
    Operator (Exists, Equal).
    tolerationSeconds Number
    Toleration seconds for NoExecute effect.
    value String
    Taint value to tolerate.

    ActionTemplateContainerActionVolume, ActionTemplateContainerActionVolumeArgs

    name String
    Volume name.
    configMap Property Map
    ConfigMap volume configuration.
    emptyDir Property Map
    EmptyDir volume configuration.
    hostPath Property Map
    HostPath volume configuration.
    persistentVolumeClaim Property Map
    PersistentVolumeClaim configuration.
    secret Property Map
    Secret volume configuration.

    ActionTemplateContainerActionVolumeConfigMap, ActionTemplateContainerActionVolumeConfigMapArgs

    Name string
    ConfigMap name.
    Optional bool
    Whether the ConfigMap is optional.
    Name string
    ConfigMap name.
    Optional bool
    Whether the ConfigMap is optional.
    name String
    ConfigMap name.
    optional Boolean
    Whether the ConfigMap is optional.
    name string
    ConfigMap name.
    optional boolean
    Whether the ConfigMap is optional.
    name str
    ConfigMap name.
    optional bool
    Whether the ConfigMap is optional.
    name String
    ConfigMap name.
    optional Boolean
    Whether the ConfigMap is optional.

    ActionTemplateContainerActionVolumeEmptyDir, ActionTemplateContainerActionVolumeEmptyDirArgs

    Medium string
    Storage medium (empty string for default, Memory for tmpfs).
    SizeLimit string
    Size limit (e.g., '1Gi').
    Medium string
    Storage medium (empty string for default, Memory for tmpfs).
    SizeLimit string
    Size limit (e.g., '1Gi').
    medium String
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit String
    Size limit (e.g., '1Gi').
    medium string
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit string
    Size limit (e.g., '1Gi').
    medium str
    Storage medium (empty string for default, Memory for tmpfs).
    size_limit str
    Size limit (e.g., '1Gi').
    medium String
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit String
    Size limit (e.g., '1Gi').

    ActionTemplateContainerActionVolumeHostPath, ActionTemplateContainerActionVolumeHostPathArgs

    Path string
    Host path.
    Type string
    Host path type (Directory, File, etc.).
    Path string
    Host path.
    Type string
    Host path type (Directory, File, etc.).
    path String
    Host path.
    type String
    Host path type (Directory, File, etc.).
    path string
    Host path.
    type string
    Host path type (Directory, File, etc.).
    path str
    Host path.
    type str
    Host path type (Directory, File, etc.).
    path String
    Host path.
    type String
    Host path type (Directory, File, etc.).

    ActionTemplateContainerActionVolumeMount, ActionTemplateContainerActionVolumeMountArgs

    MountPath string
    Path to mount the volume in the container.
    Name string
    Volume name to mount.
    ReadOnly bool
    Mount as read-only.
    SubPath string
    Sub-path within the volume.
    MountPath string
    Path to mount the volume in the container.
    Name string
    Volume name to mount.
    ReadOnly bool
    Mount as read-only.
    SubPath string
    Sub-path within the volume.
    mountPath String
    Path to mount the volume in the container.
    name String
    Volume name to mount.
    readOnly Boolean
    Mount as read-only.
    subPath String
    Sub-path within the volume.
    mountPath string
    Path to mount the volume in the container.
    name string
    Volume name to mount.
    readOnly boolean
    Mount as read-only.
    subPath string
    Sub-path within the volume.
    mount_path str
    Path to mount the volume in the container.
    name str
    Volume name to mount.
    read_only bool
    Mount as read-only.
    sub_path str
    Sub-path within the volume.
    mountPath String
    Path to mount the volume in the container.
    name String
    Volume name to mount.
    readOnly Boolean
    Mount as read-only.
    subPath String
    Sub-path within the volume.

    ActionTemplateContainerActionVolumePersistentVolumeClaim, ActionTemplateContainerActionVolumePersistentVolumeClaimArgs

    ClaimName string
    PVC name.
    ReadOnly bool
    Mount as read-only.
    ClaimName string
    PVC name.
    ReadOnly bool
    Mount as read-only.
    claimName String
    PVC name.
    readOnly Boolean
    Mount as read-only.
    claimName string
    PVC name.
    readOnly boolean
    Mount as read-only.
    claim_name str
    PVC name.
    read_only bool
    Mount as read-only.
    claimName String
    PVC name.
    readOnly Boolean
    Mount as read-only.

    ActionTemplateContainerActionVolumeSecret, ActionTemplateContainerActionVolumeSecretArgs

    SecretName string
    Secret name.
    Optional bool
    Whether the Secret is optional.
    SecretName string
    Secret name.
    Optional bool
    Whether the Secret is optional.
    secretName String
    Secret name.
    optional Boolean
    Whether the Secret is optional.
    secretName string
    Secret name.
    optional boolean
    Whether the Secret is optional.
    secret_name str
    Secret name.
    optional bool
    Whether the Secret is optional.
    secretName String
    Secret name.
    optional Boolean
    Whether the Secret is optional.

    ActionTemplateCustomScriptAction, ActionTemplateCustomScriptActionArgs

    Command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    Args List<string>
    Arguments to pass to the command.
    Envs List<ActionTemplateCustomScriptActionEnv>
    Environment variables for the script.
    Command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    Args []string
    Arguments to pass to the command.
    Envs []ActionTemplateCustomScriptActionEnv
    Environment variables for the script.
    command String
    Command to execute (e.g., 'bash', 'python', 'sh').
    args List<String>
    Arguments to pass to the command.
    envs List<ActionTemplateCustomScriptActionEnv>
    Environment variables for the script.
    command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    args string[]
    Arguments to pass to the command.
    envs ActionTemplateCustomScriptActionEnv[]
    Environment variables for the script.
    command str
    Command to execute (e.g., 'bash', 'python', 'sh').
    args Sequence[str]
    Arguments to pass to the command.
    envs Sequence[ActionTemplateCustomScriptActionEnv]
    Environment variables for the script.
    command String
    Command to execute (e.g., 'bash', 'python', 'sh').
    args List<String>
    Arguments to pass to the command.
    envs List<Property Map>
    Environment variables for the script.

    ActionTemplateCustomScriptActionEnv, ActionTemplateCustomScriptActionEnvArgs

    Name string
    Environment variable name.
    Value string
    Environment variable value.
    Name string
    Environment variable name.
    Value string
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.
    name string
    Environment variable name.
    value string
    Environment variable value.
    name str
    Environment variable name.
    value str
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.

    ActionTemplateDelayAction, ActionTemplateDelayActionArgs

    Duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    Duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration String
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration str
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration String
    Duration of the delay (e.g., '30s', '5m', '1h').

    ActionTemplateRunProperties, ActionTemplateRunPropertiesArgs

    InitialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    Interval string
    Interval between retries (e.g., '10s', '30s').
    MaxRetries int
    Maximum number of retries.
    StopOnFailure bool
    Whether to stop on failure.
    Timeout string
    Timeout for action execution (e.g., '5m', '10m').
    Verbosity string
    Verbosity level for logging.
    InitialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    Interval string
    Interval between retries (e.g., '10s', '30s').
    MaxRetries int
    Maximum number of retries.
    StopOnFailure bool
    Whether to stop on failure.
    Timeout string
    Timeout for action execution (e.g., '5m', '10m').
    Verbosity string
    Verbosity level for logging.
    initialDelay String
    Initial delay before action execution (e.g., '5s', '1m').
    interval String
    Interval between retries (e.g., '10s', '30s').
    maxRetries Integer
    Maximum number of retries.
    stopOnFailure Boolean
    Whether to stop on failure.
    timeout String
    Timeout for action execution (e.g., '5m', '10m').
    verbosity String
    Verbosity level for logging.
    initialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    interval string
    Interval between retries (e.g., '10s', '30s').
    maxRetries number
    Maximum number of retries.
    stopOnFailure boolean
    Whether to stop on failure.
    timeout string
    Timeout for action execution (e.g., '5m', '10m').
    verbosity string
    Verbosity level for logging.
    initial_delay str
    Initial delay before action execution (e.g., '5s', '1m').
    interval str
    Interval between retries (e.g., '10s', '30s').
    max_retries int
    Maximum number of retries.
    stop_on_failure bool
    Whether to stop on failure.
    timeout str
    Timeout for action execution (e.g., '5m', '10m').
    verbosity str
    Verbosity level for logging.
    initialDelay String
    Initial delay before action execution (e.g., '5s', '1m').
    interval String
    Interval between retries (e.g., '10s', '30s').
    maxRetries Number
    Maximum number of retries.
    stopOnFailure Boolean
    Whether to stop on failure.
    timeout String
    Timeout for action execution (e.g., '5m', '10m').
    verbosity String
    Verbosity level for logging.

    ActionTemplateVariable, ActionTemplateVariableArgs

    Name string
    Variable name.
    Value string
    Variable value.
    Description string
    Variable description.
    Required bool
    Whether the variable is required.
    Type string
    Variable type (e.g., 'string', 'number', 'boolean').
    Name string
    Variable name.
    Value string
    Variable value.
    Description string
    Variable description.
    Required bool
    Whether the variable is required.
    Type string
    Variable type (e.g., 'string', 'number', 'boolean').
    name String
    Variable name.
    value String
    Variable value.
    description String
    Variable description.
    required Boolean
    Whether the variable is required.
    type String
    Variable type (e.g., 'string', 'number', 'boolean').
    name string
    Variable name.
    value string
    Variable value.
    description string
    Variable description.
    required boolean
    Whether the variable is required.
    type string
    Variable type (e.g., 'string', 'number', 'boolean').
    name str
    Variable name.
    value str
    Variable value.
    description str
    Variable description.
    required bool
    Whether the variable is required.
    type str
    Variable type (e.g., 'string', 'number', 'boolean').
    name String
    Variable name.
    value String
    Variable value.
    description String
    Variable description.
    required Boolean
    Whether the variable is required.
    type String
    Variable type (e.g., 'string', 'number', 'boolean').

    Import

    The pulumi import command can be used, for example:

    Example 1: Import Project-level Action Template Format: org_id/project_id/hub_identity/template_identity

    $ pulumi import harness:chaos/actionTemplate:ActionTemplate example my_org/my_project/my-chaos-hub/delay-action-template
    

    Example 2: Import Org-level Action Template Format: org_id/hub_identity/template_identity

    $ pulumi import harness:chaos/actionTemplate:ActionTemplate org_example my_org/org-chaos-hub/org-script-action
    

    Example 3: Import Account-level Action Template Format: hub_identity/template_identity

    $ pulumi import harness:chaos/actionTemplate:ActionTemplate account_example account-chaos-hub/account-delay-action
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.12.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.