1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. AutomationActionsRunnerTeamAssociation
PagerDuty v4.22.1 published on Friday, Mar 21, 2025 by Pulumi

pagerduty.AutomationActionsRunnerTeamAssociation

Explore with Pulumi AI

An Automation Actions runner association with a team configures the relation of a specific Runner with a Team.

Example Usage

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,
});
Copy
import pulumi
import pulumi_pagerduty as pagerduty

team_ent_eng = pagerduty.Team("team_ent_eng",
    name="Enterprise Engineering",
    description="Enterprise engineering")
pa_runbook_runner = pagerduty.AutomationActionsRunner("pa_runbook_runner",
    name="Runner created via TF",
    description="Description of the Runner created via TF",
    runner_type="runbook",
    runbook_base_uri="cat-cat",
    runbook_api_key="cat-secret")
pa_runner_ent_eng_assoc = pagerduty.AutomationActionsRunnerTeamAssociation("pa_runner_ent_eng_assoc",
    runner_id=pa_runbook_runner.id,
    team_id=team_ent_eng.id)
Copy
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 {
		teamEntEng, err := pagerduty.NewTeam(ctx, "team_ent_eng", &pagerduty.TeamArgs{
			Name:        pulumi.String("Enterprise Engineering"),
			Description: pulumi.String("Enterprise engineering"),
		})
		if err != nil {
			return err
		}
		paRunbookRunner, err := pagerduty.NewAutomationActionsRunner(ctx, "pa_runbook_runner", &pagerduty.AutomationActionsRunnerArgs{
			Name:           pulumi.String("Runner created via TF"),
			Description:    pulumi.String("Description of the Runner created via TF"),
			RunnerType:     pulumi.String("runbook"),
			RunbookBaseUri: pulumi.String("cat-cat"),
			RunbookApiKey:  pulumi.String("cat-secret"),
		})
		if err != nil {
			return err
		}
		_, err = pagerduty.NewAutomationActionsRunnerTeamAssociation(ctx, "pa_runner_ent_eng_assoc", &pagerduty.AutomationActionsRunnerTeamAssociationArgs{
			RunnerId: paRunbookRunner.ID(),
			TeamId:   teamEntEng.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var teamEntEng = new Pagerduty.Team("team_ent_eng", new()
    {
        Name = "Enterprise Engineering",
        Description = "Enterprise engineering",
    });

    var paRunbookRunner = new Pagerduty.AutomationActionsRunner("pa_runbook_runner", new()
    {
        Name = "Runner created via TF",
        Description = "Description of the Runner created via TF",
        RunnerType = "runbook",
        RunbookBaseUri = "cat-cat",
        RunbookApiKey = "cat-secret",
    });

    var paRunnerEntEngAssoc = new Pagerduty.AutomationActionsRunnerTeamAssociation("pa_runner_ent_eng_assoc", new()
    {
        RunnerId = paRunbookRunner.Id,
        TeamId = teamEntEng.Id,
    });

});
Copy
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.AutomationActionsRunner;
import com.pulumi.pagerduty.AutomationActionsRunnerArgs;
import com.pulumi.pagerduty.AutomationActionsRunnerTeamAssociation;
import com.pulumi.pagerduty.AutomationActionsRunnerTeamAssociationArgs;
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 teamEntEng = new Team("teamEntEng", TeamArgs.builder()
            .name("Enterprise Engineering")
            .description("Enterprise engineering")
            .build());

        var paRunbookRunner = new AutomationActionsRunner("paRunbookRunner", AutomationActionsRunnerArgs.builder()
            .name("Runner created via TF")
            .description("Description of the Runner created via TF")
            .runnerType("runbook")
            .runbookBaseUri("cat-cat")
            .runbookApiKey("cat-secret")
            .build());

        var paRunnerEntEngAssoc = new AutomationActionsRunnerTeamAssociation("paRunnerEntEngAssoc", AutomationActionsRunnerTeamAssociationArgs.builder()
            .runnerId(paRunbookRunner.id())
            .teamId(teamEntEng.id())
            .build());

    }
}
Copy
resources:
  teamEntEng:
    type: pagerduty:Team
    name: team_ent_eng
    properties:
      name: Enterprise Engineering
      description: Enterprise engineering
  paRunbookRunner:
    type: pagerduty:AutomationActionsRunner
    name: pa_runbook_runner
    properties:
      name: Runner created via TF
      description: Description of the Runner created via TF
      runnerType: runbook
      runbookBaseUri: cat-cat
      runbookApiKey: cat-secret
  paRunnerEntEngAssoc:
    type: pagerduty:AutomationActionsRunnerTeamAssociation
    name: pa_runner_ent_eng_assoc
    properties:
      runnerId: ${paRunbookRunner.id}
      teamId: ${teamEntEng.id}
Copy

Create AutomationActionsRunnerTeamAssociation Resource

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

Constructor syntax

new AutomationActionsRunnerTeamAssociation(name: string, args: AutomationActionsRunnerTeamAssociationArgs, opts?: CustomResourceOptions);
@overload
def AutomationActionsRunnerTeamAssociation(resource_name: str,
                                           args: AutomationActionsRunnerTeamAssociationArgs,
                                           opts: Optional[ResourceOptions] = None)

@overload
def AutomationActionsRunnerTeamAssociation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           runner_id: Optional[str] = None,
                                           team_id: Optional[str] = None)
func NewAutomationActionsRunnerTeamAssociation(ctx *Context, name string, args AutomationActionsRunnerTeamAssociationArgs, opts ...ResourceOption) (*AutomationActionsRunnerTeamAssociation, error)
public AutomationActionsRunnerTeamAssociation(string name, AutomationActionsRunnerTeamAssociationArgs args, CustomResourceOptions? opts = null)
public AutomationActionsRunnerTeamAssociation(String name, AutomationActionsRunnerTeamAssociationArgs args)
public AutomationActionsRunnerTeamAssociation(String name, AutomationActionsRunnerTeamAssociationArgs args, CustomResourceOptions options)
type: pagerduty:AutomationActionsRunnerTeamAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AutomationActionsRunnerTeamAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AutomationActionsRunnerTeamAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AutomationActionsRunnerTeamAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AutomationActionsRunnerTeamAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AutomationActionsRunnerTeamAssociationArgs
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 automationActionsRunnerTeamAssociationResource = new Pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", new()
{
    RunnerId = "string",
    TeamId = "string",
});
Copy
example, err := pagerduty.NewAutomationActionsRunnerTeamAssociation(ctx, "automationActionsRunnerTeamAssociationResource", &pagerduty.AutomationActionsRunnerTeamAssociationArgs{
	RunnerId: pulumi.String("string"),
	TeamId:   pulumi.String("string"),
})
Copy
var automationActionsRunnerTeamAssociationResource = new AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", AutomationActionsRunnerTeamAssociationArgs.builder()
    .runnerId("string")
    .teamId("string")
    .build());
Copy
automation_actions_runner_team_association_resource = pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource",
    runner_id="string",
    team_id="string")
Copy
const automationActionsRunnerTeamAssociationResource = new pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", {
    runnerId: "string",
    teamId: "string",
});
Copy
type: pagerduty:AutomationActionsRunnerTeamAssociation
properties:
    runnerId: string
    teamId: string
Copy

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

RunnerId
This property is required.
Changes to this property will trigger replacement.
string
Id of the runner.
TeamId
This property is required.
Changes to this property will trigger replacement.
string
Id of the team associated with the runner.
RunnerId
This property is required.
Changes to this property will trigger replacement.
string
Id of the runner.
TeamId
This property is required.
Changes to this property will trigger replacement.
string
Id of the team associated with the runner.
runnerId
This property is required.
Changes to this property will trigger replacement.
String
Id of the runner.
teamId
This property is required.
Changes to this property will trigger replacement.
String
Id of the team associated with the runner.
runnerId
This property is required.
Changes to this property will trigger replacement.
string
Id of the runner.
teamId
This property is required.
Changes to this property will trigger replacement.
string
Id of the team associated with the runner.
runner_id
This property is required.
Changes to this property will trigger replacement.
str
Id of the runner.
team_id
This property is required.
Changes to this property will trigger replacement.
str
Id of the team associated with the runner.
runnerId
This property is required.
Changes to this property will trigger replacement.
String
Id of the runner.
teamId
This property is required.
Changes to this property will trigger replacement.
String
Id of the team associated with the runner.

Outputs

All input properties are implicitly available as output properties. Additionally, the AutomationActionsRunnerTeamAssociation 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 AutomationActionsRunnerTeamAssociation Resource

Get an existing AutomationActionsRunnerTeamAssociation 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?: AutomationActionsRunnerTeamAssociationState, opts?: CustomResourceOptions): AutomationActionsRunnerTeamAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        runner_id: Optional[str] = None,
        team_id: Optional[str] = None) -> AutomationActionsRunnerTeamAssociation
func GetAutomationActionsRunnerTeamAssociation(ctx *Context, name string, id IDInput, state *AutomationActionsRunnerTeamAssociationState, opts ...ResourceOption) (*AutomationActionsRunnerTeamAssociation, error)
public static AutomationActionsRunnerTeamAssociation Get(string name, Input<string> id, AutomationActionsRunnerTeamAssociationState? state, CustomResourceOptions? opts = null)
public static AutomationActionsRunnerTeamAssociation get(String name, Output<String> id, AutomationActionsRunnerTeamAssociationState state, CustomResourceOptions options)
resources:  _:    type: pagerduty:AutomationActionsRunnerTeamAssociation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
RunnerId Changes to this property will trigger replacement. string
Id of the runner.
TeamId Changes to this property will trigger replacement. string
Id of the team associated with the runner.
RunnerId Changes to this property will trigger replacement. string
Id of the runner.
TeamId Changes to this property will trigger replacement. string
Id of the team associated with the runner.
runnerId Changes to this property will trigger replacement. String
Id of the runner.
teamId Changes to this property will trigger replacement. String
Id of the team associated with the runner.
runnerId Changes to this property will trigger replacement. string
Id of the runner.
teamId Changes to this property will trigger replacement. string
Id of the team associated with the runner.
runner_id Changes to this property will trigger replacement. str
Id of the runner.
team_id Changes to this property will trigger replacement. str
Id of the team associated with the runner.
runnerId Changes to this property will trigger replacement. String
Id of the runner.
teamId Changes to this property will trigger replacement. String
Id of the team associated with the runner.

Import

Runner team association can be imported using the runner_id and team_id separated by a colon, e.g.

$ pulumi import pagerduty:index/automationActionsRunnerTeamAssociation:AutomationActionsRunnerTeamAssociation example 01DER7CUUBF7TH4116K0M4WKPU:PLB09Z
Copy

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.