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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
return await Deployment.RunAsync(() =>
{
var teamEntEng = new Pagerduty.Team("teamEntEng", new()
{
Description = "Enterprise engineering",
});
var paRunbookRunner = new Pagerduty.AutomationActionsRunner("paRunbookRunner", new()
{
Description = "Description of the Runner created via TF",
RunnerType = "runbook",
RunbookBaseUri = "cat-cat",
RunbookApiKey = "cat-secret",
});
var paRunnerEntEngAssoc = new Pagerduty.AutomationActionsRunnerTeamAssociation("paRunnerEntEngAssoc", new()
{
RunnerId = paRunbookRunner.Id,
TeamId = teamEntEng.Id,
});
});
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, "teamEntEng", &pagerduty.TeamArgs{
Description: pulumi.String("Enterprise engineering"),
})
if err != nil {
return err
}
paRunbookRunner, err := pagerduty.NewAutomationActionsRunner(ctx, "paRunbookRunner", &pagerduty.AutomationActionsRunnerArgs{
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, "paRunnerEntEngAssoc", &pagerduty.AutomationActionsRunnerTeamAssociationArgs{
RunnerId: paRunbookRunner.ID(),
TeamId: teamEntEng.ID(),
})
if err != nil {
return err
}
return nil
})
}
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()
.description("Enterprise engineering")
.build());
var paRunbookRunner = new AutomationActionsRunner("paRunbookRunner", AutomationActionsRunnerArgs.builder()
.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());
}
}
import pulumi
import pulumi_pagerduty as pagerduty
team_ent_eng = pagerduty.Team("teamEntEng", description="Enterprise engineering")
pa_runbook_runner = pagerduty.AutomationActionsRunner("paRunbookRunner",
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("paRunnerEntEngAssoc",
runner_id=pa_runbook_runner.id,
team_id=team_ent_eng.id)
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const teamEntEng = new pagerduty.Team("teamEntEng", {description: "Enterprise engineering"});
const paRunbookRunner = new pagerduty.AutomationActionsRunner("paRunbookRunner", {
description: "Description of the Runner created via TF",
runnerType: "runbook",
runbookBaseUri: "cat-cat",
runbookApiKey: "cat-secret",
});
const paRunnerEntEngAssoc = new pagerduty.AutomationActionsRunnerTeamAssociation("paRunnerEntEngAssoc", {
runnerId: paRunbookRunner.id,
teamId: teamEntEng.id,
});
resources:
teamEntEng:
type: pagerduty:Team
properties:
description: Enterprise engineering
paRunbookRunner:
type: pagerduty:AutomationActionsRunner
properties:
description: Description of the Runner created via TF
runnerType: runbook
runbookBaseUri: cat-cat
runbookApiKey: cat-secret
paRunnerEntEngAssoc:
type: pagerduty:AutomationActionsRunnerTeamAssociation
properties:
runnerId: ${paRunbookRunner.id}
teamId: ${teamEntEng.id}
Create AutomationActionsRunnerTeamAssociation Resource
new AutomationActionsRunnerTeamAssociation(name: string, args: AutomationActionsRunnerTeamAssociationArgs, opts?: CustomResourceOptions);
@overload
def AutomationActionsRunnerTeamAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
runner_id: Optional[str] = None,
team_id: Optional[str] = None)
@overload
def AutomationActionsRunnerTeamAssociation(resource_name: str,
args: AutomationActionsRunnerTeamAssociationArgs,
opts: Optional[ResourceOptions] = 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.
- name string
- The unique name of the resource.
- args AutomationActionsRunnerTeamAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AutomationActionsRunnerTeamAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutomationActionsRunnerTeamAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutomationActionsRunnerTeamAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The AutomationActionsRunnerTeamAssociation resource accepts the following input properties:
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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
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
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
pagerduty
Terraform Provider.