pagerduty.AutomationActionsActionTeamAssociation

An Automation Actions action association with a team configures the relation of a specific Action with a Team.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var example = new Pagerduty.Team("example", new()
    {
        Description = "All engineering",
    });

    var paActionExample = new Pagerduty.AutomationActionsAction("paActionExample", new()
    {
        Description = "Description of the PA Action created via TF",
        ActionType = "process_automation",
        ActionDataReference = new Pagerduty.Inputs.AutomationActionsActionActionDataReferenceArgs
        {
            ProcessAutomationJobId = "P123456",
        },
    });

    var foo = new Pagerduty.AutomationActionsActionTeamAssociation("foo", new()
    {
        ActionId = paActionExample.Id,
        TeamId = example.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v3/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := pagerduty.NewTeam(ctx, "example", &pagerduty.TeamArgs{
			Description: pulumi.String("All engineering"),
		})
		if err != nil {
			return err
		}
		paActionExample, err := pagerduty.NewAutomationActionsAction(ctx, "paActionExample", &pagerduty.AutomationActionsActionArgs{
			Description: pulumi.String("Description of the PA Action created via TF"),
			ActionType:  pulumi.String("process_automation"),
			ActionDataReference: &pagerduty.AutomationActionsActionActionDataReferenceArgs{
				ProcessAutomationJobId: pulumi.String("P123456"),
			},
		})
		if err != nil {
			return err
		}
		_, err = pagerduty.NewAutomationActionsActionTeamAssociation(ctx, "foo", &pagerduty.AutomationActionsActionTeamAssociationArgs{
			ActionId: paActionExample.ID(),
			TeamId:   example.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.AutomationActionsAction;
import com.pulumi.pagerduty.AutomationActionsActionArgs;
import com.pulumi.pagerduty.inputs.AutomationActionsActionActionDataReferenceArgs;
import com.pulumi.pagerduty.AutomationActionsActionTeamAssociation;
import com.pulumi.pagerduty.AutomationActionsActionTeamAssociationArgs;
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 example = new Team("example", TeamArgs.builder()        
            .description("All engineering")
            .build());

        var paActionExample = new AutomationActionsAction("paActionExample", AutomationActionsActionArgs.builder()        
            .description("Description of the PA Action created via TF")
            .actionType("process_automation")
            .actionDataReference(AutomationActionsActionActionDataReferenceArgs.builder()
                .processAutomationJobId("P123456")
                .build())
            .build());

        var foo = new AutomationActionsActionTeamAssociation("foo", AutomationActionsActionTeamAssociationArgs.builder()        
            .actionId(paActionExample.id())
            .teamId(example.id())
            .build());

    }
}
import pulumi
import pulumi_pagerduty as pagerduty

example = pagerduty.Team("example", description="All engineering")
pa_action_example = pagerduty.AutomationActionsAction("paActionExample",
    description="Description of the PA Action created via TF",
    action_type="process_automation",
    action_data_reference=pagerduty.AutomationActionsActionActionDataReferenceArgs(
        process_automation_job_id="P123456",
    ))
foo = pagerduty.AutomationActionsActionTeamAssociation("foo",
    action_id=pa_action_example.id,
    team_id=example.id)
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const example = new pagerduty.Team("example", {description: "All engineering"});
const paActionExample = new pagerduty.AutomationActionsAction("paActionExample", {
    description: "Description of the PA Action created via TF",
    actionType: "process_automation",
    actionDataReference: {
        processAutomationJobId: "P123456",
    },
});
const foo = new pagerduty.AutomationActionsActionTeamAssociation("foo", {
    actionId: paActionExample.id,
    teamId: example.id,
});
resources:
  example:
    type: pagerduty:Team
    properties:
      description: All engineering
  paActionExample:
    type: pagerduty:AutomationActionsAction
    properties:
      description: Description of the PA Action created via TF
      actionType: process_automation
      actionDataReference:
        processAutomationJobId: P123456
  foo:
    type: pagerduty:AutomationActionsActionTeamAssociation
    properties:
      actionId: ${paActionExample.id}
      teamId: ${example.id}

Create AutomationActionsActionTeamAssociation Resource

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

name string
The unique name of the resource.
args AutomationActionsActionTeamAssociationArgs
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 AutomationActionsActionTeamAssociationArgs
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 AutomationActionsActionTeamAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AutomationActionsActionTeamAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AutomationActionsActionTeamAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ActionId string

Id of the action.

TeamId string

Id of the team associated to the action.

ActionId string

Id of the action.

TeamId string

Id of the team associated to the action.

actionId String

Id of the action.

teamId String

Id of the team associated to the action.

actionId string

Id of the action.

teamId string

Id of the team associated to the action.

action_id str

Id of the action.

team_id str

Id of the team associated to the action.

actionId String

Id of the action.

teamId String

Id of the team associated to the action.

Outputs

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

Get an existing AutomationActionsActionTeamAssociation 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?: AutomationActionsActionTeamAssociationState, opts?: CustomResourceOptions): AutomationActionsActionTeamAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action_id: Optional[str] = None,
        team_id: Optional[str] = None) -> AutomationActionsActionTeamAssociation
func GetAutomationActionsActionTeamAssociation(ctx *Context, name string, id IDInput, state *AutomationActionsActionTeamAssociationState, opts ...ResourceOption) (*AutomationActionsActionTeamAssociation, error)
public static AutomationActionsActionTeamAssociation Get(string name, Input<string> id, AutomationActionsActionTeamAssociationState? state, CustomResourceOptions? opts = null)
public static AutomationActionsActionTeamAssociation get(String name, Output<String> id, AutomationActionsActionTeamAssociationState 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.
The following state arguments are supported:
ActionId string

Id of the action.

TeamId string

Id of the team associated to the action.

ActionId string

Id of the action.

TeamId string

Id of the team associated to the action.

actionId String

Id of the action.

teamId String

Id of the team associated to the action.

actionId string

Id of the action.

teamId string

Id of the team associated to the action.

action_id str

Id of the action.

team_id str

Id of the team associated to the action.

actionId String

Id of the action.

teamId String

Id of the team associated to the action.

Import

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

 $ pulumi import pagerduty:index/automationActionsActionTeamAssociation:AutomationActionsActionTeamAssociation 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.