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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var automationActionsRunnerTeamAssociationResource = new Pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", new()
{
RunnerId = "string",
TeamId = "string",
});
example, err := pagerduty.NewAutomationActionsRunnerTeamAssociation(ctx, "automationActionsRunnerTeamAssociationResource", &pagerduty.AutomationActionsRunnerTeamAssociationArgs{
RunnerId: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
var automationActionsRunnerTeamAssociationResource = new AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", AutomationActionsRunnerTeamAssociationArgs.builder()
.runnerId("string")
.teamId("string")
.build());
automation_actions_runner_team_association_resource = pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource",
runner_id="string",
team_id="string")
const automationActionsRunnerTeamAssociationResource = new pagerduty.AutomationActionsRunnerTeamAssociation("automationActionsRunnerTeamAssociationResource", {
runnerId: "string",
teamId: "string",
});
type: pagerduty:AutomationActionsRunnerTeamAssociation
properties:
runnerId: string
teamId: string
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:
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
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.