1. Registry
  2. Packages
  3. Grafana Cloud
  4. API Docs
  5. assistant
  6. Automation
Viewing docs for Grafana v2.45.0
published on Monday, Nov 9, 2026 by pulumiverse
grafana logo Grafana
Viewing docs for Grafana v2.45.0
published on Monday, Nov 9, 2026 by pulumiverse

    Manages a Grafana Assistant Automation: a saved Assistant prompt that runs on demand or on a cron schedule. Each run creates its own Assistant conversation.

    Automations are a Grafana Cloud-only feature and require the Grafana Assistant app.

    executionMode selects the identity used for runs. The default user mode uses the creator’s Grafana permissions. serviceAccount mode requires tenant scope and organization Admin permission to configure. Authenticating Terraform with a service-account token does not automatically select serviceAccount execution. Runtime memory and run history remain backend-owned.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const dailyIncidentReport = new grafana.assistant.Automation("daily_incident_report", {
        name: "Daily ecommerce incident report",
        description: "Every morning, summarize the alerts that fired for the ecommerce app.",
        prompt: `Produce a daily report on the incidents for the main alerts that fired in
    the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
    For each alert: how long it fired, which services were affected, and
    whether it correlates with a deploy. Close with the single most important
    thing to look at today.
    `,
        scope: "tenant",
        enabled: true,
        executionMode: "user",
        labels: {
            application: "ecommerce",
            managed_by: "terraform",
        },
        scheduleCron: "0 9 * * *",
        scheduleTimezone: "Europe/Paris",
        notifications: {
            slack: {
                enabled: true,
                notifyOns: [
                    "completed",
                    "failed",
                ],
                target: {
                    type: "channel",
                    channelId: "C0123456789",
                },
            },
        },
    });
    // Event-only automation. Replace the watcher UUID with an existing Watcher.
    // The backend must enable Watcher-to-Automation triggers. No events run while disabled.
    const onCriticalFinding = new grafana.assistant.Automation("on_critical_finding", {
        name: "Investigate critical Watcher findings",
        prompt: "Investigate the critical finding supplied by the Watcher event.",
        scope: "tenant",
        executionMode: "service_account",
        enabled: false,
        triggers: {
            "c971a626-703b-4472-8eb0-e92aaf705af9": {
                type: "watcher_finding",
                config: JSON.stringify({
                    watcherId: "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
                }),
            },
        },
    });
    // A manual-only automation needs neither schedule nor timezone.
    const manualReport = new grafana.assistant.Automation("manual_report", {
        name: "On-demand incident report",
        prompt: "Summarize the incidents from the past 24 hours.",
        enabled: false,
    });
    
    import pulumi
    import json
    import pulumiverse_grafana as grafana
    
    daily_incident_report = grafana.assistant.Automation("daily_incident_report",
        name="Daily ecommerce incident report",
        description="Every morning, summarize the alerts that fired for the ecommerce app.",
        prompt="""Produce a daily report on the incidents for the main alerts that fired in
    the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
    For each alert: how long it fired, which services were affected, and
    whether it correlates with a deploy. Close with the single most important
    thing to look at today.
    """,
        scope="tenant",
        enabled=True,
        execution_mode="user",
        labels={
            "application": "ecommerce",
            "managed_by": "terraform",
        },
        schedule_cron="0 9 * * *",
        schedule_timezone="Europe/Paris",
        notifications={
            "slack": {
                "enabled": True,
                "notify_ons": [
                    "completed",
                    "failed",
                ],
                "target": {
                    "type": "channel",
                    "channel_id": "C0123456789",
                },
            },
        })
    # Event-only automation. Replace the watcher UUID with an existing Watcher.
    # The backend must enable Watcher-to-Automation triggers. No events run while disabled.
    on_critical_finding = grafana.assistant.Automation("on_critical_finding",
        name="Investigate critical Watcher findings",
        prompt="Investigate the critical finding supplied by the Watcher event.",
        scope="tenant",
        execution_mode="service_account",
        enabled=False,
        triggers={
            "c971a626-703b-4472-8eb0-e92aaf705af9": {
                "type": "watcher_finding",
                "config": json.dumps({
                    "watcherId": "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
                }),
            },
        })
    # A manual-only automation needs neither schedule nor timezone.
    manual_report = grafana.assistant.Automation("manual_report",
        name="On-demand incident report",
        prompt="Summarize the incidents from the past 24 hours.",
        enabled=False)
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assistant"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := assistant.NewAutomation(ctx, "daily_incident_report", &assistant.AutomationArgs{
    			Name:        pulumi.String("Daily ecommerce incident report"),
    			Description: pulumi.String("Every morning, summarize the alerts that fired for the ecommerce app."),
    			Prompt: pulumi.String(`Produce a daily report on the incidents for the main alerts that fired in
    the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
    For each alert: how long it fired, which services were affected, and
    whether it correlates with a deploy. Close with the single most important
    thing to look at today.
    `),
    			Scope:         pulumi.String("tenant"),
    			Enabled:       pulumi.Bool(true),
    			ExecutionMode: pulumi.String("user"),
    			Labels: pulumi.StringMap{
    				"application": pulumi.String("ecommerce"),
    				"managed_by":  pulumi.String("terraform"),
    			},
    			ScheduleCron:     pulumi.String("0 9 * * *"),
    			ScheduleTimezone: pulumi.String("Europe/Paris"),
    			Notifications: &assistant.AutomationNotificationsArgs{
    				Slack: &assistant.AutomationNotificationsSlackArgs{
    					Enabled: pulumi.Bool(true),
    					NotifyOns: pulumi.StringArray{
    						pulumi.String("completed"),
    						pulumi.String("failed"),
    					},
    					Target: &assistant.AutomationNotificationsSlackTargetArgs{
    						Type:      pulumi.String("channel"),
    						ChannelId: pulumi.String("C0123456789"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"watcherId": "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		// Event-only automation. Replace the watcher UUID with an existing Watcher.
    		// The backend must enable Watcher-to-Automation triggers. No events run while disabled.
    		_, err = assistant.NewAutomation(ctx, "on_critical_finding", &assistant.AutomationArgs{
    			Name:          pulumi.String("Investigate critical Watcher findings"),
    			Prompt:        pulumi.String("Investigate the critical finding supplied by the Watcher event."),
    			Scope:         pulumi.String("tenant"),
    			ExecutionMode: pulumi.String("service_account"),
    			Enabled:       pulumi.Bool(false),
    			Triggers: assistant.AutomationTriggersMap{
    				"c971a626-703b-4472-8eb0-e92aaf705af9": &assistant.AutomationTriggersArgs{
    					Type:   pulumi.String("watcher_finding"),
    					Config: pulumi.String(pulumi.String(json0)),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// A manual-only automation needs neither schedule nor timezone.
    		_, err = assistant.NewAutomation(ctx, "manual_report", &assistant.AutomationArgs{
    			Name:    pulumi.String("On-demand incident report"),
    			Prompt:  pulumi.String("Summarize the incidents from the past 24 hours."),
    			Enabled: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var dailyIncidentReport = new Grafana.Assistant.Automation("daily_incident_report", new()
        {
            Name = "Daily ecommerce incident report",
            Description = "Every morning, summarize the alerts that fired for the ecommerce app.",
            Prompt = @"Produce a daily report on the incidents for the main alerts that fired in
    the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
    For each alert: how long it fired, which services were affected, and
    whether it correlates with a deploy. Close with the single most important
    thing to look at today.
    ",
            Scope = "tenant",
            Enabled = true,
            ExecutionMode = "user",
            Labels = 
            {
                { "application", "ecommerce" },
                { "managed_by", "terraform" },
            },
            ScheduleCron = "0 9 * * *",
            ScheduleTimezone = "Europe/Paris",
            Notifications = new Grafana.Assistant.Inputs.AutomationNotificationsArgs
            {
                Slack = new Grafana.Assistant.Inputs.AutomationNotificationsSlackArgs
                {
                    Enabled = true,
                    NotifyOns = new[]
                    {
                        "completed",
                        "failed",
                    },
                    Target = new Grafana.Assistant.Inputs.AutomationNotificationsSlackTargetArgs
                    {
                        Type = "channel",
                        ChannelId = "C0123456789",
                    },
                },
            },
        });
    
        // Event-only automation. Replace the watcher UUID with an existing Watcher.
        // The backend must enable Watcher-to-Automation triggers. No events run while disabled.
        var onCriticalFinding = new Grafana.Assistant.Automation("on_critical_finding", new()
        {
            Name = "Investigate critical Watcher findings",
            Prompt = "Investigate the critical finding supplied by the Watcher event.",
            Scope = "tenant",
            ExecutionMode = "service_account",
            Enabled = false,
            Triggers = 
            {
                { "c971a626-703b-4472-8eb0-e92aaf705af9", new Grafana.Assistant.Inputs.AutomationTriggersArgs
                {
                    Type = "watcher_finding",
                    Config = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["watcherId"] = "52fcc709-4ab5-45c8-8f79-a1c1d6abef17",
                    }),
                } },
            },
        });
    
        // A manual-only automation needs neither schedule nor timezone.
        var manualReport = new Grafana.Assistant.Automation("manual_report", new()
        {
            Name = "On-demand incident report",
            Prompt = "Summarize the incidents from the past 24 hours.",
            Enabled = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.assistant.Automation;
    import com.pulumi.grafana.assistant.AutomationArgs;
    import com.pulumi.grafana.assistant.inputs.AutomationNotificationsArgs;
    import com.pulumi.grafana.assistant.inputs.AutomationNotificationsSlackArgs;
    import com.pulumi.grafana.assistant.inputs.AutomationNotificationsSlackTargetArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 dailyIncidentReport = new Automation("dailyIncidentReport", AutomationArgs.builder()
                .name("Daily ecommerce incident report")
                .description("Every morning, summarize the alerts that fired for the ecommerce app.")
                .prompt("""
    Produce a daily report on the incidents for the main alerts that fired in
    the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
    For each alert: how long it fired, which services were affected, and
    whether it correlates with a deploy. Close with the single most important
    thing to look at today.
                """)
                .scope("tenant")
                .enabled(true)
                .executionMode("user")
                .labels(Map.ofEntries(
                    Map.entry("application", "ecommerce"),
                    Map.entry("managed_by", "terraform")
                ))
                .scheduleCron("0 9 * * *")
                .scheduleTimezone("Europe/Paris")
                .notifications(AutomationNotificationsArgs.builder()
                    .slack(AutomationNotificationsSlackArgs.builder()
                        .enabled(true)
                        .notifyOns(                    
                            "completed",
                            "failed")
                        .target(AutomationNotificationsSlackTargetArgs.builder()
                            .type("channel")
                            .channelId("C0123456789")
                            .build())
                        .build())
                    .build())
                .build());
    
            // Event-only automation. Replace the watcher UUID with an existing Watcher.
            // The backend must enable Watcher-to-Automation triggers. No events run while disabled.
            var onCriticalFinding = new Automation("onCriticalFinding", AutomationArgs.builder()
                .name("Investigate critical Watcher findings")
                .prompt("Investigate the critical finding supplied by the Watcher event.")
                .scope("tenant")
                .executionMode("service_account")
                .enabled(false)
                .triggers(Map.of("c971a626-703b-4472-8eb0-e92aaf705af9", AutomationTriggersArgs.builder()
                    .type("watcher_finding")
                    .config(serializeJson(
                        jsonObject(
                            jsonProperty("watcherId", "52fcc709-4ab5-45c8-8f79-a1c1d6abef17")
                        )))
                    .build()))
                .build());
    
            // A manual-only automation needs neither schedule nor timezone.
            var manualReport = new Automation("manualReport", AutomationArgs.builder()
                .name("On-demand incident report")
                .prompt("Summarize the incidents from the past 24 hours.")
                .enabled(false)
                .build());
    
        }
    }
    
    resources:
      dailyIncidentReport:
        type: grafana:assistant:Automation
        name: daily_incident_report
        properties:
          name: Daily ecommerce incident report
          description: Every morning, summarize the alerts that fired for the ecommerce app.
          prompt: |
            Produce a daily report on the incidents for the main alerts that fired in
            the last 24 hours for the ecommerce app in the ecommerce-prod namespace.
    
            For each alert: how long it fired, which services were affected, and
            whether it correlates with a deploy. Close with the single most important
            thing to look at today.
          scope: tenant
          enabled: true # Default: runs use the creator's permissions.
          #   # service_account requires tenant scope and organization Admin permission.
          executionMode: user
          labels:
            application: ecommerce
            managed_by: terraform
          scheduleCron: 0 9 * * *
          scheduleTimezone: Europe/Paris
          notifications:
            slack:
              enabled: true
              notifyOns:
                - completed
                - failed
              target:
                type: channel
                channelId: C0123456789
      # Event-only automation. Replace the watcher UUID with an existing Watcher.
      # The backend must enable Watcher-to-Automation triggers. No events run while disabled.
      onCriticalFinding:
        type: grafana:assistant:Automation
        name: on_critical_finding
        properties:
          name: Investigate critical Watcher findings
          prompt: Investigate the critical finding supplied by the Watcher event.
          scope: tenant
          executionMode: service_account
          enabled: false # Trigger keys are stable UUIDs. Do not call uuid() here: it changes each plan.
          #   # Keep the key when editing a trigger; remove its entry to unsubscribe.
          triggers:
            c971a626-703b-4472-8eb0-e92aaf705af9:
              type: watcher_finding
              config:
                fn::toJSON:
                  watcherId: 52fcc709-4ab5-45c8-8f79-a1c1d6abef17
      # A manual-only automation needs neither schedule nor timezone.
      manualReport:
        type: grafana:assistant:Automation
        name: manual_report
        properties:
          name: On-demand incident report
          prompt: Summarize the incidents from the past 24 hours.
          enabled: false
    
    Example coming soon!
    

    Create Automation Resource

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

    Constructor syntax

    new Automation(name: string, args: AutomationArgs, opts?: CustomResourceOptions);
    @overload
    def Automation(resource_name: str,
                   args: AutomationArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Automation(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   prompt: Optional[str] = None,
                   notifications: Optional[AutomationNotificationsArgs] = None,
                   enabled: Optional[bool] = None,
                   execution_mode: Optional[str] = None,
                   labels: Optional[Mapping[str, str]] = None,
                   name: Optional[str] = None,
                   context_items: Optional[str] = None,
                   description: Optional[str] = None,
                   schedule_cron: Optional[str] = None,
                   schedule_ends_at: Optional[str] = None,
                   schedule_timezone: Optional[str] = None,
                   scope: Optional[str] = None,
                   triggers: Optional[Mapping[str, AutomationTriggersArgs]] = None)
    func NewAutomation(ctx *Context, name string, args AutomationArgs, opts ...ResourceOption) (*Automation, error)
    public Automation(string name, AutomationArgs args, CustomResourceOptions? opts = null)
    public Automation(String name, AutomationArgs args)
    public Automation(String name, AutomationArgs args, CustomResourceOptions options)
    
    type: grafana:assistant:Automation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "grafana_assistant_automation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AutomationArgs
    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 AutomationArgs
    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 AutomationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AutomationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AutomationArgs
    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 automationResource = new Grafana.Assistant.Automation("automationResource", new()
    {
        Prompt = "string",
        Notifications = new Grafana.Assistant.Inputs.AutomationNotificationsArgs
        {
            Email = new Grafana.Assistant.Inputs.AutomationNotificationsEmailArgs
            {
                Addresses = new[]
                {
                    "string",
                },
                Enabled = false,
                NotifyOns = new[]
                {
                    "string",
                },
            },
            Slack = new Grafana.Assistant.Inputs.AutomationNotificationsSlackArgs
            {
                Enabled = false,
                NotifyOns = new[]
                {
                    "string",
                },
                Target = new Grafana.Assistant.Inputs.AutomationNotificationsSlackTargetArgs
                {
                    ChannelId = "string",
                    TeamId = "string",
                    Type = "string",
                    UserId = "string",
                },
            },
        },
        Enabled = false,
        ExecutionMode = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        ContextItems = "string",
        Description = "string",
        ScheduleCron = "string",
        ScheduleEndsAt = "string",
        ScheduleTimezone = "string",
        Scope = "string",
        Triggers = 
        {
            { "string", new Grafana.Assistant.Inputs.AutomationTriggersArgs
            {
                Config = "string",
                Type = "string",
            } },
        },
    });
    
    example, err := assistant.NewAutomation(ctx, "automationResource", &assistant.AutomationArgs{
    	Prompt: pulumi.String("string"),
    	Notifications: &assistant.AutomationNotificationsArgs{
    		Email: &assistant.AutomationNotificationsEmailArgs{
    			Addresses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Enabled: pulumi.Bool(false),
    			NotifyOns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Slack: &assistant.AutomationNotificationsSlackArgs{
    			Enabled: pulumi.Bool(false),
    			NotifyOns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Target: &assistant.AutomationNotificationsSlackTargetArgs{
    				ChannelId: pulumi.String("string"),
    				TeamId:    pulumi.String("string"),
    				Type:      pulumi.String("string"),
    				UserId:    pulumi.String("string"),
    			},
    		},
    	},
    	Enabled:       pulumi.Bool(false),
    	ExecutionMode: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:             pulumi.String("string"),
    	ContextItems:     pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	ScheduleCron:     pulumi.String("string"),
    	ScheduleEndsAt:   pulumi.String("string"),
    	ScheduleTimezone: pulumi.String("string"),
    	Scope:            pulumi.String("string"),
    	Triggers: assistant.AutomationTriggersMap{
    		"string": &assistant.AutomationTriggersArgs{
    			Config: pulumi.String("string"),
    			Type:   pulumi.String("string"),
    		},
    	},
    })
    
    resource "grafana_assistant_automation" "automationResource" {
      lifecycle {
        create_before_destroy = true
      }
      prompt = "string"
      notifications = {
        email = {
          addresses  = ["string"]
          enabled    = false
          notify_ons = ["string"]
        }
        slack = {
          enabled    = false
          notify_ons = ["string"]
          target = {
            channel_id = "string"
            team_id    = "string"
            type       = "string"
            user_id    = "string"
          }
        }
      }
      enabled        = false
      execution_mode = "string"
      labels = {
        "string" = "string"
      }
      name              = "string"
      context_items     = "string"
      description       = "string"
      schedule_cron     = "string"
      schedule_ends_at  = "string"
      schedule_timezone = "string"
      scope             = "string"
      triggers = {
        "string" = {
          config = "string"
          type   = "string"
        }
      }
    }
    
    var automationResource = new Automation("automationResource", AutomationArgs.builder()
        .prompt("string")
        .notifications(AutomationNotificationsArgs.builder()
            .email(AutomationNotificationsEmailArgs.builder()
                .addresses("string")
                .enabled(false)
                .notifyOns("string")
                .build())
            .slack(AutomationNotificationsSlackArgs.builder()
                .enabled(false)
                .notifyOns("string")
                .target(AutomationNotificationsSlackTargetArgs.builder()
                    .channelId("string")
                    .teamId("string")
                    .type("string")
                    .userId("string")
                    .build())
                .build())
            .build())
        .enabled(false)
        .executionMode("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .contextItems("string")
        .description("string")
        .scheduleCron("string")
        .scheduleEndsAt("string")
        .scheduleTimezone("string")
        .scope("string")
        .triggers(Map.of("string", AutomationTriggersArgs.builder()
            .config("string")
            .type("string")
            .build()))
        .build());
    
    automation_resource = grafana.assistant.Automation("automationResource",
        prompt="string",
        notifications={
            "email": {
                "addresses": ["string"],
                "enabled": False,
                "notify_ons": ["string"],
            },
            "slack": {
                "enabled": False,
                "notify_ons": ["string"],
                "target": {
                    "channel_id": "string",
                    "team_id": "string",
                    "type": "string",
                    "user_id": "string",
                },
            },
        },
        enabled=False,
        execution_mode="string",
        labels={
            "string": "string",
        },
        name="string",
        context_items="string",
        description="string",
        schedule_cron="string",
        schedule_ends_at="string",
        schedule_timezone="string",
        scope="string",
        triggers={
            "string": {
                "config": "string",
                "type": "string",
            },
        })
    
    const automationResource = new grafana.assistant.Automation("automationResource", {
        prompt: "string",
        notifications: {
            email: {
                addresses: ["string"],
                enabled: false,
                notifyOns: ["string"],
            },
            slack: {
                enabled: false,
                notifyOns: ["string"],
                target: {
                    channelId: "string",
                    teamId: "string",
                    type: "string",
                    userId: "string",
                },
            },
        },
        enabled: false,
        executionMode: "string",
        labels: {
            string: "string",
        },
        name: "string",
        contextItems: "string",
        description: "string",
        scheduleCron: "string",
        scheduleEndsAt: "string",
        scheduleTimezone: "string",
        scope: "string",
        triggers: {
            string: {
                config: "string",
                type: "string",
            },
        },
    });
    
    type: grafana:assistant:Automation
    properties:
        contextItems: string
        description: string
        enabled: false
        executionMode: string
        labels:
            string: string
        name: string
        notifications:
            email:
                addresses:
                    - string
                enabled: false
                notifyOns:
                    - string
            slack:
                enabled: false
                notifyOns:
                    - string
                target:
                    channelId: string
                    teamId: string
                    type: string
                    userId: string
        prompt: string
        scheduleCron: string
        scheduleEndsAt: string
        scheduleTimezone: string
        scope: string
        triggers:
            string:
                config: string
                type: string
    

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

    Prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    ContextItems string
    Context items attached to the prompt, as a JSON array string.
    Description string
    Optional description.
    Enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    ExecutionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    Labels Dictionary<string, string>
    Operator labels. Omit or use an empty map to remove managed labels.
    Name string
    Human-friendly automation name.
    Notifications Pulumiverse.Grafana.Assistant.Inputs.AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    ScheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    ScheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    ScheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    Scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    Triggers Dictionary<string, Pulumiverse.Grafana.Assistant.Inputs.AutomationTriggersArgs>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    Prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    ContextItems string
    Context items attached to the prompt, as a JSON array string.
    Description string
    Optional description.
    Enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    ExecutionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    Labels map[string]string
    Operator labels. Omit or use an empty map to remove managed labels.
    Name string
    Human-friendly automation name.
    Notifications AutomationNotificationsArgs
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    ScheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    ScheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    ScheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    Scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    Triggers map[string]AutomationTriggersArgs
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    context_items string
    Context items attached to the prompt, as a JSON array string.
    description string
    Optional description.
    enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    execution_mode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels map(string)
    Operator labels. Omit or use an empty map to remove managed labels.
    name string
    Human-friendly automation name.
    notifications object
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    schedule_cron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    schedule_ends_at string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    schedule_timezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers map(object)
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    prompt String
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    contextItems String
    Context items attached to the prompt, as a JSON array string.
    description String
    Optional description.
    enabled Boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode String
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Map<String,String>
    Operator labels. Omit or use an empty map to remove managed labels.
    name String
    Human-friendly automation name.
    notifications AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    scheduleCron String
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt String
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone String
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope String
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Map<String,AutomationTriggersArgs>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    contextItems string
    Context items attached to the prompt, as a JSON array string.
    description string
    Optional description.
    enabled boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels {[key: string]: string}
    Operator labels. Omit or use an empty map to remove managed labels.
    name string
    Human-friendly automation name.
    notifications AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    scheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers {[key: string]: AutomationTriggersArgs}
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    prompt str
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    context_items str
    Context items attached to the prompt, as a JSON array string.
    description str
    Optional description.
    enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    execution_mode str
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Mapping[str, str]
    Operator labels. Omit or use an empty map to remove managed labels.
    name str
    Human-friendly automation name.
    notifications AutomationNotificationsArgs
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    schedule_cron str
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    schedule_ends_at str
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    schedule_timezone str
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope str
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Mapping[str, AutomationTriggersArgs]
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    prompt String
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    contextItems String
    Context items attached to the prompt, as a JSON array string.
    description String
    Optional description.
    enabled Boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode String
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Map<String>
    Operator labels. Omit or use an empty map to remove managed labels.
    name String
    Human-friendly automation name.
    notifications Property Map
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    scheduleCron String
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt String
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone String
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope String
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Map<Property Map>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    Id string
    The provider-assigned unique ID for this managed resource.
    NextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    id string
    The provider-assigned unique ID for this managed resource.
    next_run_at string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    id String
    The provider-assigned unique ID for this managed resource.
    nextRunAt String
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    id string
    The provider-assigned unique ID for this managed resource.
    nextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    id str
    The provider-assigned unique ID for this managed resource.
    next_run_at str
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    id String
    The provider-assigned unique ID for this managed resource.
    nextRunAt String
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.

    Look up Existing Automation Resource

    Get an existing Automation 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?: AutomationState, opts?: CustomResourceOptions): Automation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            context_items: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            execution_mode: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            next_run_at: Optional[str] = None,
            notifications: Optional[AutomationNotificationsArgs] = None,
            prompt: Optional[str] = None,
            schedule_cron: Optional[str] = None,
            schedule_ends_at: Optional[str] = None,
            schedule_timezone: Optional[str] = None,
            scope: Optional[str] = None,
            triggers: Optional[Mapping[str, AutomationTriggersArgs]] = None) -> Automation
    func GetAutomation(ctx *Context, name string, id IDInput, state *AutomationState, opts ...ResourceOption) (*Automation, error)
    public static Automation Get(string name, Input<string> id, AutomationState? state, CustomResourceOptions? opts = null)
    public static Automation get(String name, Output<String> id, AutomationState state, CustomResourceOptions options)
    resources:  existingAutomation:    type: grafana:assistant:Automation    get:      id: ${id}
    import {
      to = grafana_assistant_automation.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.
    state AutomationState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    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 AutomationState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    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.
    state AutomationState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    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.
    state AutomationState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    ContextItems string
    Context items attached to the prompt, as a JSON array string.
    Description string
    Optional description.
    Enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    ExecutionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    Labels Dictionary<string, string>
    Operator labels. Omit or use an empty map to remove managed labels.
    Name string
    Human-friendly automation name.
    NextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    Notifications Pulumiverse.Grafana.Assistant.Inputs.AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    Prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    ScheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    ScheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    ScheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    Scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    Triggers Dictionary<string, Pulumiverse.Grafana.Assistant.Inputs.AutomationTriggersArgs>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    ContextItems string
    Context items attached to the prompt, as a JSON array string.
    Description string
    Optional description.
    Enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    ExecutionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    Labels map[string]string
    Operator labels. Omit or use an empty map to remove managed labels.
    Name string
    Human-friendly automation name.
    NextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    Notifications AutomationNotificationsArgs
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    Prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    ScheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    ScheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    ScheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    Scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    Triggers map[string]AutomationTriggersArgs
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    context_items string
    Context items attached to the prompt, as a JSON array string.
    description string
    Optional description.
    enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    execution_mode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels map(string)
    Operator labels. Omit or use an empty map to remove managed labels.
    name string
    Human-friendly automation name.
    next_run_at string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    notifications object
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    schedule_cron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    schedule_ends_at string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    schedule_timezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers map(object)
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    contextItems String
    Context items attached to the prompt, as a JSON array string.
    description String
    Optional description.
    enabled Boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode String
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Map<String,String>
    Operator labels. Omit or use an empty map to remove managed labels.
    name String
    Human-friendly automation name.
    nextRunAt String
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    notifications AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    prompt String
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    scheduleCron String
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt String
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone String
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope String
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Map<String,AutomationTriggersArgs>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    contextItems string
    Context items attached to the prompt, as a JSON array string.
    description string
    Optional description.
    enabled boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode string
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels {[key: string]: string}
    Operator labels. Omit or use an empty map to remove managed labels.
    name string
    Human-friendly automation name.
    nextRunAt string
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    notifications AutomationNotifications
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    prompt string
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    scheduleCron string
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt string
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone string
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope string
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers {[key: string]: AutomationTriggersArgs}
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    context_items str
    Context items attached to the prompt, as a JSON array string.
    description str
    Optional description.
    enabled bool
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    execution_mode str
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Mapping[str, str]
    Operator labels. Omit or use an empty map to remove managed labels.
    name str
    Human-friendly automation name.
    next_run_at str
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    notifications AutomationNotificationsArgs
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    prompt str
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    schedule_cron str
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    schedule_ends_at str
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    schedule_timezone str
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope str
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Mapping[str, AutomationTriggersArgs]
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.
    contextItems String
    Context items attached to the prompt, as a JSON array string.
    description String
    Optional description.
    enabled Boolean
    Whether the automation runs on its schedule. Disabled automations can still be run manually.
    executionMode String
    Run identity: user (default) or serviceaccount. serviceaccount requires scope = tenant and Grafana organization Admin permission, including updates to an existing service-account automation.
    labels Map<String>
    Operator labels. Omit or use an empty map to remove managed labels.
    name String
    Human-friendly automation name.
    nextRunAt String
    Read-only timestamp calculated by Grafana for the next scheduled run. Refreshed when Terraform reads the automation; absent when there is no enabled schedule or no occurrence before its deadline. This is scheduling information, not confirmation that a run executed.
    notifications Property Map
    Where to send the result of each run. Webhook notifications are not supported by this resource because their URL and credentials are write-only secure settings the API never returns.
    prompt String
    The prompt sent to Assistant on each run. Prefix with /<skill-name> to start from a skill.
    scheduleCron String
    Standard 5-field cron expression, or multiple expressions separated by semicolons. For example 0 9 * * 1-5; 0 10 * * 0. Omit for a manual-only automation. Combined firings must be at least 15 minutes apart.
    scheduleEndsAt String
    Inclusive schedule deadline in RFC3339 format with second precision. Requires scheduleCron and backend support for bounded schedules. Omit to remove the deadline. New or changed deadlines must be in the future.
    scheduleTimezone String
    IANA timezone the schedule is interpreted in, for example Europe/Paris. Defaults to UTC when scheduleCron is set; absent for manual-only automations.
    scope String
    Visibility. user keeps the automation private to its creator; tenant shares it with everybody in the org.
    triggers Map<Property Map>
    Event triggers keyed by stable, lowercase UUIDs. Each value requires type (backend trigger type) and config (a JSON object string, normally jsonencode). Keep UUIDs unchanged when editing. Omit or use an empty map to remove all triggers. GitHub and Watcher triggers require serviceAccount execution; Slack triggers run as the mapped event author. Backend defaults and equivalent JSON formatting do not cause drift.

    Supporting Types

    AutomationNotifications, AutomationNotificationsArgs

    Email Pulumiverse.Grafana.Assistant.Inputs.AutomationNotificationsEmail
    Email delivery. Email notifications must be enabled for the stack.
    Slack Pulumiverse.Grafana.Assistant.Inputs.AutomationNotificationsSlack
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    Email AutomationNotificationsEmail
    Email delivery. Email notifications must be enabled for the stack.
    Slack AutomationNotificationsSlack
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    email object
    Email delivery. Email notifications must be enabled for the stack.
    slack object
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    email AutomationNotificationsEmail
    Email delivery. Email notifications must be enabled for the stack.
    slack AutomationNotificationsSlack
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    email AutomationNotificationsEmail
    Email delivery. Email notifications must be enabled for the stack.
    slack AutomationNotificationsSlack
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    email AutomationNotificationsEmail
    Email delivery. Email notifications must be enabled for the stack.
    slack AutomationNotificationsSlack
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.
    email Property Map
    Email delivery. Email notifications must be enabled for the stack.
    slack Property Map
    Slack delivery. Requires the Slack workspace to already be connected to the stack, which is a one-time manual step in Assistant settings.

    AutomationNotificationsEmail, AutomationNotificationsEmailArgs

    Addresses List<string>
    Recipient email addresses, up to 25.
    Enabled bool
    Whether email notifications are sent.
    NotifyOns List<string>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    Addresses []string
    Recipient email addresses, up to 25.
    Enabled bool
    Whether email notifications are sent.
    NotifyOns []string
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    addresses list(string)
    Recipient email addresses, up to 25.
    enabled bool
    Whether email notifications are sent.
    notify_ons list(string)
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    addresses List<String>
    Recipient email addresses, up to 25.
    enabled Boolean
    Whether email notifications are sent.
    notifyOns List<String>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    addresses string[]
    Recipient email addresses, up to 25.
    enabled boolean
    Whether email notifications are sent.
    notifyOns string[]
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    addresses Sequence[str]
    Recipient email addresses, up to 25.
    enabled bool
    Whether email notifications are sent.
    notify_ons Sequence[str]
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    addresses List<String>
    Recipient email addresses, up to 25.
    enabled Boolean
    Whether email notifications are sent.
    notifyOns List<String>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.

    AutomationNotificationsSlack, AutomationNotificationsSlackArgs

    Enabled bool
    Whether Slack notifications are sent.
    NotifyOns List<string>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    Target Pulumiverse.Grafana.Assistant.Inputs.AutomationNotificationsSlackTarget
    Where the notification is posted.
    Enabled bool
    Whether Slack notifications are sent.
    NotifyOns []string
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    Target AutomationNotificationsSlackTarget
    Where the notification is posted.
    enabled bool
    Whether Slack notifications are sent.
    notify_ons list(string)
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    target object
    Where the notification is posted.
    enabled Boolean
    Whether Slack notifications are sent.
    notifyOns List<String>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    target AutomationNotificationsSlackTarget
    Where the notification is posted.
    enabled boolean
    Whether Slack notifications are sent.
    notifyOns string[]
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    target AutomationNotificationsSlackTarget
    Where the notification is posted.
    enabled bool
    Whether Slack notifications are sent.
    notify_ons Sequence[str]
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    target AutomationNotificationsSlackTarget
    Where the notification is posted.
    enabled Boolean
    Whether Slack notifications are sent.
    notifyOns List<String>
    Run outcomes that trigger a notification. Defaults to ["completed", "failed"]. Any of completed, failed, needsApproval. Notifications still require enabled = true.
    target Property Map
    Where the notification is posted.

    AutomationNotificationsSlackTarget, AutomationNotificationsSlackTargetArgs

    ChannelId string
    Slack channel ID. Required for a channel target.
    TeamId string
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    Type string
    Target type. One of channel or dm. Required when a target block is present.
    UserId string
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    ChannelId string
    Slack channel ID. Required for a channel target.
    TeamId string
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    Type string
    Target type. One of channel or dm. Required when a target block is present.
    UserId string
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    channel_id string
    Slack channel ID. Required for a channel target.
    team_id string
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    type string
    Target type. One of channel or dm. Required when a target block is present.
    user_id string
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    channelId String
    Slack channel ID. Required for a channel target.
    teamId String
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    type String
    Target type. One of channel or dm. Required when a target block is present.
    userId String
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    channelId string
    Slack channel ID. Required for a channel target.
    teamId string
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    type string
    Target type. One of channel or dm. Required when a target block is present.
    userId string
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    channel_id str
    Slack channel ID. Required for a channel target.
    team_id str
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    type str
    Target type. One of channel or dm. Required when a target block is present.
    user_id str
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.
    channelId String
    Slack channel ID. Required for a channel target.
    teamId String
    Slack workspace (team) ID. Omit to let Assistant resolve it; automatically resolved IDs are not managed unless configured.
    type String
    Target type. One of channel or dm. Required when a target block is present.
    userId String
    Slack user ID for a dm target. Omit to use the creator’s verified Slack mapping.

    AutomationTriggers, AutomationTriggersArgs

    Config string
    Type string
    Config string
    Type string
    config string
    type string
    config String
    type String
    config string
    type string
    config str
    type str
    config String
    type String

    Import

    terraform import grafana_assistant_automation.name "{{ id }}"
    

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

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo Grafana
    Viewing docs for Grafana v2.45.0
    published on Monday, Nov 9, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial