1. Packages
  2. PagerDuty
  3. API Docs
  4. getEventOrchestrationGlobalCacheVariable
PagerDuty v4.13.2 published on Thursday, Jun 27, 2024 by Pulumi

pagerduty.getEventOrchestrationGlobalCacheVariable

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.13.2 published on Thursday, Jun 27, 2024 by Pulumi

    Use this data source to get information about a specific Cache Variable for a Global Event Orchestration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const eventOrchestration = new pagerduty.EventOrchestration("event_orchestration", {name: "Test Event Orchestration"});
    const cacheVariable = pagerduty.getEventOrchestrationGlobalCacheVariableOutput({
        eventOrchestration: eventOrchestration.id,
        name: "example_cache_variable",
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    event_orchestration = pagerduty.EventOrchestration("event_orchestration", name="Test Event Orchestration")
    cache_variable = pagerduty.get_event_orchestration_global_cache_variable_output(event_orchestration=event_orchestration.id,
        name="example_cache_variable")
    
    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 {
    		eventOrchestration, err := pagerduty.NewEventOrchestration(ctx, "event_orchestration", &pagerduty.EventOrchestrationArgs{
    			Name: pulumi.String("Test Event Orchestration"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = pagerduty.LookupEventOrchestrationGlobalCacheVariableOutput(ctx, pagerduty.GetEventOrchestrationGlobalCacheVariableOutputArgs{
    			EventOrchestration: eventOrchestration.ID(),
    			Name:               pulumi.String("example_cache_variable"),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var eventOrchestration = new Pagerduty.EventOrchestration("event_orchestration", new()
        {
            Name = "Test Event Orchestration",
        });
    
        var cacheVariable = Pagerduty.GetEventOrchestrationGlobalCacheVariable.Invoke(new()
        {
            EventOrchestration = eventOrchestration.Id,
            Name = "example_cache_variable",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.EventOrchestration;
    import com.pulumi.pagerduty.EventOrchestrationArgs;
    import com.pulumi.pagerduty.PagerdutyFunctions;
    import com.pulumi.pagerduty.inputs.GetEventOrchestrationGlobalCacheVariableArgs;
    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 eventOrchestration = new EventOrchestration("eventOrchestration", EventOrchestrationArgs.builder()
                .name("Test Event Orchestration")
                .build());
    
            final var cacheVariable = PagerdutyFunctions.getEventOrchestrationGlobalCacheVariable(GetEventOrchestrationGlobalCacheVariableArgs.builder()
                .eventOrchestration(eventOrchestration.id())
                .name("example_cache_variable")
                .build());
    
        }
    }
    
    resources:
      eventOrchestration:
        type: pagerduty:EventOrchestration
        name: event_orchestration
        properties:
          name: Test Event Orchestration
    variables:
      cacheVariable:
        fn::invoke:
          Function: pagerduty:getEventOrchestrationGlobalCacheVariable
          Arguments:
            eventOrchestration: ${eventOrchestration.id}
            name: example_cache_variable
    

    Using getEventOrchestrationGlobalCacheVariable

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEventOrchestrationGlobalCacheVariable(args: GetEventOrchestrationGlobalCacheVariableArgs, opts?: InvokeOptions): Promise<GetEventOrchestrationGlobalCacheVariableResult>
    function getEventOrchestrationGlobalCacheVariableOutput(args: GetEventOrchestrationGlobalCacheVariableOutputArgs, opts?: InvokeOptions): Output<GetEventOrchestrationGlobalCacheVariableResult>
    def get_event_orchestration_global_cache_variable(event_orchestration: Optional[str] = None,
                                                      id: Optional[str] = None,
                                                      name: Optional[str] = None,
                                                      opts: Optional[InvokeOptions] = None) -> GetEventOrchestrationGlobalCacheVariableResult
    def get_event_orchestration_global_cache_variable_output(event_orchestration: Optional[pulumi.Input[str]] = None,
                                                      id: Optional[pulumi.Input[str]] = None,
                                                      name: Optional[pulumi.Input[str]] = None,
                                                      opts: Optional[InvokeOptions] = None) -> Output[GetEventOrchestrationGlobalCacheVariableResult]
    func LookupEventOrchestrationGlobalCacheVariable(ctx *Context, args *LookupEventOrchestrationGlobalCacheVariableArgs, opts ...InvokeOption) (*LookupEventOrchestrationGlobalCacheVariableResult, error)
    func LookupEventOrchestrationGlobalCacheVariableOutput(ctx *Context, args *LookupEventOrchestrationGlobalCacheVariableOutputArgs, opts ...InvokeOption) LookupEventOrchestrationGlobalCacheVariableResultOutput

    > Note: This function is named LookupEventOrchestrationGlobalCacheVariable in the Go SDK.

    public static class GetEventOrchestrationGlobalCacheVariable 
    {
        public static Task<GetEventOrchestrationGlobalCacheVariableResult> InvokeAsync(GetEventOrchestrationGlobalCacheVariableArgs args, InvokeOptions? opts = null)
        public static Output<GetEventOrchestrationGlobalCacheVariableResult> Invoke(GetEventOrchestrationGlobalCacheVariableInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventOrchestrationGlobalCacheVariableResult> getEventOrchestrationGlobalCacheVariable(GetEventOrchestrationGlobalCacheVariableArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: pagerduty:index/getEventOrchestrationGlobalCacheVariable:getEventOrchestrationGlobalCacheVariable
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Id string
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    EventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    Id string
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    Name string
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    id String
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    eventOrchestration string
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    id string
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    name string
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    event_orchestration str
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    id str
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    name str
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    eventOrchestration String
    ID of the Global Event Orchestration to which this Cache Variable belongs.
    id String
    ID of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.
    name String
    Name of the Cache Variable associated with the Global Event Orchestration. Specify either id or name. If both are specified id takes precedence.

    getEventOrchestrationGlobalCacheVariable Result

    The following output properties are available:

    Conditions List<GetEventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Configurations List<GetEventOrchestrationGlobalCacheVariableConfiguration>
    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 string
    Name string
    Conditions []GetEventOrchestrationGlobalCacheVariableCondition
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    Configurations []GetEventOrchestrationGlobalCacheVariableConfiguration
    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 string
    Name string
    conditions List<GetEventOrchestrationGlobalCacheVariableCondition>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configurations List<GetEventOrchestrationGlobalCacheVariableConfiguration>
    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 String
    name String
    conditions GetEventOrchestrationGlobalCacheVariableCondition[]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configurations GetEventOrchestrationGlobalCacheVariableConfiguration[]
    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 string
    name string
    conditions Sequence[GetEventOrchestrationGlobalCacheVariableCondition]
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configurations Sequence[GetEventOrchestrationGlobalCacheVariableConfiguration]
    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 str
    name str
    conditions List<Property Map>
    Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
    configurations List<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 String
    name String

    Supporting Types

    GetEventOrchestrationGlobalCacheVariableCondition

    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.

    GetEventOrchestrationGlobalCacheVariableConfiguration

    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 string
    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 str
    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 String
    The type of value to store into the Cache Variable. Can be one of: recent_value or trigger_event_count.

    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.13.2 published on Thursday, Jun 27, 2024 by Pulumi