1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. JiraCloudAccountMappingRule
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

pagerduty.JiraCloudAccountMappingRule

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

    An Jira Cloud’s account mapping rule configures the bidirectional synchronization between Jira issues and PagerDuty incidents.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.PagerdutyFunctions;
    import com.pulumi.pagerduty.inputs.GetEscalationPolicyArgs;
    import com.pulumi.pagerduty.inputs.GetPriorityArgs;
    import com.pulumi.pagerduty.Service;
    import com.pulumi.pagerduty.ServiceArgs;
    import com.pulumi.pagerduty.User;
    import com.pulumi.pagerduty.UserArgs;
    import com.pulumi.pagerduty.JiraCloudAccountMappingRule;
    import com.pulumi.pagerduty.JiraCloudAccountMappingRuleArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            final var default = PagerdutyFunctions.getEscalationPolicy(GetEscalationPolicyArgs.builder()
                .name("Default")
                .build());
    
            final var p1 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
                .name("P1")
                .build());
    
            final var p2 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
                .name("P2")
                .build());
    
            final var p3 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
                .name("P3")
                .build());
    
            var foo = new Service("foo", ServiceArgs.builder()
                .name("My Web App")
                .escalationPolicy(default_.id())
                .build());
    
            var fooUser = new User("fooUser", UserArgs.builder()
                .name("Earline Greenholt")
                .email("125.greenholt.earline@graham.name")
                .build());
    
            var fooJiraCloudAccountMappingRule = new JiraCloudAccountMappingRule("fooJiraCloudAccountMappingRule", JiraCloudAccountMappingRuleArgs.builder()
                .name("Integration with My Web App")
                .accountMapping("PLBP09X")
                .config(JiraCloudAccountMappingRuleConfigArgs.builder()
                    .service(foo.id())
                    .jira(JiraCloudAccountMappingRuleConfigJiraArgs.builder()
                        .autocreateJql("priority = Highest")
                        .createIssueOnIncidentTrigger(true)
                        .customFields(                    
                            JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
                                .sourceIncidentField("incident_description")
                                .targetIssueField("description")
                                .targetIssueFieldName("Description")
                                .type("attribute")
                                .build(),
                            JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
                                .targetIssueField("security")
                                .targetIssueFieldName("Security Level")
                                .type("jira_value")
                                .value(serializeJson(
                                    jsonObject(
                                        jsonProperty("displayName", "Sec Level 1"),
                                        jsonProperty("id", "10000")
                                    )))
                                .build())
                        .issueType(JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs.builder()
                            .id("10001")
                            .name("Incident")
                            .build())
                        .priorities(                    
                            JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
                                .jiraId("1")
                                .pagerdutyId(p1.applyValue(getPriorityResult -> getPriorityResult.id()))
                                .build(),
                            JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
                                .jiraId("2")
                                .pagerdutyId(p2.applyValue(getPriorityResult -> getPriorityResult.id()))
                                .build(),
                            JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
                                .jiraId("3")
                                .pagerdutyId(p3.applyValue(getPriorityResult -> getPriorityResult.id()))
                                .build())
                        .project(JiraCloudAccountMappingRuleConfigJiraProjectArgs.builder()
                            .id("10100")
                            .key("ITS")
                            .name("IT Support")
                            .build())
                        .statusMapping(JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs.builder()
                            .acknowledged(JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs.builder()
                                .id("2")
                                .name("In Progress")
                                .build())
                            .resolved(JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs.builder()
                                .id("3")
                                .name("Resolved")
                                .build())
                            .triggered(JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs.builder()
                                .id("1")
                                .name("Open")
                                .build())
                            .build())
                        .syncNotesUser(fooUser.id())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: pagerduty:Service
        properties:
          name: My Web App
          escalationPolicy: ${default.id}
      fooUser:
        type: pagerduty:User
        name: foo
        properties:
          name: Earline Greenholt
          email: 125.greenholt.earline@graham.name
      fooJiraCloudAccountMappingRule:
        type: pagerduty:JiraCloudAccountMappingRule
        name: foo
        properties:
          name: Integration with My Web App
          accountMapping: PLBP09X
          config:
            - service: ${foo.id}
              jira:
                - autocreateJql: priority = Highest
                  createIssueOnIncidentTrigger: true
                  customFields:
                    - sourceIncidentField: incident_description
                      targetIssueField: description
                      targetIssueFieldName: Description
                      type: attribute
                    - targetIssueField: security
                      targetIssueFieldName: Security Level
                      type: jira_value
                      value:
                        fn::toJSON:
                          displayName: Sec Level 1
                          id: '10000'
                  issueType:
                    - id: '10001'
                      name: Incident
                  priorities:
                    - jiraId: '1'
                      pagerdutyId: ${p1.id}
                    - jiraId: '2'
                      pagerdutyId: ${p2.id}
                    - jiraId: '3'
                      pagerdutyId: ${p3.id}
                  project:
                    - id: '10100'
                      key: ITS
                      name: IT Support
                  statusMapping:
                    - acknowledged:
                        - id: '2'
                          name: In Progress
                      resolved:
                        - id: '3'
                          name: Resolved
                      triggered:
                        - id: '1'
                          name: Open
                  syncNotesUser: ${fooUser.id}
    variables:
      default:
        fn::invoke:
          Function: pagerduty:getEscalationPolicy
          Arguments:
            name: Default
      p1:
        fn::invoke:
          Function: pagerduty:getPriority
          Arguments:
            name: P1
      p2:
        fn::invoke:
          Function: pagerduty:getPriority
          Arguments:
            name: P2
      p3:
        fn::invoke:
          Function: pagerduty:getPriority
          Arguments:
            name: P3
    

    Create JiraCloudAccountMappingRule Resource

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

    Constructor syntax

    new JiraCloudAccountMappingRule(name: string, args: JiraCloudAccountMappingRuleArgs, opts?: CustomResourceOptions);
    @overload
    def JiraCloudAccountMappingRule(resource_name: str,
                                    args: JiraCloudAccountMappingRuleArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def JiraCloudAccountMappingRule(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    account_mapping: Optional[str] = None,
                                    config: Optional[JiraCloudAccountMappingRuleConfigArgs] = None,
                                    name: Optional[str] = None)
    func NewJiraCloudAccountMappingRule(ctx *Context, name string, args JiraCloudAccountMappingRuleArgs, opts ...ResourceOption) (*JiraCloudAccountMappingRule, error)
    public JiraCloudAccountMappingRule(string name, JiraCloudAccountMappingRuleArgs args, CustomResourceOptions? opts = null)
    public JiraCloudAccountMappingRule(String name, JiraCloudAccountMappingRuleArgs args)
    public JiraCloudAccountMappingRule(String name, JiraCloudAccountMappingRuleArgs args, CustomResourceOptions options)
    
    type: pagerduty:JiraCloudAccountMappingRule
    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 JiraCloudAccountMappingRuleArgs
    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 JiraCloudAccountMappingRuleArgs
    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 JiraCloudAccountMappingRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JiraCloudAccountMappingRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JiraCloudAccountMappingRuleArgs
    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 jiraCloudAccountMappingRuleResource = new Pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", new()
    {
        AccountMapping = "string",
        Config = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigArgs
        {
            Service = "string",
            Jira = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraArgs
            {
                AutocreateJql = "string",
                CreateIssueOnIncidentTrigger = false,
                CustomFields = new[]
                {
                    new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs
                    {
                        TargetIssueField = "string",
                        TargetIssueFieldName = "string",
                        Type = "string",
                        SourceIncidentField = "string",
                        Value = "string",
                    },
                },
                IssueType = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs
                {
                    Id = "string",
                    Name = "string",
                },
                Priorities = new[]
                {
                    new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraPriorityArgs
                    {
                        JiraId = "string",
                        PagerdutyId = "string",
                    },
                },
                Project = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraProjectArgs
                {
                    Id = "string",
                    Key = "string",
                    Name = "string",
                },
                StatusMapping = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs
                {
                    Acknowledged = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs
                    {
                        Id = "string",
                        Name = "string",
                    },
                    Resolved = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs
                    {
                        Id = "string",
                        Name = "string",
                    },
                    Triggered = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs
                    {
                        Id = "string",
                        Name = "string",
                    },
                },
                SyncNotesUser = "string",
            },
        },
        Name = "string",
    });
    
    example, err := pagerduty.NewJiraCloudAccountMappingRule(ctx, "jiraCloudAccountMappingRuleResource", &pagerduty.JiraCloudAccountMappingRuleArgs{
    	AccountMapping: pulumi.String("string"),
    	Config: &pagerduty.JiraCloudAccountMappingRuleConfigArgs{
    		Service: pulumi.String("string"),
    		Jira: &pagerduty.JiraCloudAccountMappingRuleConfigJiraArgs{
    			AutocreateJql:                pulumi.String("string"),
    			CreateIssueOnIncidentTrigger: pulumi.Bool(false),
    			CustomFields: pagerduty.JiraCloudAccountMappingRuleConfigJiraCustomFieldArray{
    				&pagerduty.JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs{
    					TargetIssueField:     pulumi.String("string"),
    					TargetIssueFieldName: pulumi.String("string"),
    					Type:                 pulumi.String("string"),
    					SourceIncidentField:  pulumi.String("string"),
    					Value:                pulumi.String("string"),
    				},
    			},
    			IssueType: &pagerduty.JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs{
    				Id:   pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    			Priorities: pagerduty.JiraCloudAccountMappingRuleConfigJiraPriorityArray{
    				&pagerduty.JiraCloudAccountMappingRuleConfigJiraPriorityArgs{
    					JiraId:      pulumi.String("string"),
    					PagerdutyId: pulumi.String("string"),
    				},
    			},
    			Project: &pagerduty.JiraCloudAccountMappingRuleConfigJiraProjectArgs{
    				Id:   pulumi.String("string"),
    				Key:  pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    			StatusMapping: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs{
    				Acknowledged: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs{
    					Id:   pulumi.String("string"),
    					Name: pulumi.String("string"),
    				},
    				Resolved: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs{
    					Id:   pulumi.String("string"),
    					Name: pulumi.String("string"),
    				},
    				Triggered: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs{
    					Id:   pulumi.String("string"),
    					Name: pulumi.String("string"),
    				},
    			},
    			SyncNotesUser: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var jiraCloudAccountMappingRuleResource = new JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", JiraCloudAccountMappingRuleArgs.builder()
        .accountMapping("string")
        .config(JiraCloudAccountMappingRuleConfigArgs.builder()
            .service("string")
            .jira(JiraCloudAccountMappingRuleConfigJiraArgs.builder()
                .autocreateJql("string")
                .createIssueOnIncidentTrigger(false)
                .customFields(JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
                    .targetIssueField("string")
                    .targetIssueFieldName("string")
                    .type("string")
                    .sourceIncidentField("string")
                    .value("string")
                    .build())
                .issueType(JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs.builder()
                    .id("string")
                    .name("string")
                    .build())
                .priorities(JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
                    .jiraId("string")
                    .pagerdutyId("string")
                    .build())
                .project(JiraCloudAccountMappingRuleConfigJiraProjectArgs.builder()
                    .id("string")
                    .key("string")
                    .name("string")
                    .build())
                .statusMapping(JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs.builder()
                    .acknowledged(JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs.builder()
                        .id("string")
                        .name("string")
                        .build())
                    .resolved(JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs.builder()
                        .id("string")
                        .name("string")
                        .build())
                    .triggered(JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs.builder()
                        .id("string")
                        .name("string")
                        .build())
                    .build())
                .syncNotesUser("string")
                .build())
            .build())
        .name("string")
        .build());
    
    jira_cloud_account_mapping_rule_resource = pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource",
        account_mapping="string",
        config={
            "service": "string",
            "jira": {
                "autocreate_jql": "string",
                "create_issue_on_incident_trigger": False,
                "custom_fields": [{
                    "target_issue_field": "string",
                    "target_issue_field_name": "string",
                    "type": "string",
                    "source_incident_field": "string",
                    "value": "string",
                }],
                "issue_type": {
                    "id": "string",
                    "name": "string",
                },
                "priorities": [{
                    "jira_id": "string",
                    "pagerduty_id": "string",
                }],
                "project": {
                    "id": "string",
                    "key": "string",
                    "name": "string",
                },
                "status_mapping": {
                    "acknowledged": {
                        "id": "string",
                        "name": "string",
                    },
                    "resolved": {
                        "id": "string",
                        "name": "string",
                    },
                    "triggered": {
                        "id": "string",
                        "name": "string",
                    },
                },
                "sync_notes_user": "string",
            },
        },
        name="string")
    
    const jiraCloudAccountMappingRuleResource = new pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", {
        accountMapping: "string",
        config: {
            service: "string",
            jira: {
                autocreateJql: "string",
                createIssueOnIncidentTrigger: false,
                customFields: [{
                    targetIssueField: "string",
                    targetIssueFieldName: "string",
                    type: "string",
                    sourceIncidentField: "string",
                    value: "string",
                }],
                issueType: {
                    id: "string",
                    name: "string",
                },
                priorities: [{
                    jiraId: "string",
                    pagerdutyId: "string",
                }],
                project: {
                    id: "string",
                    key: "string",
                    name: "string",
                },
                statusMapping: {
                    acknowledged: {
                        id: "string",
                        name: "string",
                    },
                    resolved: {
                        id: "string",
                        name: "string",
                    },
                    triggered: {
                        id: "string",
                        name: "string",
                    },
                },
                syncNotesUser: "string",
            },
        },
        name: "string",
    });
    
    type: pagerduty:JiraCloudAccountMappingRule
    properties:
        accountMapping: string
        config:
            jira:
                autocreateJql: string
                createIssueOnIncidentTrigger: false
                customFields:
                    - sourceIncidentField: string
                      targetIssueField: string
                      targetIssueFieldName: string
                      type: string
                      value: string
                issueType:
                    id: string
                    name: string
                priorities:
                    - jiraId: string
                      pagerdutyId: string
                project:
                    id: string
                    key: string
                    name: string
                statusMapping:
                    acknowledged:
                        id: string
                        name: string
                    resolved:
                        id: string
                        name: string
                    triggered:
                        id: string
                        name: string
                syncNotesUser: string
            service: string
        name: string
    

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

    AccountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    Config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    Name string
    The name of the rule.
    AccountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    Config JiraCloudAccountMappingRuleConfigArgs
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    Name string
    The name of the rule.
    accountMapping String
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name String
    The name of the rule.
    accountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name string
    The name of the rule.
    account_mapping str
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    config JiraCloudAccountMappingRuleConfigArgs
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name str
    The name of the rule.
    accountMapping String
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    config Property Map
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name String
    The name of the rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the JiraCloudAccountMappingRule resource produces the following output properties:

    AutocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    AutocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    AutocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    AutocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    autocreateJqlDisabledReason String
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil String
    The timestamp until which the auto-creation using JQL feature is disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    autocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    autocreate_jql_disabled_reason str
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreate_jql_disabled_until str
    The timestamp until which the auto-creation using JQL feature is disabled.
    id str
    The provider-assigned unique ID for this managed resource.
    autocreateJqlDisabledReason String
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil String
    The timestamp until which the auto-creation using JQL feature is disabled.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing JiraCloudAccountMappingRule Resource

    Get an existing JiraCloudAccountMappingRule 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?: JiraCloudAccountMappingRuleState, opts?: CustomResourceOptions): JiraCloudAccountMappingRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_mapping: Optional[str] = None,
            autocreate_jql_disabled_reason: Optional[str] = None,
            autocreate_jql_disabled_until: Optional[str] = None,
            config: Optional[JiraCloudAccountMappingRuleConfigArgs] = None,
            name: Optional[str] = None) -> JiraCloudAccountMappingRule
    func GetJiraCloudAccountMappingRule(ctx *Context, name string, id IDInput, state *JiraCloudAccountMappingRuleState, opts ...ResourceOption) (*JiraCloudAccountMappingRule, error)
    public static JiraCloudAccountMappingRule Get(string name, Input<string> id, JiraCloudAccountMappingRuleState? state, CustomResourceOptions? opts = null)
    public static JiraCloudAccountMappingRule get(String name, Output<String> id, JiraCloudAccountMappingRuleState 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:
    AccountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    AutocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    AutocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    Config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    Name string
    The name of the rule.
    AccountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    AutocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    AutocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    Config JiraCloudAccountMappingRuleConfigArgs
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    Name string
    The name of the rule.
    accountMapping String
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    autocreateJqlDisabledReason String
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil String
    The timestamp until which the auto-creation using JQL feature is disabled.
    config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name String
    The name of the rule.
    accountMapping string
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    autocreateJqlDisabledReason string
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil string
    The timestamp until which the auto-creation using JQL feature is disabled.
    config JiraCloudAccountMappingRuleConfig
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name string
    The name of the rule.
    account_mapping str
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    autocreate_jql_disabled_reason str
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreate_jql_disabled_until str
    The timestamp until which the auto-creation using JQL feature is disabled.
    config JiraCloudAccountMappingRuleConfigArgs
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name str
    The name of the rule.
    accountMapping String
    [Updating can cause a resource replacement] The account mapping this rule belongs to.
    autocreateJqlDisabledReason String
    If auto-creation using JQL is disabled, this field provides the reason for the disablement.
    autocreateJqlDisabledUntil String
    The timestamp until which the auto-creation using JQL feature is disabled.
    config Property Map
    Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
    name String
    The name of the rule.

    Supporting Types

    JiraCloudAccountMappingRuleConfig, JiraCloudAccountMappingRuleConfigArgs

    Service string
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    Jira JiraCloudAccountMappingRuleConfigJira
    Synchronization settings.
    Service string
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    Jira JiraCloudAccountMappingRuleConfigJira
    Synchronization settings.
    service String
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    jira JiraCloudAccountMappingRuleConfigJira
    Synchronization settings.
    service string
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    jira JiraCloudAccountMappingRuleConfigJira
    Synchronization settings.
    service str
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    jira JiraCloudAccountMappingRuleConfigJira
    Synchronization settings.
    service String
    [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
    jira Property Map
    Synchronization settings.

    JiraCloudAccountMappingRuleConfigJira, JiraCloudAccountMappingRuleConfigJiraArgs

    AutocreateJql string
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    CreateIssueOnIncidentTrigger bool
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    CustomFields List<JiraCloudAccountMappingRuleConfigJiraCustomField>
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    IssueType JiraCloudAccountMappingRuleConfigJiraIssueType
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    Priorities List<JiraCloudAccountMappingRuleConfigJiraPriority>
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    Project JiraCloudAccountMappingRuleConfigJiraProject
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    StatusMapping JiraCloudAccountMappingRuleConfigJiraStatusMapping
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    SyncNotesUser string
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
    AutocreateJql string
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    CreateIssueOnIncidentTrigger bool
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    CustomFields []JiraCloudAccountMappingRuleConfigJiraCustomField
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    IssueType JiraCloudAccountMappingRuleConfigJiraIssueType
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    Priorities []JiraCloudAccountMappingRuleConfigJiraPriority
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    Project JiraCloudAccountMappingRuleConfigJiraProject
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    StatusMapping JiraCloudAccountMappingRuleConfigJiraStatusMapping
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    SyncNotesUser string
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
    autocreateJql String
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    createIssueOnIncidentTrigger Boolean
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    customFields List<JiraCloudAccountMappingRuleConfigJiraCustomField>
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    issueType JiraCloudAccountMappingRuleConfigJiraIssueType
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    priorities List<JiraCloudAccountMappingRuleConfigJiraPriority>
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    project JiraCloudAccountMappingRuleConfigJiraProject
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    statusMapping JiraCloudAccountMappingRuleConfigJiraStatusMapping
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    syncNotesUser String
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
    autocreateJql string
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    createIssueOnIncidentTrigger boolean
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    customFields JiraCloudAccountMappingRuleConfigJiraCustomField[]
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    issueType JiraCloudAccountMappingRuleConfigJiraIssueType
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    priorities JiraCloudAccountMappingRuleConfigJiraPriority[]
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    project JiraCloudAccountMappingRuleConfigJiraProject
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    statusMapping JiraCloudAccountMappingRuleConfigJiraStatusMapping
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    syncNotesUser string
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
    autocreate_jql str
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    create_issue_on_incident_trigger bool
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    custom_fields Sequence[JiraCloudAccountMappingRuleConfigJiraCustomField]
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    issue_type JiraCloudAccountMappingRuleConfigJiraIssueType
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    priorities Sequence[JiraCloudAccountMappingRuleConfigJiraPriority]
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    project JiraCloudAccountMappingRuleConfigJiraProject
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    status_mapping JiraCloudAccountMappingRuleConfigJiraStatusMapping
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    sync_notes_user str
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
    autocreateJql String
    JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
    createIssueOnIncidentTrigger Boolean
    When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
    customFields List<Property Map>
    Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
    issueType Property Map
    Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
    priorities List<Property Map>
    Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
    project Property Map
    [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
    statusMapping Property Map
    Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
    syncNotesUser String
    ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.

    JiraCloudAccountMappingRuleConfigJiraCustomField, JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs

    TargetIssueField string
    The unique identifier key of the Jira field that will be set.
    TargetIssueFieldName string
    The human-readable name of the Jira field.
    Type string
    The type of the value that will be set; one of attribute, const or jira_value.
    SourceIncidentField string
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    Value string
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.
    TargetIssueField string
    The unique identifier key of the Jira field that will be set.
    TargetIssueFieldName string
    The human-readable name of the Jira field.
    Type string
    The type of the value that will be set; one of attribute, const or jira_value.
    SourceIncidentField string
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    Value string
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.
    targetIssueField String
    The unique identifier key of the Jira field that will be set.
    targetIssueFieldName String
    The human-readable name of the Jira field.
    type String
    The type of the value that will be set; one of attribute, const or jira_value.
    sourceIncidentField String
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    value String
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.
    targetIssueField string
    The unique identifier key of the Jira field that will be set.
    targetIssueFieldName string
    The human-readable name of the Jira field.
    type string
    The type of the value that will be set; one of attribute, const or jira_value.
    sourceIncidentField string
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    value string
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.
    target_issue_field str
    The unique identifier key of the Jira field that will be set.
    target_issue_field_name str
    The human-readable name of the Jira field.
    type str
    The type of the value that will be set; one of attribute, const or jira_value.
    source_incident_field str
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    value str
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.
    targetIssueField String
    The unique identifier key of the Jira field that will be set.
    targetIssueFieldName String
    The human-readable name of the Jira field.
    type String
    The type of the value that will be set; one of attribute, const or jira_value.
    sourceIncidentField String
    The PagerDuty incident field from which the value will be extracted (only applicable if type is attribute); one of incident_number, incident_title, incident_description, incident_status, incident_created_at, incident_service, incident_escalation_policy, incident_impacted_services, incident_html_url, incident_assignees, incident_acknowledgers, incident_last_status_change_at, incident_last_status_change_by, incident_urgency or incident_priority.
    value String
    The value to be set for the Jira field (only applicable if type is const or jira_value). It must be set as a JSON string.

    JiraCloudAccountMappingRuleConfigJiraIssueType, JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs

    Id string
    Unique identifier for the Jira issue type.
    Name string
    The name of the Jira issue type.
    Id string
    Unique identifier for the Jira issue type.
    Name string
    The name of the Jira issue type.
    id String
    Unique identifier for the Jira issue type.
    name String
    The name of the Jira issue type.
    id string
    Unique identifier for the Jira issue type.
    name string
    The name of the Jira issue type.
    id str
    Unique identifier for the Jira issue type.
    name str
    The name of the Jira issue type.
    id String
    Unique identifier for the Jira issue type.
    name String
    The name of the Jira issue type.

    JiraCloudAccountMappingRuleConfigJiraPriority, JiraCloudAccountMappingRuleConfigJiraPriorityArgs

    JiraId string
    The ID of the Jira priority.
    PagerdutyId string
    The ID of the PagerDuty priority.
    JiraId string
    The ID of the Jira priority.
    PagerdutyId string
    The ID of the PagerDuty priority.
    jiraId String
    The ID of the Jira priority.
    pagerdutyId String
    The ID of the PagerDuty priority.
    jiraId string
    The ID of the Jira priority.
    pagerdutyId string
    The ID of the PagerDuty priority.
    jira_id str
    The ID of the Jira priority.
    pagerduty_id str
    The ID of the PagerDuty priority.
    jiraId String
    The ID of the Jira priority.
    pagerdutyId String
    The ID of the PagerDuty priority.

    JiraCloudAccountMappingRuleConfigJiraProject, JiraCloudAccountMappingRuleConfigJiraProjectArgs

    Id string
    Unique identifier for the Jira project.
    Key string
    The short key name of the Jira project.
    Name string
    The name of the Jira project.
    Id string
    Unique identifier for the Jira project.
    Key string
    The short key name of the Jira project.
    Name string
    The name of the Jira project.
    id String
    Unique identifier for the Jira project.
    key String
    The short key name of the Jira project.
    name String
    The name of the Jira project.
    id string
    Unique identifier for the Jira project.
    key string
    The short key name of the Jira project.
    name string
    The name of the Jira project.
    id str
    Unique identifier for the Jira project.
    key str
    The short key name of the Jira project.
    name str
    The name of the Jira project.
    id String
    Unique identifier for the Jira project.
    key String
    The short key name of the Jira project.
    name String
    The name of the Jira project.

    JiraCloudAccountMappingRuleConfigJiraStatusMapping, JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs

    Acknowledged JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged
    Jira status that maps to the PagerDuty acknowledged status.
    Resolved JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved
    Jira status that maps to the PagerDuty resolved status.
    Triggered JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered
    Jira status that maps to the PagerDuty triggered status.
    Acknowledged JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged
    Jira status that maps to the PagerDuty acknowledged status.
    Resolved JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved
    Jira status that maps to the PagerDuty resolved status.
    Triggered JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered
    Jira status that maps to the PagerDuty triggered status.
    acknowledged JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged
    Jira status that maps to the PagerDuty acknowledged status.
    resolved JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved
    Jira status that maps to the PagerDuty resolved status.
    triggered JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered
    Jira status that maps to the PagerDuty triggered status.
    acknowledged JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged
    Jira status that maps to the PagerDuty acknowledged status.
    resolved JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved
    Jira status that maps to the PagerDuty resolved status.
    triggered JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered
    Jira status that maps to the PagerDuty triggered status.
    acknowledged JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged
    Jira status that maps to the PagerDuty acknowledged status.
    resolved JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved
    Jira status that maps to the PagerDuty resolved status.
    triggered JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered
    Jira status that maps to the PagerDuty triggered status.
    acknowledged Property Map
    Jira status that maps to the PagerDuty acknowledged status.
    resolved Property Map
    Jira status that maps to the PagerDuty resolved status.
    triggered Property Map
    Jira status that maps to the PagerDuty triggered status.

    JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged, JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs

    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.
    id string
    Unique identifier for the Jira status.
    name string
    Name of the Jira status.
    id str
    Unique identifier for the Jira status.
    name str
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.

    JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved, JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs

    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.
    id string
    Unique identifier for the Jira status.
    name string
    Name of the Jira status.
    id str
    Unique identifier for the Jira status.
    name str
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.

    JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered, JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs

    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    Id string
    Unique identifier for the Jira status.
    Name string
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.
    id string
    Unique identifier for the Jira status.
    name string
    Name of the Jira status.
    id str
    Unique identifier for the Jira status.
    name str
    Name of the Jira status.
    id String
    Unique identifier for the Jira status.
    name String
    Name of the Jira status.

    Import

    Jira Cloud account mapping rules can be imported using the account_mapping_id and rule_id, e.g.

    $ pulumi import pagerduty:index/jiraCloudAccountMappingRule:JiraCloudAccountMappingRule main PLBP09X: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.
    pagerduty logo
    PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi