1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. api
  6. AgentAutomationV2
Viewing docs for Pulumi Cloud v1.8.0
published on Thursday, Nov 19, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.8.0
published on Thursday, Nov 19, 2026 by Pulumi

    Creates an organization-owned scheduled or triggered agent automation in the specified organization. Set kind to scheduled or triggered and provide the corresponding configuration. Webhook automation responses include a secret that is shown only once.

    Create AgentAutomationV2 Resource

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

    Constructor syntax

    new AgentAutomationV2(name: string, args: AgentAutomationV2Args, opts?: CustomResourceOptions);
    @overload
    def AgentAutomationV2(resource_name: str,
                          args: AgentAutomationV2Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentAutomationV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          kind: Optional[str] = None,
                          name: Optional[str] = None,
                          org_name: Optional[str] = None,
                          task: Optional[Any] = None,
                          automation_id: Optional[str] = None,
                          notification_targets: Optional[Sequence[Any]] = None,
                          schedule_cron: Optional[str] = None,
                          trigger: Optional[Any] = None)
    func NewAgentAutomationV2(ctx *Context, name string, args AgentAutomationV2Args, opts ...ResourceOption) (*AgentAutomationV2, error)
    public AgentAutomationV2(string name, AgentAutomationV2Args args, CustomResourceOptions? opts = null)
    public AgentAutomationV2(String name, AgentAutomationV2Args args)
    public AgentAutomationV2(String name, AgentAutomationV2Args args, CustomResourceOptions options)
    
    type: pulumiservice:api:AgentAutomationV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_api_agent_automation_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AgentAutomationV2Args
    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 AgentAutomationV2Args
    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 AgentAutomationV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentAutomationV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentAutomationV2Args
    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 agentAutomationV2Resource = new PulumiService.Api.AgentAutomationV2("agentAutomationV2Resource", new()
    {
        Kind = "string",
        Name = "string",
        OrgName = "string",
        Task = "any",
        AutomationID = "string",
        NotificationTargets = new[]
        {
            "any",
        },
        ScheduleCron = "string",
        Trigger = "any",
    });
    
    example, err := api.NewAgentAutomationV2(ctx, "agentAutomationV2Resource", &api.AgentAutomationV2Args{
    	Kind:         pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	OrgName:      pulumi.String("string"),
    	Task:         pulumi.Any("any"),
    	AutomationID: pulumi.String("string"),
    	NotificationTargets: pulumi.Array{
    		pulumi.Any("any"),
    	},
    	ScheduleCron: pulumi.String("string"),
    	Trigger:      pulumi.Any("any"),
    })
    
    resource "pulumiservice_api_agent_automation_v2" "agentAutomationV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      kind                 = "string"
      name                 = "string"
      org_name             = "string"
      task                 = "any"
      automation_id        = "string"
      notification_targets = ["any"]
      schedule_cron        = "string"
      trigger              = "any"
    }
    
    var agentAutomationV2Resource = new AgentAutomationV2("agentAutomationV2Resource", AgentAutomationV2Args.builder()
        .kind("string")
        .name("string")
        .orgName("string")
        .task("any")
        .automationID("string")
        .notificationTargets("any")
        .scheduleCron("string")
        .trigger("any")
        .build());
    
    agent_automation_v2_resource = pulumiservice.api.AgentAutomationV2("agentAutomationV2Resource",
        kind="string",
        name="string",
        org_name="string",
        task="any",
        automation_id="string",
        notification_targets=["any"],
        schedule_cron="string",
        trigger="any")
    
    const agentAutomationV2Resource = new pulumiservice.api.AgentAutomationV2("agentAutomationV2Resource", {
        kind: "string",
        name: "string",
        orgName: "string",
        task: "any",
        automationID: "string",
        notificationTargets: ["any"],
        scheduleCron: "string",
        trigger: "any",
    });
    
    type: pulumiservice:api:AgentAutomationV2
    properties:
        automationID: string
        kind: string
        name: string
        notificationTargets:
            - any
        orgName: string
        scheduleCron: string
        task: any
        trigger: any
    

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

    Kind string
    Name string
    A human-readable name for the automation.
    OrgName string
    The organization name
    Task object
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    AutomationID string
    The automation identifier
    NotificationTargets List<object>
    The destinations that receive notifications about automation runs.
    ScheduleCron string
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    Trigger object
    The event source and shared configuration for this triggered automation.
    Kind string
    Name string
    A human-readable name for the automation.
    OrgName string
    The organization name
    Task interface{}
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    AutomationID string
    The automation identifier
    NotificationTargets []interface{}
    The destinations that receive notifications about automation runs.
    ScheduleCron string
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    Trigger interface{}
    The event source and shared configuration for this triggered automation.
    kind string
    name string
    A human-readable name for the automation.
    org_name string
    The organization name
    task any
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    automation_id string
    The automation identifier
    notification_targets list(any)
    The destinations that receive notifications about automation runs.
    schedule_cron string
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    trigger any
    The event source and shared configuration for this triggered automation.
    kind String
    name String
    A human-readable name for the automation.
    orgName String
    The organization name
    task Object
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    automationID String
    The automation identifier
    notificationTargets List<Object>
    The destinations that receive notifications about automation runs.
    scheduleCron String
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    trigger Object
    The event source and shared configuration for this triggered automation.
    kind string
    name string
    A human-readable name for the automation.
    orgName string
    The organization name
    task any
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    automationID string
    The automation identifier
    notificationTargets any[]
    The destinations that receive notifications about automation runs.
    scheduleCron string
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    trigger any
    The event source and shared configuration for this triggered automation.
    kind str
    name str
    A human-readable name for the automation.
    org_name str
    The organization name
    task Any
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    automation_id str
    The automation identifier
    notification_targets Sequence[Any]
    The destinations that receive notifications about automation runs.
    schedule_cron str
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    trigger Any
    The event source and shared configuration for this triggered automation.
    kind String
    name String
    A human-readable name for the automation.
    orgName String
    The organization name
    task Any
    The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    automationID String
    The automation identifier
    notificationTargets List<Any>
    The destinations that receive notifications about automation runs.
    scheduleCron String
    A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    trigger Any
    The event source and shared configuration for this triggered automation.

    Outputs

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

    AsyncTriggerType string
    The async trigger type for this automation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Paused bool
    Whether future executions are currently paused.
    LastExecuted string
    The timestamp when this automation last ran, if any.
    LastRunStatus string
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    NextExecution string
    The timestamp of the next scheduled execution. Present for scheduled automations.
    AsyncTriggerType string
    The async trigger type for this automation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Paused bool
    Whether future executions are currently paused.
    LastExecuted string
    The timestamp when this automation last ran, if any.
    LastRunStatus string
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    NextExecution string
    The timestamp of the next scheduled execution. Present for scheduled automations.
    async_trigger_type string
    The async trigger type for this automation.
    id string
    The provider-assigned unique ID for this managed resource.
    paused bool
    Whether future executions are currently paused.
    last_executed string
    The timestamp when this automation last ran, if any.
    last_run_status string
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    next_execution string
    The timestamp of the next scheduled execution. Present for scheduled automations.
    asyncTriggerType String
    The async trigger type for this automation.
    id String
    The provider-assigned unique ID for this managed resource.
    paused Boolean
    Whether future executions are currently paused.
    lastExecuted String
    The timestamp when this automation last ran, if any.
    lastRunStatus String
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    nextExecution String
    The timestamp of the next scheduled execution. Present for scheduled automations.
    asyncTriggerType string
    The async trigger type for this automation.
    id string
    The provider-assigned unique ID for this managed resource.
    paused boolean
    Whether future executions are currently paused.
    lastExecuted string
    The timestamp when this automation last ran, if any.
    lastRunStatus string
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    nextExecution string
    The timestamp of the next scheduled execution. Present for scheduled automations.
    async_trigger_type str
    The async trigger type for this automation.
    id str
    The provider-assigned unique ID for this managed resource.
    paused bool
    Whether future executions are currently paused.
    last_executed str
    The timestamp when this automation last ran, if any.
    last_run_status str
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    next_execution str
    The timestamp of the next scheduled execution. Present for scheduled automations.
    asyncTriggerType String
    The async trigger type for this automation.
    id String
    The provider-assigned unique ID for this managed resource.
    paused Boolean
    Whether future executions are currently paused.
    lastExecuted String
    The timestamp when this automation last ran, if any.
    lastRunStatus String
    The result of the most recent automation run, if any. Valid values currently include 'succeeded', 'failed', and 'skipped'.
    nextExecution String
    The timestamp of the next scheduled execution. Present for scheduled automations.

    Look up Existing AgentAutomationV2 Resource

    Get an existing AgentAutomationV2 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>, opts?: CustomResourceOptions): AgentAutomationV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> AgentAutomationV2
    func GetAgentAutomationV2(ctx *Context, name string, id IDInput, state *AgentAutomationV2State, opts ...ResourceOption) (*AgentAutomationV2, error)
    public static AgentAutomationV2 Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static AgentAutomationV2 get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAgentAutomationV2:    type: pulumiservice:api:AgentAutomationV2    get:      id: ${id}
    import {
      to = pulumiservice_api_agent_automation_v2.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AgentAutomationV2State
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.8.0
    published on Thursday, Nov 19, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial