UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

118 lines (117 loc) 4.55 kB
import * as pulumi from "@pulumi/pulumi"; /** * An Automation Actions [action association with a service](https://developer.pagerduty.com/api-reference/5d2f051f3fb43-associate-an-automation-action-with-a-service) configures the relation of a specific Action with a Service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const example = new pagerduty.User("example", { * name: "Earline Greenholt", * email: "125.greenholt.earline@graham.name", * }); * const foo = new pagerduty.EscalationPolicy("foo", { * name: "Engineering Escalation Policy", * numLoops: 2, * rules: [{ * escalationDelayInMinutes: 10, * targets: [{ * type: "user_reference", * id: example.id, * }], * }], * }); * const exampleService = new pagerduty.Service("example", { * name: "My Web App", * autoResolveTimeout: "14400", * acknowledgementTimeout: "600", * escalationPolicy: foo.id, * alertCreation: "create_alerts_and_incidents", * autoPauseNotificationsParameters: { * enabled: true, * timeout: 300, * }, * }); * const paActionExample = new pagerduty.AutomationActionsAction("pa_action_example", { * name: "PA Action created via TF", * description: "Description of the PA Action created via TF", * actionType: "process_automation", * actionDataReference: { * processAutomationJobId: "P123456", * }, * }); * const fooAutomationActionsActionServiceAssociation = new pagerduty.AutomationActionsActionServiceAssociation("foo", { * actionId: paActionExample.id, * serviceId: exampleService.id, * }); * ``` * * ## Import * * Action service association can be imported using the `action_id` and `service_id` separated by a colon, e.g. * * ```sh * $ pulumi import pagerduty:index/automationActionsActionServiceAssociation:AutomationActionsActionServiceAssociation example 01DER7CUUBF7TH4116K0M4WKPU:PLB09Z * ``` */ export declare class AutomationActionsActionServiceAssociation extends pulumi.CustomResource { /** * Get an existing AutomationActionsActionServiceAssociation 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?: AutomationActionsActionServiceAssociationState, opts?: pulumi.CustomResourceOptions): AutomationActionsActionServiceAssociation; /** * Returns true if the given object is an instance of AutomationActionsActionServiceAssociation. 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 AutomationActionsActionServiceAssociation; /** * Id of the action. */ readonly actionId: pulumi.Output<string>; /** * Id of the service associated to the action. */ readonly serviceId: pulumi.Output<string>; /** * Create a AutomationActionsActionServiceAssociation 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: AutomationActionsActionServiceAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutomationActionsActionServiceAssociation resources. */ export interface AutomationActionsActionServiceAssociationState { /** * Id of the action. */ actionId?: pulumi.Input<string>; /** * Id of the service associated to the action. */ serviceId?: pulumi.Input<string>; } /** * The set of arguments for constructing a AutomationActionsActionServiceAssociation resource. */ export interface AutomationActionsActionServiceAssociationArgs { /** * Id of the action. */ actionId: pulumi.Input<string>; /** * Id of the service associated to the action. */ serviceId: pulumi.Input<string>; }