UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

95 lines (94 loc) 3.77 kB
import * as pulumi from "@pulumi/pulumi"; /** * An Automation Actions [runner association with a team](https://developer.pagerduty.com/api-reference/f662de6271a6e-associate-a-runner-with-a-team) configures the relation of a specific Runner with a Team. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const teamEntEng = new pagerduty.Team("team_ent_eng", { * name: "Enterprise Engineering", * description: "Enterprise engineering", * }); * const paRunbookRunner = new pagerduty.AutomationActionsRunner("pa_runbook_runner", { * name: "Runner created via TF", * description: "Description of the Runner created via TF", * runnerType: "runbook", * runbookBaseUri: "cat-cat", * runbookApiKey: "cat-secret", * }); * const paRunnerEntEngAssoc = new pagerduty.AutomationActionsRunnerTeamAssociation("pa_runner_ent_eng_assoc", { * runnerId: paRunbookRunner.id, * teamId: teamEntEng.id, * }); * ``` * * ## Import * * Runner team association can be imported using the `runner_id` and `team_id` separated by a colon, e.g. * * ```sh * $ pulumi import pagerduty:index/automationActionsRunnerTeamAssociation:AutomationActionsRunnerTeamAssociation example 01DER7CUUBF7TH4116K0M4WKPU:PLB09Z * ``` */ export declare class AutomationActionsRunnerTeamAssociation extends pulumi.CustomResource { /** * Get an existing AutomationActionsRunnerTeamAssociation 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?: AutomationActionsRunnerTeamAssociationState, opts?: pulumi.CustomResourceOptions): AutomationActionsRunnerTeamAssociation; /** * Returns true if the given object is an instance of AutomationActionsRunnerTeamAssociation. 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 AutomationActionsRunnerTeamAssociation; /** * Id of the runner. */ readonly runnerId: pulumi.Output<string>; /** * Id of the team associated with the runner. */ readonly teamId: pulumi.Output<string>; /** * Create a AutomationActionsRunnerTeamAssociation 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: AutomationActionsRunnerTeamAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutomationActionsRunnerTeamAssociation resources. */ export interface AutomationActionsRunnerTeamAssociationState { /** * Id of the runner. */ runnerId?: pulumi.Input<string>; /** * Id of the team associated with the runner. */ teamId?: pulumi.Input<string>; } /** * The set of arguments for constructing a AutomationActionsRunnerTeamAssociation resource. */ export interface AutomationActionsRunnerTeamAssociationArgs { /** * Id of the runner. */ runnerId: pulumi.Input<string>; /** * Id of the team associated with the runner. */ teamId: pulumi.Input<string>; }