published on Thursday, Nov 19, 2026 by Pulumi
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.
- Org
Name 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.
- Automation
ID string - The automation identifier
- Notification
Targets List<object> - 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 object
- 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 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.
- Automation
ID string - The automation identifier
- Notification
Targets []interface{} - 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 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.
- org
Name 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.
- automation
ID String - The automation identifier
- notification
Targets List<Object> - 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 Object
- 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 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 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentAutomationV2 resource produces the following output properties:
- Async
Trigger stringType - 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 stringStatus - 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.
- Async
Trigger stringType - 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 stringStatus - 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.
- async_
trigger_ stringtype - 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_ stringstatus - 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.
- async
Trigger StringType - 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.
- last
Executed String - The timestamp when this automation last ran, if any.
- last
Run StringStatus - 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.
- async
Trigger stringType - 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.
- last
Executed string - The timestamp when this automation last ran, if any.
- last
Run stringStatus - 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.
- async_
trigger_ strtype - 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_ strstatus - 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.
- async
Trigger StringType - 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.
- last
Executed String - The timestamp when this automation last ran, if any.
- last
Run StringStatus - 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.
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) -> AgentAutomationV2func 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
published on Thursday, Nov 19, 2026 by Pulumi