@pulumi/pagerduty
Version:
A Pulumi package for creating and managing pagerduty cloud resources.
110 lines (109 loc) • 5.59 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* A [Cache Variable](https://support.pagerduty.com/docs/event-orchestration-variables) can be created on a Global Event Orchestration, in order to temporarily store event data to be referenced later within the Global Event Orchestration
*
* ## 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.
*
* ```sh
* $ pulumi import pagerduty:index/eventOrchestrationGlobalCacheVariable:EventOrchestrationGlobalCacheVariable cache_variable 5e7110bf-0ee7-429e-9724-34ed1fe15ac3:138ed254-3444-44ad-8cc7-701d69def439
* ```
*/
export declare class EventOrchestrationGlobalCacheVariable extends pulumi.CustomResource {
/**
* Get an existing EventOrchestrationGlobalCacheVariable resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EventOrchestrationGlobalCacheVariableState, opts?: pulumi.CustomResourceOptions): EventOrchestrationGlobalCacheVariable;
/**
* Returns true if the given object is an instance of EventOrchestrationGlobalCacheVariable. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is EventOrchestrationGlobalCacheVariable;
/**
* Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value. This attribute can only be used when `configuration.0.type` is `recentValue` or `triggerEventCount`.
*/
readonly conditions: pulumi.Output<outputs.EventOrchestrationGlobalCacheVariableCondition[] | undefined>;
/**
* A configuration object to define what and how values will be stored in the Cache Variable.
*/
readonly configuration: pulumi.Output<outputs.EventOrchestrationGlobalCacheVariableConfiguration>;
/**
* Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
*/
readonly disabled: pulumi.Output<boolean | undefined>;
/**
* ID of the Global Event Orchestration to which this Cache Variable belongs.
*/
readonly eventOrchestration: pulumi.Output<string>;
/**
* Name of the Cache Variable associated with the Global Event Orchestration.
*/
readonly name: pulumi.Output<string>;
/**
* Create a EventOrchestrationGlobalCacheVariable resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: EventOrchestrationGlobalCacheVariableArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering EventOrchestrationGlobalCacheVariable resources.
*/
export interface EventOrchestrationGlobalCacheVariableState {
/**
* Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value. This attribute can only be used when `configuration.0.type` is `recentValue` or `triggerEventCount`.
*/
conditions?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationGlobalCacheVariableCondition>[]>;
/**
* A configuration object to define what and how values will be stored in the Cache Variable.
*/
configuration?: pulumi.Input<inputs.EventOrchestrationGlobalCacheVariableConfiguration>;
/**
* Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
*/
disabled?: pulumi.Input<boolean>;
/**
* ID of the Global Event Orchestration to which this Cache Variable belongs.
*/
eventOrchestration?: pulumi.Input<string>;
/**
* Name of the Cache Variable associated with the Global Event Orchestration.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a EventOrchestrationGlobalCacheVariable resource.
*/
export interface EventOrchestrationGlobalCacheVariableArgs {
/**
* Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value. This attribute can only be used when `configuration.0.type` is `recentValue` or `triggerEventCount`.
*/
conditions?: pulumi.Input<pulumi.Input<inputs.EventOrchestrationGlobalCacheVariableCondition>[]>;
/**
* A configuration object to define what and how values will be stored in the Cache Variable.
*/
configuration: pulumi.Input<inputs.EventOrchestrationGlobalCacheVariableConfiguration>;
/**
* Indicates whether the Cache Variable is disabled and would therefore not be evaluated.
*/
disabled?: pulumi.Input<boolean>;
/**
* ID of the Global Event Orchestration to which this Cache Variable belongs.
*/
eventOrchestration: pulumi.Input<string>;
/**
* Name of the Cache Variable associated with the Global Event Orchestration.
*/
name?: pulumi.Input<string>;
}