1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. EventOrchestrationGlobalCacheVariable
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

pagerduty.EventOrchestrationGlobalCacheVariable

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

    A Cache Variable can be created on a Global Event Orchestration, in order to temporarily store event data to be referenced later within the Global Event Orchestration

    Example of configuring a Cache Variable for a Global Event Orchestration

    This example shows creating a global Event Orchestration and a Cache Variable. All events that have the event.source field will have its source value stored in this Cache Variable, and appended as a note for the subsequent incident created by this Event Orchestration.

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const databaseTeam = new pagerduty.Team("database_team", {name: "Database Team"});
    const eventOrchestration = new pagerduty.EventOrchestration("event_orchestration", {
        name: "Example Orchestration",
        team: databaseTeam.id,
    });
    const cacheVar = new pagerduty.EventOrchestrationGlobalCacheVariable("cache_var", {
        eventOrchestration: eventOrchestration.id,
        name: "recent_host",
        conditions: [{
            expression: "event.source exists",
        }],
        configuration: {
            type: "recent_value",
            source: "event.source",
            regex: ".*",
        },
    });
    const global = new pagerduty.EventOrchestrationGlobal("global", {
        eventOrchestration: eventOrchestration.id,
        sets: [{
            id: "start",
            rules: [{
                label: "Always annotate the incident with the event source for all events",
                actions: {
                    annotate: "Last time, we saw this incident occur on host: {{cache_var.recent_host}}",
                },
            }],
        }],
        catchAll: {
            actions: {},
        },
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    database_team = pagerduty.Team("database_team", name="Database Team")
    event_orchestration = pagerduty.EventOrchestration("event_orchestration",
        name="Example Orchestration",
        team=database_team.id)
    cache_var = pagerduty.EventOrchestrationGlobalCacheVariable("cache_var",
        event_orchestration=event_orchestration.id,
        name="recent_host",
        conditions=[{
            "expression": "event.source exists",
        }],
        configuration={
            "type": "recent_value",
            "source": "event.source",
            "regex": ".*",
        })
    global_ = pagerduty.EventOrchestrationGlobal("global",
        event_orchestration=event_orchestration.id,
        sets=[{
            "id": "start",
            "rules": [{
                "label": "Always annotate the incident with the event source for all events",
                "actions": {
                    "annotate": "Last time, we saw this incident occur on host: {{cache_var.recent_host}}",
                },
            }],
        }],
        catch_all={
            "actions": {},
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		databaseTeam, err := pagerduty.NewTeam(ctx, "database_team", &pagerduty.TeamArgs{
    			Name: pulumi.String("Database Team"),
    		})
    		if err != nil {
    			return err
    		}
    		eventOrchestration, err := pagerduty.NewEventOrchestration(ctx, "event_orchestration", &pagerduty.EventOrchestrationArgs{
    			Name: pulumi.String("Example Orchestration"),
    			Team: databaseTeam.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewEventOrchestrationGlobalCacheVariable(ctx, "cache_var", &pagerduty.EventOrchestrationGlobalCacheVariableArgs{
    			EventOrchestration: eventOrchestration.ID(),
    			Name:               pulumi.String("recent_host"),
    			Conditions: pagerduty.EventOrchestrationGlobalCacheVariableConditionArray{
    				&pagerduty.EventOrchestrationGlobalCacheVariableConditionArgs{
    					Expression: pulumi.String("event.source exists"),
    				},
    			},
    			Configuration: &pagerduty.EventOrchestrationGlobalCacheVariableConfigurationArgs{
    				Type:   pulumi.String("recent_value"),
    				Source: pulumi.String("event.source"),
    				Regex:  pulumi.String(".*"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewEventOrchestrationGlobal(ctx, "global", &pagerduty.EventOrchestrationGlobalArgs{
    			EventOrchestration: eventOrchestration.ID(),
    			Sets: pagerduty.EventOrchestrationGlobalSetArray{
    				&pagerduty.EventOrchestrationGlobalSetArgs{
    					Id: pulumi.String("start"),
    					Rules: pagerduty.EventOrchestrationGlobalSetRuleArray{
    						&pagerduty.EventOrchestrationGlobalSetRuleArgs{
    							Label: pulumi.String("Always annotate the incident with the event source for all events"),
    							Actions: &pagerduty.EventOrchestrationGlobalSetRuleActionsArgs{
    								Annotate: pulumi.String("Last time, we saw this incident occur on host: {{cache_var.recent_host}}"),
    							},
    						},
    					},
    				},
    			},
    			CatchAll: &pagerduty.EventOrchestrationGlobalCatchAllArgs{
    				Actions: &pagerduty.EventOrchestrationGlobalCatchAllActionsArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var databaseTeam = new Pagerduty.Team("database_team", new()
        {
            Name = "Database Team",
        });
    
        var eventOrchestration = new Pagerduty.EventOrchestration("event_orchestration", new()
        {
            Name = "Example Orchestration",
            Team = databaseTeam.Id,
        });
    
        var cacheVar = new Pagerduty.EventOrchestrationGlobalCacheVariable("cache_var", new()
        {
            EventOrchestration = eventOrchestration.Id,
            Name = "recent_host",
            Conditions = new[]
            {
                new Pagerduty.Inputs.EventOrchestrationGlobalCacheVariableConditionArgs
                {
                    Expression = "event.source exists",
                },
            },
            Configuration = new Pagerduty.Inputs.EventOrchestrationGlobalCacheVariableConfigurationArgs
            {
                Type = "recent_value",
                Source = "event.source",
                Regex = ".*",
            },
        });
    
        var @global = new Pagerduty.EventOrchestrationGlobal("global", new()
        {
            EventOrchestration = eventOrchestration.Id,
            Sets = new[]
            {
                new Pagerduty.Inputs.EventOrchestrationGlobalSetArgs
                {
                    Id = "start",
                    Rules = new[]
                    {
                        new Pagerduty.Inputs.EventOrchestrationGlobalSetRuleArgs
                        {
                            Label = "Always annotate the incident with the event source for all events",
                            Actions = new Pagerduty.Inputs.EventOrchestrationGlobalSetRuleActionsArgs
                            {
                                Annotate = "Last time, we saw this incident occur on host: {{cache_var.recent_host}}",
                            },
                        },
                    },
                },
            },
            CatchAll = new Pagerduty.Inputs.EventOrchestrationGlobalCatchAllArgs
            {
                Actions = null,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Team;
    import com.pulumi.pagerduty.TeamArgs;
    import com.pulumi.pagerduty.EventOrchestration;
    import com.pulumi.pagerduty.EventOrchestrationArgs;
    import com.pulumi.pagerduty.EventOrchestrationGlobalCacheVariable;
    import com.pulumi.pagerduty.EventOrchestrationGlobalCacheVariableArgs;
    import com.pulumi.pagerduty.inputs.EventOrchestrationGlobalCacheVariableConditionArgs;
    import com.pulumi.pagerduty.inputs.EventOrchestrationGlobalCacheVariableConfigurationArgs;
    import com.pulumi.pagerduty.EventOrchestrationGlobal;
    import com.pulumi.pagerduty.EventOrchestrationGlobalArgs;
    import com.pulumi.pagerduty.inputs.EventOrchestrationGlobalSetArgs;
    import com.pulumi.pagerduty.inputs.EventOrchestrationGlobalCatchAllArgs;
    import com.pulumi.pagerduty.inputs.EventOrchestrationGlobalCatchAllActionsArgs;
    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 databaseTeam = new Team("databaseTeam", TeamArgs.builder()
                .name("Database Team")
                .build());
    
            var eventOrchestration = new EventOrchestration("eventOrchestration", EventOrchestrationArgs.builder()
                .name("Example Orchestration")
                .team(databaseTeam.id())
                .build());
    
            var cacheVar = new EventOrchestrationGlobalCacheVariable("cacheVar", EventOrchestrationGlobalCacheVariableArgs.builder()
                .eventOrchestration(eventOrchestration.id())
                .name("recent_host")
                .conditions(EventOrchestrationGlobalCacheVariableConditionArgs.builder()
                    .expression("event.source exists")
                    .build())
                .configuration(EventOrchestrationGlobalCacheVariableConfigurationArgs.builder()
                    .type("recent_value")
                    .source("event.source")
                    .regex(".*")
                    .build())
                .build());
    
            var global = new EventOrchestrationGlobal("global", EventOrchestrationGlobalArgs.builder()
                .eventOrchestration(eventOrchestration.id())
                .sets(EventOrchestrationGlobalSetArgs.builder()
                    .id("start")
                    .rules(EventOrchestrationGlobalSetRuleArgs.builder()
                        .label("Always annotate the incident with the event source for all events")
                        .actions(EventOrchestrationGlobalSetRuleActionsArgs.builder()
                            .annotate("Last time, we saw this incident occur on host: {{cache_var.recent_host}}")
                            .build())
                        .build())
                    .build())
                .catchAll(EventOrchestrationGlobalCatchAllArgs.builder()
                    .actions()
                    .build())
                .build());
    
        }
    }
    
    resources:
      databaseTeam:
        type: pagerduty:Team
        name: database_team
        properties:
          name: Database Team
      eventOrchestration:
        type: pagerduty:EventOrchestration
        name: event_orchestration
        properties:
          name: Example Orchestration
          team: ${databaseTeam.id}
      cacheVar:
        type: pagerduty:EventOrchestrationGlobalCacheVariable
        name: cache_var
        properties:
          eventOrchestration: ${eventOrchestration.id}
          name: recent_host
          conditions:
            - expression: event.source exists
          configuration:
            type: recent_value
            source: event.source
            regex: .*
      global:
        type: pagerduty:EventOrchestrationGlobal
        properties:
          eventOrchestration: ${eventOrchestration.id}
          sets:
            - id: start
              rules:
                - label: Always annotate the incident with the event source for all events
                  actions:
                    annotate: 'Last time, we saw this incident occur on host: {{cache_var.recent_host}}'
          catchAll:
            actions: {}
    

    Create EventOrchestrationGlobalCacheVariable Resource

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

    Constructor syntax

    new EventOrchestrationGlobalCacheVariable(name: string, args: EventOrchestrationGlobalCacheVariableArgs, opts?: CustomResourceOptions);
    @overload
    def EventOrchestrationGlobalCacheVariable(resource_name: str,
                                              args: EventOrchestrationGlobalCacheVariableArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventOrchestrationGlobalCacheVariable(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              configuration: Optional[EventOrchestrationGlobalCacheVariableConfigurationArgs] = None,
                                              event_orchestration: Optional[str] = None,
                                              conditions: Optional[Sequence[EventOrchestrationGlobalCacheVariableConditionArgs]] = None,
                                              disabled: Optional[bool] = None,
                                              name: Optional[str] = None)
    func NewEventOrchestrationGlobalCacheVariable(ctx *Context, name string, args EventOrchestrationGlobalCacheVariableArgs, opts ...ResourceOption) (*EventOrchestrationGlobalCacheVariable, error)
    public EventOrchestrationGlobalCacheVariable(string name, EventOrchestrationGlobalCacheVariableArgs args, CustomResourceOptions? opts = null)
    public EventOrchestrationGlobalCacheVariable(String name, EventOrchestrationGlobalCacheVariableArgs args)
    public EventOrchestrationGlobalCacheVariable(String name, EventOrchestrationGlobalCacheVariableArgs args, CustomResourceOptions options)
    
    type: pagerduty:EventOrchestrationGlobalCacheVariable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EventOrchestrationGlobalCacheVariableArgs
    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 EventOrchestrationGlobalCacheVariableArgs
    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 EventOrchestrationGlobalCacheVariableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventOrchestrationGlobalCacheVariableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventOrchestrationGlobalCacheVariableArgs
    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 eventOrchestrationGlobalCacheVariableResource = new Pagerduty.EventOrchestrationGlobalCacheVariable("eventOrchestrationGlobalCacheVariableResource", new()
    {
        Configuration = new Pagerduty.Inputs.EventOrchestrationGlobalCacheVariableConfigurationArgs
        {
            Type = "string",
            Regex = "string",
            Source = "string",
            TtlSeconds = 0,
        },
        EventOrchestration = "string",
        Conditions = new[]
        {
            new Pagerduty.Inputs.EventOrchestrationGlobalCacheVariableConditionArgs
            {
                Expression = "string",
            },
        },
        Disabled = false,
        Name = "string",
    });
    
    example, err := pagerduty.NewEventOrchestrationGlobalCacheVariable(ctx, "eventOrchestrationGlobalCacheVariableResource", &pagerduty.EventOrchestrationGlobalCacheVariableArgs{
    	Configuration: &pagerduty.EventOrchestrationGlobalCacheVariableConfigurationArgs{
    		Type:       pulumi.String("string"),
    		Regex:      pulumi.String("string"),
    		Source:     pulumi.String("string"),
    		TtlSeconds: pulumi.Int(0),
    	},
    	EventOrchestration: pulumi.String("string"),
    	Conditions: pagerduty.EventOrchestrationGlobalCacheVariableConditionArray{
    		&pagerduty.EventOrchestrationGlobalCacheVariableConditionArgs{
    			Expression: pulumi.String("string"),
    		},
    	},
    	Disabled: pulumi.Bool(false),
    	Name:     pulumi.String("string"),
    })
    
    var eventOrchestrationGlobalCacheVariableResource = new EventOrchestrationGlobalCacheVariable("eventOrchestrationGlobalCacheVariableResource", EventOrchestrationGlobalCacheVariableArgs.builder()
        .configuration(EventOrchestrationGlobalCacheVariableConfigurationArgs.builder()
            .type("string")
            .regex("string")
            .source("string")
            .ttlSeconds(0)
            .build())
        .eventOrchestration("string")
        .conditions(EventOrchestrationGlobalCacheVariableConditionArgs.builder()
            .expression("string")
            .build())
        .disabled(false)
        .name("string")
        .build());
    
    event_orchestration_global_cache_variable_resource = pagerduty.EventOrchestrationGlobalCacheVariable("eventOrchestrationGlobalCacheVariableResource",
        configuration={
            "type": "string",
            "regex": "string",
            "source": "string",
            "ttl_seconds": 0,
        },
        event_orchestration="string",
        conditions=[{
            "expression": "string",
        }],
        disabled=False,
        name="string")
    
    const eventOrchestrationGlobalCacheVariableResource = new pagerduty.EventOrchestrationGlobalCacheVariable("eventOrchestrationGlobalCacheVariableResource", {
        configuration: {
            type: "string",
            regex: "string",
            source: "string",
            ttlSeconds: 0,
        },
        eventOrchestration: "string",
        conditions: [{
            expression: "string",
        }],
        disabled: false,
        name: "string",
    });
    
    type: pagerduty:EventOrchestrationGlobalCacheVariable
    properties:
        conditions:
            - expression: string
        configuration:
            regex: string
            source: string
            ttlSeconds: 0
            type: string
        disabled: false
        eventOrchestration: string
        name: string
    

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

    Configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Conditions List<EventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    Configuration EventOrchestrationGlobalCacheVariableConfigurationArgs
    A configuration object to define what and how values will be stored in the Cache Variable.
    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Conditions []EventOrchestrationGlobalCacheVariableConditionArgs
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    conditions List<EventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    disabled Boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration.
    configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    eventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    conditions EventOrchestrationGlobalCacheVariableCondition[]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    disabled boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    configuration EventOrchestrationGlobalCacheVariableConfigurationArgs
    A configuration object to define what and how values will be stored in the Cache Variable.
    event_orchestration str
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    conditions Sequence[EventOrchestrationGlobalCacheVariableConditionArgs]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    name str
    Name of the Cache Variable associated with the Global Event Orchestration.
    configuration Property Map
    A configuration object to define what and how values will be stored in the Cache Variable.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    conditions List<Property Map>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    disabled Boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration.

    Outputs

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

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

    Look up Existing EventOrchestrationGlobalCacheVariable Resource

    Get an existing EventOrchestrationGlobalCacheVariable 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?: EventOrchestrationGlobalCacheVariableState, opts?: CustomResourceOptions): EventOrchestrationGlobalCacheVariable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            conditions: Optional[Sequence[EventOrchestrationGlobalCacheVariableConditionArgs]] = None,
            configuration: Optional[EventOrchestrationGlobalCacheVariableConfigurationArgs] = None,
            disabled: Optional[bool] = None,
            event_orchestration: Optional[str] = None,
            name: Optional[str] = None) -> EventOrchestrationGlobalCacheVariable
    func GetEventOrchestrationGlobalCacheVariable(ctx *Context, name string, id IDInput, state *EventOrchestrationGlobalCacheVariableState, opts ...ResourceOption) (*EventOrchestrationGlobalCacheVariable, error)
    public static EventOrchestrationGlobalCacheVariable Get(string name, Input<string> id, EventOrchestrationGlobalCacheVariableState? state, CustomResourceOptions? opts = null)
    public static EventOrchestrationGlobalCacheVariable get(String name, Output<String> id, EventOrchestrationGlobalCacheVariableState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Conditions List<EventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    Disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    Conditions []EventOrchestrationGlobalCacheVariableConditionArgs
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Configuration EventOrchestrationGlobalCacheVariableConfigurationArgs
    A configuration object to define what and how values will be stored in the Cache Variable.
    Disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    conditions List<EventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    disabled Boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration.
    conditions EventOrchestrationGlobalCacheVariableCondition[]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configuration EventOrchestrationGlobalCacheVariableConfiguration
    A configuration object to define what and how values will be stored in the Cache Variable.
    disabled boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    eventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    name string
    Name of the Cache Variable associated with the Global Event Orchestration.
    conditions Sequence[EventOrchestrationGlobalCacheVariableConditionArgs]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configuration EventOrchestrationGlobalCacheVariableConfigurationArgs
    A configuration object to define what and how values will be stored in the Cache Variable.
    disabled bool
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    event_orchestration str
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    name str
    Name of the Cache Variable associated with the Global Event Orchestration.
    conditions List<Property Map>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configuration Property Map
    A configuration object to define what and how values will be stored in the Cache Variable.
    disabled Boolean
    Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration.

    Supporting Types

    EventOrchestrationGlobalCacheVariableCondition, EventOrchestrationGlobalCacheVariableConditionArgs

    Expression string
    A PCL condition string.
    Expression string
    A PCL condition string.
    expression String
    A PCL condition string.
    expression string
    A PCL condition string.
    expression String
    A PCL condition string.

    EventOrchestrationGlobalCacheVariableConfiguration, EventOrchestrationGlobalCacheVariableConfigurationArgs

    Type string
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    Regex string
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    Source string
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    TtlSeconds int
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count
    Type string
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    Regex string
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    Source string
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    TtlSeconds int
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count
    type String
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    regex String
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    source String
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    ttlSeconds Integer
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count
    type string
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    regex string
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    source string
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    ttlSeconds number
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count
    type str
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    regex str
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    source str
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    ttl_seconds int
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count
    type String
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.
    regex String
    A [RE2 regular expression][4] that will be matched against the field specified via the source argument. This field is only used when type is recent_value
    source String
    The path to the event field where the regex will be applied to extract a value. You can use any valid PCL path. This field is only used when type is recent_value
    ttlSeconds Number
    The number of seconds indicating how long to count incoming trigger events for. This field is only used when type is trigger_event_count

    Import

    Cache Variables can be imported using colon-separated IDs, which is the combination of the Global Event Orchestration ID followed by the Cache Variable ID, e.g.

    $ pulumi import pagerduty:index/eventOrchestrationGlobalCacheVariable:EventOrchestrationGlobalCacheVariable cache_variable 5e7110bf-0ee7-429e-9724-34ed1fe15ac3:138ed254-3444-44ad-8cc7-701d69def439
    

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

    Package Details

    Repository
    PagerDuty pulumi/pulumi-pagerduty
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the pagerduty Terraform Provider.
    pagerduty logo
    PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi