1. Packages
  2. Awx Provider
  3. API Docs
  4. WorkflowJobTemplateNode
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

awx.WorkflowJobTemplateNode

Explore with Pulumi AI

awx logo
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

    TBD

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as awx from "@pulumi/awx";
    import * as random from "@pulumi/random";
    
    const workflowNodeBaseUuid = new random.index.Random_uuid("workflowNodeBaseUuid", {});
    const _default = new awx.WorkflowJobTemplateNode("default", {
        workflowJobTemplateId: awx_workflow_job_template["default"].id,
        unifiedJobTemplateId: awx_job_template.baseconfig.id,
        inventoryId: awx_inventory["default"].id,
        identifier: workflowNodeBaseUuid.result,
    });
    
    import pulumi
    import pulumi_awx as awx
    import pulumi_random as random
    
    workflow_node_base_uuid = random.index.Random_uuid("workflowNodeBaseUuid")
    default = awx.WorkflowJobTemplateNode("default",
        workflow_job_template_id=awx_workflow_job_template["default"]["id"],
        unified_job_template_id=awx_job_template["baseconfig"]["id"],
        inventory_id=awx_inventory["default"]["id"],
        identifier=workflow_node_base_uuid["result"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-random/sdk/go/random"
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		workflowNodeBaseUuid, err := random.NewRandom_uuid(ctx, "workflowNodeBaseUuid", nil)
    		if err != nil {
    			return err
    		}
    		_, err = awx.NewWorkflowJobTemplateNode(ctx, "default", &awx.WorkflowJobTemplateNodeArgs{
    			WorkflowJobTemplateId: pulumi.Any(awx_workflow_job_template.Default.Id),
    			UnifiedJobTemplateId:  pulumi.Any(awx_job_template.Baseconfig.Id),
    			InventoryId:           pulumi.Any(awx_inventory.Default.Id),
    			Identifier:            workflowNodeBaseUuid.Result,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Awx = Pulumi.Awx;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var workflowNodeBaseUuid = new Random.Index.Random_uuid("workflowNodeBaseUuid");
    
        var @default = new Awx.WorkflowJobTemplateNode("default", new()
        {
            WorkflowJobTemplateId = awx_workflow_job_template.Default.Id,
            UnifiedJobTemplateId = awx_job_template.Baseconfig.Id,
            InventoryId = awx_inventory.Default.Id,
            Identifier = workflowNodeBaseUuid.Result,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.random_uuid;
    import com.pulumi.awx.WorkflowJobTemplateNode;
    import com.pulumi.awx.WorkflowJobTemplateNodeArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var workflowNodeBaseUuid = new Random_uuid("workflowNodeBaseUuid");
    
            var default_ = new WorkflowJobTemplateNode("default", WorkflowJobTemplateNodeArgs.builder()
                .workflowJobTemplateId(awx_workflow_job_template.default().id())
                .unifiedJobTemplateId(awx_job_template.baseconfig().id())
                .inventoryId(awx_inventory.default().id())
                .identifier(workflowNodeBaseUuid.result())
                .build());
    
        }
    }
    
    resources:
      workflowNodeBaseUuid:
        type: random:random_uuid
      default:
        type: awx:WorkflowJobTemplateNode
        properties:
          workflowJobTemplateId: ${awx_workflow_job_template.default.id}
          unifiedJobTemplateId: ${awx_job_template.baseconfig.id}
          inventoryId: ${awx_inventory.default.id}
          identifier: ${workflowNodeBaseUuid.result}
    

    Create WorkflowJobTemplateNode Resource

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

    Constructor syntax

    new WorkflowJobTemplateNode(name: string, args: WorkflowJobTemplateNodeArgs, opts?: CustomResourceOptions);
    @overload
    def WorkflowJobTemplateNode(resource_name: str,
                                args: WorkflowJobTemplateNodeArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkflowJobTemplateNode(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                identifier: Optional[str] = None,
                                workflow_job_template_id: Optional[float] = None,
                                unified_job_template_id: Optional[float] = None,
                                job_type: Optional[str] = None,
                                inventory_id: Optional[float] = None,
                                job_tags: Optional[str] = None,
                                all_parents_must_converge: Optional[bool] = None,
                                limit: Optional[str] = None,
                                scm_branch: Optional[str] = None,
                                skip_tags: Optional[str] = None,
                                extra_data: Optional[str] = None,
                                verbosity: Optional[float] = None,
                                diff_mode: Optional[bool] = None,
                                workflow_job_template_node_id: Optional[str] = None)
    func NewWorkflowJobTemplateNode(ctx *Context, name string, args WorkflowJobTemplateNodeArgs, opts ...ResourceOption) (*WorkflowJobTemplateNode, error)
    public WorkflowJobTemplateNode(string name, WorkflowJobTemplateNodeArgs args, CustomResourceOptions? opts = null)
    public WorkflowJobTemplateNode(String name, WorkflowJobTemplateNodeArgs args)
    public WorkflowJobTemplateNode(String name, WorkflowJobTemplateNodeArgs args, CustomResourceOptions options)
    
    type: awx:WorkflowJobTemplateNode
    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 WorkflowJobTemplateNodeArgs
    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 WorkflowJobTemplateNodeArgs
    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 WorkflowJobTemplateNodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkflowJobTemplateNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkflowJobTemplateNodeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var workflowJobTemplateNodeResource = new Awx.WorkflowJobTemplateNode("workflowJobTemplateNodeResource", new()
    {
        Identifier = "string",
        WorkflowJobTemplateId = 0,
        UnifiedJobTemplateId = 0,
        JobType = "string",
        InventoryId = 0,
        JobTags = "string",
        AllParentsMustConverge = false,
        Limit = "string",
        ScmBranch = "string",
        SkipTags = "string",
        ExtraData = "string",
        Verbosity = 0,
        DiffMode = false,
        WorkflowJobTemplateNodeId = "string",
    });
    
    example, err := awx.NewWorkflowJobTemplateNode(ctx, "workflowJobTemplateNodeResource", &awx.WorkflowJobTemplateNodeArgs{
    	Identifier:                pulumi.String("string"),
    	WorkflowJobTemplateId:     pulumi.Float64(0),
    	UnifiedJobTemplateId:      pulumi.Float64(0),
    	JobType:                   pulumi.String("string"),
    	InventoryId:               pulumi.Float64(0),
    	JobTags:                   pulumi.String("string"),
    	AllParentsMustConverge:    pulumi.Bool(false),
    	Limit:                     pulumi.String("string"),
    	ScmBranch:                 pulumi.String("string"),
    	SkipTags:                  pulumi.String("string"),
    	ExtraData:                 pulumi.String("string"),
    	Verbosity:                 pulumi.Float64(0),
    	DiffMode:                  pulumi.Bool(false),
    	WorkflowJobTemplateNodeId: pulumi.String("string"),
    })
    
    var workflowJobTemplateNodeResource = new WorkflowJobTemplateNode("workflowJobTemplateNodeResource", WorkflowJobTemplateNodeArgs.builder()
        .identifier("string")
        .workflowJobTemplateId(0)
        .unifiedJobTemplateId(0)
        .jobType("string")
        .inventoryId(0)
        .jobTags("string")
        .allParentsMustConverge(false)
        .limit("string")
        .scmBranch("string")
        .skipTags("string")
        .extraData("string")
        .verbosity(0)
        .diffMode(false)
        .workflowJobTemplateNodeId("string")
        .build());
    
    workflow_job_template_node_resource = awx.WorkflowJobTemplateNode("workflowJobTemplateNodeResource",
        identifier="string",
        workflow_job_template_id=0,
        unified_job_template_id=0,
        job_type="string",
        inventory_id=0,
        job_tags="string",
        all_parents_must_converge=False,
        limit="string",
        scm_branch="string",
        skip_tags="string",
        extra_data="string",
        verbosity=0,
        diff_mode=False,
        workflow_job_template_node_id="string")
    
    const workflowJobTemplateNodeResource = new awx.WorkflowJobTemplateNode("workflowJobTemplateNodeResource", {
        identifier: "string",
        workflowJobTemplateId: 0,
        unifiedJobTemplateId: 0,
        jobType: "string",
        inventoryId: 0,
        jobTags: "string",
        allParentsMustConverge: false,
        limit: "string",
        scmBranch: "string",
        skipTags: "string",
        extraData: "string",
        verbosity: 0,
        diffMode: false,
        workflowJobTemplateNodeId: "string",
    });
    
    type: awx:WorkflowJobTemplateNode
    properties:
        allParentsMustConverge: false
        diffMode: false
        extraData: string
        identifier: string
        inventoryId: 0
        jobTags: string
        jobType: string
        limit: string
        scmBranch: string
        skipTags: string
        unifiedJobTemplateId: 0
        verbosity: 0
        workflowJobTemplateId: 0
        workflowJobTemplateNodeId: string
    

    WorkflowJobTemplateNode 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 WorkflowJobTemplateNode resource accepts the following input properties:

    Identifier string
    UnifiedJobTemplateId double
    WorkflowJobTemplateId double
    AllParentsMustConverge bool
    DiffMode bool
    ExtraData string
    InventoryId double
    Inventory applied as a prompt, assuming job template prompts for inventory.
    JobTags string
    JobType string
    Limit string
    ScmBranch string
    SkipTags string
    Verbosity double
    WorkflowJobTemplateNodeId string
    Identifier string
    UnifiedJobTemplateId float64
    WorkflowJobTemplateId float64
    AllParentsMustConverge bool
    DiffMode bool
    ExtraData string
    InventoryId float64
    Inventory applied as a prompt, assuming job template prompts for inventory.
    JobTags string
    JobType string
    Limit string
    ScmBranch string
    SkipTags string
    Verbosity float64
    WorkflowJobTemplateNodeId string
    identifier String
    unifiedJobTemplateId Double
    workflowJobTemplateId Double
    allParentsMustConverge Boolean
    diffMode Boolean
    extraData String
    inventoryId Double
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags String
    jobType String
    limit String
    scmBranch String
    skipTags String
    verbosity Double
    workflowJobTemplateNodeId String
    identifier string
    unifiedJobTemplateId number
    workflowJobTemplateId number
    allParentsMustConverge boolean
    diffMode boolean
    extraData string
    inventoryId number
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags string
    jobType string
    limit string
    scmBranch string
    skipTags string
    verbosity number
    workflowJobTemplateNodeId string
    identifier str
    unified_job_template_id float
    workflow_job_template_id float
    all_parents_must_converge bool
    diff_mode bool
    extra_data str
    inventory_id float
    Inventory applied as a prompt, assuming job template prompts for inventory.
    job_tags str
    job_type str
    limit str
    scm_branch str
    skip_tags str
    verbosity float
    workflow_job_template_node_id str
    identifier String
    unifiedJobTemplateId Number
    workflowJobTemplateId Number
    allParentsMustConverge Boolean
    diffMode Boolean
    extraData String
    inventoryId Number
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags String
    jobType String
    limit String
    scmBranch String
    skipTags String
    verbosity Number
    workflowJobTemplateNodeId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WorkflowJobTemplateNode Resource

    Get an existing WorkflowJobTemplateNode 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?: WorkflowJobTemplateNodeState, opts?: CustomResourceOptions): WorkflowJobTemplateNode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            all_parents_must_converge: Optional[bool] = None,
            diff_mode: Optional[bool] = None,
            extra_data: Optional[str] = None,
            identifier: Optional[str] = None,
            inventory_id: Optional[float] = None,
            job_tags: Optional[str] = None,
            job_type: Optional[str] = None,
            limit: Optional[str] = None,
            scm_branch: Optional[str] = None,
            skip_tags: Optional[str] = None,
            unified_job_template_id: Optional[float] = None,
            verbosity: Optional[float] = None,
            workflow_job_template_id: Optional[float] = None,
            workflow_job_template_node_id: Optional[str] = None) -> WorkflowJobTemplateNode
    func GetWorkflowJobTemplateNode(ctx *Context, name string, id IDInput, state *WorkflowJobTemplateNodeState, opts ...ResourceOption) (*WorkflowJobTemplateNode, error)
    public static WorkflowJobTemplateNode Get(string name, Input<string> id, WorkflowJobTemplateNodeState? state, CustomResourceOptions? opts = null)
    public static WorkflowJobTemplateNode get(String name, Output<String> id, WorkflowJobTemplateNodeState state, CustomResourceOptions options)
    resources:  _:    type: awx:WorkflowJobTemplateNode    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:
    AllParentsMustConverge bool
    DiffMode bool
    ExtraData string
    Identifier string
    InventoryId double
    Inventory applied as a prompt, assuming job template prompts for inventory.
    JobTags string
    JobType string
    Limit string
    ScmBranch string
    SkipTags string
    UnifiedJobTemplateId double
    Verbosity double
    WorkflowJobTemplateId double
    WorkflowJobTemplateNodeId string
    AllParentsMustConverge bool
    DiffMode bool
    ExtraData string
    Identifier string
    InventoryId float64
    Inventory applied as a prompt, assuming job template prompts for inventory.
    JobTags string
    JobType string
    Limit string
    ScmBranch string
    SkipTags string
    UnifiedJobTemplateId float64
    Verbosity float64
    WorkflowJobTemplateId float64
    WorkflowJobTemplateNodeId string
    allParentsMustConverge Boolean
    diffMode Boolean
    extraData String
    identifier String
    inventoryId Double
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags String
    jobType String
    limit String
    scmBranch String
    skipTags String
    unifiedJobTemplateId Double
    verbosity Double
    workflowJobTemplateId Double
    workflowJobTemplateNodeId String
    allParentsMustConverge boolean
    diffMode boolean
    extraData string
    identifier string
    inventoryId number
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags string
    jobType string
    limit string
    scmBranch string
    skipTags string
    unifiedJobTemplateId number
    verbosity number
    workflowJobTemplateId number
    workflowJobTemplateNodeId string
    all_parents_must_converge bool
    diff_mode bool
    extra_data str
    identifier str
    inventory_id float
    Inventory applied as a prompt, assuming job template prompts for inventory.
    job_tags str
    job_type str
    limit str
    scm_branch str
    skip_tags str
    unified_job_template_id float
    verbosity float
    workflow_job_template_id float
    workflow_job_template_node_id str
    allParentsMustConverge Boolean
    diffMode Boolean
    extraData String
    identifier String
    inventoryId Number
    Inventory applied as a prompt, assuming job template prompts for inventory.
    jobTags String
    jobType String
    limit String
    scmBranch String
    skipTags String
    unifiedJobTemplateId Number
    verbosity Number
    workflowJobTemplateId Number
    workflowJobTemplateNodeId String

    Package Details

    Repository
    awx denouche/terraform-provider-awx
    License
    Notes
    This Pulumi package is based on the awx Terraform Provider.
    awx logo
    awx 0.29.1 published on Monday, Apr 14, 2025 by denouche